Class FutureResourcesRecommendation.Builder (1.91.0)

public static final class FutureResourcesRecommendation.Builder extends GeneratedMessageV3.Builder<FutureResourcesRecommendation.Builder> implements FutureResourcesRecommendationOrBuilder

Recommendation for single resources specification, to be created in the future.

Protobuf type google.cloud.compute.v1.FutureResourcesRecommendation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FutureResourcesRecommendation build()
Returns
Type Description
FutureResourcesRecommendation

buildPartial()

public FutureResourcesRecommendation buildPartial()
Returns
Type Description
FutureResourcesRecommendation

clear()

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

clearEndTime()

public FutureResourcesRecommendation.Builder clearEndTime()

optional string end_time = 114938801;

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLocation()

public FutureResourcesRecommendation.Builder clearLocation()

The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means that no location is recommended - see other_locations for details.

optional string location = 290430901;

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOtherLocations()

public FutureResourcesRecommendation.Builder clearOtherLocations()
Returns
Type Description
FutureResourcesRecommendation.Builder

clearRecommendationId()

public FutureResourcesRecommendation.Builder clearRecommendationId()

Unique id of the recommendation, a UUID string generated by the API.

optional string recommendation_id = 474540897;

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

clearRecommendationType()

public FutureResourcesRecommendation.Builder clearRecommendationType()

Type of recommendation. Currently only FUTURE_RESERVATION is supported. Check the RecommendationType enum for the list of possible values.

optional string recommendation_type = 230749184;

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

clearStartTime()

public FutureResourcesRecommendation.Builder clearStartTime()

optional string start_time = 37467274;

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

clone()

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

containsOtherLocations(String key)

public boolean containsOtherLocations(String key)

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public FutureResourcesRecommendation getDefaultInstanceForType()
Returns
Type Description
FutureResourcesRecommendation

getDescriptorForType()

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

getEndTime()

public String getEndTime()

optional string end_time = 114938801;

Returns
Type Description
String

The endTime.

getEndTimeBytes()

public ByteString getEndTimeBytes()

optional string end_time = 114938801;

Returns
Type Description
ByteString

The bytes for endTime.

getLocation()

public String getLocation()

The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means that no location is recommended - see other_locations for details.

optional string location = 290430901;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means that no location is recommended - see other_locations for details.

optional string location = 290430901;

Returns
Type Description
ByteString

The bytes for location.

getMutableOtherLocations() (deprecated)

public Map<String,FutureResourcesRecommendationOtherLocation> getMutableOtherLocations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,FutureResourcesRecommendationOtherLocation>

getOtherLocations() (deprecated)

public Map<String,FutureResourcesRecommendationOtherLocation> getOtherLocations()
Returns
Type Description
Map<String,FutureResourcesRecommendationOtherLocation>

getOtherLocationsCount()

public int getOtherLocationsCount()

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Returns
Type Description
int

getOtherLocationsMap()

public Map<String,FutureResourcesRecommendationOtherLocation> getOtherLocationsMap()

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Returns
Type Description
Map<String,FutureResourcesRecommendationOtherLocation>

getOtherLocationsOrDefault(String key, FutureResourcesRecommendationOtherLocation defaultValue)

public FutureResourcesRecommendationOtherLocation getOtherLocationsOrDefault(String key, FutureResourcesRecommendationOtherLocation defaultValue)

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Parameters
Name Description
key String
defaultValue FutureResourcesRecommendationOtherLocation
Returns
Type Description
FutureResourcesRecommendationOtherLocation

getOtherLocationsOrThrow(String key)

public FutureResourcesRecommendationOtherLocation getOtherLocationsOrThrow(String key)

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Parameter
Name Description
key String
Returns
Type Description
FutureResourcesRecommendationOtherLocation

getRecommendationId()

public String getRecommendationId()

Unique id of the recommendation, a UUID string generated by the API.

optional string recommendation_id = 474540897;

Returns
Type Description
String

The recommendationId.

getRecommendationIdBytes()

public ByteString getRecommendationIdBytes()

Unique id of the recommendation, a UUID string generated by the API.

optional string recommendation_id = 474540897;

Returns
Type Description
ByteString

The bytes for recommendationId.

getRecommendationType()

public String getRecommendationType()

Type of recommendation. Currently only FUTURE_RESERVATION is supported. Check the RecommendationType enum for the list of possible values.

optional string recommendation_type = 230749184;

Returns
Type Description
String

The recommendationType.

getRecommendationTypeBytes()

public ByteString getRecommendationTypeBytes()

Type of recommendation. Currently only FUTURE_RESERVATION is supported. Check the RecommendationType enum for the list of possible values.

optional string recommendation_type = 230749184;

Returns
Type Description
ByteString

The bytes for recommendationType.

getStartTime()

public String getStartTime()

optional string start_time = 37467274;

Returns
Type Description
String

The startTime.

getStartTimeBytes()

public ByteString getStartTimeBytes()

optional string start_time = 37467274;

Returns
Type Description
ByteString

The bytes for startTime.

hasEndTime()

public boolean hasEndTime()

optional string end_time = 114938801;

Returns
Type Description
boolean

Whether the endTime field is set.

hasLocation()

public boolean hasLocation()

The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means that no location is recommended - see other_locations for details.

optional string location = 290430901;

Returns
Type Description
boolean

Whether the location field is set.

hasRecommendationId()

public boolean hasRecommendationId()

Unique id of the recommendation, a UUID string generated by the API.

optional string recommendation_id = 474540897;

Returns
Type Description
boolean

Whether the recommendationId field is set.

hasRecommendationType()

public boolean hasRecommendationType()

Type of recommendation. Currently only FUTURE_RESERVATION is supported. Check the RecommendationType enum for the list of possible values.

optional string recommendation_type = 230749184;

Returns
Type Description
boolean

Whether the recommendationType field is set.

hasStartTime()

public boolean hasStartTime()

optional string start_time = 37467274;

Returns
Type Description
boolean

Whether the startTime field is set.

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(FutureResourcesRecommendation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllOtherLocations(Map<String,FutureResourcesRecommendationOtherLocation> values)

public FutureResourcesRecommendation.Builder putAllOtherLocations(Map<String,FutureResourcesRecommendationOtherLocation> values)

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Parameter
Name Description
values Map<String,FutureResourcesRecommendationOtherLocation>
Returns
Type Description
FutureResourcesRecommendation.Builder

putOtherLocations(String key, FutureResourcesRecommendationOtherLocation value)

public FutureResourcesRecommendation.Builder putOtherLocations(String key, FutureResourcesRecommendationOtherLocation value)

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Parameters
Name Description
key String
value FutureResourcesRecommendationOtherLocation
Returns
Type Description
FutureResourcesRecommendation.Builder

putOtherLocationsBuilderIfAbsent(String key)

public FutureResourcesRecommendationOtherLocation.Builder putOtherLocationsBuilderIfAbsent(String key)

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Parameter
Name Description
key String
Returns
Type Description
FutureResourcesRecommendationOtherLocation.Builder

removeOtherLocations(String key)

public FutureResourcesRecommendation.Builder removeOtherLocations(String key)

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Parameter
Name Description
key String
Returns
Type Description
FutureResourcesRecommendation.Builder

setEndTime(String value)

public FutureResourcesRecommendation.Builder setEndTime(String value)

optional string end_time = 114938801;

Parameter
Name Description
value String

The endTime to set.

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

setEndTimeBytes(ByteString value)

public FutureResourcesRecommendation.Builder setEndTimeBytes(ByteString value)

optional string end_time = 114938801;

Parameter
Name Description
value ByteString

The bytes for endTime to set.

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocation(String value)

public FutureResourcesRecommendation.Builder setLocation(String value)

The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means that no location is recommended - see other_locations for details.

optional string location = 290430901;

Parameter
Name Description
value String

The location to set.

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public FutureResourcesRecommendation.Builder setLocationBytes(ByteString value)

The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means that no location is recommended - see other_locations for details.

optional string location = 290430901;

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

setRecommendationId(String value)

public FutureResourcesRecommendation.Builder setRecommendationId(String value)

Unique id of the recommendation, a UUID string generated by the API.

optional string recommendation_id = 474540897;

Parameter
Name Description
value String

The recommendationId to set.

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

setRecommendationIdBytes(ByteString value)

public FutureResourcesRecommendation.Builder setRecommendationIdBytes(ByteString value)

Unique id of the recommendation, a UUID string generated by the API.

optional string recommendation_id = 474540897;

Parameter
Name Description
value ByteString

The bytes for recommendationId to set.

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

setRecommendationType(String value)

public FutureResourcesRecommendation.Builder setRecommendationType(String value)

Type of recommendation. Currently only FUTURE_RESERVATION is supported. Check the RecommendationType enum for the list of possible values.

optional string recommendation_type = 230749184;

Parameter
Name Description
value String

The recommendationType to set.

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

setRecommendationTypeBytes(ByteString value)

public FutureResourcesRecommendation.Builder setRecommendationTypeBytes(ByteString value)

Type of recommendation. Currently only FUTURE_RESERVATION is supported. Check the RecommendationType enum for the list of possible values.

optional string recommendation_type = 230749184;

Parameter
Name Description
value ByteString

The bytes for recommendationType to set.

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

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

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

setStartTime(String value)

public FutureResourcesRecommendation.Builder setStartTime(String value)

optional string start_time = 37467274;

Parameter
Name Description
value String

The startTime to set.

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

setStartTimeBytes(ByteString value)

public FutureResourcesRecommendation.Builder setStartTimeBytes(ByteString value)

optional string start_time = 37467274;

Parameter
Name Description
value ByteString

The bytes for startTime to set.

Returns
Type Description
FutureResourcesRecommendation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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