Class FutureResourcesSpecSpecificSKUResources.Builder

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

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

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

      public FutureResourcesSpecSpecificSKUResources.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<FutureResourcesSpecSpecificSKUResources.Builder>
      Throws:
      IOException
    • hasInstanceCount

      public boolean hasInstanceCount()
       Size of the request, in instance count.
       
      optional int64 instance_count = 77317349;
      Specified by:
      hasInstanceCount in interface FutureResourcesSpecSpecificSKUResourcesOrBuilder
      Returns:
      Whether the instanceCount field is set.
    • getInstanceCount

      public long getInstanceCount()
       Size of the request, in instance count.
       
      optional int64 instance_count = 77317349;
      Specified by:
      getInstanceCount in interface FutureResourcesSpecSpecificSKUResourcesOrBuilder
      Returns:
      The instanceCount.
    • setInstanceCount

      public FutureResourcesSpecSpecificSKUResources.Builder setInstanceCount(long value)
       Size of the request, in instance count.
       
      optional int64 instance_count = 77317349;
      Parameters:
      value - The instanceCount to set.
      Returns:
      This builder for chaining.
    • clearInstanceCount

       Size of the request, in instance count.
       
      optional int64 instance_count = 77317349;
      Returns:
      This builder for chaining.
    • getLocalSsdPartitionsList

      public List<FutureResourcesSpecLocalSsdPartition> getLocalSsdPartitionsList()
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
      Specified by:
      getLocalSsdPartitionsList in interface FutureResourcesSpecSpecificSKUResourcesOrBuilder
    • getLocalSsdPartitionsCount

      public int getLocalSsdPartitionsCount()
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
      Specified by:
      getLocalSsdPartitionsCount in interface FutureResourcesSpecSpecificSKUResourcesOrBuilder
    • getLocalSsdPartitions

      public FutureResourcesSpecLocalSsdPartition getLocalSsdPartitions(int index)
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
      Specified by:
      getLocalSsdPartitions in interface FutureResourcesSpecSpecificSKUResourcesOrBuilder
    • setLocalSsdPartitions

       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • setLocalSsdPartitions

      public FutureResourcesSpecSpecificSKUResources.Builder setLocalSsdPartitions(int index, FutureResourcesSpecLocalSsdPartition.Builder builderForValue)
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • addLocalSsdPartitions

       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • addLocalSsdPartitions

       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • addLocalSsdPartitions

       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • addLocalSsdPartitions

      public FutureResourcesSpecSpecificSKUResources.Builder addLocalSsdPartitions(int index, FutureResourcesSpecLocalSsdPartition.Builder builderForValue)
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • addAllLocalSsdPartitions

       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • clearLocalSsdPartitions

      public FutureResourcesSpecSpecificSKUResources.Builder clearLocalSsdPartitions()
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • removeLocalSsdPartitions

      public FutureResourcesSpecSpecificSKUResources.Builder removeLocalSsdPartitions(int index)
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • getLocalSsdPartitionsBuilder

      public FutureResourcesSpecLocalSsdPartition.Builder getLocalSsdPartitionsBuilder(int index)
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • getLocalSsdPartitionsOrBuilder

      public FutureResourcesSpecLocalSsdPartitionOrBuilder getLocalSsdPartitionsOrBuilder(int index)
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
      Specified by:
      getLocalSsdPartitionsOrBuilder in interface FutureResourcesSpecSpecificSKUResourcesOrBuilder
    • getLocalSsdPartitionsOrBuilderList

      public List<? extends FutureResourcesSpecLocalSsdPartitionOrBuilder> getLocalSsdPartitionsOrBuilderList()
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
      Specified by:
      getLocalSsdPartitionsOrBuilderList in interface FutureResourcesSpecSpecificSKUResourcesOrBuilder
    • addLocalSsdPartitionsBuilder

      public FutureResourcesSpecLocalSsdPartition.Builder addLocalSsdPartitionsBuilder()
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • addLocalSsdPartitionsBuilder

      public FutureResourcesSpecLocalSsdPartition.Builder addLocalSsdPartitionsBuilder(int index)
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • getLocalSsdPartitionsBuilderList

      public List<FutureResourcesSpecLocalSsdPartition.Builder> getLocalSsdPartitionsBuilderList()
       Local SSD partitions. You do not have to include SSD partitions that
       are built in the machine type.
       
      repeated .google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition local_ssd_partitions = 470688568;
    • hasMachineType

      public boolean hasMachineType()
       The machine type to use for instances that will use the reservation.
       This field only accepts machine type names. e.g. n2-standard-4
       and does not accept machine type full or partial url. e.g.
       projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4.
       Use for GPU reservations.
       
      optional string machine_type = 227711026;
      Specified by:
      hasMachineType in interface FutureResourcesSpecSpecificSKUResourcesOrBuilder
      Returns:
      Whether the machineType field is set.
    • getMachineType

      public String getMachineType()
       The machine type to use for instances that will use the reservation.
       This field only accepts machine type names. e.g. n2-standard-4
       and does not accept machine type full or partial url. e.g.
       projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4.
       Use for GPU reservations.
       
      optional string machine_type = 227711026;
      Specified by:
      getMachineType in interface FutureResourcesSpecSpecificSKUResourcesOrBuilder
      Returns:
      The machineType.
    • getMachineTypeBytes

      public com.google.protobuf.ByteString getMachineTypeBytes()
       The machine type to use for instances that will use the reservation.
       This field only accepts machine type names. e.g. n2-standard-4
       and does not accept machine type full or partial url. e.g.
       projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4.
       Use for GPU reservations.
       
      optional string machine_type = 227711026;
      Specified by:
      getMachineTypeBytes in interface FutureResourcesSpecSpecificSKUResourcesOrBuilder
      Returns:
      The bytes for machineType.
    • setMachineType

       The machine type to use for instances that will use the reservation.
       This field only accepts machine type names. e.g. n2-standard-4
       and does not accept machine type full or partial url. e.g.
       projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4.
       Use for GPU reservations.
       
      optional string machine_type = 227711026;
      Parameters:
      value - The machineType to set.
      Returns:
      This builder for chaining.
    • clearMachineType

       The machine type to use for instances that will use the reservation.
       This field only accepts machine type names. e.g. n2-standard-4
       and does not accept machine type full or partial url. e.g.
       projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4.
       Use for GPU reservations.
       
      optional string machine_type = 227711026;
      Returns:
      This builder for chaining.
    • setMachineTypeBytes

      public FutureResourcesSpecSpecificSKUResources.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
       The machine type to use for instances that will use the reservation.
       This field only accepts machine type names. e.g. n2-standard-4
       and does not accept machine type full or partial url. e.g.
       projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4.
       Use for GPU reservations.
       
      optional string machine_type = 227711026;
      Parameters:
      value - The bytes for machineType to set.
      Returns:
      This builder for chaining.