Class Reservation.Standard (2.64.0)

public static final class Reservation.Standard extends GeneratedMessageV3 implements Reservation.StandardOrBuilder

Details of a standard reservation.

Protobuf type google.cloud.tpu.v2alpha1.Reservation.Standard

Static Fields

CAPACITY_UNITS_FIELD_NUMBER

public static final int CAPACITY_UNITS_FIELD_NUMBER
Field Value
TypeDescription
int

INTERVAL_FIELD_NUMBER

public static final int INTERVAL_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

SIZE_FIELD_NUMBER

public static final int SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

USAGE_FIELD_NUMBER

public static final int USAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Reservation.Standard getDefaultInstance()
Returns
TypeDescription
Reservation.Standard

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Reservation.Standard.Builder newBuilder()
Returns
TypeDescription
Reservation.Standard.Builder

newBuilder(Reservation.Standard )

public static Reservation.Standard.Builder newBuilder(Reservation.Standard )
Parameter
NameDescription
Reservation.Standard
Returns
TypeDescription
Reservation.Standard.Builder

parseDelimitedFrom(InputStream input)

public static Reservation.Standard parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Reservation.Standard parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Reservation.Standard parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Reservation.Standard parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Reservation.Standard parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Reservation.Standard parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Reservation.Standard parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Reservation.Standard parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Reservation.Standard parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Reservation.Standard parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Reservation.Standard parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Reservation.Standard parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Standard
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Reservation.Standard> parser()
Returns
TypeDescription
Parser<Standard>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCapacityUnits()

public Reservation.Standard.CapacityUnits getCapacityUnits()

Capacity units this reservation is measured in.

.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;

Returns
TypeDescription
Reservation.Standard.CapacityUnits

The capacityUnits.

getCapacityUnitsValue()

public int getCapacityUnitsValue()

Capacity units this reservation is measured in.

.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for capacityUnits.

getDefaultInstanceForType()

public Reservation.Standard getDefaultInstanceForType()
Returns
TypeDescription
Reservation.Standard

getInterval()

public Interval getInterval()

The start and end time of the reservation.

.google.type.Interval interval = 4;

Returns
TypeDescription
com.google.type.Interval

The interval.

getIntervalOrBuilder()

public IntervalOrBuilder getIntervalOrBuilder()

The start and end time of the reservation.

.google.type.Interval interval = 4;

Returns
TypeDescription
com.google.type.IntervalOrBuilder

getParserForType()

public Parser<Reservation.Standard> getParserForType()
Returns
TypeDescription
Parser<Standard>
Overrides

getResourceType()

public String getResourceType()

The resource type of the reservation.

string resource_type = 3;

Returns
TypeDescription
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

The resource type of the reservation.

string resource_type = 3;

Returns
TypeDescription
ByteString

The bytes for resourceType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSize()

public int getSize()

The size of the reservation, in the units specified in the 'capacity_units' field.

int32 size = 1;

Returns
TypeDescription
int

The size.

getUsage()

public Reservation.Standard.Usage getUsage()

The current usage of the reservation.

.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;

Returns
TypeDescription
Reservation.Standard.Usage

The usage.

getUsageOrBuilder()

public Reservation.Standard.UsageOrBuilder getUsageOrBuilder()

The current usage of the reservation.

.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;

Returns
TypeDescription
Reservation.Standard.UsageOrBuilder

hasInterval()

public boolean hasInterval()

The start and end time of the reservation.

.google.type.Interval interval = 4;

Returns
TypeDescription
boolean

Whether the interval field is set.

hasUsage()

public boolean hasUsage()

The current usage of the reservation.

.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5;

Returns
TypeDescription
boolean

Whether the usage field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Reservation.Standard.Builder newBuilderForType()
Returns
TypeDescription
Reservation.Standard.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Reservation.Standard.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Reservation.Standard.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Reservation.Standard.Builder toBuilder()
Returns
TypeDescription
Reservation.Standard.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException