public static final class BackupContext.Builder extends GeneratedMessage.Builder<BackupContext.Builder> implements BackupContextOrBuilderBackup context.
Protobuf type google.cloud.sql.v1.BackupContext
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BackupContext.BuilderImplements
BackupContextOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BackupContext.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BackupContext.Builder |
|
setBackupId(long value)
public BackupContext.Builder setBackupId(long value)The identifier of the backup.
int64 backup_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
BackupContext.Builder |
This builder for chaining. |