Package com.google.cloud.tpu.v2alpha1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Capacity units this reservation is measured in.The start and end time of the reservation.The resource type of the reservation.The size of the reservation, in the units specified in the 'capacity_units' field.The current usage of the reservation.Capacity units this reservation is measured in.intCapacity units this reservation is measured in.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe start and end time of the reservation.The start and end time of the reservation.The start and end time of the reservation.The resource type of the reservation.com.google.protobuf.ByteStringThe resource type of the reservation.intgetSize()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.The current usage of the reservation.booleanThe start and end time of the reservation.booleanhasUsage()The current usage of the reservation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Reservation.Standard other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInterval(Interval value) The start and end time of the reservation.The current usage of the reservation.Capacity units this reservation is measured in.setCapacityUnitsValue(int value) Capacity units this reservation is measured in.setInterval(Interval value) The start and end time of the reservation.setInterval(Interval.Builder builderForValue) The start and end time of the reservation.setResourceType(String value) The resource type of the reservation.setResourceTypeBytes(com.google.protobuf.ByteString value) The resource type of the reservation.setSize(int value) The size of the reservation, in the units specified in the 'capacity_units' field.The current usage of the reservation.setUsage(Reservation.Standard.Usage.Builder builderForValue) The current usage of the reservation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Reservation.Standard.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Reservation.Standard.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Reservation.Standard.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Reservation.Standard.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getSizein interfaceReservation.StandardOrBuilder- Returns:
- The size.
-
setSize
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
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:
getCapacityUnitsValuein interfaceReservation.StandardOrBuilder- Returns:
- The enum numeric value on the wire for capacityUnits.
-
setCapacityUnitsValue
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
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.
-
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
Capacity units this reservation is measured in.
.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;- Returns:
- This builder for chaining.
-
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.
-
setResourceType
The resource type of the reservation.
string resource_type = 3;- Parameters:
value- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
The resource type of the reservation.
string resource_type = 3;- Returns:
- This builder for chaining.
-
setResourceTypeBytes
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:
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.
-
setInterval
The start and end time of the reservation.
.google.type.Interval interval = 4; -
setInterval
The start and end time of the reservation.
.google.type.Interval interval = 4; -
mergeInterval
The start and end time of the reservation.
.google.type.Interval interval = 4; -
clearInterval
The start and end time of the reservation.
.google.type.Interval interval = 4; -
getIntervalBuilder
The start and end time of the reservation.
.google.type.Interval interval = 4; -
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.
-
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
The current usage of the reservation.
.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; -
getUsageBuilder
The current usage of the reservation.
.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; -
getUsageOrBuilder
The current usage of the reservation.
.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;- Specified by:
getUsageOrBuilderin interfaceReservation.StandardOrBuilder
-