Class LocalDisk.Builder

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

public static final class LocalDisk.Builder extends com.google.protobuf.GeneratedMessage.Builder<LocalDisk.Builder> implements LocalDiskOrBuilder
 
Protobuf type google.cloud.compute.v1.LocalDisk
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Specifies the number of such disks.
    Specifies the size of the disk in base-2 GB.
    Specifies the desired disk type on the node.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    Specifies the number of such disks.
    int
    Specifies the size of the disk in base-2 GB.
    Specifies the desired disk type on the node.
    com.google.protobuf.ByteString
    Specifies the desired disk type on the node.
    boolean
    Specifies the number of such disks.
    boolean
    Specifies the size of the disk in base-2 GB.
    boolean
    Specifies the desired disk type on the node.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setDiskCount(int value)
    Specifies the number of such disks.
    setDiskSizeGb(int value)
    Specifies the size of the disk in base-2 GB.
    Specifies the desired disk type on the node.
    setDiskTypeBytes(com.google.protobuf.ByteString value)
    Specifies the desired disk type on the node.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<LocalDisk.Builder>
    • clear

      public LocalDisk.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<LocalDisk.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<LocalDisk.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public LocalDisk.Builder mergeFrom(LocalDisk other)
    • isInitialized

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

      public LocalDisk.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<LocalDisk.Builder>
      Throws:
      IOException
    • hasDiskCount

      public boolean hasDiskCount()
       Specifies the number of such disks.
       
      optional int32 disk_count = 182933485;
      Specified by:
      hasDiskCount in interface LocalDiskOrBuilder
      Returns:
      Whether the diskCount field is set.
    • getDiskCount

      public int getDiskCount()
       Specifies the number of such disks.
       
      optional int32 disk_count = 182933485;
      Specified by:
      getDiskCount in interface LocalDiskOrBuilder
      Returns:
      The diskCount.
    • setDiskCount

      public LocalDisk.Builder setDiskCount(int value)
       Specifies the number of such disks.
       
      optional int32 disk_count = 182933485;
      Parameters:
      value - The diskCount to set.
      Returns:
      This builder for chaining.
    • clearDiskCount

      public LocalDisk.Builder clearDiskCount()
       Specifies the number of such disks.
       
      optional int32 disk_count = 182933485;
      Returns:
      This builder for chaining.
    • hasDiskSizeGb

      public boolean hasDiskSizeGb()
       Specifies the size of the disk in base-2 GB.
       
      optional int32 disk_size_gb = 316263735;
      Specified by:
      hasDiskSizeGb in interface LocalDiskOrBuilder
      Returns:
      Whether the diskSizeGb field is set.
    • getDiskSizeGb

      public int getDiskSizeGb()
       Specifies the size of the disk in base-2 GB.
       
      optional int32 disk_size_gb = 316263735;
      Specified by:
      getDiskSizeGb in interface LocalDiskOrBuilder
      Returns:
      The diskSizeGb.
    • setDiskSizeGb

      public LocalDisk.Builder setDiskSizeGb(int value)
       Specifies the size of the disk in base-2 GB.
       
      optional int32 disk_size_gb = 316263735;
      Parameters:
      value - The diskSizeGb to set.
      Returns:
      This builder for chaining.
    • clearDiskSizeGb

      public LocalDisk.Builder clearDiskSizeGb()
       Specifies the size of the disk in base-2 GB.
       
      optional int32 disk_size_gb = 316263735;
      Returns:
      This builder for chaining.
    • hasDiskType

      public boolean hasDiskType()
       Specifies the desired disk type on the node. This disk type must be a
       local storage type (e.g.: local-ssd).
       Note that for nodeTemplates, this should be the name of the disk type and
       not its URL.
       
      optional string disk_type = 93009052;
      Specified by:
      hasDiskType in interface LocalDiskOrBuilder
      Returns:
      Whether the diskType field is set.
    • getDiskType

      public String getDiskType()
       Specifies the desired disk type on the node. This disk type must be a
       local storage type (e.g.: local-ssd).
       Note that for nodeTemplates, this should be the name of the disk type and
       not its URL.
       
      optional string disk_type = 93009052;
      Specified by:
      getDiskType in interface LocalDiskOrBuilder
      Returns:
      The diskType.
    • getDiskTypeBytes

      public com.google.protobuf.ByteString getDiskTypeBytes()
       Specifies the desired disk type on the node. This disk type must be a
       local storage type (e.g.: local-ssd).
       Note that for nodeTemplates, this should be the name of the disk type and
       not its URL.
       
      optional string disk_type = 93009052;
      Specified by:
      getDiskTypeBytes in interface LocalDiskOrBuilder
      Returns:
      The bytes for diskType.
    • setDiskType

      public LocalDisk.Builder setDiskType(String value)
       Specifies the desired disk type on the node. This disk type must be a
       local storage type (e.g.: local-ssd).
       Note that for nodeTemplates, this should be the name of the disk type and
       not its URL.
       
      optional string disk_type = 93009052;
      Parameters:
      value - The diskType to set.
      Returns:
      This builder for chaining.
    • clearDiskType

      public LocalDisk.Builder clearDiskType()
       Specifies the desired disk type on the node. This disk type must be a
       local storage type (e.g.: local-ssd).
       Note that for nodeTemplates, this should be the name of the disk type and
       not its URL.
       
      optional string disk_type = 93009052;
      Returns:
      This builder for chaining.
    • setDiskTypeBytes

      public LocalDisk.Builder setDiskTypeBytes(com.google.protobuf.ByteString value)
       Specifies the desired disk type on the node. This disk type must be a
       local storage type (e.g.: local-ssd).
       Note that for nodeTemplates, this should be the name of the disk type and
       not its URL.
       
      optional string disk_type = 93009052;
      Parameters:
      value - The bytes for diskType to set.
      Returns:
      This builder for chaining.