Class Reservation.Standard

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

public static final class Reservation.Standard extends com.google.protobuf.GeneratedMessage implements Reservation.StandardOrBuilder
 Details of a standard reservation.
 
Protobuf type google.cloud.tpu.v2alpha1.Reservation.Standard
See Also:
  • Field Details

  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Reservation.Standard parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reservation.Standard parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reservation.Standard parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reservation.Standard parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reservation.Standard parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reservation.Standard parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reservation.Standard parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Reservation.Standard parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Reservation.Standard parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Reservation.Standard parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Reservation.Standard parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Reservation.Standard parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Reservation.Standard.Builder newBuilder()
    • newBuilder

      public static Reservation.Standard.Builder newBuilder(Reservation.Standard prototype)
    • toBuilder

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

      protected Reservation.Standard.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Reservation.Standard getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Reservation.Standard> parser()
    • getParserForType

      public com.google.protobuf.Parser<Reservation.Standard> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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