Class CapacityAdviceResponseRecommendationScores.Builder (1.109.0)

public static final class CapacityAdviceResponseRecommendationScores.Builder extends GeneratedMessage.Builder<CapacityAdviceResponseRecommendationScores.Builder> implements CapacityAdviceResponseRecommendationScoresOrBuilder

Groups information about a shard of capacity.

Protobuf type google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores

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

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CapacityAdviceResponseRecommendationScores.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CapacityAdviceResponseRecommendationScores.Builder
Overrides

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 String

The 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 ByteString

The 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 double

The obtainability to set.

Returns
Type Description
CapacityAdviceResponseRecommendationScores.Builder

This builder for chaining.