Class Cluster.ManagedBackupSource.Builder (0.57.0)

public static final class Cluster.ManagedBackupSource.Builder extends GeneratedMessage.Builder<Cluster.ManagedBackupSource.Builder> implements Cluster.ManagedBackupSourceOrBuilder

Backups that generated and managed by memorystore.

Protobuf type google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource

Static Methods

getDescriptor()

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

Methods

build()

public Cluster.ManagedBackupSource build()
Returns
Type Description
Cluster.ManagedBackupSource

buildPartial()

public Cluster.ManagedBackupSource buildPartial()
Returns
Type Description
Cluster.ManagedBackupSource

clear()

public Cluster.ManagedBackupSource.Builder clear()
Returns
Type Description
Cluster.ManagedBackupSource.Builder
Overrides

clearBackup()

public Cluster.ManagedBackupSource.Builder clearBackup()

Optional. Example: //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup} A shorter version (without the prefix) of the backup name is also supported, like projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id} In this case, it assumes the backup is under redis.googleapis.com.

string backup = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Cluster.ManagedBackupSource.Builder

This builder for chaining.

getBackup()

public String getBackup()

Optional. Example: //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup} A shorter version (without the prefix) of the backup name is also supported, like projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id} In this case, it assumes the backup is under redis.googleapis.com.

string backup = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The backup.

getBackupBytes()

public ByteString getBackupBytes()

Optional. Example: //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup} A shorter version (without the prefix) of the backup name is also supported, like projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id} In this case, it assumes the backup is under redis.googleapis.com.

string backup = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for backup.

getDefaultInstanceForType()

public Cluster.ManagedBackupSource getDefaultInstanceForType()
Returns
Type Description
Cluster.ManagedBackupSource

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Cluster.ManagedBackupSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBackup(String value)

public Cluster.ManagedBackupSource.Builder setBackup(String value)

Optional. Example: //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup} A shorter version (without the prefix) of the backup name is also supported, like projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id} In this case, it assumes the backup is under redis.googleapis.com.

string backup = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The backup to set.

Returns
Type Description
Cluster.ManagedBackupSource.Builder

This builder for chaining.

setBackupBytes(ByteString value)

public Cluster.ManagedBackupSource.Builder setBackupBytes(ByteString value)

Optional. Example: //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup} A shorter version (without the prefix) of the backup name is also supported, like projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id} In this case, it assumes the backup is under redis.googleapis.com.

string backup = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for backup to set.

Returns
Type Description
Cluster.ManagedBackupSource.Builder

This builder for chaining.