Class RestoreBackupContext.Builder (0.1.0)

public static final class RestoreBackupContext.Builder extends GeneratedMessage.Builder<RestoreBackupContext.Builder> implements RestoreBackupContextOrBuilder

Database instance restore from backup context. Backup context contains source instance id and project id.

Protobuf type google.cloud.sql.v1.RestoreBackupContext

Static Methods

getDescriptor()

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

Methods

build()

public RestoreBackupContext build()
Returns
Type Description
RestoreBackupContext

buildPartial()

public RestoreBackupContext buildPartial()
Returns
Type Description
RestoreBackupContext

clear()

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

clearBackupRunId()

public RestoreBackupContext.Builder clearBackupRunId()

The ID of the backup run to restore from.

int64 backup_run_id = 2;

Returns
Type Description
RestoreBackupContext.Builder

This builder for chaining.

clearInstanceId()

public RestoreBackupContext.Builder clearInstanceId()

The ID of the instance that the backup was taken from.

string instance_id = 3;

Returns
Type Description
RestoreBackupContext.Builder

This builder for chaining.

clearKind()

public RestoreBackupContext.Builder clearKind()

This is always sql#restoreBackupContext.

string kind = 1;

Returns
Type Description
RestoreBackupContext.Builder

This builder for chaining.

clearProject()

public RestoreBackupContext.Builder clearProject()

The full project ID of the source instance.

string project = 4;

Returns
Type Description
RestoreBackupContext.Builder

This builder for chaining.

getBackupRunId()

public long getBackupRunId()

The ID of the backup run to restore from.

int64 backup_run_id = 2;

Returns
Type Description
long

The backupRunId.

getDefaultInstanceForType()

public RestoreBackupContext getDefaultInstanceForType()
Returns
Type Description
RestoreBackupContext

getDescriptorForType()

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

getInstanceId()

public String getInstanceId()

The ID of the instance that the backup was taken from.

string instance_id = 3;

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

The ID of the instance that the backup was taken from.

string instance_id = 3;

Returns
Type Description
ByteString

The bytes for instanceId.

getKind()

public String getKind()

This is always sql#restoreBackupContext.

string kind = 1;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

This is always sql#restoreBackupContext.

string kind = 1;

Returns
Type Description
ByteString

The bytes for kind.

getProject()

public String getProject()

The full project ID of the source instance.

string project = 4;

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The full project ID of the source instance.

string project = 4;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBackupRunId(long value)

public RestoreBackupContext.Builder setBackupRunId(long value)

The ID of the backup run to restore from.

int64 backup_run_id = 2;

Parameter
Name Description
value long

The backupRunId to set.

Returns
Type Description
RestoreBackupContext.Builder

This builder for chaining.

setInstanceId(String value)

public RestoreBackupContext.Builder setInstanceId(String value)

The ID of the instance that the backup was taken from.

string instance_id = 3;

Parameter
Name Description
value String

The instanceId to set.

Returns
Type Description
RestoreBackupContext.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public RestoreBackupContext.Builder setInstanceIdBytes(ByteString value)

The ID of the instance that the backup was taken from.

string instance_id = 3;

Parameter
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
RestoreBackupContext.Builder

This builder for chaining.

setKind(String value)

public RestoreBackupContext.Builder setKind(String value)

This is always sql#restoreBackupContext.

string kind = 1;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
RestoreBackupContext.Builder

This builder for chaining.

setKindBytes(ByteString value)

public RestoreBackupContext.Builder setKindBytes(ByteString value)

This is always sql#restoreBackupContext.

string kind = 1;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
RestoreBackupContext.Builder

This builder for chaining.

setProject(String value)

public RestoreBackupContext.Builder setProject(String value)

The full project ID of the source instance.

string project = 4;

Parameter
Name Description
value String

The project to set.

Returns
Type Description
RestoreBackupContext.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public RestoreBackupContext.Builder setProjectBytes(ByteString value)

The full project ID of the source instance.

string project = 4;

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
RestoreBackupContext.Builder

This builder for chaining.