public static final class Allocation.SpecificSKUAllocation extends GeneratedMessage implements Allocation.SpecificSKUAllocationOrBuilderThis reservation type allows to pre allocate specific instance configuration.
Protobuf type google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > Allocation.SpecificSKUAllocationImplements
Allocation.SpecificSKUAllocationOrBuilderStatic Fields
ASSURED_COUNT_FIELD_NUMBER
public static final int ASSURED_COUNT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
COUNT_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
INSTANCE_PROPERTIES_FIELD_NUMBER
public static final int INSTANCE_PROPERTIES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
USED_COUNT_FIELD_NUMBER
public static final int USED_COUNT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static Allocation.SpecificSKUAllocation getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static Allocation.SpecificSKUAllocation.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.Builder |
|
newBuilder(Allocation.SpecificSKUAllocation prototype)
public static Allocation.SpecificSKUAllocation.Builder newBuilder(Allocation.SpecificSKUAllocation prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
Allocation.SpecificSKUAllocation |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.Builder |
|
parseDelimitedFrom(InputStream input)
public static Allocation.SpecificSKUAllocation parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static Allocation.SpecificSKUAllocation parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static Allocation.SpecificSKUAllocation parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static Allocation.SpecificSKUAllocation parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static Allocation.SpecificSKUAllocation parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static Allocation.SpecificSKUAllocation parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<Allocation.SpecificSKUAllocation> parser()| Returns | |
|---|---|
| Type | Description |
Parser<SpecificSKUAllocation> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAssuredCount()
public long getAssuredCount()Indicates how many instances are actually usable currently.
int64 assured_count = 4;
| Returns | |
|---|---|
| Type | Description |
long |
The assuredCount. |
getCount()
public long getCount()Specifies the number of resources that are allocated.
int64 count = 2;
| Returns | |
|---|---|
| Type | Description |
long |
The count. |
getDefaultInstanceForType()
public Allocation.SpecificSKUAllocation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
|
getInstanceProperties()
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties getInstanceProperties()The instance properties for the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties instance_properties = 1;
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties |
The instanceProperties. |
getInstancePropertiesOrBuilder()
public Allocation.SpecificSKUAllocation.AllocatedInstancePropertiesOrBuilder getInstancePropertiesOrBuilder()The instance properties for the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties instance_properties = 1;
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstancePropertiesOrBuilder |
|
getParserForType()
public Parser<Allocation.SpecificSKUAllocation> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<SpecificSKUAllocation> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getUsedCount()
public long getUsedCount()Indicates how many instances are in use.
int64 used_count = 3;
| Returns | |
|---|---|
| Type | Description |
long |
The usedCount. |
hasInstanceProperties()
public boolean hasInstanceProperties()The instance properties for the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties instance_properties = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the instanceProperties field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public Allocation.SpecificSKUAllocation.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Allocation.SpecificSKUAllocation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.Builder |
|
toBuilder()
public Allocation.SpecificSKUAllocation.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|