Class BackupSource.Builder (0.30.0)

public static final class BackupSource.Builder extends GeneratedMessageV3.Builder<BackupSource.Builder> implements BackupSourceOrBuilder

Message describing a BackupSource.

Protobuf type google.cloud.alloydb.v1beta.BackupSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackupSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackupSource.Builder
Overrides

build()

public BackupSource build()
Returns
TypeDescription
BackupSource

buildPartial()

public BackupSource buildPartial()
Returns
TypeDescription
BackupSource

clear()

public BackupSource.Builder clear()
Returns
TypeDescription
BackupSource.Builder
Overrides

clearBackupName()

public BackupSource.Builder clearBackupName()

Required. The name of the backup resource with the format:

  • projects/{project}/locations/{region}/backups/{backup_id}

string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
BackupSource.Builder

This builder for chaining.

clearBackupUid()

public BackupSource.Builder clearBackupUid()

Output only. The system-generated UID of the backup which was used to create this resource. The UID is generated when the backup is created, and it is retained until the backup is deleted.

string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BackupSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BackupSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BackupSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BackupSource.Builder
Overrides

clone()

public BackupSource.Builder clone()
Returns
TypeDescription
BackupSource.Builder
Overrides

getBackupName()

public String getBackupName()

Required. The name of the backup resource with the format:

  • projects/{project}/locations/{region}/backups/{backup_id}

string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The backupName.

getBackupNameBytes()

public ByteString getBackupNameBytes()

Required. The name of the backup resource with the format:

  • projects/{project}/locations/{region}/backups/{backup_id}

string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for backupName.

getBackupUid()

public String getBackupUid()

Output only. The system-generated UID of the backup which was used to create this resource. The UID is generated when the backup is created, and it is retained until the backup is deleted.

string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The backupUid.

getBackupUidBytes()

public ByteString getBackupUidBytes()

Output only. The system-generated UID of the backup which was used to create this resource. The UID is generated when the backup is created, and it is retained until the backup is deleted.

string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for backupUid.

getDefaultInstanceForType()

public BackupSource getDefaultInstanceForType()
Returns
TypeDescription
BackupSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BackupSource other)

public BackupSource.Builder mergeFrom(BackupSource other)
Parameter
NameDescription
otherBackupSource
Returns
TypeDescription
BackupSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackupSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupSource.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BackupSource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BackupSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackupSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackupSource.Builder
Overrides

setBackupName(String value)

public BackupSource.Builder setBackupName(String value)

Required. The name of the backup resource with the format:

  • projects/{project}/locations/{region}/backups/{backup_id}

string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The backupName to set.

Returns
TypeDescription
BackupSource.Builder

This builder for chaining.

setBackupNameBytes(ByteString value)

public BackupSource.Builder setBackupNameBytes(ByteString value)

Required. The name of the backup resource with the format:

  • projects/{project}/locations/{region}/backups/{backup_id}

string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for backupName to set.

Returns
TypeDescription
BackupSource.Builder

This builder for chaining.

setBackupUid(String value)

public BackupSource.Builder setBackupUid(String value)

Output only. The system-generated UID of the backup which was used to create this resource. The UID is generated when the backup is created, and it is retained until the backup is deleted.

string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The backupUid to set.

Returns
TypeDescription
BackupSource.Builder

This builder for chaining.

setBackupUidBytes(ByteString value)

public BackupSource.Builder setBackupUidBytes(ByteString value)

Output only. The system-generated UID of the backup which was used to create this resource. The UID is generated when the backup is created, and it is retained until the backup is deleted.

string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for backupUid to set.

Returns
TypeDescription
BackupSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BackupSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackupSource.Builder
Overrides

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

public BackupSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BackupSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BackupSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackupSource.Builder
Overrides