Class Allocation (0.1.0)

public final class Allocation extends GeneratedMessageV3 implements AllocationOrBuilder

Repesents Allocation which is part of aggregated reservations data response of "QueryReservations".

Protobuf type google.cloud.capacityplanner.v1beta.Allocation

Implements

AllocationOrBuilder

Static Fields

ALLOCATION_FIELD_NUMBER

public static final int ALLOCATION_FIELD_NUMBER
Field Value
Type Description
int

AUTO_DELETE_TIME_FIELD_NUMBER

public static final int AUTO_DELETE_TIME_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

OWNER_PROJECT_ID_FIELD_NUMBER

public static final int OWNER_PROJECT_ID_FIELD_NUMBER
Field Value
Type Description
int

SHARE_SETTINGS_FIELD_NUMBER

public static final int SHARE_SETTINGS_FIELD_NUMBER
Field Value
Type Description
int

SPECIFIC_ALLOCATION_FIELD_NUMBER

public static final int SPECIFIC_ALLOCATION_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

ZONE_FIELD_NUMBER

public static final int ZONE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Allocation getDefaultInstance()
Returns
Type Description
Allocation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Allocation.Builder newBuilder()
Returns
Type Description
Allocation.Builder

newBuilder(Allocation prototype)

public static Allocation.Builder newBuilder(Allocation prototype)
Parameter
Name Description
prototype Allocation
Returns
Type Description
Allocation.Builder

parseDelimitedFrom(InputStream input)

public static Allocation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Allocation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Allocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Allocation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Allocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Allocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Allocation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Allocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Allocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Allocation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Allocation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Allocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Allocation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Allocation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Allocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Allocation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Allocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Allocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Allocation> parser()
Returns
Type Description
Parser<Allocation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAllocation()

public String getAllocation()

The reservation resource name.

string allocation = 5;

Returns
Type Description
String

The allocation.

getAllocationBytes()

public ByteString getAllocationBytes()

The reservation resource name.

string allocation = 5;

Returns
Type Description
ByteString

The bytes for allocation.

getAutoDeleteTime()

public Timestamp getAutoDeleteTime()

Absolute time in future when the reservation will be auto-deleted by Compute Engine.

.google.protobuf.Timestamp auto_delete_time = 9;

Returns
Type Description
Timestamp

The autoDeleteTime.

getAutoDeleteTimeOrBuilder()

public TimestampOrBuilder getAutoDeleteTimeOrBuilder()

Absolute time in future when the reservation will be auto-deleted by Compute Engine.

.google.protobuf.Timestamp auto_delete_time = 9;

Returns
Type Description
TimestampOrBuilder

getCreateTime()

public Timestamp getCreateTime()

The creation timestamp for this allocation.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The creation timestamp for this allocation.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Allocation getDefaultInstanceForType()
Returns
Type Description
Allocation

getDescription()

public String getDescription()

A description while creating reservation.

string description = 4;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description while creating reservation.

string description = 4;

Returns
Type Description
ByteString

The bytes for description.

getId()

public long getId()

The unique identifier for the resource. This identifier is defined by the server.

int64 id = 1;

Returns
Type Description
long

The id.

getOwnerProjectId()

public String getOwnerProjectId()

string owner_project_id = 10;

Returns
Type Description
String

The ownerProjectId.

getOwnerProjectIdBytes()

public ByteString getOwnerProjectIdBytes()

string owner_project_id = 10;

Returns
Type Description
ByteString

The bytes for ownerProjectId.

getParserForType()

public Parser<Allocation> getParserForType()
Returns
Type Description
Parser<Allocation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getShareSettings()

public Allocation.ShareSettings getShareSettings()

Specify share-settings to create a shared reservation.

.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;

Returns
Type Description
Allocation.ShareSettings

The shareSettings.

getShareSettingsOrBuilder()

public Allocation.ShareSettingsOrBuilder getShareSettingsOrBuilder()

Specify share-settings to create a shared reservation.

.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;

Returns
Type Description
Allocation.ShareSettingsOrBuilder

getSpecificAllocation()

public Allocation.SpecificSKUAllocation getSpecificAllocation()

Reservation for instances with specific machine shapes.

.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;

Returns
Type Description
Allocation.SpecificSKUAllocation

The specificAllocation.

getSpecificAllocationOrBuilder()

public Allocation.SpecificSKUAllocationOrBuilder getSpecificAllocationOrBuilder()

Reservation for instances with specific machine shapes.

.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;

Returns
Type Description
Allocation.SpecificSKUAllocationOrBuilder

getStatus()

public Allocation.Status getStatus()

The status of the reservation.

.google.cloud.capacityplanner.v1beta.Allocation.Status status = 7;

Returns
Type Description
Allocation.Status

The status.

getStatusValue()

public int getStatusValue()

The status of the reservation.

.google.cloud.capacityplanner.v1beta.Allocation.Status status = 7;

Returns
Type Description
int

The enum numeric value on the wire for status.

getTypeCase()

public Allocation.TypeCase getTypeCase()
Returns
Type Description
Allocation.TypeCase

getZone()

public String getZone()

Zone in which the reservation resides.

string zone = 3;

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Zone in which the reservation resides.

string zone = 3;

Returns
Type Description
ByteString

The bytes for zone.

hasAutoDeleteTime()

public boolean hasAutoDeleteTime()

Absolute time in future when the reservation will be auto-deleted by Compute Engine.

.google.protobuf.Timestamp auto_delete_time = 9;

Returns
Type Description
boolean

Whether the autoDeleteTime field is set.

hasCreateTime()

public boolean hasCreateTime()

The creation timestamp for this allocation.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
boolean

Whether the createTime field is set.

hasShareSettings()

public boolean hasShareSettings()

Specify share-settings to create a shared reservation.

.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;

Returns
Type Description
boolean

Whether the shareSettings field is set.

hasSpecificAllocation()

public boolean hasSpecificAllocation()

Reservation for instances with specific machine shapes.

.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;

Returns
Type Description
boolean

Whether the specificAllocation field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Allocation.Builder newBuilderForType()
Returns
Type Description
Allocation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Allocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Allocation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Allocation.Builder toBuilder()
Returns
Type Description
Allocation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException