Package com.google.cloud.tpu.v2alpha1
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDetails of a standard reservation.static enumUnits in which capacity for a reservation is measured.static final classUsage details of a reservation.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanCapacity units this reservation is measured in.intCapacity units this reservation is measured in.static Reservation.Standardstatic final com.google.protobuf.Descriptors.DescriptorThe start and end time of the reservation.The start and end time of the reservation.com.google.protobuf.Parser<Reservation.Standard>The resource type of the reservation.com.google.protobuf.ByteStringThe resource type of the reservation.intintgetSize()The size of the reservation, in the units specified in the 'capacity_units' field.getUsage()The current usage of the reservation.The current usage of the reservation.inthashCode()booleanThe start and end time of the reservation.booleanhasUsage()The current usage of the reservation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Reservation.Standard.Builderstatic Reservation.Standard.BuildernewBuilder(Reservation.Standard prototype) protected Reservation.Standard.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Reservation.StandardparseDelimitedFrom(InputStream input) static Reservation.StandardparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reservation.StandardparseFrom(byte[] data) static Reservation.StandardparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reservation.StandardparseFrom(com.google.protobuf.ByteString data) static Reservation.StandardparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reservation.StandardparseFrom(com.google.protobuf.CodedInputStream input) static Reservation.StandardparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reservation.StandardparseFrom(InputStream input) static Reservation.StandardparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reservation.StandardparseFrom(ByteBuffer data) static Reservation.StandardparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Reservation.Standard>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER- See Also:
-
CAPACITY_UNITS_FIELD_NUMBER
public static final int CAPACITY_UNITS_FIELD_NUMBER- See Also:
-
RESOURCE_TYPE_FIELD_NUMBER
public static final int RESOURCE_TYPE_FIELD_NUMBER- See Also:
-
INTERVAL_FIELD_NUMBER
public static final int INTERVAL_FIELD_NUMBER- See Also:
-
USAGE_FIELD_NUMBER
public static final int USAGE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.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:
getSizein interfaceReservation.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:
getCapacityUnitsValuein interfaceReservation.StandardOrBuilder- Returns:
- The enum numeric value on the wire for capacityUnits.
-
getCapacityUnits
Capacity units this reservation is measured in.
.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;- Specified by:
getCapacityUnitsin interfaceReservation.StandardOrBuilder- Returns:
- The capacityUnits.
-
getResourceType
The resource type of the reservation.
string resource_type = 3;- Specified by:
getResourceTypein interfaceReservation.StandardOrBuilder- Returns:
- The resourceType.
-
getResourceTypeBytes
public com.google.protobuf.ByteString getResourceTypeBytes()The resource type of the reservation.
string resource_type = 3;- Specified by:
getResourceTypeBytesin interfaceReservation.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:
hasIntervalin interfaceReservation.StandardOrBuilder- Returns:
- Whether the interval field is set.
-
getInterval
The start and end time of the reservation.
.google.type.Interval interval = 4;- Specified by:
getIntervalin interfaceReservation.StandardOrBuilder- Returns:
- The interval.
-
getIntervalOrBuilder
The start and end time of the reservation.
.google.type.Interval interval = 4;- Specified by:
getIntervalOrBuilderin interfaceReservation.StandardOrBuilder
-
hasUsage
public boolean hasUsage()The current usage of the reservation.
.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;- Specified by:
hasUsagein interfaceReservation.StandardOrBuilder- Returns:
- Whether the usage field is set.
-
getUsage
The current usage of the reservation.
.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;- Specified by:
getUsagein interfaceReservation.StandardOrBuilder- Returns:
- The usage.
-
getUsageOrBuilder
The current usage of the reservation.
.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;- Specified by:
getUsageOrBuilderin interfaceReservation.StandardOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Reservation.Standard parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Reservation.Standard.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-