public static final class BackupFile.Builder extends GeneratedMessage.Builder<BackupFile.Builder> implements BackupFileOrBuilderBackup is consisted of multiple backup files.
Protobuf type google.cloud.memorystore.v1.BackupFile
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BackupFile.BuilderImplements
BackupFileOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BackupFile.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BackupFile.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
longThe sizeBytes to set. |
| Returns | |
|---|---|
| Type | Description |
BackupFile.Builder |
This builder for chaining. |