Class CloudSQLBackupRunSource.Builder (0.72.0)

public static final class CloudSQLBackupRunSource.Builder extends GeneratedMessage.Builder<CloudSQLBackupRunSource.Builder> implements CloudSQLBackupRunSourceOrBuilder

The source CloudSQL backup resource.

Protobuf type google.cloud.alloydb.v1beta.CloudSQLBackupRunSource

Static Methods

getDescriptor()

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

Methods

build()

public CloudSQLBackupRunSource build()
Returns
Type Description
CloudSQLBackupRunSource

buildPartial()

public CloudSQLBackupRunSource buildPartial()
Returns
Type Description
CloudSQLBackupRunSource

clear()

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

clearBackupRunId()

public CloudSQLBackupRunSource.Builder clearBackupRunId()

Required. The CloudSQL backup run ID.

int64 backup_run_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudSQLBackupRunSource.Builder

This builder for chaining.

clearInstanceId()

public CloudSQLBackupRunSource.Builder clearInstanceId()

Required. The CloudSQL instance ID.

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudSQLBackupRunSource.Builder

This builder for chaining.

clearProject()

public CloudSQLBackupRunSource.Builder clearProject()

The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster's project.

string project = 1;

Returns
Type Description
CloudSQLBackupRunSource.Builder

This builder for chaining.

getBackupRunId()

public long getBackupRunId()

Required. The CloudSQL backup run ID.

int64 backup_run_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The backupRunId.

getDefaultInstanceForType()

public CloudSQLBackupRunSource getDefaultInstanceForType()
Returns
Type Description
CloudSQLBackupRunSource

getDescriptorForType()

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

getInstanceId()

public String getInstanceId()

Required. The CloudSQL instance ID.

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

Required. The CloudSQL instance ID.

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for instanceId.

getProject()

public String getProject()

The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster's project.

string project = 1;

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster's project.

string project = 1;

Returns
Type Description
ByteString

The bytes for project.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudSQLBackupRunSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBackupRunId(long value)

public CloudSQLBackupRunSource.Builder setBackupRunId(long value)

Required. The CloudSQL backup run ID.

int64 backup_run_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The backupRunId to set.

Returns
Type Description
CloudSQLBackupRunSource.Builder

This builder for chaining.

setInstanceId(String value)

public CloudSQLBackupRunSource.Builder setInstanceId(String value)

Required. The CloudSQL instance ID.

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The instanceId to set.

Returns
Type Description
CloudSQLBackupRunSource.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public CloudSQLBackupRunSource.Builder setInstanceIdBytes(ByteString value)

Required. The CloudSQL instance ID.

string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
CloudSQLBackupRunSource.Builder

This builder for chaining.

setProject(String value)

public CloudSQLBackupRunSource.Builder setProject(String value)

The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster's project.

string project = 1;

Parameter
Name Description
value String

The project to set.

Returns
Type Description
CloudSQLBackupRunSource.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public CloudSQLBackupRunSource.Builder setProjectBytes(ByteString value)

The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster's project.

string project = 1;

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
CloudSQLBackupRunSource.Builder

This builder for chaining.