Interface DataSourceOrBuilder (0.39.0)

publicinterface DataSourceOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

publicabstractbooleancontainsLabels(Stringkey)

Optional. Resource labels to represent user provided metadata. No labels currently defined:

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getBackupBlockedByVaultAccessRestriction()

publicabstractbooleangetBackupBlockedByVaultAccessRestriction()

Output only. This field is set to true if the backup is blocked by vault access restriction.

bool backup_blocked_by_vault_access_restriction = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The backupBlockedByVaultAccessRestriction.

getBackupConfigInfo()

publicabstractBackupConfigInfogetBackupConfigInfo()

Output only. Details of how the resource is configured for backup.

.google.cloud.backupdr.v1.BackupConfigInfo backup_config_info = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupConfigInfo

The backupConfigInfo.

getBackupConfigInfoOrBuilder()

publicabstractBackupConfigInfoOrBuildergetBackupConfigInfoOrBuilder()

Output only. Details of how the resource is configured for backup.

.google.cloud.backupdr.v1.BackupConfigInfo backup_config_info = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupConfigInfoOrBuilder

getBackupCount()

publicabstractlonggetBackupCount()

Number of backups in the data source.

optional int64 backup_count = 7;

Returns
Type Description
long

The backupCount.

getConfigState()

publicabstractBackupConfigStategetConfigState()

Output only. The backup configuration state.

.google.cloud.backupdr.v1.BackupConfigState config_state = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupConfigState

The configState.

getConfigStateValue()

publicabstractintgetConfigStateValue()

Output only. The backup configuration state.

.google.cloud.backupdr.v1.BackupConfigState config_state = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for configState.

getCreateTime()

publicabstractTimestampgetCreateTime()

Output only. The time when the instance was created.

optional .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

publicabstractTimestampOrBuildergetCreateTimeOrBuilder()

Output only. The time when the instance was created.

optional .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDataSourceBackupApplianceApplication()

publicabstractDataSourceBackupApplianceApplicationgetDataSourceBackupApplianceApplication()

The backed up resource is a backup appliance application.

.google.cloud.backupdr.v1.DataSourceBackupApplianceApplication data_source_backup_appliance_application = 27;

Returns
Type Description
DataSourceBackupApplianceApplication

The dataSourceBackupApplianceApplication.

getDataSourceBackupApplianceApplicationOrBuilder()

publicabstractDataSourceBackupApplianceApplicationOrBuildergetDataSourceBackupApplianceApplicationOrBuilder()

The backed up resource is a backup appliance application.

.google.cloud.backupdr.v1.DataSourceBackupApplianceApplication data_source_backup_appliance_application = 27;

Returns
Type Description
DataSourceBackupApplianceApplicationOrBuilder

getDataSourceGcpResource()

publicabstractDataSourceGcpResourcegetDataSourceGcpResource()

The backed up resource is a Google Cloud resource. The word 'DataSource' was included in the names to indicate that this is the representation of the Google Cloud resource used within the DataSource object.

.google.cloud.backupdr.v1.DataSourceGcpResource data_source_gcp_resource = 26;

Returns
Type Description
DataSourceGcpResource

The dataSourceGcpResource.

getDataSourceGcpResourceOrBuilder()

publicabstractDataSourceGcpResourceOrBuildergetDataSourceGcpResourceOrBuilder()

The backed up resource is a Google Cloud resource. The word 'DataSource' was included in the names to indicate that this is the representation of the Google Cloud resource used within the DataSource object.

.google.cloud.backupdr.v1.DataSourceGcpResource data_source_gcp_resource = 26;

Returns
Type Description
DataSourceGcpResourceOrBuilder

getEtag()

publicabstractStringgetEtag()

Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.

optional string etag = 14;

Returns
Type Description
String

The etag.

getEtagBytes()

publicabstractByteStringgetEtagBytes()

Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.

optional string etag = 14;

Returns
Type Description
ByteString

The bytes for etag.

getLabels() (deprecated)

publicabstractMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

publicabstractintgetLabelsCount()

Optional. Resource labels to represent user provided metadata. No labels currently defined:

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

publicabstractMap<String,String>getLabelsMap()

Optional. Resource labels to represent user provided metadata. No labels currently defined:

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

publicabstractStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

Optional. Resource labels to represent user provided metadata. No labels currently defined:

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

publicabstractStringgetLabelsOrThrow(Stringkey)

Optional. Resource labels to represent user provided metadata. No labels currently defined:

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getName()

publicabstractStringgetName()

Output only. Identifier. Name of the datasource to create. It must have the format"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}". {datasource} cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

publicabstractByteStringgetNameBytes()

Output only. Identifier. Name of the datasource to create. It must have the format"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}". {datasource} cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getSourceResourceCase()

publicabstractDataSource.SourceResourceCasegetSourceResourceCase()
Returns
Type Description
DataSource.SourceResourceCase

getState()

publicabstractDataSource.StategetState()

Output only. The DataSource resource instance state.

.google.cloud.backupdr.v1.DataSource.State state = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataSource.State

The state.

getStateValue()

publicabstractintgetStateValue()

Output only. The DataSource resource instance state.

.google.cloud.backupdr.v1.DataSource.State state = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTotalStoredBytes()

publicabstractlonggetTotalStoredBytes()

The number of bytes (metadata and data) stored in this datasource.

optional int64 total_stored_bytes = 23;

Returns
Type Description
long

The totalStoredBytes.

getUpdateTime()

publicabstractTimestampgetUpdateTime()

Output only. The time when the instance was updated.

optional .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

publicabstractTimestampOrBuildergetUpdateTimeOrBuilder()

Output only. The time when the instance was updated.

optional .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasBackupConfigInfo()

publicabstractbooleanhasBackupConfigInfo()

Output only. Details of how the resource is configured for backup.

.google.cloud.backupdr.v1.BackupConfigInfo backup_config_info = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the backupConfigInfo field is set.

hasBackupCount()

publicabstractbooleanhasBackupCount()

Number of backups in the data source.

optional int64 backup_count = 7;

Returns
Type Description
boolean

Whether the backupCount field is set.

hasCreateTime()

publicabstractbooleanhasCreateTime()

Output only. The time when the instance was created.

optional .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDataSourceBackupApplianceApplication()

publicabstractbooleanhasDataSourceBackupApplianceApplication()

The backed up resource is a backup appliance application.

.google.cloud.backupdr.v1.DataSourceBackupApplianceApplication data_source_backup_appliance_application = 27;

Returns
Type Description
boolean

Whether the dataSourceBackupApplianceApplication field is set.

hasDataSourceGcpResource()

publicabstractbooleanhasDataSourceGcpResource()

The backed up resource is a Google Cloud resource. The word 'DataSource' was included in the names to indicate that this is the representation of the Google Cloud resource used within the DataSource object.

.google.cloud.backupdr.v1.DataSourceGcpResource data_source_gcp_resource = 26;

Returns
Type Description
boolean

Whether the dataSourceGcpResource field is set.

hasEtag()

publicabstractbooleanhasEtag()

Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.

optional string etag = 14;

Returns
Type Description
boolean

Whether the etag field is set.

hasTotalStoredBytes()

publicabstractbooleanhasTotalStoredBytes()

The number of bytes (metadata and data) stored in this datasource.

optional int64 total_stored_bytes = 23;

Returns
Type Description
boolean

Whether the totalStoredBytes field is set.

hasUpdateTime()

publicabstractbooleanhasUpdateTime()

Output only. The time when the instance was updated.

optional .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.