Send feedback
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Allocation . Builder newBuilder ()
newBuilder(Allocation prototype)
public static Allocation . Builder newBuilder ( Allocation prototype )
public static Allocation parseDelimitedFrom ( InputStream input )
public static Allocation parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Allocation parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Allocation parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Allocation parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Allocation parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Allocation parseFrom ( CodedInputStream input )
public static Allocation parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Allocation parseFrom ( InputStream input )
public static Allocation parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Allocation parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Allocation parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Allocation> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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;
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;
getDefaultInstanceForType()
public Allocation getDefaultInstanceForType ()
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()
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 ()
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;
getShareSettingsOrBuilder()
public Allocation . ShareSettingsOrBuilder getShareSettingsOrBuilder ()
Specify share-settings to create a shared reservation.
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;
getSpecificAllocation()
public Allocation . SpecificSKUAllocation getSpecificAllocation ()
Reservation for instances with specific machine shapes.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
getSpecificAllocationOrBuilder()
public Allocation . SpecificSKUAllocationOrBuilder getSpecificAllocationOrBuilder ()
Reservation for instances with specific machine shapes.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
getStatus()
public Allocation . Status getStatus ()
The status of the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.Status status = 7;
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 ()
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()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Allocation . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Allocation . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Allocation . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]