- 1.92.0 (latest)
- 1.91.0
- 1.90.0
- 1.88.0
- 1.86.0
- 1.85.0
- 1.84.0
- 1.83.0
- 1.82.0
- 1.80.0
- 1.78.0
- 1.77.0
- 1.74.0
- 1.73.0
- 1.72.0
- 1.70.0
- 1.69.0
- 1.68.0
- 1.67.0
- 1.66.0
- 1.65.0
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class FutureResourcesRecommendation.Builder extends GeneratedMessageV3.Builder<FutureResourcesRecommendation.Builder> implements FutureResourcesRecommendationOrBuilderRecommendation for single resources specification, to be created in the future.
Protobuf type google.cloud.compute.v1.FutureResourcesRecommendation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FutureResourcesRecommendation.BuilderImplements
FutureResourcesRecommendationOrBuilderStatic 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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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()Use #getOtherLocationsMap() instead.
| 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 |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FutureResourcesRecommendation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FutureResourcesRecommendation.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FutureResourcesRecommendation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
FutureResourcesRecommendation.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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 |
|
setStartTime(String value)
public FutureResourcesRecommendation.Builder setStartTime(String value)optional string start_time = 37467274;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe 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 |
|