Class DataSourceReference (0.29.0)

publicfinalclass DataSourceReferenceextendsGeneratedMessageV3implementsDataSourceReferenceOrBuilder

DataSourceReference is a reference to a DataSource resource.

Protobuf type google.cloud.backupdr.v1.DataSourceReference

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

CREATE_TIME_FIELD_NUMBER

publicstaticfinalintCREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_BACKUP_CONFIG_INFO_FIELD_NUMBER

publicstaticfinalintDATA_SOURCE_BACKUP_CONFIG_INFO_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_BACKUP_CONFIG_STATE_FIELD_NUMBER

publicstaticfinalintDATA_SOURCE_BACKUP_CONFIG_STATE_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_BACKUP_COUNT_FIELD_NUMBER

publicstaticfinalintDATA_SOURCE_BACKUP_COUNT_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_FIELD_NUMBER

publicstaticfinalintDATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_GCP_RESOURCE_INFO_FIELD_NUMBER

publicstaticfinalintDATA_SOURCE_GCP_RESOURCE_INFO_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticDataSourceReferencegetDefaultInstance()
Returns
Type Description
DataSourceReference

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticDataSourceReference.BuildernewBuilder()
Returns
Type Description
DataSourceReference.Builder

newBuilder(DataSourceReference prototype)

publicstaticDataSourceReference.BuildernewBuilder(DataSourceReferenceprototype)
Parameter
Name Description
prototype DataSourceReference
Returns
Type Description
DataSourceReference.Builder

parseDelimitedFrom(InputStream input)

publicstaticDataSourceReferenceparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDataSourceReferenceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticDataSourceReferenceparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticDataSourceReferenceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticDataSourceReferenceparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticDataSourceReferenceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticDataSourceReferenceparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDataSourceReferenceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticDataSourceReferenceparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDataSourceReferenceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticDataSourceReferenceparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticDataSourceReferenceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<DataSourceReference>parser()
Returns
Type Description
Parser<DataSourceReference>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

publicTimestampgetCreateTime()

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

publicTimestampOrBuildergetCreateTimeOrBuilder()

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

publicStringgetDataSource()

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

publicDataSourceBackupConfigInfogetDataSourceBackupConfigInfo()

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

publicDataSourceBackupConfigInfoOrBuildergetDataSourceBackupConfigInfoOrBuilder()

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

publicBackupConfigStategetDataSourceBackupConfigState()

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

publicintgetDataSourceBackupConfigStateValue()

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

publiclonggetDataSourceBackupCount()

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

publicByteStringgetDataSourceBytes()

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

publicDataSourceGcpResourceInfogetDataSourceGcpResourceInfo()

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

publicDataSourceGcpResourceInfoOrBuildergetDataSourceGcpResourceInfoOrBuilder()

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

publicDataSourceReferencegetDefaultInstanceForType()
Returns
Type Description
DataSourceReference

getName()

publicStringgetName()

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

publicByteStringgetNameBytes()

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

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasCreateTime()

publicbooleanhasCreateTime()

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

publicbooleanhasDataSourceBackupConfigInfo()

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

publicbooleanhasDataSourceGcpResourceInfo()

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

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicDataSourceReference.BuildernewBuilderForType()
Returns
Type Description
DataSourceReference.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedDataSourceReference.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DataSourceReference.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicDataSourceReference.BuildertoBuilder()
Returns
Type Description
DataSourceReference.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.