Package com.google.cloud.gkebackup.v1
Class VolumeRestore
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkebackup.v1.VolumeRestore
- All Implemented Interfaces:
VolumeRestoreOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class VolumeRestore
extends com.google.protobuf.GeneratedMessage
implements VolumeRestoreOrBuilder
Represents the operation of restoring a volume from a VolumeBackup.Protobuf type
google.cloud.gkebackup.v1.VolumeRestore- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents the operation of restoring a volume from a VolumeBackup.static enumThe current state of a VolumeRestorestatic enumSupported volume types.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static VolumeRestorestatic final com.google.protobuf.Descriptors.DescriptorgetEtag()Output only.com.google.protobuf.ByteStringOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<VolumeRestore>intgetState()Output only.Output only.com.google.protobuf.ByteStringOutput only.intOutput only.Output only.Output only.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.booleanOutput only.booleanOutput only.inthashCode()booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic VolumeRestore.Builderstatic VolumeRestore.BuildernewBuilder(VolumeRestore prototype) protected VolumeRestore.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static VolumeRestoreparseDelimitedFrom(InputStream input) static VolumeRestoreparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VolumeRestoreparseFrom(byte[] data) static VolumeRestoreparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VolumeRestoreparseFrom(com.google.protobuf.ByteString data) static VolumeRestoreparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VolumeRestoreparseFrom(com.google.protobuf.CodedInputStream input) static VolumeRestoreparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VolumeRestoreparseFrom(InputStream input) static VolumeRestoreparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VolumeRestoreparseFrom(ByteBuffer data) static VolumeRestoreparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<VolumeRestore>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
VOLUME_BACKUP_FIELD_NUMBER
public static final int VOLUME_BACKUP_FIELD_NUMBER- See Also:
-
TARGET_PVC_FIELD_NUMBER
public static final int TARGET_PVC_FIELD_NUMBER- See Also:
-
VOLUME_HANDLE_FIELD_NUMBER
public static final int VOLUME_HANDLE_FIELD_NUMBER- See Also:
-
VOLUME_TYPE_FIELD_NUMBER
public static final int VOLUME_TYPE_FIELD_NUMBER- See Also:
-
COMPLETE_TIME_FIELD_NUMBER
public static final int COMPLETE_TIME_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
STATE_MESSAGE_FIELD_NUMBER
public static final int STATE_MESSAGE_FIELD_NUMBER- See Also:
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Output only. Full name of the VolumeRestore resource. Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceVolumeRestoreOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Full name of the VolumeRestore resource. Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceVolumeRestoreOrBuilder- Returns:
- The bytes for name.
-
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:
getUidin interfaceVolumeRestoreOrBuilder- 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:
getUidBytesin interfaceVolumeRestoreOrBuilder- Returns:
- The bytes for uid.
-
hasCreateTime
public boolean hasCreateTime()Output only. The timestamp when this VolumeRestore resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceVolumeRestoreOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The timestamp when this VolumeRestore resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceVolumeRestoreOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The timestamp when this VolumeRestore resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceVolumeRestoreOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The timestamp when this VolumeRestore resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceVolumeRestoreOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The timestamp when this VolumeRestore resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceVolumeRestoreOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The timestamp when this VolumeRestore resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceVolumeRestoreOrBuilder
-
getVolumeBackup
Output only. The full name of the VolumeBackup from which the volume will be restored. Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVolumeBackupin interfaceVolumeRestoreOrBuilder- Returns:
- The volumeBackup.
-
getVolumeBackupBytes
public com.google.protobuf.ByteString getVolumeBackupBytes()Output only. The full name of the VolumeBackup from which the volume will be restored. Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVolumeBackupBytesin interfaceVolumeRestoreOrBuilder- Returns:
- The bytes for volumeBackup.
-
hasTargetPvc
public boolean hasTargetPvc()Output only. The reference to the target Kubernetes PVC to be restored.
.google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTargetPvcin interfaceVolumeRestoreOrBuilder- Returns:
- Whether the targetPvc field is set.
-
getTargetPvc
Output only. The reference to the target Kubernetes PVC to be restored.
.google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTargetPvcin interfaceVolumeRestoreOrBuilder- Returns:
- The targetPvc.
-
getTargetPvcOrBuilder
Output only. The reference to the target Kubernetes PVC to be restored.
.google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTargetPvcOrBuilderin interfaceVolumeRestoreOrBuilder
-
getVolumeHandle
Output only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup.
string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVolumeHandlein interfaceVolumeRestoreOrBuilder- Returns:
- The volumeHandle.
-
getVolumeHandleBytes
public com.google.protobuf.ByteString getVolumeHandleBytes()Output only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup.
string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVolumeHandleBytesin interfaceVolumeRestoreOrBuilder- Returns:
- The bytes for volumeHandle.
-
getVolumeTypeValue
public int getVolumeTypeValue()Output only. The type of volume provisioned
.google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVolumeTypeValuein interfaceVolumeRestoreOrBuilder- Returns:
- The enum numeric value on the wire for volumeType.
-
getVolumeType
Output only. The type of volume provisioned
.google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVolumeTypein interfaceVolumeRestoreOrBuilder- Returns:
- The volumeType.
-
hasCompleteTime
public boolean hasCompleteTime()Output only. The timestamp when the associated underlying volume restoration completed.
.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCompleteTimein interfaceVolumeRestoreOrBuilder- Returns:
- Whether the completeTime field is set.
-
getCompleteTime
public com.google.protobuf.Timestamp getCompleteTime()Output only. The timestamp when the associated underlying volume restoration completed.
.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCompleteTimein interfaceVolumeRestoreOrBuilder- Returns:
- The completeTime.
-
getCompleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder()Output only. The timestamp when the associated underlying volume restoration completed.
.google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCompleteTimeOrBuilderin interfaceVolumeRestoreOrBuilder
-
getStateValue
public int getStateValue()Output only. The current state of this VolumeRestore.
.google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceVolumeRestoreOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
Output only. The current state of this VolumeRestore.
.google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceVolumeRestoreOrBuilder- Returns:
- The state.
-
getStateMessage
Output only. A human readable message explaining why the VolumeRestore is in its current state.
string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateMessagein interfaceVolumeRestoreOrBuilder- Returns:
- The stateMessage.
-
getStateMessageBytes
public com.google.protobuf.ByteString getStateMessageBytes()Output only. A human readable message explaining why the VolumeRestore is in its current state.
string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateMessageBytesin interfaceVolumeRestoreOrBuilder- Returns:
- The bytes for stateMessage.
-
getEtag
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume restore from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform volume restore updates in order to avoid race conditions.
string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEtagin interfaceVolumeRestoreOrBuilder- 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 restore from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform volume restore updates in order to avoid race conditions.
string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEtagBytesin interfaceVolumeRestoreOrBuilder- Returns:
- The bytes for etag.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static VolumeRestore parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VolumeRestore parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VolumeRestore parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VolumeRestore parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VolumeRestore parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VolumeRestore parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static VolumeRestore parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static VolumeRestore parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static VolumeRestore parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static VolumeRestore parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VolumeRestore.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-