Class DataSourceGcpResourceInfo.Builder (0.33.0)

publicstaticfinalclass DataSourceGcpResourceInfo.BuilderextendsGeneratedMessageV3.Builder<DataSourceGcpResourceInfo.Builder>implementsDataSourceGcpResourceInfoOrBuilder

The GCP resource that the DataSource is associated with.

Protobuf type google.cloud.backupdr.v1.DataSourceGcpResourceInfo

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicDataSourceGcpResourceInfo.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

build()

publicDataSourceGcpResourceInfobuild()
Returns
Type Description
DataSourceGcpResourceInfo

buildPartial()

publicDataSourceGcpResourceInfobuildPartial()
Returns
Type Description
DataSourceGcpResourceInfo

clear()

publicDataSourceGcpResourceInfo.Builderclear()
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

clearCloudSqlInstanceProperties()

publicDataSourceGcpResourceInfo.BuilderclearCloudSqlInstanceProperties()

Output only. The properties of the Cloud SQL instance.

.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataSourceGcpResourceInfo.Builder

clearField(Descriptors.FieldDescriptor field)

publicDataSourceGcpResourceInfo.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

clearGcpResourcename()

publicDataSourceGcpResourceInfo.BuilderclearGcpResourcename()

Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}

string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataSourceGcpResourceInfo.Builder

This builder for chaining.

clearLocation()

publicDataSourceGcpResourceInfo.BuilderclearLocation()

Output only. The location of the GCP resource. Ex: <region>/<zone>/"global"/"unspecified"

string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataSourceGcpResourceInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicDataSourceGcpResourceInfo.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

clearResourceProperties()

publicDataSourceGcpResourceInfo.BuilderclearResourceProperties()
Returns
Type Description
DataSourceGcpResourceInfo.Builder

clearType()

publicDataSourceGcpResourceInfo.BuilderclearType()

Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance

string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataSourceGcpResourceInfo.Builder

This builder for chaining.

clone()

publicDataSourceGcpResourceInfo.Builderclone()
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

getCloudSqlInstanceProperties()

publicCloudSqlInstanceDataSourceReferencePropertiesgetCloudSqlInstanceProperties()

Output only. The properties of the Cloud SQL instance.

.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties

The cloudSqlInstanceProperties.

getCloudSqlInstancePropertiesBuilder()

publicCloudSqlInstanceDataSourceReferenceProperties.BuildergetCloudSqlInstancePropertiesBuilder()

Output only. The properties of the Cloud SQL instance.

.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

getCloudSqlInstancePropertiesOrBuilder()

publicCloudSqlInstanceDataSourceReferencePropertiesOrBuildergetCloudSqlInstancePropertiesOrBuilder()

Output only. The properties of the Cloud SQL instance.

.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CloudSqlInstanceDataSourceReferencePropertiesOrBuilder

getDefaultInstanceForType()

publicDataSourceGcpResourceInfogetDefaultInstanceForType()
Returns
Type Description
DataSourceGcpResourceInfo

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcpResourcename()

publicStringgetGcpResourcename()

Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}

string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The gcpResourcename.

getGcpResourcenameBytes()

publicByteStringgetGcpResourcenameBytes()

Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}

string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for gcpResourcename.

getLocation()

publicStringgetLocation()

Output only. The location of the GCP resource. Ex: <region>/<zone>/"global"/"unspecified"

string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The location.

getLocationBytes()

publicByteStringgetLocationBytes()

Output only. The location of the GCP resource. Ex: <region>/<zone>/"global"/"unspecified"

string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for location.

getResourcePropertiesCase()

publicDataSourceGcpResourceInfo.ResourcePropertiesCasegetResourcePropertiesCase()
Returns
Type Description
DataSourceGcpResourceInfo.ResourcePropertiesCase

getType()

publicStringgetType()

Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance

string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The type.

getTypeBytes()

publicByteStringgetTypeBytes()

Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance

string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for type.

hasCloudSqlInstanceProperties()

publicbooleanhasCloudSqlInstanceProperties()

Output only. The properties of the Cloud SQL instance.

.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the cloudSqlInstanceProperties field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties value)

publicDataSourceGcpResourceInfo.BuildermergeCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferencePropertiesvalue)

Output only. The properties of the Cloud SQL instance.

.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CloudSqlInstanceDataSourceReferenceProperties
Returns
Type Description
DataSourceGcpResourceInfo.Builder

mergeFrom(DataSourceGcpResourceInfo other)

publicDataSourceGcpResourceInfo.BuildermergeFrom(DataSourceGcpResourceInfoother)
Parameter
Name Description
other DataSourceGcpResourceInfo
Returns
Type Description
DataSourceGcpResourceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicDataSourceGcpResourceInfo.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicDataSourceGcpResourceInfo.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalDataSourceGcpResourceInfo.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

setCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties value)

publicDataSourceGcpResourceInfo.BuildersetCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferencePropertiesvalue)

Output only. The properties of the Cloud SQL instance.

.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CloudSqlInstanceDataSourceReferenceProperties
Returns
Type Description
DataSourceGcpResourceInfo.Builder

setCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties.Builder builderForValue)

publicDataSourceGcpResourceInfo.BuildersetCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties.BuilderbuilderForValue)

Output only. The properties of the Cloud SQL instance.

.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue CloudSqlInstanceDataSourceReferenceProperties.Builder
Returns
Type Description
DataSourceGcpResourceInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicDataSourceGcpResourceInfo.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

setGcpResourcename(String value)

publicDataSourceGcpResourceInfo.BuildersetGcpResourcename(Stringvalue)

Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}

string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The gcpResourcename to set.

Returns
Type Description
DataSourceGcpResourceInfo.Builder

This builder for chaining.

setGcpResourcenameBytes(ByteString value)

publicDataSourceGcpResourceInfo.BuildersetGcpResourcenameBytes(ByteStringvalue)

Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}

string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for gcpResourcename to set.

Returns
Type Description
DataSourceGcpResourceInfo.Builder

This builder for chaining.

setLocation(String value)

publicDataSourceGcpResourceInfo.BuildersetLocation(Stringvalue)

Output only. The location of the GCP resource. Ex: <region>/<zone>/"global"/"unspecified"

string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
DataSourceGcpResourceInfo.Builder

This builder for chaining.

setLocationBytes(ByteString value)

publicDataSourceGcpResourceInfo.BuildersetLocationBytes(ByteStringvalue)

Output only. The location of the GCP resource. Ex: <region>/<zone>/"global"/"unspecified"

string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
DataSourceGcpResourceInfo.Builder

This builder for chaining.

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

publicDataSourceGcpResourceInfo.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

setType(String value)

publicDataSourceGcpResourceInfo.BuildersetType(Stringvalue)

Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance

string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The type to set.

Returns
Type Description
DataSourceGcpResourceInfo.Builder

This builder for chaining.

setTypeBytes(ByteString value)

publicDataSourceGcpResourceInfo.BuildersetTypeBytes(ByteStringvalue)

Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance

string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
DataSourceGcpResourceInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalDataSourceGcpResourceInfo.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

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.