Class Reservation.Standard.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Reservation.Standard.Builder>
com.google.cloud.tpu.v2alpha1.Reservation.Standard.Builder
All Implemented Interfaces:
Reservation.StandardOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Reservation.Standard

public static final class Reservation.Standard.Builder extends com.google.protobuf.GeneratedMessage.Builder<Reservation.Standard.Builder> implements Reservation.StandardOrBuilder
 Details of a standard reservation.
 
Protobuf type google.cloud.tpu.v2alpha1.Reservation.Standard
  • 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<Reservation.Standard.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<Reservation.Standard.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<Reservation.Standard.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Reservation.Standard.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<Reservation.Standard.Builder>
      Throws:
      IOException
    • getSize

      public int getSize()
       The size of the reservation, in the units specified in the
       'capacity_units' field.
       
      int32 size = 1;
      Specified by:
      getSize in interface Reservation.StandardOrBuilder
      Returns:
      The size.
    • setSize

      public Reservation.Standard.Builder setSize(int value)
       The size of the reservation, in the units specified in the
       'capacity_units' field.
       
      int32 size = 1;
      Parameters:
      value - The size to set.
      Returns:
      This builder for chaining.
    • clearSize

      public Reservation.Standard.Builder clearSize()
       The size of the reservation, in the units specified in the
       'capacity_units' field.
       
      int32 size = 1;
      Returns:
      This builder for chaining.
    • getCapacityUnitsValue

      public int getCapacityUnitsValue()
       Capacity units this reservation is measured in.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;
      Specified by:
      getCapacityUnitsValue in interface Reservation.StandardOrBuilder
      Returns:
      The enum numeric value on the wire for capacityUnits.
    • setCapacityUnitsValue

      public Reservation.Standard.Builder setCapacityUnitsValue(int value)
       Capacity units this reservation is measured in.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;
      Parameters:
      value - The enum numeric value on the wire for capacityUnits to set.
      Returns:
      This builder for chaining.
    • getCapacityUnits

      public Reservation.Standard.CapacityUnits getCapacityUnits()
       Capacity units this reservation is measured in.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;
      Specified by:
      getCapacityUnits in interface Reservation.StandardOrBuilder
      Returns:
      The capacityUnits.
    • setCapacityUnits

       Capacity units this reservation is measured in.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;
      Parameters:
      value - The capacityUnits to set.
      Returns:
      This builder for chaining.
    • clearCapacityUnits

      public Reservation.Standard.Builder clearCapacityUnits()
       Capacity units this reservation is measured in.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;
      Returns:
      This builder for chaining.
    • getResourceType

      public String getResourceType()
       The resource type of the reservation.
       
      string resource_type = 3;
      Specified by:
      getResourceType in interface Reservation.StandardOrBuilder
      Returns:
      The resourceType.
    • getResourceTypeBytes

      public com.google.protobuf.ByteString getResourceTypeBytes()
       The resource type of the reservation.
       
      string resource_type = 3;
      Specified by:
      getResourceTypeBytes in interface Reservation.StandardOrBuilder
      Returns:
      The bytes for resourceType.
    • setResourceType

      public Reservation.Standard.Builder setResourceType(String value)
       The resource type of the reservation.
       
      string resource_type = 3;
      Parameters:
      value - The resourceType to set.
      Returns:
      This builder for chaining.
    • clearResourceType

      public Reservation.Standard.Builder clearResourceType()
       The resource type of the reservation.
       
      string resource_type = 3;
      Returns:
      This builder for chaining.
    • setResourceTypeBytes

      public Reservation.Standard.Builder setResourceTypeBytes(com.google.protobuf.ByteString value)
       The resource type of the reservation.
       
      string resource_type = 3;
      Parameters:
      value - The bytes for resourceType to set.
      Returns:
      This builder for chaining.
    • hasInterval

      public boolean hasInterval()
       The start and end time of the reservation.
       
      .google.type.Interval interval = 4;
      Specified by:
      hasInterval in interface Reservation.StandardOrBuilder
      Returns:
      Whether the interval field is set.
    • getInterval

      public Interval getInterval()
       The start and end time of the reservation.
       
      .google.type.Interval interval = 4;
      Specified by:
      getInterval in interface Reservation.StandardOrBuilder
      Returns:
      The interval.
    • setInterval

      public Reservation.Standard.Builder setInterval(Interval value)
       The start and end time of the reservation.
       
      .google.type.Interval interval = 4;
    • setInterval

      public Reservation.Standard.Builder setInterval(Interval.Builder builderForValue)
       The start and end time of the reservation.
       
      .google.type.Interval interval = 4;
    • mergeInterval

      public Reservation.Standard.Builder mergeInterval(Interval value)
       The start and end time of the reservation.
       
      .google.type.Interval interval = 4;
    • clearInterval

      public Reservation.Standard.Builder clearInterval()
       The start and end time of the reservation.
       
      .google.type.Interval interval = 4;
    • getIntervalBuilder

      public Interval.Builder getIntervalBuilder()
       The start and end time of the reservation.
       
      .google.type.Interval interval = 4;
    • getIntervalOrBuilder

      public IntervalOrBuilder getIntervalOrBuilder()
       The start and end time of the reservation.
       
      .google.type.Interval interval = 4;
      Specified by:
      getIntervalOrBuilder in interface Reservation.StandardOrBuilder
    • hasUsage

      public boolean hasUsage()
       The current usage of the reservation.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;
      Specified by:
      hasUsage in interface Reservation.StandardOrBuilder
      Returns:
      Whether the usage field is set.
    • getUsage

      public Reservation.Standard.Usage getUsage()
       The current usage of the reservation.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;
      Specified by:
      getUsage in interface Reservation.StandardOrBuilder
      Returns:
      The usage.
    • setUsage

       The current usage of the reservation.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;
    • setUsage

       The current usage of the reservation.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;
    • mergeUsage

       The current usage of the reservation.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;
    • clearUsage

      public Reservation.Standard.Builder clearUsage()
       The current usage of the reservation.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;
    • getUsageBuilder

      public Reservation.Standard.Usage.Builder getUsageBuilder()
       The current usage of the reservation.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;
    • getUsageOrBuilder

      public Reservation.Standard.UsageOrBuilder getUsageOrBuilder()
       The current usage of the reservation.
       
      .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;
      Specified by:
      getUsageOrBuilder in interface Reservation.StandardOrBuilder