Class StatefulPolicyPreservedStateDiskDevice.Builder

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

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

      public StatefulPolicyPreservedStateDiskDevice 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

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

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

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

      public boolean hasAutoDelete()
       These stateful disks will never be deleted during autohealing,
       update or VM 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 group is deleted. Note: disks attached inREAD_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 StatefulPolicyPreservedStateDiskDeviceOrBuilder
      Returns:
      Whether the autoDelete field is set.
    • getAutoDelete

      public String getAutoDelete()
       These stateful disks will never be deleted during autohealing,
       update or VM 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 group is deleted. Note: disks attached inREAD_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 StatefulPolicyPreservedStateDiskDeviceOrBuilder
      Returns:
      The autoDelete.
    • getAutoDeleteBytes

      public com.google.protobuf.ByteString getAutoDeleteBytes()
       These stateful disks will never be deleted during autohealing,
       update or VM 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 group is deleted. Note: disks attached inREAD_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 StatefulPolicyPreservedStateDiskDeviceOrBuilder
      Returns:
      The bytes for autoDelete.
    • setAutoDelete

       These stateful disks will never be deleted during autohealing,
       update or VM 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 group is deleted. Note: disks attached inREAD_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

       These stateful disks will never be deleted during autohealing,
       update or VM 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 group is deleted. Note: disks attached inREAD_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 StatefulPolicyPreservedStateDiskDevice.Builder setAutoDeleteBytes(com.google.protobuf.ByteString value)
       These stateful disks will never be deleted during autohealing,
       update or VM 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 group is deleted. Note: disks attached inREAD_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.