public final class Allocation extends GeneratedMessage 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.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Allocation.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Allocation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Allocation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides