Class CalendarModeAdviceRequest.Builder (1.92.0)

public static final class CalendarModeAdviceRequest.Builder extends GeneratedMessageV3.Builder<CalendarModeAdviceRequest.Builder> implements CalendarModeAdviceRequestOrBuilder

A request to recommend the best way to consume the specified resources in the future.

Protobuf type google.cloud.compute.v1.CalendarModeAdviceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CalendarModeAdviceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CalendarModeAdviceRequest.Builder
Overrides

build()

public CalendarModeAdviceRequest build()
Returns
Type Description
CalendarModeAdviceRequest

buildPartial()

public CalendarModeAdviceRequest buildPartial()
Returns
Type Description
CalendarModeAdviceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CalendarModeAdviceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CalendarModeAdviceRequest.Builder
Overrides

clearFutureResourcesSpecs()

public CalendarModeAdviceRequest.Builder clearFutureResourcesSpecs()
Returns
Type Description
CalendarModeAdviceRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CalendarModeAdviceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CalendarModeAdviceRequest.Builder
Overrides

clone()

public CalendarModeAdviceRequest.Builder clone()
Returns
Type Description
CalendarModeAdviceRequest.Builder
Overrides

containsFutureResourcesSpecs(String key)

public boolean containsFutureResourcesSpecs(String key)

Specification of resources to create in the future. The key of the map is an arbitrary string specified by the caller. Value of the map is a specification of required resources and their constraints. Currently only one value is allowed in this map.

map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public CalendarModeAdviceRequest getDefaultInstanceForType()
Returns
Type Description
CalendarModeAdviceRequest

getDescriptorForType()

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

getFutureResourcesSpecs() (deprecated)

public Map<String,FutureResourcesSpec> getFutureResourcesSpecs()
Returns
Type Description
Map<String,FutureResourcesSpec>

getFutureResourcesSpecsCount()

public int getFutureResourcesSpecsCount()

Specification of resources to create in the future. The key of the map is an arbitrary string specified by the caller. Value of the map is a specification of required resources and their constraints. Currently only one value is allowed in this map.

map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;

Returns
Type Description
int

getFutureResourcesSpecsMap()

public Map<String,FutureResourcesSpec> getFutureResourcesSpecsMap()

Specification of resources to create in the future. The key of the map is an arbitrary string specified by the caller. Value of the map is a specification of required resources and their constraints. Currently only one value is allowed in this map.

map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;

Returns
Type Description
Map<String,FutureResourcesSpec>

getFutureResourcesSpecsOrDefault(String key, FutureResourcesSpec defaultValue)

public FutureResourcesSpec getFutureResourcesSpecsOrDefault(String key, FutureResourcesSpec defaultValue)

Specification of resources to create in the future. The key of the map is an arbitrary string specified by the caller. Value of the map is a specification of required resources and their constraints. Currently only one value is allowed in this map.

map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;

Parameters
Name Description
key String
defaultValue FutureResourcesSpec
Returns
Type Description
FutureResourcesSpec

getFutureResourcesSpecsOrThrow(String key)

public FutureResourcesSpec getFutureResourcesSpecsOrThrow(String key)

Specification of resources to create in the future. The key of the map is an arbitrary string specified by the caller. Value of the map is a specification of required resources and their constraints. Currently only one value is allowed in this map.

map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;

Parameter
Name Description
key String
Returns
Type Description
FutureResourcesSpec

getMutableFutureResourcesSpecs() (deprecated)

public Map<String,FutureResourcesSpec> getMutableFutureResourcesSpecs()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,FutureResourcesSpec>

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CalendarModeAdviceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CalendarModeAdviceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CalendarModeAdviceRequest.Builder
Overrides

putAllFutureResourcesSpecs(Map<String,FutureResourcesSpec> values)

public CalendarModeAdviceRequest.Builder putAllFutureResourcesSpecs(Map<String,FutureResourcesSpec> values)

Specification of resources to create in the future. The key of the map is an arbitrary string specified by the caller. Value of the map is a specification of required resources and their constraints. Currently only one value is allowed in this map.

map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;

Parameter
Name Description
values Map<String,FutureResourcesSpec>
Returns
Type Description
CalendarModeAdviceRequest.Builder

putFutureResourcesSpecs(String key, FutureResourcesSpec value)

public CalendarModeAdviceRequest.Builder putFutureResourcesSpecs(String key, FutureResourcesSpec value)

Specification of resources to create in the future. The key of the map is an arbitrary string specified by the caller. Value of the map is a specification of required resources and their constraints. Currently only one value is allowed in this map.

map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;

Parameters
Name Description
key String
value FutureResourcesSpec
Returns
Type Description
CalendarModeAdviceRequest.Builder

putFutureResourcesSpecsBuilderIfAbsent(String key)

public FutureResourcesSpec.Builder putFutureResourcesSpecsBuilderIfAbsent(String key)

Specification of resources to create in the future. The key of the map is an arbitrary string specified by the caller. Value of the map is a specification of required resources and their constraints. Currently only one value is allowed in this map.

map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;

Parameter
Name Description
key String
Returns
Type Description
FutureResourcesSpec.Builder

removeFutureResourcesSpecs(String key)

public CalendarModeAdviceRequest.Builder removeFutureResourcesSpecs(String key)

Specification of resources to create in the future. The key of the map is an arbitrary string specified by the caller. Value of the map is a specification of required resources and their constraints. Currently only one value is allowed in this map.

map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;

Parameter
Name Description
key String
Returns
Type Description
CalendarModeAdviceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CalendarModeAdviceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CalendarModeAdviceRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CalendarModeAdviceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CalendarModeAdviceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CalendarModeAdviceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CalendarModeAdviceRequest.Builder
Overrides