public static final class CapacityAdviceResponseRecommendationShard.Builder extends GeneratedMessage.Builder<CapacityAdviceResponseRecommendationShard.Builder> implements CapacityAdviceResponseRecommendationShardOrBuilderShards 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
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CapacityAdviceResponseRecommendationShard.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CapacityAdviceResponseRecommendationShard build()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard |
|
buildPartial()
public CapacityAdviceResponseRecommendationShard buildPartial()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard |
|
clear()
public CapacityAdviceResponseRecommendationShard.Builder clear()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
|
clearInstanceCount()
public CapacityAdviceResponseRecommendationShard.Builder clearInstanceCount()The number of instances.
optional int32 instance_count = 77317349;
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
This builder for chaining. |
clearMachineType()
public CapacityAdviceResponseRecommendationShard.Builder clearMachineType()The machine type corresponds to the instance selection in the request.
optional string machine_type = 227711026;
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
This builder for chaining. |
clearProvisioningModel()
public CapacityAdviceResponseRecommendationShard.Builder clearProvisioningModel()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 |
CapacityAdviceResponseRecommendationShard.Builder |
This builder for chaining. |
clearZone()
public CapacityAdviceResponseRecommendationShard.Builder clearZone()Output only. The zone name for this shard.
optional string zone = 3744684;
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CapacityAdviceResponseRecommendationShard getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CapacityAdviceResponseRecommendationShard other)
public CapacityAdviceResponseRecommendationShard.Builder mergeFrom(CapacityAdviceResponseRecommendationShard other)| Parameter | |
|---|---|
| Name | Description |
other |
CapacityAdviceResponseRecommendationShard |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CapacityAdviceResponseRecommendationShard.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CapacityAdviceResponseRecommendationShard.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
|
setInstanceCount(int value)
public CapacityAdviceResponseRecommendationShard.Builder setInstanceCount(int value)The number of instances.
optional int32 instance_count = 77317349;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe instanceCount to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
This builder for chaining. |
setMachineType(String value)
public CapacityAdviceResponseRecommendationShard.Builder setMachineType(String value)The machine type corresponds to the instance selection in the request.
optional string machine_type = 227711026;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineType to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
This builder for chaining. |
setMachineTypeBytes(ByteString value)
public CapacityAdviceResponseRecommendationShard.Builder setMachineTypeBytes(ByteString value)The machine type corresponds to the instance selection in the request.
optional string machine_type = 227711026;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for machineType to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
This builder for chaining. |
setProvisioningModel(String value)
public CapacityAdviceResponseRecommendationShard.Builder setProvisioningModel(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe provisioningModel to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
This builder for chaining. |
setProvisioningModelBytes(ByteString value)
public CapacityAdviceResponseRecommendationShard.Builder setProvisioningModelBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for provisioningModel to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
This builder for chaining. |
setZone(String value)
public CapacityAdviceResponseRecommendationShard.Builder setZone(String value)Output only. The zone name for this shard.
optional string zone = 3744684;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe zone to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
This builder for chaining. |
setZoneBytes(ByteString value)
public CapacityAdviceResponseRecommendationShard.Builder setZoneBytes(ByteString value)Output only. The zone name for this shard.
optional string zone = 3744684;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for zone to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
This builder for chaining. |