public static final class DataSourceReference.Builder extends GeneratedMessageV3.Builder<DataSourceReference.Builder> implements DataSourceReferenceOrBuilderDataSourceReference is a reference to a DataSource resource.
Protobuf type google.cloud.backupdr.v1.DataSourceReference
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DataSourceReference.BuilderImplements
DataSourceReferenceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DataSourceReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
build()
public DataSourceReference build()| Returns | |
|---|---|
| Type | Description |
DataSourceReference |
|
buildPartial()
public DataSourceReference buildPartial()| Returns | |
|---|---|
| Type | Description |
DataSourceReference |
|
clear()
public DataSourceReference.Builder clear()| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
clearCreateTime()
public DataSourceReference.Builder clearCreateTime()Output only. The time when the DataSourceReference was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
clearDataSource()
public DataSourceReference.Builder clearDataSource()Output only. The resource name of the DataSource. Format: projects/{project}/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}
string data_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
clearDataSourceBackupConfigInfo()
public DataSourceReference.Builder clearDataSourceBackupConfigInfo()Output only. Information of backup configuration on the DataSource.
.google.cloud.backupdr.v1.DataSourceBackupConfigInfo data_source_backup_config_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
clearDataSourceBackupConfigState()
public DataSourceReference.Builder clearDataSourceBackupConfigState()Output only. The backup configuration state of the DataSource.
.google.cloud.backupdr.v1.BackupConfigState data_source_backup_config_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
clearDataSourceBackupCount()
public DataSourceReference.Builder clearDataSourceBackupCount()Output only. Number of backups in the DataSource.
int64 data_source_backup_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
clearDataSourceGcpResourceInfo()
public DataSourceReference.Builder clearDataSourceGcpResourceInfo()Output only. The GCP resource that the DataSource is associated with.
.google.cloud.backupdr.v1.DataSourceGcpResourceInfo data_source_gcp_resource_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public DataSourceReference.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
clearName()
public DataSourceReference.Builder clearName()Identifier. The resource name of the DataSourceReference. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DataSourceReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
clone()
public DataSourceReference.Builder clone()| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
getCreateTime()
public Timestamp getCreateTime()Output only. The time when the DataSourceReference was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The time when the DataSourceReference was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the DataSourceReference was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDataSource()
public String getDataSource()Output only. The resource name of the DataSource. Format: projects/{project}/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}
string data_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The dataSource. |
getDataSourceBackupConfigInfo()
public DataSourceBackupConfigInfo getDataSourceBackupConfigInfo()Output only. Information of backup configuration on the DataSource.
.google.cloud.backupdr.v1.DataSourceBackupConfigInfo data_source_backup_config_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceBackupConfigInfo |
The dataSourceBackupConfigInfo. |
getDataSourceBackupConfigInfoBuilder()
public DataSourceBackupConfigInfo.Builder getDataSourceBackupConfigInfoBuilder()Output only. Information of backup configuration on the DataSource.
.google.cloud.backupdr.v1.DataSourceBackupConfigInfo data_source_backup_config_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceBackupConfigInfo.Builder |
|
getDataSourceBackupConfigInfoOrBuilder()
public DataSourceBackupConfigInfoOrBuilder getDataSourceBackupConfigInfoOrBuilder()Output only. Information of backup configuration on the DataSource.
.google.cloud.backupdr.v1.DataSourceBackupConfigInfo data_source_backup_config_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceBackupConfigInfoOrBuilder |
|
getDataSourceBackupConfigState()
public BackupConfigState getDataSourceBackupConfigState()Output only. The backup configuration state of the DataSource.
.google.cloud.backupdr.v1.BackupConfigState data_source_backup_config_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BackupConfigState |
The dataSourceBackupConfigState. |
getDataSourceBackupConfigStateValue()
public int getDataSourceBackupConfigStateValue()Output only. The backup configuration state of the DataSource.
.google.cloud.backupdr.v1.BackupConfigState data_source_backup_config_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for dataSourceBackupConfigState. |
getDataSourceBackupCount()
public long getDataSourceBackupCount()Output only. Number of backups in the DataSource.
int64 data_source_backup_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The dataSourceBackupCount. |
getDataSourceBytes()
public ByteString getDataSourceBytes()Output only. The resource name of the DataSource. Format: projects/{project}/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}
string data_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for dataSource. |
getDataSourceGcpResourceInfo()
public DataSourceGcpResourceInfo getDataSourceGcpResourceInfo()Output only. The GCP resource that the DataSource is associated with.
.google.cloud.backupdr.v1.DataSourceGcpResourceInfo data_source_gcp_resource_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo |
The dataSourceGcpResourceInfo. |
getDataSourceGcpResourceInfoBuilder()
public DataSourceGcpResourceInfo.Builder getDataSourceGcpResourceInfoBuilder()Output only. The GCP resource that the DataSource is associated with.
.google.cloud.backupdr.v1.DataSourceGcpResourceInfo data_source_gcp_resource_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
getDataSourceGcpResourceInfoOrBuilder()
public DataSourceGcpResourceInfoOrBuilder getDataSourceGcpResourceInfoOrBuilder()Output only. The GCP resource that the DataSource is associated with.
.google.cloud.backupdr.v1.DataSourceGcpResourceInfo data_source_gcp_resource_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfoOrBuilder |
|
getDefaultInstanceForType()
public DataSourceReference getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DataSourceReference |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Identifier. The resource name of the DataSourceReference. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Identifier. The resource name of the DataSourceReference. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
hasCreateTime()
public boolean hasCreateTime()Output only. The time when the DataSourceReference was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasDataSourceBackupConfigInfo()
public boolean hasDataSourceBackupConfigInfo()Output only. Information of backup configuration on the DataSource.
.google.cloud.backupdr.v1.DataSourceBackupConfigInfo data_source_backup_config_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the dataSourceBackupConfigInfo field is set. |
hasDataSourceGcpResourceInfo()
public boolean hasDataSourceGcpResourceInfo()Output only. The GCP resource that the DataSource is associated with.
.google.cloud.backupdr.v1.DataSourceGcpResourceInfo data_source_gcp_resource_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the dataSourceGcpResourceInfo field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public DataSourceReference.Builder mergeCreateTime(Timestamp value)Output only. The time when the DataSourceReference was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
mergeDataSourceBackupConfigInfo(DataSourceBackupConfigInfo value)
public DataSourceReference.Builder mergeDataSourceBackupConfigInfo(DataSourceBackupConfigInfo value)Output only. Information of backup configuration on the DataSource.
.google.cloud.backupdr.v1.DataSourceBackupConfigInfo data_source_backup_config_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
DataSourceBackupConfigInfo |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
mergeDataSourceGcpResourceInfo(DataSourceGcpResourceInfo value)
public DataSourceReference.Builder mergeDataSourceGcpResourceInfo(DataSourceGcpResourceInfo value)Output only. The GCP resource that the DataSource is associated with.
.google.cloud.backupdr.v1.DataSourceGcpResourceInfo data_source_gcp_resource_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
DataSourceGcpResourceInfo |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
mergeFrom(DataSourceReference other)
public DataSourceReference.Builder mergeFrom(DataSourceReference other)| Parameter | |
|---|---|
| Name | Description |
other |
DataSourceReference |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DataSourceReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DataSourceReference.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DataSourceReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
setCreateTime(Timestamp value)
public DataSourceReference.Builder setCreateTime(Timestamp value)Output only. The time when the DataSourceReference was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public DataSourceReference.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The time when the DataSourceReference was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
setDataSource(String value)
public DataSourceReference.Builder setDataSource(String value)Output only. The resource name of the DataSource. Format: projects/{project}/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}
string data_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe dataSource to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setDataSourceBackupConfigInfo(DataSourceBackupConfigInfo value)
public DataSourceReference.Builder setDataSourceBackupConfigInfo(DataSourceBackupConfigInfo value)Output only. Information of backup configuration on the DataSource.
.google.cloud.backupdr.v1.DataSourceBackupConfigInfo data_source_backup_config_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
DataSourceBackupConfigInfo |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
setDataSourceBackupConfigInfo(DataSourceBackupConfigInfo.Builder builderForValue)
public DataSourceReference.Builder setDataSourceBackupConfigInfo(DataSourceBackupConfigInfo.Builder builderForValue)Output only. Information of backup configuration on the DataSource.
.google.cloud.backupdr.v1.DataSourceBackupConfigInfo data_source_backup_config_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DataSourceBackupConfigInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
setDataSourceBackupConfigState(BackupConfigState value)
public DataSourceReference.Builder setDataSourceBackupConfigState(BackupConfigState value)Output only. The backup configuration state of the DataSource.
.google.cloud.backupdr.v1.BackupConfigState data_source_backup_config_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupConfigStateThe dataSourceBackupConfigState to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setDataSourceBackupConfigStateValue(int value)
public DataSourceReference.Builder setDataSourceBackupConfigStateValue(int value)Output only. The backup configuration state of the DataSource.
.google.cloud.backupdr.v1.BackupConfigState data_source_backup_config_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for dataSourceBackupConfigState to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setDataSourceBackupCount(long value)
public DataSourceReference.Builder setDataSourceBackupCount(long value)Output only. Number of backups in the DataSource.
int64 data_source_backup_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe dataSourceBackupCount to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setDataSourceBytes(ByteString value)
public DataSourceReference.Builder setDataSourceBytes(ByteString value)Output only. The resource name of the DataSource. Format: projects/{project}/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}
string data_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for dataSource to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setDataSourceGcpResourceInfo(DataSourceGcpResourceInfo value)
public DataSourceReference.Builder setDataSourceGcpResourceInfo(DataSourceGcpResourceInfo value)Output only. The GCP resource that the DataSource is associated with.
.google.cloud.backupdr.v1.DataSourceGcpResourceInfo data_source_gcp_resource_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
DataSourceGcpResourceInfo |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
setDataSourceGcpResourceInfo(DataSourceGcpResourceInfo.Builder builderForValue)
public DataSourceReference.Builder setDataSourceGcpResourceInfo(DataSourceGcpResourceInfo.Builder builderForValue)Output only. The GCP resource that the DataSource is associated with.
.google.cloud.backupdr.v1.DataSourceGcpResourceInfo data_source_gcp_resource_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DataSourceGcpResourceInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public DataSourceReference.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
setName(String value)
public DataSourceReference.Builder setName(String value)Identifier. The resource name of the DataSourceReference. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public DataSourceReference.Builder setNameBytes(ByteString value)Identifier. The resource name of the DataSourceReference. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DataSourceReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final DataSourceReference.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
DataSourceReference.Builder |
|