Class BackupFile.Builder (0.57.0)

public static final class BackupFile.Builder extends GeneratedMessage.Builder<BackupFile.Builder> implements BackupFileOrBuilder

Backup is consisted of multiple backup files.

Protobuf type google.cloud.redis.cluster.v1beta1.BackupFile

Implements

BackupFileOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public BackupFile build()
Returns
Type Description
BackupFile

buildPartial()

public BackupFile buildPartial()
Returns
Type Description
BackupFile

clear()

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

clearCreateTime()

public BackupFile.Builder clearCreateTime()

Output only. The time when the backup file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupFile.Builder

clearFileName()

public BackupFile.Builder clearFileName()

Output only. e.g: <shard-id>.rdb

string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupFile.Builder

This builder for chaining.

clearSizeBytes()

public BackupFile.Builder clearSizeBytes()

Output only. Size of the backup file in bytes.

int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupFile.Builder

This builder for chaining.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the backup file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the backup file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the backup file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public BackupFile getDefaultInstanceForType()
Returns
Type Description
BackupFile

getDescriptorForType()

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

getFileName()

public String getFileName()

Output only. e.g: <shard-id>.rdb

string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The fileName.

getFileNameBytes()

public ByteString getFileNameBytes()

Output only. e.g: <shard-id>.rdb

string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for fileName.

getSizeBytes()

public long getSizeBytes()

Output only. Size of the backup file in bytes.

int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The sizeBytes.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the backup file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public BackupFile.Builder mergeCreateTime(Timestamp value)

Output only. The time when the backup file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupFile.Builder

mergeFrom(BackupFile other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCreateTime(Timestamp value)

public BackupFile.Builder setCreateTime(Timestamp value)

Output only. The time when the backup file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupFile.Builder

setCreateTime(Timestamp.Builder builderForValue)

public BackupFile.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the backup file was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupFile.Builder

setFileName(String value)

public BackupFile.Builder setFileName(String value)

Output only. e.g: <shard-id>.rdb

string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The fileName to set.

Returns
Type Description
BackupFile.Builder

This builder for chaining.

setFileNameBytes(ByteString value)

public BackupFile.Builder setFileNameBytes(ByteString value)

Output only. e.g: <shard-id>.rdb

string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for fileName to set.

Returns
Type Description
BackupFile.Builder

This builder for chaining.

setSizeBytes(long value)

public BackupFile.Builder setSizeBytes(long value)

Output only. Size of the backup file in bytes.

int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The sizeBytes to set.

Returns
Type Description
BackupFile.Builder

This builder for chaining.