Package com.google.cloud.gkebackup.v1
Interface VolumeBackupOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
VolumeBackup
,VolumeBackup.Builder
public interface VolumeBackupOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.Timestamp
getCompleteTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCompleteTimeOrBuilder()
Output only.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.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.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.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
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];
- Returns:
- The name.
-
getNameBytes
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];
- Returns:
- The bytes for name.
-
getUid
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];
- Returns:
- The uid.
-
getUidBytes
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];
- Returns:
- The bytes for uid.
-
hasCreateTime
boolean hasCreateTime()
Output only. The timestamp when this VolumeBackup resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- Whether the createTime field is set.
-
getCreateTime
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];
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
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];
-
hasUpdateTime
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];
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
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];
- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
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];
-
hasSourcePvc
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];
- Returns:
- Whether the sourcePvc field is set.
-
getSourcePvc
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];
- Returns:
- The sourcePvc.
-
getSourcePvcOrBuilder
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];
-
getVolumeBackupHandle
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];
- Returns:
- The volumeBackupHandle.
-
getVolumeBackupHandleBytes
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];
- Returns:
- The bytes for volumeBackupHandle.
-
getFormatValue
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];
- Returns:
- The enum numeric value on the wire for format.
-
getFormat
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];
- Returns:
- The format.
-
getStorageBytes
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];
- Returns:
- The storageBytes.
-
getDiskSizeBytes
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];
- Returns:
- The diskSizeBytes.
-
hasCompleteTime
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];
- Returns:
- Whether the completeTime field is set.
-
getCompleteTime
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];
- Returns:
- The completeTime.
-
getCompleteTimeOrBuilder
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];
-
getStateValue
int getStateValue()
Output only. The current state of this VolumeBackup.
.google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The enum numeric value on the wire for state.
-
getState
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];
- Returns:
- The state.
-
getStateMessage
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];
- Returns:
- The stateMessage.
-
getStateMessageBytes
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];
- Returns:
- The bytes for stateMessage.
-
getEtag
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];
- Returns:
- The etag.
-
getEtagBytes
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];
- Returns:
- The bytes for etag.
-
-