Class CloudSQLBackupRunSource.Builder (0.43.0)

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

The source CloudSQL backup resource.

Protobuf type google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudSQLBackupRunSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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