public static final class CapacityAdviceResponseRecommendationScores.Builder extends GeneratedMessage.Builder<CapacityAdviceResponseRecommendationScores.Builder> implements CapacityAdviceResponseRecommendationScoresOrBuilderGroups information about a shard of capacity.
Protobuf type google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CapacityAdviceResponseRecommendationScores.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CapacityAdviceResponseRecommendationScores build()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores |
|
buildPartial()
public CapacityAdviceResponseRecommendationScores buildPartial()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores |
|
clear()
public CapacityAdviceResponseRecommendationScores.Builder clear()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores.Builder |
|
clearEstimatedUptime()
public CapacityAdviceResponseRecommendationScores.Builder clearEstimatedUptime()The estimated run time of the majority of Spot VMs in the request before preemption. The estimate is best-effort only. It is based on historical data and current conditions.
optional string estimated_uptime = 223976779;
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores.Builder |
This builder for chaining. |
clearObtainability()
public CapacityAdviceResponseRecommendationScores.Builder clearObtainability()The obtainability score indicates the likelihood of successfully obtaining (provisioning) the requested number of VMs. The score range is 0.0 through 1.0. Higher is better.
optional double obtainability = 260735205;
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CapacityAdviceResponseRecommendationScores getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEstimatedUptime()
public String getEstimatedUptime()The estimated run time of the majority of Spot VMs in the request before preemption. The estimate is best-effort only. It is based on historical data and current conditions.
optional string estimated_uptime = 223976779;
| Returns | |
|---|---|
| Type | Description |
String |
The estimatedUptime. |
getEstimatedUptimeBytes()
public ByteString getEstimatedUptimeBytes()The estimated run time of the majority of Spot VMs in the request before preemption. The estimate is best-effort only. It is based on historical data and current conditions.
optional string estimated_uptime = 223976779;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for estimatedUptime. |
getObtainability()
public double getObtainability()The obtainability score indicates the likelihood of successfully obtaining (provisioning) the requested number of VMs. The score range is 0.0 through 1.0. Higher is better.
optional double obtainability = 260735205;
| Returns | |
|---|---|
| Type | Description |
double |
The obtainability. |
hasEstimatedUptime()
public boolean hasEstimatedUptime()The estimated run time of the majority of Spot VMs in the request before preemption. The estimate is best-effort only. It is based on historical data and current conditions.
optional string estimated_uptime = 223976779;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the estimatedUptime field is set. |
hasObtainability()
public boolean hasObtainability()The obtainability score indicates the likelihood of successfully obtaining (provisioning) the requested number of VMs. The score range is 0.0 through 1.0. Higher is better.
optional double obtainability = 260735205;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the obtainability field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CapacityAdviceResponseRecommendationScores other)
public CapacityAdviceResponseRecommendationScores.Builder mergeFrom(CapacityAdviceResponseRecommendationScores other)| Parameter | |
|---|---|
| Name | Description |
other |
CapacityAdviceResponseRecommendationScores |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CapacityAdviceResponseRecommendationScores.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CapacityAdviceResponseRecommendationScores.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores.Builder |
|
setEstimatedUptime(String value)
public CapacityAdviceResponseRecommendationScores.Builder setEstimatedUptime(String value)The estimated run time of the majority of Spot VMs in the request before preemption. The estimate is best-effort only. It is based on historical data and current conditions.
optional string estimated_uptime = 223976779;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe estimatedUptime to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores.Builder |
This builder for chaining. |
setEstimatedUptimeBytes(ByteString value)
public CapacityAdviceResponseRecommendationScores.Builder setEstimatedUptimeBytes(ByteString value)The estimated run time of the majority of Spot VMs in the request before preemption. The estimate is best-effort only. It is based on historical data and current conditions.
optional string estimated_uptime = 223976779;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for estimatedUptime to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores.Builder |
This builder for chaining. |
setObtainability(double value)
public CapacityAdviceResponseRecommendationScores.Builder setObtainability(double value)The obtainability score indicates the likelihood of successfully obtaining (provisioning) the requested number of VMs. The score range is 0.0 through 1.0. Higher is better.
optional double obtainability = 260735205;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe obtainability to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores.Builder |
This builder for chaining. |