public static final class CapacityAdviceResponseRecommendation.Builder extends GeneratedMessage.Builder<CapacityAdviceResponseRecommendation.Builder> implements CapacityAdviceResponseRecommendationOrBuilderRecommendation.
Protobuf type google.cloud.compute.v1.CapacityAdviceResponseRecommendation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CapacityAdviceResponseRecommendation.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllShards(Iterable<? extends CapacityAdviceResponseRecommendationShard> values)
public CapacityAdviceResponseRecommendation.Builder addAllShards(Iterable<? extends CapacityAdviceResponseRecommendationShard> values)Shards represent blocks of uniform capacity in recommendations.
repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard> |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
addShards(CapacityAdviceResponseRecommendationShard value)
public CapacityAdviceResponseRecommendation.Builder addShards(CapacityAdviceResponseRecommendationShard value)Shards represent blocks of uniform capacity in recommendations.
repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;
| Parameter | |
|---|---|
| Name | Description |
value |
CapacityAdviceResponseRecommendationShard |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
addShards(CapacityAdviceResponseRecommendationShard.Builder builderForValue)
public CapacityAdviceResponseRecommendation.Builder addShards(CapacityAdviceResponseRecommendationShard.Builder builderForValue)Shards represent blocks of uniform capacity in recommendations.
repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CapacityAdviceResponseRecommendationShard.Builder |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
addShards(int index, CapacityAdviceResponseRecommendationShard value)
public CapacityAdviceResponseRecommendation.Builder addShards(int index, CapacityAdviceResponseRecommendationShard value)Shards represent blocks of uniform capacity in recommendations.
repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CapacityAdviceResponseRecommendationShard |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
addShards(int index, CapacityAdviceResponseRecommendationShard.Builder builderForValue)
public CapacityAdviceResponseRecommendation.Builder addShards(int index, CapacityAdviceResponseRecommendationShard.Builder builderForValue)Shards represent blocks of uniform capacity in recommendations.
repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CapacityAdviceResponseRecommendationShard.Builder |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
addShardsBuilder()
public CapacityAdviceResponseRecommendationShard.Builder addShardsBuilder()Shards represent blocks of uniform capacity in recommendations.
repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationShard.Builder |
|
addShardsBuilder(int index)
public CapacityAdviceResponseRecommendationShard.Builder addShardsBuilder(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.Builder |
|
build()
public CapacityAdviceResponseRecommendation build()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation |
|
buildPartial()
public CapacityAdviceResponseRecommendation buildPartial()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation |
|
clear()
public CapacityAdviceResponseRecommendation.Builder clear()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
clearScores()
public CapacityAdviceResponseRecommendation.Builder clearScores()Scores for the recommendation.
optional .google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores scores = 165975073;
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
clearShards()
public CapacityAdviceResponseRecommendation.Builder clearShards()Shards represent blocks of uniform capacity in recommendations.
repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
getDefaultInstanceForType()
public CapacityAdviceResponseRecommendation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getScores()
public CapacityAdviceResponseRecommendationScores getScores()Scores for the recommendation.
optional .google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores scores = 165975073;
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores |
The scores. |
getScoresBuilder()
public CapacityAdviceResponseRecommendationScores.Builder getScoresBuilder()Scores for the recommendation.
optional .google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores scores = 165975073;
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScores.Builder |
|
getScoresOrBuilder()
public CapacityAdviceResponseRecommendationScoresOrBuilder getScoresOrBuilder()Scores for the recommendation.
optional .google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores scores = 165975073;
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendationScoresOrBuilder |
|
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 |
|
getShardsBuilder(int index)
public CapacityAdviceResponseRecommendationShard.Builder getShardsBuilder(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.Builder |
|
getShardsBuilderList()
public List<CapacityAdviceResponseRecommendationShard.Builder> getShardsBuilderList()Shards represent blocks of uniform capacity in recommendations.
repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CapacityAdviceResponseRecommendation other)
public CapacityAdviceResponseRecommendation.Builder mergeFrom(CapacityAdviceResponseRecommendation other)| Parameter | |
|---|---|
| Name | Description |
other |
CapacityAdviceResponseRecommendation |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CapacityAdviceResponseRecommendation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CapacityAdviceResponseRecommendation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
mergeScores(CapacityAdviceResponseRecommendationScores value)
public CapacityAdviceResponseRecommendation.Builder mergeScores(CapacityAdviceResponseRecommendationScores value)Scores for the recommendation.
optional .google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores scores = 165975073;
| Parameter | |
|---|---|
| Name | Description |
value |
CapacityAdviceResponseRecommendationScores |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
removeShards(int index)
public CapacityAdviceResponseRecommendation.Builder removeShards(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 |
CapacityAdviceResponseRecommendation.Builder |
|
setScores(CapacityAdviceResponseRecommendationScores value)
public CapacityAdviceResponseRecommendation.Builder setScores(CapacityAdviceResponseRecommendationScores value)Scores for the recommendation.
optional .google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores scores = 165975073;
| Parameter | |
|---|---|
| Name | Description |
value |
CapacityAdviceResponseRecommendationScores |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
setScores(CapacityAdviceResponseRecommendationScores.Builder builderForValue)
public CapacityAdviceResponseRecommendation.Builder setScores(CapacityAdviceResponseRecommendationScores.Builder builderForValue)Scores for the recommendation.
optional .google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores scores = 165975073;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CapacityAdviceResponseRecommendationScores.Builder |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
setShards(int index, CapacityAdviceResponseRecommendationShard value)
public CapacityAdviceResponseRecommendation.Builder setShards(int index, CapacityAdviceResponseRecommendationShard value)Shards represent blocks of uniform capacity in recommendations.
repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CapacityAdviceResponseRecommendationShard |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|
setShards(int index, CapacityAdviceResponseRecommendationShard.Builder builderForValue)
public CapacityAdviceResponseRecommendation.Builder setShards(int index, CapacityAdviceResponseRecommendationShard.Builder builderForValue)Shards represent blocks of uniform capacity in recommendations.
repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard shards = 170175573;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CapacityAdviceResponseRecommendationShard.Builder |
| Returns | |
|---|---|
| Type | Description |
CapacityAdviceResponseRecommendation.Builder |
|