Class CapacityAdviceResponseRecommendation (1.109.0)

public final class CapacityAdviceResponseRecommendation extends GeneratedMessage implements CapacityAdviceResponseRecommendationOrBuilder

Recommendation.

Protobuf type google.cloud.compute.v1.CapacityAdviceResponseRecommendation

Inheritance

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

Static Fields

SCORES_FIELD_NUMBER

public static final int SCORES_FIELD_NUMBER
Field Value
Type Description
int

SHARDS_FIELD_NUMBER

public static final int SHARDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CapacityAdviceResponseRecommendation getDefaultInstance()
Returns
Type Description
CapacityAdviceResponseRecommendation

getDescriptor()

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

newBuilder()

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

newBuilder(CapacityAdviceResponseRecommendation prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CapacityAdviceResponseRecommendation getDefaultInstanceForType()
Returns
Type Description
CapacityAdviceResponseRecommendation

getParserForType()

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

getScores()

public CapacityAdviceResponseRecommendationScores getScores()

Scores for the recommendation.

optional .google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores scores = 165975073;

Returns
Type Description
CapacityAdviceResponseRecommendationScores

The scores.

getScoresOrBuilder()

public CapacityAdviceResponseRecommendationScoresOrBuilder getScoresOrBuilder()

Scores for the recommendation.

optional .google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores scores = 165975073;

Returns
Type Description
CapacityAdviceResponseRecommendationScoresOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getShards(int index)

public CapacityAdviceResponseRecommendationShard getShards(int index)

Shards represent blocks of uniform capacity in recommendations.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;

Parameter
Name Description
index int
Returns
Type Description
CapacityAdviceResponseRecommendationShard

getShardsCount()

public int getShardsCount()

Shards represent blocks of uniform capacity in recommendations.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;

Returns
Type Description
int

getShardsList()

public List<CapacityAdviceResponseRecommendationShard> getShardsList()

Shards represent blocks of uniform capacity in recommendations.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;

Returns
Type Description
List<CapacityAdviceResponseRecommendationShard>

getShardsOrBuilder(int index)

public CapacityAdviceResponseRecommendationShardOrBuilder getShardsOrBuilder(int index)

Shards represent blocks of uniform capacity in recommendations.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;

Parameter
Name Description
index int
Returns
Type Description
CapacityAdviceResponseRecommendationShardOrBuilder

getShardsOrBuilderList()

public List<? extends CapacityAdviceResponseRecommendationShardOrBuilder> getShardsOrBuilderList()

Shards represent blocks of uniform capacity in recommendations.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.CapacityAdviceResponseRecommendationShardOrBuilder>

hasScores()

public boolean hasScores()

Scores for the recommendation.

optional .google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores scores = 165975073;

Returns
Type Description
boolean

Whether the scores 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 CapacityAdviceResponseRecommendation.Builder newBuilderForType()
Returns
Type Description
CapacityAdviceResponseRecommendation.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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