Class BackupFile.Builder (0.30.0)

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

Backup is consisted of multiple backup files.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BackupFile build()
Returns
TypeDescription
BackupFile

buildPartial()

public BackupFile buildPartial()
Returns
TypeDescription
BackupFile

clear()

public BackupFile.Builder clear()
Returns
TypeDescription
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
TypeDescription
BackupFile.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFileName()

public BackupFile.Builder clearFileName()

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

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

Returns
TypeDescription
BackupFile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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
TypeDescription
BackupFile.Builder

This builder for chaining.

clone()

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

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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public BackupFile getDefaultInstanceForType()
Returns
TypeDescription
BackupFile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFileName()

public String getFileName()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
BackupFile.Builder

mergeFrom(BackupFile other)

public BackupFile.Builder mergeFrom(BackupFile other)
Parameter
NameDescription
otherBackupFile
Returns
TypeDescription
BackupFile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackupFile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BackupFile.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueString

The fileName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for fileName to set.

Returns
TypeDescription
BackupFile.Builder

This builder for chaining.

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

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

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
NameDescription
valuelong

The sizeBytes to set.

Returns
TypeDescription
BackupFile.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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