Class VolumeRestore.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VolumeRestore.Builder>
com.google.cloud.gkebackup.v1.VolumeRestore.Builder
All Implemented Interfaces:
VolumeRestoreOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VolumeRestore

public static final class VolumeRestore.Builder extends com.google.protobuf.GeneratedMessage.Builder<VolumeRestore.Builder> implements VolumeRestoreOrBuilder
 Represents the operation of restoring a volume from a VolumeBackup.
 
Protobuf type google.cloud.gkebackup.v1.VolumeRestore
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<VolumeRestore.Builder>
    • clear

      public VolumeRestore.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<VolumeRestore.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<VolumeRestore.Builder>
    • getDefaultInstanceForType

      public VolumeRestore getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public VolumeRestore build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public VolumeRestore buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public VolumeRestore.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VolumeRestore.Builder>
    • mergeFrom

      public VolumeRestore.Builder mergeFrom(VolumeRestore other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<VolumeRestore.Builder>
    • mergeFrom

      public VolumeRestore.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VolumeRestore.Builder>
      Throws:
      IOException
    • getName

      public String 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:
      getName in interface VolumeRestoreOrBuilder
      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:
      getNameBytes in interface VolumeRestoreOrBuilder
      Returns:
      The bytes for name.
    • setName

      public VolumeRestore.Builder setName(String value)
       Output only. Full name of the VolumeRestore resource.
       Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public VolumeRestore.Builder clearName()
       Output only. Full name of the VolumeRestore resource.
       Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public VolumeRestore.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Full name of the VolumeRestore resource.
       Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
       
      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 interface VolumeRestoreOrBuilder
      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 interface VolumeRestoreOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public VolumeRestore.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 VolumeRestore.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 VolumeRestore.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 VolumeRestore resource was
       created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface VolumeRestoreOrBuilder
      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:
      getCreateTime in interface VolumeRestoreOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public VolumeRestore.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this VolumeRestore resource was
       created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public VolumeRestore.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when this VolumeRestore resource was
       created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public VolumeRestore.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this VolumeRestore resource was
       created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public VolumeRestore.Builder clearCreateTime()
       Output only. The timestamp when this VolumeRestore 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 VolumeRestore 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 VolumeRestore resource was
       created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface VolumeRestoreOrBuilder
    • 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:
      hasUpdateTime in interface VolumeRestoreOrBuilder
      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:
      getUpdateTime in interface VolumeRestoreOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public VolumeRestore.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this VolumeRestore resource was last
       updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public VolumeRestore.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when this VolumeRestore resource was last
       updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public VolumeRestore.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when this VolumeRestore resource was last
       updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public VolumeRestore.Builder clearUpdateTime()
       Output only. The timestamp when this VolumeRestore 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 VolumeRestore 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 VolumeRestore resource was last
       updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface VolumeRestoreOrBuilder
    • getVolumeBackup

      public String 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:
      getVolumeBackup in interface VolumeRestoreOrBuilder
      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:
      getVolumeBackupBytes in interface VolumeRestoreOrBuilder
      Returns:
      The bytes for volumeBackup.
    • setVolumeBackup

      public VolumeRestore.Builder setVolumeBackup(String value)
       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];
      Parameters:
      value - The volumeBackup to set.
      Returns:
      This builder for chaining.
    • clearVolumeBackup

      public VolumeRestore.Builder clearVolumeBackup()
       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];
      Returns:
      This builder for chaining.
    • setVolumeBackupBytes

      public VolumeRestore.Builder setVolumeBackupBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for volumeBackup to set.
      Returns:
      This builder for chaining.
    • 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:
      hasTargetPvc in interface VolumeRestoreOrBuilder
      Returns:
      Whether the targetPvc field is set.
    • getTargetPvc

      public NamespacedName 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:
      getTargetPvc in interface VolumeRestoreOrBuilder
      Returns:
      The targetPvc.
    • setTargetPvc

      public VolumeRestore.Builder setTargetPvc(NamespacedName value)
       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];
    • setTargetPvc

      public VolumeRestore.Builder setTargetPvc(NamespacedName.Builder builderForValue)
       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];
    • mergeTargetPvc

      public VolumeRestore.Builder mergeTargetPvc(NamespacedName value)
       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];
    • clearTargetPvc

      public VolumeRestore.Builder clearTargetPvc()
       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];
    • getTargetPvcBuilder

      public NamespacedName.Builder getTargetPvcBuilder()
       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];
    • getTargetPvcOrBuilder

      public NamespacedNameOrBuilder 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:
      getTargetPvcOrBuilder in interface VolumeRestoreOrBuilder
    • getVolumeHandle

      public String 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:
      getVolumeHandle in interface VolumeRestoreOrBuilder
      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:
      getVolumeHandleBytes in interface VolumeRestoreOrBuilder
      Returns:
      The bytes for volumeHandle.
    • setVolumeHandle

      public VolumeRestore.Builder setVolumeHandle(String value)
       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];
      Parameters:
      value - The volumeHandle to set.
      Returns:
      This builder for chaining.
    • clearVolumeHandle

      public VolumeRestore.Builder clearVolumeHandle()
       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];
      Returns:
      This builder for chaining.
    • setVolumeHandleBytes

      public VolumeRestore.Builder setVolumeHandleBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for volumeHandle to set.
      Returns:
      This builder for chaining.
    • 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:
      getVolumeTypeValue in interface VolumeRestoreOrBuilder
      Returns:
      The enum numeric value on the wire for volumeType.
    • setVolumeTypeValue

      public VolumeRestore.Builder setVolumeTypeValue(int value)
       Output only. The type of volume provisioned
       
      .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for volumeType to set.
      Returns:
      This builder for chaining.
    • getVolumeType

      public VolumeRestore.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:
      getVolumeType in interface VolumeRestoreOrBuilder
      Returns:
      The volumeType.
    • setVolumeType

      public VolumeRestore.Builder setVolumeType(VolumeRestore.VolumeType value)
       Output only. The type of volume provisioned
       
      .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The volumeType to set.
      Returns:
      This builder for chaining.
    • clearVolumeType

      public VolumeRestore.Builder clearVolumeType()
       Output only. The type of volume provisioned
       
      .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • 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:
      hasCompleteTime in interface VolumeRestoreOrBuilder
      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:
      getCompleteTime in interface VolumeRestoreOrBuilder
      Returns:
      The completeTime.
    • setCompleteTime

      public VolumeRestore.Builder setCompleteTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the associated underlying volume
       restoration completed.
       
      .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCompleteTime

      public VolumeRestore.Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the associated underlying volume
       restoration completed.
       
      .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCompleteTime

      public VolumeRestore.Builder mergeCompleteTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the associated underlying volume
       restoration completed.
       
      .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCompleteTime

      public VolumeRestore.Builder clearCompleteTime()
       Output only. The timestamp when the associated underlying volume
       restoration completed.
       
      .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCompleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder()
       Output only. The timestamp when the associated underlying volume
       restoration completed.
       
      .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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:
      getCompleteTimeOrBuilder in interface VolumeRestoreOrBuilder
    • 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:
      getStateValue in interface VolumeRestoreOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public VolumeRestore.Builder setStateValue(int value)
       Output only. The current state of this VolumeRestore.
       
      .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.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 VolumeRestore.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:
      getState in interface VolumeRestoreOrBuilder
      Returns:
      The state.
    • setState

      public VolumeRestore.Builder setState(VolumeRestore.State value)
       Output only. The current state of this VolumeRestore.
       
      .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public VolumeRestore.Builder clearState()
       Output only. The current state of this VolumeRestore.
       
      .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStateMessage

      public String 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:
      getStateMessage in interface VolumeRestoreOrBuilder
      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:
      getStateMessageBytes in interface VolumeRestoreOrBuilder
      Returns:
      The bytes for stateMessage.
    • setStateMessage

      public VolumeRestore.Builder setStateMessage(String value)
       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];
      Parameters:
      value - The stateMessage to set.
      Returns:
      This builder for chaining.
    • clearStateMessage

      public VolumeRestore.Builder clearStateMessage()
       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];
      Returns:
      This builder for chaining.
    • setStateMessageBytes

      public VolumeRestore.Builder setStateMessageBytes(com.google.protobuf.ByteString value)
       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];
      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 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:
      getEtag in interface VolumeRestoreOrBuilder
      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:
      getEtagBytes in interface VolumeRestoreOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public VolumeRestore.Builder setEtag(String value)
       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];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public VolumeRestore.Builder clearEtag()
       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];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public VolumeRestore.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 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];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.