Class DataSource.Builder (0.11.0)

public static final class DataSource.Builder extends GeneratedMessageV3.Builder<DataSource.Builder> implements DataSourceOrBuilder

Message describing a DataSource object. Datasource object used to represent Datasource details for both admin and basic view.

Protobuf type google.cloud.backupdr.v1.DataSource

Implements

DataSourceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSource.Builder
Overrides

build()

public DataSource build()
Returns
Type Description
DataSource

buildPartial()

public DataSource buildPartial()
Returns
Type Description
DataSource

clear()

public DataSource.Builder clear()
Returns
Type Description
DataSource.Builder
Overrides

clearBackupConfigInfo()

public DataSource.Builder clearBackupConfigInfo()

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
DataSource.Builder

clearBackupCount()

public DataSource.Builder clearBackupCount()

Number of backups in the data source.

optional int64 backup_count = 7;

Returns
Type Description
DataSource.Builder

This builder for chaining.

clearConfigState()

public DataSource.Builder clearConfigState()

Output only. The backup configuration state.

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

Returns
Type Description
DataSource.Builder

This builder for chaining.

clearCreateTime()

public DataSource.Builder clearCreateTime()

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
DataSource.Builder

clearDataSourceBackupApplianceApplication()

public DataSource.Builder clearDataSourceBackupApplianceApplication()

The backed up resource is a backup appliance application.

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

Returns
Type Description
DataSource.Builder

clearDataSourceGcpResource()

public DataSource.Builder clearDataSourceGcpResource()

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
DataSource.Builder

clearEtag()

public DataSource.Builder clearEtag()

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

optional string etag = 14;

Returns
Type Description
DataSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataSource.Builder
Overrides

clearLabels()

public DataSource.Builder clearLabels()
Returns
Type Description
DataSource.Builder

clearName()

public DataSource.Builder clearName()

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
DataSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataSource.Builder
Overrides

clearSourceResource()

public DataSource.Builder clearSourceResource()
Returns
Type Description
DataSource.Builder

clearState()

public DataSource.Builder clearState()

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.Builder

This builder for chaining.

clearTotalStoredBytes()

public DataSource.Builder clearTotalStoredBytes()

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

optional int64 total_stored_bytes = 23;

Returns
Type Description
DataSource.Builder

This builder for chaining.

clearUpdateTime()

public DataSource.Builder clearUpdateTime()

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
DataSource.Builder

clone()

public DataSource.Builder clone()
Returns
Type Description
DataSource.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

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

getBackupConfigInfo()

public BackupConfigInfo getBackupConfigInfo()

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.

getBackupConfigInfoBuilder()

public BackupConfigInfo.Builder getBackupConfigInfoBuilder()

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.Builder

getBackupConfigInfoOrBuilder()

public BackupConfigInfoOrBuilder getBackupConfigInfoOrBuilder()

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()

public long getBackupCount()

Number of backups in the data source.

optional int64 backup_count = 7;

Returns
Type Description
long

The backupCount.

getConfigState()

public BackupConfigState getConfigState()

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()

public int getConfigStateValue()

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()

public Timestamp getCreateTime()

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

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()

public DataSourceBackupApplianceApplication getDataSourceBackupApplianceApplication()

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.

getDataSourceBackupApplianceApplicationBuilder()

public DataSourceBackupApplianceApplication.Builder getDataSourceBackupApplianceApplicationBuilder()

The backed up resource is a backup appliance application.

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

Returns
Type Description
DataSourceBackupApplianceApplication.Builder

getDataSourceBackupApplianceApplicationOrBuilder()

public DataSourceBackupApplianceApplicationOrBuilder getDataSourceBackupApplianceApplicationOrBuilder()

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()

public DataSourceGcpResource getDataSourceGcpResource()

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.

getDataSourceGcpResourceBuilder()

public DataSourceGcpResource.Builder getDataSourceGcpResourceBuilder()

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.Builder

getDataSourceGcpResourceOrBuilder()

public DataSourceGcpResourceOrBuilder getDataSourceGcpResourceOrBuilder()

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

getDefaultInstanceForType()

public DataSource getDefaultInstanceForType()
Returns
Type Description
DataSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEtag()

public String getEtag()

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()

public ByteString getEtagBytes()

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)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

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()

public Map<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)

public String getLabelsOrDefault(String key, String defaultValue)

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)

public String getLabelsOrThrow(String key)

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

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

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()

public ByteString getNameBytes()

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()

public DataSource.SourceResourceCase getSourceResourceCase()
Returns
Type Description
DataSource.SourceResourceCase

getState()

public DataSource.State getState()

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()

public int getStateValue()

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()

public long getTotalStoredBytes()

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

optional int64 total_stored_bytes = 23;

Returns
Type Description
long

The totalStoredBytes.

getUpdateTime()

public Timestamp getUpdateTime()

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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

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()

public boolean hasBackupConfigInfo()

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()

public boolean hasBackupCount()

Number of backups in the data source.

optional int64 backup_count = 7;

Returns
Type Description
boolean

Whether the backupCount field is set.

hasCreateTime()

public boolean hasCreateTime()

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()

public boolean hasDataSourceBackupApplianceApplication()

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()

public boolean hasDataSourceGcpResource()

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()

public boolean hasEtag()

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()

public boolean hasTotalStoredBytes()

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()

public boolean hasUpdateTime()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBackupConfigInfo(BackupConfigInfo value)

public DataSource.Builder mergeBackupConfigInfo(BackupConfigInfo value)

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];

Parameter
Name Description
value BackupConfigInfo
Returns
Type Description
DataSource.Builder

mergeCreateTime(Timestamp value)

public DataSource.Builder mergeCreateTime(Timestamp value)

Output only. The time when the instance was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DataSource.Builder

mergeDataSourceBackupApplianceApplication(DataSourceBackupApplianceApplication value)

public DataSource.Builder mergeDataSourceBackupApplianceApplication(DataSourceBackupApplianceApplication value)

The backed up resource is a backup appliance application.

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

Parameter
Name Description
value DataSourceBackupApplianceApplication
Returns
Type Description
DataSource.Builder

mergeDataSourceGcpResource(DataSourceGcpResource value)

public DataSource.Builder mergeDataSourceGcpResource(DataSourceGcpResource value)

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;

Parameter
Name Description
value DataSourceGcpResource
Returns
Type Description
DataSource.Builder

mergeFrom(DataSource other)

public DataSource.Builder mergeFrom(DataSource other)
Parameter
Name Description
other DataSource
Returns
Type Description
DataSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSource.Builder
Overrides

mergeUpdateTime(Timestamp value)

public DataSource.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the instance was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DataSource.Builder

putAllLabels(Map<String,String> values)

public DataSource.Builder putAllLabels(Map<String,String> values)

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
values Map<String,String>
Returns
Type Description
DataSource.Builder

putLabels(String key, String value)

public DataSource.Builder putLabels(String key, String value)

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
value String
Returns
Type Description
DataSource.Builder

removeLabels(String key)

public DataSource.Builder removeLabels(String key)

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
DataSource.Builder

setBackupConfigInfo(BackupConfigInfo value)

public DataSource.Builder setBackupConfigInfo(BackupConfigInfo value)

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];

Parameter
Name Description
value BackupConfigInfo
Returns
Type Description
DataSource.Builder

setBackupConfigInfo(BackupConfigInfo.Builder builderForValue)

public DataSource.Builder setBackupConfigInfo(BackupConfigInfo.Builder builderForValue)

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];

Parameter
Name Description
builderForValue BackupConfigInfo.Builder
Returns
Type Description
DataSource.Builder

setBackupCount(long value)

public DataSource.Builder setBackupCount(long value)

Number of backups in the data source.

optional int64 backup_count = 7;

Parameter
Name Description
value long

The backupCount to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setConfigState(BackupConfigState value)

public DataSource.Builder setConfigState(BackupConfigState value)

Output only. The backup configuration state.

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

Parameter
Name Description
value BackupConfigState

The configState to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setConfigStateValue(int value)

public DataSource.Builder setConfigStateValue(int value)

Output only. The backup configuration state.

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

Parameter
Name Description
value int

The enum numeric value on the wire for configState to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public DataSource.Builder setCreateTime(Timestamp value)

Output only. The time when the instance was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DataSource.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DataSource.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the instance was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DataSource.Builder

setDataSourceBackupApplianceApplication(DataSourceBackupApplianceApplication value)

public DataSource.Builder setDataSourceBackupApplianceApplication(DataSourceBackupApplianceApplication value)

The backed up resource is a backup appliance application.

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

Parameter
Name Description
value DataSourceBackupApplianceApplication
Returns
Type Description
DataSource.Builder

setDataSourceBackupApplianceApplication(DataSourceBackupApplianceApplication.Builder builderForValue)

public DataSource.Builder setDataSourceBackupApplianceApplication(DataSourceBackupApplianceApplication.Builder builderForValue)

The backed up resource is a backup appliance application.

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

Parameter
Name Description
builderForValue DataSourceBackupApplianceApplication.Builder
Returns
Type Description
DataSource.Builder

setDataSourceGcpResource(DataSourceGcpResource value)

public DataSource.Builder setDataSourceGcpResource(DataSourceGcpResource value)

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;

Parameter
Name Description
value DataSourceGcpResource
Returns
Type Description
DataSource.Builder

setDataSourceGcpResource(DataSourceGcpResource.Builder builderForValue)

public DataSource.Builder setDataSourceGcpResource(DataSourceGcpResource.Builder builderForValue)

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;

Parameter
Name Description
builderForValue DataSourceGcpResource.Builder
Returns
Type Description
DataSource.Builder

setEtag(String value)

public DataSource.Builder setEtag(String value)

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

optional string etag = 14;

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public DataSource.Builder setEtagBytes(ByteString value)

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

optional string etag = 14;

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSource.Builder
Overrides

setName(String value)

public DataSource.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataSource.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataSource.Builder
Overrides

setState(DataSource.State value)

public DataSource.Builder setState(DataSource.State value)

Output only. The DataSource resource instance state.

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

Parameter
Name Description
value DataSource.State

The state to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setStateValue(int value)

public DataSource.Builder setStateValue(int value)

Output only. The DataSource resource instance state.

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

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setTotalStoredBytes(long value)

public DataSource.Builder setTotalStoredBytes(long value)

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

optional int64 total_stored_bytes = 23;

Parameter
Name Description
value long

The totalStoredBytes to set.

Returns
Type Description
DataSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSource.Builder
Overrides

setUpdateTime(Timestamp value)

public DataSource.Builder setUpdateTime(Timestamp value)

Output only. The time when the instance was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DataSource.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DataSource.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the instance was updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DataSource.Builder