Class CapacityAdviceResponseRecommendationShard (1.109.0)

public final class CapacityAdviceResponseRecommendationShard extends GeneratedMessage implements CapacityAdviceResponseRecommendationShardOrBuilder

Shards represent blocks of uniform capacity in recommendations. Each shard is for a single zone and a single machine shape. Each shard defines a size expressed as the number of VMs.

Protobuf type google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CapacityAdviceResponseRecommendationShard

Static Fields

INSTANCE_COUNT_FIELD_NUMBER

public static final int INSTANCE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

PROVISIONING_MODEL_FIELD_NUMBER

public static final int PROVISIONING_MODEL_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 CapacityAdviceResponseRecommendationShard getDefaultInstance()
Returns
Type Description
CapacityAdviceResponseRecommendationShard

getDescriptor()

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

newBuilder()

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

newBuilder(CapacityAdviceResponseRecommendationShard prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CapacityAdviceResponseRecommendationShard getDefaultInstanceForType()
Returns
Type Description
CapacityAdviceResponseRecommendationShard

getInstanceCount()

public int getInstanceCount()

The number of instances.

optional int32 instance_count = 77317349;

Returns
Type Description
int

The instanceCount.

getMachineType()

public String getMachineType()

The machine type corresponds to the instance selection in the request.

optional string machine_type = 227711026;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The machine type corresponds to the instance selection in the request.

optional string machine_type = 227711026;

Returns
Type Description
ByteString

The bytes for machineType.

getParserForType()

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

getProvisioningModel()

public String getProvisioningModel()

The provisioning model that you want to view recommendations for. Check the ProvisioningModel enum for the list of possible values.

optional string provisioning_model = 494423;

Returns
Type Description
String

The provisioningModel.

getProvisioningModelBytes()

public ByteString getProvisioningModelBytes()

The provisioning model that you want to view recommendations for. Check the ProvisioningModel enum for the list of possible values.

optional string provisioning_model = 494423;

Returns
Type Description
ByteString

The bytes for provisioningModel.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getZone()

public String getZone()

Output only. The zone name for this shard.

optional string zone = 3744684;

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Output only. The zone name for this shard.

optional string zone = 3744684;

Returns
Type Description
ByteString

The bytes for zone.

hasInstanceCount()

public boolean hasInstanceCount()

The number of instances.

optional int32 instance_count = 77317349;

Returns
Type Description
boolean

Whether the instanceCount field is set.

hasMachineType()

public boolean hasMachineType()

The machine type corresponds to the instance selection in the request.

optional string machine_type = 227711026;

Returns
Type Description
boolean

Whether the machineType field is set.

hasProvisioningModel()

public boolean hasProvisioningModel()

The provisioning model that you want to view recommendations for. Check the ProvisioningModel enum for the list of possible values.

optional string provisioning_model = 494423;

Returns
Type Description
boolean

Whether the provisioningModel field is set.

hasZone()

public boolean hasZone()

Output only. The zone name for this shard.

optional string zone = 3744684;

Returns
Type Description
boolean

Whether the zone field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected CapacityAdviceResponseRecommendationShard.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CapacityAdviceResponseRecommendationShard.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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