Class DataSourceGcpResourceInfo.Builder (0.29.0)

public static final class DataSourceGcpResourceInfo.Builder extends GeneratedMessageV3.Builder<DataSourceGcpResourceInfo.Builder> implements DataSourceGcpResourceInfoOrBuilder

The GCP resource that the DataSource is associated with.

Protobuf type google.cloud.backupdr.v1.DataSourceGcpResourceInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataSourceGcpResourceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

build()

public DataSourceGcpResourceInfo build()
Returns
Type Description
DataSourceGcpResourceInfo

buildPartial()

public DataSourceGcpResourceInfo buildPartial()
Returns
Type Description
DataSourceGcpResourceInfo

clear()

public DataSourceGcpResourceInfo.Builder clear()
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

clearCloudSqlInstanceProperties()

public DataSourceGcpResourceInfo.Builder clearCloudSqlInstanceProperties()

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)

public DataSourceGcpResourceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

clearGcpResourcename()

public DataSourceGcpResourceInfo.Builder clearGcpResourcename()

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

public DataSourceGcpResourceInfo.Builder clearLocation()

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)

public DataSourceGcpResourceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

clearResourceProperties()

public DataSourceGcpResourceInfo.Builder clearResourceProperties()
Returns
Type Description
DataSourceGcpResourceInfo.Builder

clearType()

public DataSourceGcpResourceInfo.Builder clearType()

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

public DataSourceGcpResourceInfo.Builder clone()
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

getCloudSqlInstanceProperties()

public CloudSqlInstanceDataSourceReferenceProperties getCloudSqlInstanceProperties()

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

public CloudSqlInstanceDataSourceReferenceProperties.Builder getCloudSqlInstancePropertiesBuilder()

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

public CloudSqlInstanceDataSourceReferencePropertiesOrBuilder getCloudSqlInstancePropertiesOrBuilder()

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

public DataSourceGcpResourceInfo getDefaultInstanceForType()
Returns
Type Description
DataSourceGcpResourceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcpResourcename()

public String getGcpResourcename()

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

public ByteString getGcpResourcenameBytes()

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

public String getLocation()

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

public ByteString getLocationBytes()

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

public DataSourceGcpResourceInfo.ResourcePropertiesCase getResourcePropertiesCase()
Returns
Type Description
DataSourceGcpResourceInfo.ResourcePropertiesCase

getType()

public String getType()

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

public ByteString getTypeBytes()

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

public boolean hasCloudSqlInstanceProperties()

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

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties value)

public DataSourceGcpResourceInfo.Builder mergeCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties value)

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)

public DataSourceGcpResourceInfo.Builder mergeFrom(DataSourceGcpResourceInfo other)
Parameter
Name Description
other DataSourceGcpResourceInfo
Returns
Type Description
DataSourceGcpResourceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataSourceGcpResourceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataSourceGcpResourceInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataSourceGcpResourceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

setCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties value)

public DataSourceGcpResourceInfo.Builder setCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties value)

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)

public DataSourceGcpResourceInfo.Builder setCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties.Builder builderForValue)

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)

public DataSourceGcpResourceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

setGcpResourcename(String value)

public DataSourceGcpResourceInfo.Builder setGcpResourcename(String value)

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)

public DataSourceGcpResourceInfo.Builder setGcpResourcenameBytes(ByteString value)

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)

public DataSourceGcpResourceInfo.Builder setLocation(String value)

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)

public DataSourceGcpResourceInfo.Builder setLocationBytes(ByteString value)

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)

public DataSourceGcpResourceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides

setType(String value)

public DataSourceGcpResourceInfo.Builder setType(String value)

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)

public DataSourceGcpResourceInfo.Builder setTypeBytes(ByteString value)

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)

public final DataSourceGcpResourceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSourceGcpResourceInfo.Builder
Overrides