Class DataSource (0.10.0)

publicfinalclass DataSourceextendsGeneratedMessageV3implementsDataSourceOrBuilder

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

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

BACKUP_CONFIG_INFO_FIELD_NUMBER

publicstaticfinalintBACKUP_CONFIG_INFO_FIELD_NUMBER
Field Value
Type Description
int

BACKUP_COUNT_FIELD_NUMBER

publicstaticfinalintBACKUP_COUNT_FIELD_NUMBER
Field Value
Type Description
int

CONFIG_STATE_FIELD_NUMBER

publicstaticfinalintCONFIG_STATE_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

publicstaticfinalintCREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_BACKUP_APPLIANCE_APPLICATION_FIELD_NUMBER

publicstaticfinalintDATA_SOURCE_BACKUP_APPLIANCE_APPLICATION_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_GCP_RESOURCE_FIELD_NUMBER

publicstaticfinalintDATA_SOURCE_GCP_RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

ETAG_FIELD_NUMBER

publicstaticfinalintETAG_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

publicstaticfinalintLABELS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

publicstaticfinalintSTATE_FIELD_NUMBER
Field Value
Type Description
int

TOTAL_STORED_BYTES_FIELD_NUMBER

publicstaticfinalintTOTAL_STORED_BYTES_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

publicstaticfinalintUPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticDataSourcegetDefaultInstance()
Returns
Type Description
DataSource

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticDataSource.BuildernewBuilder()
Returns
Type Description
DataSource.Builder

newBuilder(DataSource prototype)

publicstaticDataSource.BuildernewBuilder(DataSourceprototype)
Parameter
Name Description
prototype DataSource
Returns
Type Description
DataSource.Builder

parseDelimitedFrom(InputStream input)

publicstaticDataSourceparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticDataSourceparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
DataSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticDataSourceparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
DataSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticDataSourceparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DataSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticDataSourceparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticDataSourceparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DataSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsLabels(String key)

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

equals(Object obj)

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

getBackupConfigInfo()

publicBackupConfigInfogetBackupConfigInfo()

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

publicBackupConfigInfoOrBuildergetBackupConfigInfoOrBuilder()

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

publiclonggetBackupCount()

Number of backups in the data source.

optional int64 backup_count = 7;

Returns
Type Description
long

The backupCount.

getConfigState()

publicBackupConfigStategetConfigState()

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

publicintgetConfigStateValue()

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

publicTimestampgetCreateTime()

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

publicTimestampOrBuildergetCreateTimeOrBuilder()

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

publicDataSourceBackupApplianceApplicationgetDataSourceBackupApplianceApplication()

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

publicDataSourceBackupApplianceApplicationOrBuildergetDataSourceBackupApplianceApplicationOrBuilder()

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

publicDataSourceGcpResourcegetDataSourceGcpResource()

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

publicDataSourceGcpResourceOrBuildergetDataSourceGcpResourceOrBuilder()

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

publicDataSourcegetDefaultInstanceForType()
Returns
Type Description
DataSource

getEtag()

publicStringgetEtag()

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

publicByteStringgetEtagBytes()

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)

publicMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

publicintgetLabelsCount()

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

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

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

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

publicStringgetName()

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

publicByteStringgetNameBytes()

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.

getParserForType()

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSourceResourceCase()

publicDataSource.SourceResourceCasegetSourceResourceCase()
Returns
Type Description
DataSource.SourceResourceCase

getState()

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

publicintgetStateValue()

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

publiclonggetTotalStoredBytes()

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

optional int64 total_stored_bytes = 23;

Returns
Type Description
long

The totalStoredBytes.

getUpdateTime()

publicTimestampgetUpdateTime()

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

publicTimestampOrBuildergetUpdateTimeOrBuilder()

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

publicbooleanhasBackupConfigInfo()

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

publicbooleanhasBackupCount()

Number of backups in the data source.

optional int64 backup_count = 7;

Returns
Type Description
boolean

Whether the backupCount field is set.

hasCreateTime()

publicbooleanhasCreateTime()

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

publicbooleanhasDataSourceBackupApplianceApplication()

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

publicbooleanhasDataSourceGcpResource()

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

publicbooleanhasEtag()

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

publicbooleanhasTotalStoredBytes()

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

publicbooleanhasUpdateTime()

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

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

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicDataSource.BuildernewBuilderForType()
Returns
Type Description
DataSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedDataSource.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DataSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicDataSource.BuildertoBuilder()
Returns
Type Description
DataSource.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.