Package com.google.cloud.gkebackup.v1
Class VolumeBackup.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
- com.google.cloud.gkebackup.v1.VolumeBackup.Builder
-
- All Implemented Interfaces:
VolumeBackupOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- VolumeBackup
public static final class VolumeBackup.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder> implements VolumeBackupOrBuilder
Represents the backup of a specific persistent volume as a component of a Backup - both the record of the operation and a pointer to the underlying storage-specific artifacts. Next id: 14
Protobuf typegoogle.cloud.gkebackup.v1.VolumeBackup
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeBackup.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VolumeBackup
build()
VolumeBackup
buildPartial()
VolumeBackup.Builder
clear()
VolumeBackup.Builder
clearCompleteTime()
Output only.VolumeBackup.Builder
clearCreateTime()
Output only.VolumeBackup.Builder
clearDiskSizeBytes()
Output only.VolumeBackup.Builder
clearEtag()
Output only.VolumeBackup.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
VolumeBackup.Builder
clearFormat()
Output only.VolumeBackup.Builder
clearName()
Output only.VolumeBackup.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
VolumeBackup.Builder
clearSourcePvc()
Output only.VolumeBackup.Builder
clearState()
Output only.VolumeBackup.Builder
clearStateMessage()
Output only.VolumeBackup.Builder
clearStorageBytes()
Output only.VolumeBackup.Builder
clearUid()
Output only.VolumeBackup.Builder
clearUpdateTime()
Output only.VolumeBackup.Builder
clearVolumeBackupHandle()
Output only.VolumeBackup.Builder
clone()
com.google.protobuf.Timestamp
getCompleteTime()
Output only.com.google.protobuf.Timestamp.Builder
getCompleteTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCompleteTimeOrBuilder()
Output only.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.VolumeBackup
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getDiskSizeBytes()
Output only.String
getEtag()
Output only.com.google.protobuf.ByteString
getEtagBytes()
Output only.VolumeBackup.VolumeBackupFormat
getFormat()
Output only.int
getFormatValue()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.NamespacedName
getSourcePvc()
Output only.NamespacedName.Builder
getSourcePvcBuilder()
Output only.NamespacedNameOrBuilder
getSourcePvcOrBuilder()
Output only.VolumeBackup.State
getState()
Output only.String
getStateMessage()
Output only.com.google.protobuf.ByteString
getStateMessageBytes()
Output only.int
getStateValue()
Output only.long
getStorageBytes()
Output only.String
getUid()
Output only.com.google.protobuf.ByteString
getUidBytes()
Output only.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.String
getVolumeBackupHandle()
Output only.com.google.protobuf.ByteString
getVolumeBackupHandleBytes()
Output only.boolean
hasCompleteTime()
Output only.boolean
hasCreateTime()
Output only.boolean
hasSourcePvc()
Output only.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
VolumeBackup.Builder
mergeCompleteTime(com.google.protobuf.Timestamp value)
Output only.VolumeBackup.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.VolumeBackup.Builder
mergeFrom(VolumeBackup other)
VolumeBackup.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
VolumeBackup.Builder
mergeFrom(com.google.protobuf.Message other)
VolumeBackup.Builder
mergeSourcePvc(NamespacedName value)
Output only.VolumeBackup.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VolumeBackup.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.VolumeBackup.Builder
setCompleteTime(com.google.protobuf.Timestamp value)
Output only.VolumeBackup.Builder
setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.VolumeBackup.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.VolumeBackup.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.VolumeBackup.Builder
setDiskSizeBytes(long value)
Output only.VolumeBackup.Builder
setEtag(String value)
Output only.VolumeBackup.Builder
setEtagBytes(com.google.protobuf.ByteString value)
Output only.VolumeBackup.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VolumeBackup.Builder
setFormat(VolumeBackup.VolumeBackupFormat value)
Output only.VolumeBackup.Builder
setFormatValue(int value)
Output only.VolumeBackup.Builder
setName(String value)
Output only.VolumeBackup.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.VolumeBackup.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
VolumeBackup.Builder
setSourcePvc(NamespacedName value)
Output only.VolumeBackup.Builder
setSourcePvc(NamespacedName.Builder builderForValue)
Output only.VolumeBackup.Builder
setState(VolumeBackup.State value)
Output only.VolumeBackup.Builder
setStateMessage(String value)
Output only.VolumeBackup.Builder
setStateMessageBytes(com.google.protobuf.ByteString value)
Output only.VolumeBackup.Builder
setStateValue(int value)
Output only.VolumeBackup.Builder
setStorageBytes(long value)
Output only.VolumeBackup.Builder
setUid(String value)
Output only.VolumeBackup.Builder
setUidBytes(com.google.protobuf.ByteString value)
Output only.VolumeBackup.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VolumeBackup.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.VolumeBackup.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.VolumeBackup.Builder
setVolumeBackupHandle(String value)
Output only.VolumeBackup.Builder
setVolumeBackupHandleBytes(com.google.protobuf.ByteString value)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
clear
public VolumeBackup.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
getDefaultInstanceForType
public VolumeBackup getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VolumeBackup build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VolumeBackup buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VolumeBackup.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
setField
public VolumeBackup.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
clearField
public VolumeBackup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
clearOneof
public VolumeBackup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
setRepeatedField
public VolumeBackup.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
addRepeatedField
public VolumeBackup.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
mergeFrom
public VolumeBackup.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VolumeBackup.Builder>
-
mergeFrom
public VolumeBackup.Builder mergeFrom(VolumeBackup other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
mergeFrom
public VolumeBackup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VolumeBackup.Builder>
- Throws:
IOException
-
getName
public String getName()
Output only. The full name of the VolumeBackup resource. Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceVolumeBackupOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The full name of the VolumeBackup resource. Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceVolumeBackupOrBuilder
- Returns:
- The bytes for name.
-
setName
public VolumeBackup.Builder setName(String value)
Output only. The full name of the VolumeBackup resource. Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public VolumeBackup.Builder clearName()
Output only. The full name of the VolumeBackup resource. Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setNameBytes
public VolumeBackup.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The full name of the VolumeBackup resource. Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getUid
public String getUid()
Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUid
in interfaceVolumeBackupOrBuilder
- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()
Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUidBytes
in interfaceVolumeBackupOrBuilder
- Returns:
- The bytes for uid.
-
setUid
public VolumeBackup.Builder setUid(String value)
Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
public VolumeBackup.Builder clearUid()
Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setUidBytes
public VolumeBackup.Builder setUidBytes(com.google.protobuf.ByteString value)
Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for uid to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The timestamp when this VolumeBackup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceVolumeBackupOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The timestamp when this VolumeBackup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceVolumeBackupOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public VolumeBackup.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this VolumeBackup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public VolumeBackup.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when this VolumeBackup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public VolumeBackup.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this VolumeBackup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public VolumeBackup.Builder clearCreateTime()
Output only. The timestamp when this VolumeBackup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The timestamp when this VolumeBackup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The timestamp when this VolumeBackup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceVolumeBackupOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. The timestamp when this VolumeBackup resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasUpdateTime
in interfaceVolumeBackupOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. The timestamp when this VolumeBackup resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTime
in interfaceVolumeBackupOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public VolumeBackup.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this VolumeBackup resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public VolumeBackup.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when this VolumeBackup resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public VolumeBackup.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this VolumeBackup resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpdateTime
public VolumeBackup.Builder clearUpdateTime()
Output only. The timestamp when this VolumeBackup resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. The timestamp when this VolumeBackup resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The timestamp when this VolumeBackup resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTimeOrBuilder
in interfaceVolumeBackupOrBuilder
-
hasSourcePvc
public boolean hasSourcePvc()
Output only. A reference to the source Kubernetes PVC from which this VolumeBackup was created.
.google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasSourcePvc
in interfaceVolumeBackupOrBuilder
- Returns:
- Whether the sourcePvc field is set.
-
getSourcePvc
public NamespacedName getSourcePvc()
Output only. A reference to the source Kubernetes PVC from which this VolumeBackup was created.
.google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSourcePvc
in interfaceVolumeBackupOrBuilder
- Returns:
- The sourcePvc.
-
setSourcePvc
public VolumeBackup.Builder setSourcePvc(NamespacedName value)
Output only. A reference to the source Kubernetes PVC from which this VolumeBackup was created.
.google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setSourcePvc
public VolumeBackup.Builder setSourcePvc(NamespacedName.Builder builderForValue)
Output only. A reference to the source Kubernetes PVC from which this VolumeBackup was created.
.google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeSourcePvc
public VolumeBackup.Builder mergeSourcePvc(NamespacedName value)
Output only. A reference to the source Kubernetes PVC from which this VolumeBackup was created.
.google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearSourcePvc
public VolumeBackup.Builder clearSourcePvc()
Output only. A reference to the source Kubernetes PVC from which this VolumeBackup was created.
.google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getSourcePvcBuilder
public NamespacedName.Builder getSourcePvcBuilder()
Output only. A reference to the source Kubernetes PVC from which this VolumeBackup was created.
.google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getSourcePvcOrBuilder
public NamespacedNameOrBuilder getSourcePvcOrBuilder()
Output only. A reference to the source Kubernetes PVC from which this VolumeBackup was created.
.google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSourcePvcOrBuilder
in interfaceVolumeBackupOrBuilder
-
getVolumeBackupHandle
public String getVolumeBackupHandle()
Output only. A storage system-specific opaque handle to the underlying volume backup.
string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getVolumeBackupHandle
in interfaceVolumeBackupOrBuilder
- Returns:
- The volumeBackupHandle.
-
getVolumeBackupHandleBytes
public com.google.protobuf.ByteString getVolumeBackupHandleBytes()
Output only. A storage system-specific opaque handle to the underlying volume backup.
string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getVolumeBackupHandleBytes
in interfaceVolumeBackupOrBuilder
- Returns:
- The bytes for volumeBackupHandle.
-
setVolumeBackupHandle
public VolumeBackup.Builder setVolumeBackupHandle(String value)
Output only. A storage system-specific opaque handle to the underlying volume backup.
string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The volumeBackupHandle to set.- Returns:
- This builder for chaining.
-
clearVolumeBackupHandle
public VolumeBackup.Builder clearVolumeBackupHandle()
Output only. A storage system-specific opaque handle to the underlying volume backup.
string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setVolumeBackupHandleBytes
public VolumeBackup.Builder setVolumeBackupHandleBytes(com.google.protobuf.ByteString value)
Output only. A storage system-specific opaque handle to the underlying volume backup.
string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for volumeBackupHandle to set.- Returns:
- This builder for chaining.
-
getFormatValue
public int getFormatValue()
Output only. The format used for the volume backup.
.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getFormatValue
in interfaceVolumeBackupOrBuilder
- Returns:
- The enum numeric value on the wire for format.
-
setFormatValue
public VolumeBackup.Builder setFormatValue(int value)
Output only. The format used for the volume backup.
.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for format to set.- Returns:
- This builder for chaining.
-
getFormat
public VolumeBackup.VolumeBackupFormat getFormat()
Output only. The format used for the volume backup.
.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getFormat
in interfaceVolumeBackupOrBuilder
- Returns:
- The format.
-
setFormat
public VolumeBackup.Builder setFormat(VolumeBackup.VolumeBackupFormat value)
Output only. The format used for the volume backup.
.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The format to set.- Returns:
- This builder for chaining.
-
clearFormat
public VolumeBackup.Builder clearFormat()
Output only. The format used for the volume backup.
.google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getStorageBytes
public long getStorageBytes()
Output only. The aggregate size of the underlying artifacts associated with this VolumeBackup in the backup storage. This may change over time when multiple backups of the same volume share the same backup storage location. In particular, this is likely to increase in size when the immediately preceding backup of the same volume is deleted.
int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStorageBytes
in interfaceVolumeBackupOrBuilder
- Returns:
- The storageBytes.
-
setStorageBytes
public VolumeBackup.Builder setStorageBytes(long value)
Output only. The aggregate size of the underlying artifacts associated with this VolumeBackup in the backup storage. This may change over time when multiple backups of the same volume share the same backup storage location. In particular, this is likely to increase in size when the immediately preceding backup of the same volume is deleted.
int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The storageBytes to set.- Returns:
- This builder for chaining.
-
clearStorageBytes
public VolumeBackup.Builder clearStorageBytes()
Output only. The aggregate size of the underlying artifacts associated with this VolumeBackup in the backup storage. This may change over time when multiple backups of the same volume share the same backup storage location. In particular, this is likely to increase in size when the immediately preceding backup of the same volume is deleted.
int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getDiskSizeBytes
public long getDiskSizeBytes()
Output only. The minimum size of the disk to which this VolumeBackup can be restored.
int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDiskSizeBytes
in interfaceVolumeBackupOrBuilder
- Returns:
- The diskSizeBytes.
-
setDiskSizeBytes
public VolumeBackup.Builder setDiskSizeBytes(long value)
Output only. The minimum size of the disk to which this VolumeBackup can be restored.
int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The diskSizeBytes to set.- Returns:
- This builder for chaining.
-
clearDiskSizeBytes
public VolumeBackup.Builder clearDiskSizeBytes()
Output only. The minimum size of the disk to which this VolumeBackup can be restored.
int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasCompleteTime
public boolean hasCompleteTime()
Output only. The timestamp when the associated underlying volume backup operation completed.
.google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCompleteTime
in interfaceVolumeBackupOrBuilder
- Returns:
- Whether the completeTime field is set.
-
getCompleteTime
public com.google.protobuf.Timestamp getCompleteTime()
Output only. The timestamp when the associated underlying volume backup operation completed.
.google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCompleteTime
in interfaceVolumeBackupOrBuilder
- Returns:
- The completeTime.
-
setCompleteTime
public VolumeBackup.Builder setCompleteTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when the associated underlying volume backup operation completed.
.google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCompleteTime
public VolumeBackup.Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when the associated underlying volume backup operation completed.
.google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCompleteTime
public VolumeBackup.Builder mergeCompleteTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when the associated underlying volume backup operation completed.
.google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCompleteTime
public VolumeBackup.Builder clearCompleteTime()
Output only. The timestamp when the associated underlying volume backup operation completed.
.google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCompleteTimeBuilder
public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder()
Output only. The timestamp when the associated underlying volume backup operation completed.
.google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCompleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder()
Output only. The timestamp when the associated underlying volume backup operation completed.
.google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCompleteTimeOrBuilder
in interfaceVolumeBackupOrBuilder
-
getStateValue
public int getStateValue()
Output only. The current state of this VolumeBackup.
.google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in interfaceVolumeBackupOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public VolumeBackup.Builder setStateValue(int value)
Output only. The current state of this VolumeBackup.
.google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public VolumeBackup.State getState()
Output only. The current state of this VolumeBackup.
.google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getState
in interfaceVolumeBackupOrBuilder
- Returns:
- The state.
-
setState
public VolumeBackup.Builder setState(VolumeBackup.State value)
Output only. The current state of this VolumeBackup.
.google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
public VolumeBackup.Builder clearState()
Output only. The current state of this VolumeBackup.
.google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getStateMessage
public String getStateMessage()
Output only. A human readable message explaining why the VolumeBackup is in its current state.
string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateMessage
in interfaceVolumeBackupOrBuilder
- Returns:
- The stateMessage.
-
getStateMessageBytes
public com.google.protobuf.ByteString getStateMessageBytes()
Output only. A human readable message explaining why the VolumeBackup is in its current state.
string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateMessageBytes
in interfaceVolumeBackupOrBuilder
- Returns:
- The bytes for stateMessage.
-
setStateMessage
public VolumeBackup.Builder setStateMessage(String value)
Output only. A human readable message explaining why the VolumeBackup is in its current state.
string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The stateMessage to set.- Returns:
- This builder for chaining.
-
clearStateMessage
public VolumeBackup.Builder clearStateMessage()
Output only. A human readable message explaining why the VolumeBackup is in its current state.
string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setStateMessageBytes
public VolumeBackup.Builder setStateMessageBytes(com.google.protobuf.ByteString value)
Output only. A human readable message explaining why the VolumeBackup is in its current state.
string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for stateMessage to set.- Returns:
- This builder for chaining.
-
getEtag
public String getEtag()
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume backup from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform volume backup updates in order to avoid race conditions.
string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEtag
in interfaceVolumeBackupOrBuilder
- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume backup from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform volume backup updates in order to avoid race conditions.
string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEtagBytes
in interfaceVolumeBackupOrBuilder
- Returns:
- The bytes for etag.
-
setEtag
public VolumeBackup.Builder setEtag(String value)
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume backup from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform volume backup updates in order to avoid race conditions.
string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
public VolumeBackup.Builder clearEtag()
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume backup from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform volume backup updates in order to avoid race conditions.
string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setEtagBytes
public VolumeBackup.Builder setEtagBytes(com.google.protobuf.ByteString value)
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume backup from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform volume backup updates in order to avoid race conditions.
string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for etag to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final VolumeBackup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
mergeUnknownFields
public final VolumeBackup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeBackup.Builder>
-
-