Class CapacityAdviceResponse.Builder (1.109.0)

public static final class CapacityAdviceResponse.Builder extends GeneratedMessage.Builder<CapacityAdviceResponse.Builder> implements CapacityAdviceResponseOrBuilder

A response contains scoring recommendations.

Protobuf type google.cloud.compute.v1.CapacityAdviceResponse

Static Methods

getDescriptor()

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

Methods

addAllRecommendations(Iterable<? extends CapacityAdviceResponseRecommendation> values)

public CapacityAdviceResponse.Builder addAllRecommendations(Iterable<? extends CapacityAdviceResponseRecommendation> values)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.CapacityAdviceResponseRecommendation>
Returns
Type Description
CapacityAdviceResponse.Builder

addRecommendations(CapacityAdviceResponseRecommendation value)

public CapacityAdviceResponse.Builder addRecommendations(CapacityAdviceResponseRecommendation value)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameter
Name Description
value CapacityAdviceResponseRecommendation
Returns
Type Description
CapacityAdviceResponse.Builder

addRecommendations(CapacityAdviceResponseRecommendation.Builder builderForValue)

public CapacityAdviceResponse.Builder addRecommendations(CapacityAdviceResponseRecommendation.Builder builderForValue)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameter
Name Description
builderForValue CapacityAdviceResponseRecommendation.Builder
Returns
Type Description
CapacityAdviceResponse.Builder

addRecommendations(int index, CapacityAdviceResponseRecommendation value)

public CapacityAdviceResponse.Builder addRecommendations(int index, CapacityAdviceResponseRecommendation value)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameters
Name Description
index int
value CapacityAdviceResponseRecommendation
Returns
Type Description
CapacityAdviceResponse.Builder

addRecommendations(int index, CapacityAdviceResponseRecommendation.Builder builderForValue)

public CapacityAdviceResponse.Builder addRecommendations(int index, CapacityAdviceResponseRecommendation.Builder builderForValue)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameters
Name Description
index int
builderForValue CapacityAdviceResponseRecommendation.Builder
Returns
Type Description
CapacityAdviceResponse.Builder

addRecommendationsBuilder()

public CapacityAdviceResponseRecommendation.Builder addRecommendationsBuilder()

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Returns
Type Description
CapacityAdviceResponseRecommendation.Builder

addRecommendationsBuilder(int index)

public CapacityAdviceResponseRecommendation.Builder addRecommendationsBuilder(int index)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameter
Name Description
index int
Returns
Type Description
CapacityAdviceResponseRecommendation.Builder

build()

public CapacityAdviceResponse build()
Returns
Type Description
CapacityAdviceResponse

buildPartial()

public CapacityAdviceResponse buildPartial()
Returns
Type Description
CapacityAdviceResponse

clear()

public CapacityAdviceResponse.Builder clear()
Returns
Type Description
CapacityAdviceResponse.Builder
Overrides

clearRecommendations()

public CapacityAdviceResponse.Builder clearRecommendations()

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Returns
Type Description
CapacityAdviceResponse.Builder

getDefaultInstanceForType()

public CapacityAdviceResponse getDefaultInstanceForType()
Returns
Type Description
CapacityAdviceResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRecommendations(int index)

public CapacityAdviceResponseRecommendation getRecommendations(int index)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameter
Name Description
index int
Returns
Type Description
CapacityAdviceResponseRecommendation

getRecommendationsBuilder(int index)

public CapacityAdviceResponseRecommendation.Builder getRecommendationsBuilder(int index)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameter
Name Description
index int
Returns
Type Description
CapacityAdviceResponseRecommendation.Builder

getRecommendationsBuilderList()

public List<CapacityAdviceResponseRecommendation.Builder> getRecommendationsBuilderList()

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Returns
Type Description
List<Builder>

getRecommendationsCount()

public int getRecommendationsCount()

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Returns
Type Description
int

getRecommendationsList()

public List<CapacityAdviceResponseRecommendation> getRecommendationsList()

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Returns
Type Description
List<CapacityAdviceResponseRecommendation>

getRecommendationsOrBuilder(int index)

public CapacityAdviceResponseRecommendationOrBuilder getRecommendationsOrBuilder(int index)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameter
Name Description
index int
Returns
Type Description
CapacityAdviceResponseRecommendationOrBuilder

getRecommendationsOrBuilderList()

public List<? extends CapacityAdviceResponseRecommendationOrBuilder> getRecommendationsOrBuilderList()

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

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

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CapacityAdviceResponse other)

public CapacityAdviceResponse.Builder mergeFrom(CapacityAdviceResponse other)
Parameter
Name Description
other CapacityAdviceResponse
Returns
Type Description
CapacityAdviceResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CapacityAdviceResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CapacityAdviceResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

removeRecommendations(int index)

public CapacityAdviceResponse.Builder removeRecommendations(int index)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameter
Name Description
index int
Returns
Type Description
CapacityAdviceResponse.Builder

setRecommendations(int index, CapacityAdviceResponseRecommendation value)

public CapacityAdviceResponse.Builder setRecommendations(int index, CapacityAdviceResponseRecommendation value)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameters
Name Description
index int
value CapacityAdviceResponseRecommendation
Returns
Type Description
CapacityAdviceResponse.Builder

setRecommendations(int index, CapacityAdviceResponseRecommendation.Builder builderForValue)

public CapacityAdviceResponse.Builder setRecommendations(int index, CapacityAdviceResponseRecommendation.Builder builderForValue)

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference.

repeated .google.cloud.compute.v1.CapacityAdviceResponseRecommendation recommendations = 324515802;

Parameters
Name Description
index int
builderForValue CapacityAdviceResponseRecommendation.Builder
Returns
Type Description
CapacityAdviceResponse.Builder