Class CloudSqlInstanceDataSourceReferenceProperties.Builder (0.42.0)

public static final class CloudSqlInstanceDataSourceReferenceProperties.Builder extends GeneratedMessage.Builder<CloudSqlInstanceDataSourceReferenceProperties.Builder> implements CloudSqlInstanceDataSourceReferencePropertiesOrBuilder

CloudSqlInstanceDataSourceReferenceProperties represents the properties of a Cloud SQL resource that are stored in the DataSourceReference.

Protobuf type google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties

Static Methods

getDescriptor()

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

Methods

build()

public CloudSqlInstanceDataSourceReferenceProperties build()
Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties

buildPartial()

public CloudSqlInstanceDataSourceReferenceProperties buildPartial()
Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties

clear()

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

clearDatabaseInstalledVersion()

public CloudSqlInstanceDataSourceReferenceProperties.Builder clearDatabaseInstalledVersion()

Output only. The installed database version of the Cloud SQL instance.

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

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

This builder for chaining.

clearInstanceCreateTime()

public CloudSqlInstanceDataSourceReferenceProperties.Builder clearInstanceCreateTime()

Output only. The instance creation timestamp.

.google.protobuf.Timestamp instance_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

clearInstanceTier()

public CloudSqlInstanceDataSourceReferenceProperties.Builder clearInstanceTier()

Output only. The tier (or machine type) for this instance. Example: db-custom-1-3840

string instance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

This builder for chaining.

clearName()

public CloudSqlInstanceDataSourceReferenceProperties.Builder clearName()

Output only. Name of the Cloud SQL instance backed up by the datasource. Format: projects/{project}/instances/{instance}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

This builder for chaining.

getDatabaseInstalledVersion()

public String getDatabaseInstalledVersion()

Output only. The installed database version of the Cloud SQL instance.

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

Returns
Type Description
String

The databaseInstalledVersion.

getDatabaseInstalledVersionBytes()

public ByteString getDatabaseInstalledVersionBytes()

Output only. The installed database version of the Cloud SQL instance.

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

Returns
Type Description
ByteString

The bytes for databaseInstalledVersion.

getDefaultInstanceForType()

public CloudSqlInstanceDataSourceReferenceProperties getDefaultInstanceForType()
Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties

getDescriptorForType()

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

getInstanceCreateTime()

public Timestamp getInstanceCreateTime()

Output only. The instance creation timestamp.

.google.protobuf.Timestamp instance_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The instanceCreateTime.

getInstanceCreateTimeBuilder()

public Timestamp.Builder getInstanceCreateTimeBuilder()

Output only. The instance creation timestamp.

.google.protobuf.Timestamp instance_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getInstanceCreateTimeOrBuilder()

public TimestampOrBuilder getInstanceCreateTimeOrBuilder()

Output only. The instance creation timestamp.

.google.protobuf.Timestamp instance_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getInstanceTier()

public String getInstanceTier()

Output only. The tier (or machine type) for this instance. Example: db-custom-1-3840

string instance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The instanceTier.

getInstanceTierBytes()

public ByteString getInstanceTierBytes()

Output only. The tier (or machine type) for this instance. Example: db-custom-1-3840

string instance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for instanceTier.

getName()

public String getName()

Output only. Name of the Cloud SQL instance backed up by the datasource. Format: projects/{project}/instances/{instance}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Name of the Cloud SQL instance backed up by the datasource. Format: projects/{project}/instances/{instance}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

hasInstanceCreateTime()

public boolean hasInstanceCreateTime()

Output only. The instance creation timestamp.

.google.protobuf.Timestamp instance_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the instanceCreateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudSqlInstanceDataSourceReferenceProperties other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInstanceCreateTime(Timestamp value)

public CloudSqlInstanceDataSourceReferenceProperties.Builder mergeInstanceCreateTime(Timestamp value)

Output only. The instance creation timestamp.

.google.protobuf.Timestamp instance_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

setDatabaseInstalledVersion(String value)

public CloudSqlInstanceDataSourceReferenceProperties.Builder setDatabaseInstalledVersion(String value)

Output only. The installed database version of the Cloud SQL instance.

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

Parameter
Name Description
value String

The databaseInstalledVersion to set.

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

This builder for chaining.

setDatabaseInstalledVersionBytes(ByteString value)

public CloudSqlInstanceDataSourceReferenceProperties.Builder setDatabaseInstalledVersionBytes(ByteString value)

Output only. The installed database version of the Cloud SQL instance.

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

Parameter
Name Description
value ByteString

The bytes for databaseInstalledVersion to set.

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

This builder for chaining.

setInstanceCreateTime(Timestamp value)

public CloudSqlInstanceDataSourceReferenceProperties.Builder setInstanceCreateTime(Timestamp value)

Output only. The instance creation timestamp.

.google.protobuf.Timestamp instance_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

setInstanceCreateTime(Timestamp.Builder builderForValue)

public CloudSqlInstanceDataSourceReferenceProperties.Builder setInstanceCreateTime(Timestamp.Builder builderForValue)

Output only. The instance creation timestamp.

.google.protobuf.Timestamp instance_create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

setInstanceTier(String value)

public CloudSqlInstanceDataSourceReferenceProperties.Builder setInstanceTier(String value)

Output only. The tier (or machine type) for this instance. Example: db-custom-1-3840

string instance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The instanceTier to set.

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

This builder for chaining.

setInstanceTierBytes(ByteString value)

public CloudSqlInstanceDataSourceReferenceProperties.Builder setInstanceTierBytes(ByteString value)

Output only. The tier (or machine type) for this instance. Example: db-custom-1-3840

string instance_tier = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for instanceTier to set.

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

This builder for chaining.

setName(String value)

public CloudSqlInstanceDataSourceReferenceProperties.Builder setName(String value)

Output only. Name of the Cloud SQL instance backed up by the datasource. Format: projects/{project}/instances/{instance}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CloudSqlInstanceDataSourceReferenceProperties.Builder setNameBytes(ByteString value)

Output only. Name of the Cloud SQL instance backed up by the datasource. Format: projects/{project}/instances/{instance}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CloudSqlInstanceDataSourceReferenceProperties.Builder

This builder for chaining.