Class BackupContext.Builder (0.1.0)

public static final class BackupContext.Builder extends GeneratedMessage.Builder<BackupContext.Builder> implements BackupContextOrBuilder

Backup context.

Protobuf type google.cloud.sql.v1.BackupContext

Static Methods

getDescriptor()

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

Methods

build()

public BackupContext build()
Returns
Type Description
BackupContext

buildPartial()

public BackupContext buildPartial()
Returns
Type Description
BackupContext

clear()

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

clearBackupId()

public BackupContext.Builder clearBackupId()

The identifier of the backup.

int64 backup_id = 1;

Returns
Type Description
BackupContext.Builder

This builder for chaining.

clearKind()

public BackupContext.Builder clearKind()

This is always sql#backupContext.

string kind = 2;

Returns
Type Description
BackupContext.Builder

This builder for chaining.

clearName()

public BackupContext.Builder clearName()

The name of the backup. Format: projects/{project}/backups/{backup}

string name = 3;

Returns
Type Description
BackupContext.Builder

This builder for chaining.

getBackupId()

public long getBackupId()

The identifier of the backup.

int64 backup_id = 1;

Returns
Type Description
long

The backupId.

getDefaultInstanceForType()

public BackupContext getDefaultInstanceForType()
Returns
Type Description
BackupContext

getDescriptorForType()

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

getKind()

public String getKind()

This is always sql#backupContext.

string kind = 2;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

This is always sql#backupContext.

string kind = 2;

Returns
Type Description
ByteString

The bytes for kind.

getName()

public String getName()

The name of the backup. Format: projects/{project}/backups/{backup}

string name = 3;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the backup. Format: projects/{project}/backups/{backup}

string name = 3;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupContext other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBackupId(long value)

public BackupContext.Builder setBackupId(long value)

The identifier of the backup.

int64 backup_id = 1;

Parameter
Name Description
value long

The backupId to set.

Returns
Type Description
BackupContext.Builder

This builder for chaining.

setKind(String value)

public BackupContext.Builder setKind(String value)

This is always sql#backupContext.

string kind = 2;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
BackupContext.Builder

This builder for chaining.

setKindBytes(ByteString value)

public BackupContext.Builder setKindBytes(ByteString value)

This is always sql#backupContext.

string kind = 2;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
BackupContext.Builder

This builder for chaining.

setName(String value)

public BackupContext.Builder setName(String value)

The name of the backup. Format: projects/{project}/backups/{backup}

string name = 3;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
BackupContext.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BackupContext.Builder setNameBytes(ByteString value)

The name of the backup. Format: projects/{project}/backups/{backup}

string name = 3;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
BackupContext.Builder

This builder for chaining.