Class FutureResourcesSpecAggregateResources.Builder

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

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

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

      public FutureResourcesSpecAggregateResources.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<FutureResourcesSpecAggregateResources.Builder>
      Throws:
      IOException
    • hasAcceleratorCount

      public boolean hasAcceleratorCount()
       Size of the request, in accelerator (chip) count.
       
      optional int64 accelerator_count = 504879675;
      Specified by:
      hasAcceleratorCount in interface FutureResourcesSpecAggregateResourcesOrBuilder
      Returns:
      Whether the acceleratorCount field is set.
    • getAcceleratorCount

      public long getAcceleratorCount()
       Size of the request, in accelerator (chip) count.
       
      optional int64 accelerator_count = 504879675;
      Specified by:
      getAcceleratorCount in interface FutureResourcesSpecAggregateResourcesOrBuilder
      Returns:
      The acceleratorCount.
    • setAcceleratorCount

      public FutureResourcesSpecAggregateResources.Builder setAcceleratorCount(long value)
       Size of the request, in accelerator (chip) count.
       
      optional int64 accelerator_count = 504879675;
      Parameters:
      value - The acceleratorCount to set.
      Returns:
      This builder for chaining.
    • clearAcceleratorCount

      public FutureResourcesSpecAggregateResources.Builder clearAcceleratorCount()
       Size of the request, in accelerator (chip) count.
       
      optional int64 accelerator_count = 504879675;
      Returns:
      This builder for chaining.
    • hasVmFamily

      public boolean hasVmFamily()
       The VM family that all instances scheduled against this reservation
       must belong to. Use for TPU reservations.
       Check the VmFamily enum for the list of possible values.
       
      optional string vm_family = 125017580;
      Specified by:
      hasVmFamily in interface FutureResourcesSpecAggregateResourcesOrBuilder
      Returns:
      Whether the vmFamily field is set.
    • getVmFamily

      public String getVmFamily()
       The VM family that all instances scheduled against this reservation
       must belong to. Use for TPU reservations.
       Check the VmFamily enum for the list of possible values.
       
      optional string vm_family = 125017580;
      Specified by:
      getVmFamily in interface FutureResourcesSpecAggregateResourcesOrBuilder
      Returns:
      The vmFamily.
    • getVmFamilyBytes

      public com.google.protobuf.ByteString getVmFamilyBytes()
       The VM family that all instances scheduled against this reservation
       must belong to. Use for TPU reservations.
       Check the VmFamily enum for the list of possible values.
       
      optional string vm_family = 125017580;
      Specified by:
      getVmFamilyBytes in interface FutureResourcesSpecAggregateResourcesOrBuilder
      Returns:
      The bytes for vmFamily.
    • setVmFamily

       The VM family that all instances scheduled against this reservation
       must belong to. Use for TPU reservations.
       Check the VmFamily enum for the list of possible values.
       
      optional string vm_family = 125017580;
      Parameters:
      value - The vmFamily to set.
      Returns:
      This builder for chaining.
    • clearVmFamily

       The VM family that all instances scheduled against this reservation
       must belong to. Use for TPU reservations.
       Check the VmFamily enum for the list of possible values.
       
      optional string vm_family = 125017580;
      Returns:
      This builder for chaining.
    • setVmFamilyBytes

      public FutureResourcesSpecAggregateResources.Builder setVmFamilyBytes(com.google.protobuf.ByteString value)
       The VM family that all instances scheduled against this reservation
       must belong to. Use for TPU reservations.
       Check the VmFamily enum for the list of possible values.
       
      optional string vm_family = 125017580;
      Parameters:
      value - The bytes for vmFamily to set.
      Returns:
      This builder for chaining.
    • hasWorkloadType

      public boolean hasWorkloadType()
       Workload type. Use for TPU reservations.
       Check the WorkloadType enum for the list of possible values.
       
      optional string workload_type = 273432322;
      Specified by:
      hasWorkloadType in interface FutureResourcesSpecAggregateResourcesOrBuilder
      Returns:
      Whether the workloadType field is set.
    • getWorkloadType

      public String getWorkloadType()
       Workload type. Use for TPU reservations.
       Check the WorkloadType enum for the list of possible values.
       
      optional string workload_type = 273432322;
      Specified by:
      getWorkloadType in interface FutureResourcesSpecAggregateResourcesOrBuilder
      Returns:
      The workloadType.
    • getWorkloadTypeBytes

      public com.google.protobuf.ByteString getWorkloadTypeBytes()
       Workload type. Use for TPU reservations.
       Check the WorkloadType enum for the list of possible values.
       
      optional string workload_type = 273432322;
      Specified by:
      getWorkloadTypeBytes in interface FutureResourcesSpecAggregateResourcesOrBuilder
      Returns:
      The bytes for workloadType.
    • setWorkloadType

      public FutureResourcesSpecAggregateResources.Builder setWorkloadType(String value)
       Workload type. Use for TPU reservations.
       Check the WorkloadType enum for the list of possible values.
       
      optional string workload_type = 273432322;
      Parameters:
      value - The workloadType to set.
      Returns:
      This builder for chaining.
    • clearWorkloadType

       Workload type. Use for TPU reservations.
       Check the WorkloadType enum for the list of possible values.
       
      optional string workload_type = 273432322;
      Returns:
      This builder for chaining.
    • setWorkloadTypeBytes

      public FutureResourcesSpecAggregateResources.Builder setWorkloadTypeBytes(com.google.protobuf.ByteString value)
       Workload type. Use for TPU reservations.
       Check the WorkloadType enum for the list of possible values.
       
      optional string workload_type = 273432322;
      Parameters:
      value - The bytes for workloadType to set.
      Returns:
      This builder for chaining.