Class Allocation.SpecificSKUAllocation (0.1.0)

public static final class Allocation.SpecificSKUAllocation extends GeneratedMessageV3 implements Allocation.SpecificSKUAllocationOrBuilder

This reservation type allows to pre allocate specific instance configuration.

Protobuf type google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Allocation.SpecificSKUAllocation

Static 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
Overrides

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>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Allocation.SpecificSKUAllocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Allocation.SpecificSKUAllocation.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.SpecificSKUAllocation.Builder toBuilder()
Returns
Type Description
Allocation.SpecificSKUAllocation.Builder

writeTo(CodedOutputStream output)

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