Class DataSourceReference (0.29.0)

public final class DataSourceReference extends GeneratedMessageV3 implements DataSourceReferenceOrBuilder

DataSourceReference is a reference to a DataSource resource.

Protobuf type google.cloud.backupdr.v1.DataSourceReference

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_BACKUP_CONFIG_INFO_FIELD_NUMBER

public static final int DATA_SOURCE_BACKUP_CONFIG_INFO_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_BACKUP_CONFIG_STATE_FIELD_NUMBER

public static final int DATA_SOURCE_BACKUP_CONFIG_STATE_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_BACKUP_COUNT_FIELD_NUMBER

public static final int DATA_SOURCE_BACKUP_COUNT_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_FIELD_NUMBER

public static final int DATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_GCP_RESOURCE_INFO_FIELD_NUMBER

public static final int DATA_SOURCE_GCP_RESOURCE_INFO_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataSourceReference getDefaultInstance()
Returns
Type Description
DataSourceReference

getDescriptor()

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

newBuilder()

public static DataSourceReference.Builder newBuilder()
Returns
Type Description
DataSourceReference.Builder

newBuilder(DataSourceReference prototype)

public static DataSourceReference.Builder newBuilder(DataSourceReference prototype)
Parameter
Name Description
prototype DataSourceReference
Returns
Type Description
DataSourceReference.Builder

parseDelimitedFrom(InputStream input)

public static DataSourceReference parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataSourceReference parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DataSourceReference parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DataSourceReference parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DataSourceReference parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DataSourceReference parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DataSourceReference parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DataSourceReference parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DataSourceReference parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataSourceReference parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DataSourceReference parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DataSourceReference parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DataSourceReference> parser()
Returns
Type Description
Parser<DataSourceReference>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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.

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.

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

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.

getParserForType()

public Parser<DataSourceReference> getParserForType()
Returns
Type Description
Parser<DataSourceReference>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DataSourceReference.Builder newBuilderForType()
Returns
Type Description
DataSourceReference.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DataSourceReference.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DataSourceReference.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DataSourceReference.Builder toBuilder()
Returns
Type Description
DataSourceReference.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException