Class CapacityAdviceResponseRecommendationScores (1.109.0)

public final class CapacityAdviceResponseRecommendationScores extends GeneratedMessage implements CapacityAdviceResponseRecommendationScoresOrBuilder

Groups information about a shard of capacity.

Protobuf type google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores

Inheritance

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

Static Fields

ESTIMATED_UPTIME_FIELD_NUMBER

public static final int ESTIMATED_UPTIME_FIELD_NUMBER
Field Value
Type Description
int

OBTAINABILITY_FIELD_NUMBER

public static final int OBTAINABILITY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CapacityAdviceResponseRecommendationScores getDefaultInstance()
Returns
Type Description
CapacityAdviceResponseRecommendationScores

getDescriptor()

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

newBuilder()

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

newBuilder(CapacityAdviceResponseRecommendationScores prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CapacityAdviceResponseRecommendationScores getDefaultInstanceForType()
Returns
Type Description
CapacityAdviceResponseRecommendationScores

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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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 CapacityAdviceResponseRecommendationScores.Builder newBuilderForType()
Returns
Type Description
CapacityAdviceResponseRecommendationScores.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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