Class PreservedStatePreservedDisk.Builder

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

public static final class PreservedStatePreservedDisk.Builder extends com.google.protobuf.GeneratedMessage.Builder<PreservedStatePreservedDisk.Builder> implements PreservedStatePreservedDiskOrBuilder
 
Protobuf type google.cloud.compute.v1.PreservedStatePreservedDisk
  • 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<PreservedStatePreservedDisk.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<PreservedStatePreservedDisk.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<PreservedStatePreservedDisk.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public PreservedStatePreservedDisk.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<PreservedStatePreservedDisk.Builder>
    • mergeFrom

    • isInitialized

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

      public PreservedStatePreservedDisk.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<PreservedStatePreservedDisk.Builder>
      Throws:
      IOException
    • hasAutoDelete

      public boolean hasAutoDelete()
       These stateful disks will never be deleted during autohealing,
       update, instance recreate operations. This flag is used to configure
       if the disk should be deleted after it is no longer used by the group,
       e.g. when the given instance or the whole MIG is deleted.
       Note: disks attached in READ_ONLY mode cannot be
       auto-deleted.
       Check the AutoDelete enum for the list of possible values.
       
      optional string auto_delete = 464761403;
      Specified by:
      hasAutoDelete in interface PreservedStatePreservedDiskOrBuilder
      Returns:
      Whether the autoDelete field is set.
    • getAutoDelete

      public String getAutoDelete()
       These stateful disks will never be deleted during autohealing,
       update, instance recreate operations. This flag is used to configure
       if the disk should be deleted after it is no longer used by the group,
       e.g. when the given instance or the whole MIG is deleted.
       Note: disks attached in READ_ONLY mode cannot be
       auto-deleted.
       Check the AutoDelete enum for the list of possible values.
       
      optional string auto_delete = 464761403;
      Specified by:
      getAutoDelete in interface PreservedStatePreservedDiskOrBuilder
      Returns:
      The autoDelete.
    • getAutoDeleteBytes

      public com.google.protobuf.ByteString getAutoDeleteBytes()
       These stateful disks will never be deleted during autohealing,
       update, instance recreate operations. This flag is used to configure
       if the disk should be deleted after it is no longer used by the group,
       e.g. when the given instance or the whole MIG is deleted.
       Note: disks attached in READ_ONLY mode cannot be
       auto-deleted.
       Check the AutoDelete enum for the list of possible values.
       
      optional string auto_delete = 464761403;
      Specified by:
      getAutoDeleteBytes in interface PreservedStatePreservedDiskOrBuilder
      Returns:
      The bytes for autoDelete.
    • setAutoDelete

      public PreservedStatePreservedDisk.Builder setAutoDelete(String value)
       These stateful disks will never be deleted during autohealing,
       update, instance recreate operations. This flag is used to configure
       if the disk should be deleted after it is no longer used by the group,
       e.g. when the given instance or the whole MIG is deleted.
       Note: disks attached in READ_ONLY mode cannot be
       auto-deleted.
       Check the AutoDelete enum for the list of possible values.
       
      optional string auto_delete = 464761403;
      Parameters:
      value - The autoDelete to set.
      Returns:
      This builder for chaining.
    • clearAutoDelete

      public PreservedStatePreservedDisk.Builder clearAutoDelete()
       These stateful disks will never be deleted during autohealing,
       update, instance recreate operations. This flag is used to configure
       if the disk should be deleted after it is no longer used by the group,
       e.g. when the given instance or the whole MIG is deleted.
       Note: disks attached in READ_ONLY mode cannot be
       auto-deleted.
       Check the AutoDelete enum for the list of possible values.
       
      optional string auto_delete = 464761403;
      Returns:
      This builder for chaining.
    • setAutoDeleteBytes

      public PreservedStatePreservedDisk.Builder setAutoDeleteBytes(com.google.protobuf.ByteString value)
       These stateful disks will never be deleted during autohealing,
       update, instance recreate operations. This flag is used to configure
       if the disk should be deleted after it is no longer used by the group,
       e.g. when the given instance or the whole MIG is deleted.
       Note: disks attached in READ_ONLY mode cannot be
       auto-deleted.
       Check the AutoDelete enum for the list of possible values.
       
      optional string auto_delete = 464761403;
      Parameters:
      value - The bytes for autoDelete to set.
      Returns:
      This builder for chaining.
    • hasMode

      public boolean hasMode()
       The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the
       disk in READ_WRITE mode.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      hasMode in interface PreservedStatePreservedDiskOrBuilder
      Returns:
      Whether the mode field is set.
    • getMode

      public String getMode()
       The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the
       disk in READ_WRITE mode.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      getMode in interface PreservedStatePreservedDiskOrBuilder
      Returns:
      The mode.
    • getModeBytes

      public com.google.protobuf.ByteString getModeBytes()
       The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the
       disk in READ_WRITE mode.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      getModeBytes in interface PreservedStatePreservedDiskOrBuilder
      Returns:
      The bytes for mode.
    • setMode

       The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the
       disk in READ_WRITE mode.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • clearMode

       The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the
       disk in READ_WRITE mode.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Returns:
      This builder for chaining.
    • setModeBytes

      public PreservedStatePreservedDisk.Builder setModeBytes(com.google.protobuf.ByteString value)
       The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the
       disk in READ_WRITE mode.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Parameters:
      value - The bytes for mode to set.
      Returns:
      This builder for chaining.
    • hasSource

      public boolean hasSource()
       The URL of the disk resource that is stateful and should be attached
       to the VM instance.
       
      optional string source = 177235995;
      Specified by:
      hasSource in interface PreservedStatePreservedDiskOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public String getSource()
       The URL of the disk resource that is stateful and should be attached
       to the VM instance.
       
      optional string source = 177235995;
      Specified by:
      getSource in interface PreservedStatePreservedDiskOrBuilder
      Returns:
      The source.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
       The URL of the disk resource that is stateful and should be attached
       to the VM instance.
       
      optional string source = 177235995;
      Specified by:
      getSourceBytes in interface PreservedStatePreservedDiskOrBuilder
      Returns:
      The bytes for source.
    • setSource

      public PreservedStatePreservedDisk.Builder setSource(String value)
       The URL of the disk resource that is stateful and should be attached
       to the VM instance.
       
      optional string source = 177235995;
      Parameters:
      value - The source to set.
      Returns:
      This builder for chaining.
    • clearSource

       The URL of the disk resource that is stateful and should be attached
       to the VM instance.
       
      optional string source = 177235995;
      Returns:
      This builder for chaining.
    • setSourceBytes

      public PreservedStatePreservedDisk.Builder setSourceBytes(com.google.protobuf.ByteString value)
       The URL of the disk resource that is stateful and should be attached
       to the VM instance.
       
      optional string source = 177235995;
      Parameters:
      value - The bytes for source to set.
      Returns:
      This builder for chaining.