Package com.google.cloud.compute.v1
Class FutureResourcesRecommendation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
com.google.cloud.compute.v1.FutureResourcesRecommendation.Builder
- All Implemented Interfaces:
FutureResourcesRecommendationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FutureResourcesRecommendation
public static final class FutureResourcesRecommendation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
implements FutureResourcesRecommendationOrBuilder
Recommendation for single resources specification, to be created in the future.Protobuf type
google.cloud.compute.v1.FutureResourcesRecommendation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()optional string end_time = 114938801;The advised location for resource usage.Unique id of the recommendation, a UUID string generated by the API.Type of recommendation.optional string start_time = 37467274;booleanList of locations in the request scope that were not recommended.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptoroptional string end_time = 114938801;com.google.protobuf.ByteStringoptional string end_time = 114938801;The advised location for resource usage.com.google.protobuf.ByteStringThe advised location for resource usage.Deprecated.Deprecated.intList of locations in the request scope that were not recommended.List of locations in the request scope that were not recommended.getOtherLocationsOrDefault(String key, FutureResourcesRecommendationOtherLocation defaultValue) List of locations in the request scope that were not recommended.List of locations in the request scope that were not recommended.Unique id of the recommendation, a UUID string generated by the API.com.google.protobuf.ByteStringUnique id of the recommendation, a UUID string generated by the API.Type of recommendation.com.google.protobuf.ByteStringType of recommendation.optional string start_time = 37467274;com.google.protobuf.ByteStringoptional string start_time = 37467274;booleanoptional string end_time = 114938801;booleanThe advised location for resource usage.booleanUnique id of the recommendation, a UUID string generated by the API.booleanType of recommendation.booleanoptional string start_time = 37467274;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) List of locations in the request scope that were not recommended.List of locations in the request scope that were not recommended.List of locations in the request scope that were not recommended.List of locations in the request scope that were not recommended.setEndTime(String value) optional string end_time = 114938801;setEndTimeBytes(com.google.protobuf.ByteString value) optional string end_time = 114938801;setLocation(String value) The advised location for resource usage.setLocationBytes(com.google.protobuf.ByteString value) The advised location for resource usage.setRecommendationId(String value) Unique id of the recommendation, a UUID string generated by the API.setRecommendationIdBytes(com.google.protobuf.ByteString value) Unique id of the recommendation, a UUID string generated by the API.setRecommendationType(String value) Type of recommendation.setRecommendationTypeBytes(com.google.protobuf.ByteString value) Type of recommendation.setStartTime(String value) optional string start_time = 37467274;setStartTimeBytes(com.google.protobuf.ByteString value) optional string start_time = 37467274;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FutureResourcesRecommendation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
-
mergeFrom
public FutureResourcesRecommendation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FutureResourcesRecommendation.Builder>- Throws:
IOException
-
hasEndTime
public boolean hasEndTime()optional string end_time = 114938801;- Specified by:
hasEndTimein interfaceFutureResourcesRecommendationOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
optional string end_time = 114938801;- Specified by:
getEndTimein interfaceFutureResourcesRecommendationOrBuilder- Returns:
- The endTime.
-
getEndTimeBytes
public com.google.protobuf.ByteString getEndTimeBytes()optional string end_time = 114938801;- Specified by:
getEndTimeBytesin interfaceFutureResourcesRecommendationOrBuilder- Returns:
- The bytes for endTime.
-
setEndTime
optional string end_time = 114938801;- Parameters:
value- The endTime to set.- Returns:
- This builder for chaining.
-
clearEndTime
optional string end_time = 114938801;- Returns:
- This builder for chaining.
-
setEndTimeBytes
optional string end_time = 114938801;- Parameters:
value- The bytes for endTime to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasLocationin interfaceFutureResourcesRecommendationOrBuilder- Returns:
- Whether the location field is set.
-
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;- Specified by:
getLocationin interfaceFutureResourcesRecommendationOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.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;- Specified by:
getLocationBytesin interfaceFutureResourcesRecommendationOrBuilder- Returns:
- The bytes for location.
-
setLocation
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;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setLocationBytes
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;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
getOtherLocationsCount
public int getOtherLocationsCount()Description copied from interface:FutureResourcesRecommendationOrBuilderList 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;- Specified by:
getOtherLocationsCountin interfaceFutureResourcesRecommendationOrBuilder
-
containsOtherLocations
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;- Specified by:
containsOtherLocationsin interfaceFutureResourcesRecommendationOrBuilder
-
getOtherLocations
Deprecated.UsegetOtherLocationsMap()instead.- Specified by:
getOtherLocationsin interfaceFutureResourcesRecommendationOrBuilder
-
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;- Specified by:
getOtherLocationsMapin interfaceFutureResourcesRecommendationOrBuilder
-
getOtherLocationsOrDefault
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;- Specified by:
getOtherLocationsOrDefaultin interfaceFutureResourcesRecommendationOrBuilder
-
getOtherLocationsOrThrow
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;- Specified by:
getOtherLocationsOrThrowin interfaceFutureResourcesRecommendationOrBuilder
-
clearOtherLocations
-
removeOtherLocations
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; -
getMutableOtherLocations
@Deprecated public Map<String,FutureResourcesRecommendationOtherLocation> getMutableOtherLocations()Deprecated.Use alternate mutation accessors instead. -
putOtherLocations
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; -
putAllOtherLocations
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; -
putOtherLocationsBuilderIfAbsent
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; -
hasRecommendationId
public boolean hasRecommendationId()Unique id of the recommendation, a UUID string generated by the API.
optional string recommendation_id = 474540897;- Specified by:
hasRecommendationIdin interfaceFutureResourcesRecommendationOrBuilder- Returns:
- Whether the recommendationId field is set.
-
getRecommendationId
Unique id of the recommendation, a UUID string generated by the API.
optional string recommendation_id = 474540897;- Specified by:
getRecommendationIdin interfaceFutureResourcesRecommendationOrBuilder- Returns:
- The recommendationId.
-
getRecommendationIdBytes
public com.google.protobuf.ByteString getRecommendationIdBytes()Unique id of the recommendation, a UUID string generated by the API.
optional string recommendation_id = 474540897;- Specified by:
getRecommendationIdBytesin interfaceFutureResourcesRecommendationOrBuilder- Returns:
- The bytes for recommendationId.
-
setRecommendationId
Unique id of the recommendation, a UUID string generated by the API.
optional string recommendation_id = 474540897;- Parameters:
value- The recommendationId to set.- Returns:
- This builder for chaining.
-
clearRecommendationId
Unique id of the recommendation, a UUID string generated by the API.
optional string recommendation_id = 474540897;- Returns:
- This builder for chaining.
-
setRecommendationIdBytes
public FutureResourcesRecommendation.Builder setRecommendationIdBytes(com.google.protobuf.ByteString value) Unique id of the recommendation, a UUID string generated by the API.
optional string recommendation_id = 474540897;- Parameters:
value- The bytes for recommendationId to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasRecommendationTypein interfaceFutureResourcesRecommendationOrBuilder- Returns:
- Whether the recommendationType field is set.
-
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;- Specified by:
getRecommendationTypein interfaceFutureResourcesRecommendationOrBuilder- Returns:
- The recommendationType.
-
getRecommendationTypeBytes
public com.google.protobuf.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;- Specified by:
getRecommendationTypeBytesin interfaceFutureResourcesRecommendationOrBuilder- Returns:
- The bytes for recommendationType.
-
setRecommendationType
Type of recommendation. Currently only FUTURE_RESERVATION is supported. Check the RecommendationType enum for the list of possible values.
optional string recommendation_type = 230749184;- Parameters:
value- The recommendationType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setRecommendationTypeBytes
public FutureResourcesRecommendation.Builder setRecommendationTypeBytes(com.google.protobuf.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;- Parameters:
value- The bytes for recommendationType to set.- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()optional string start_time = 37467274;- Specified by:
hasStartTimein interfaceFutureResourcesRecommendationOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
optional string start_time = 37467274;- Specified by:
getStartTimein interfaceFutureResourcesRecommendationOrBuilder- Returns:
- The startTime.
-
getStartTimeBytes
public com.google.protobuf.ByteString getStartTimeBytes()optional string start_time = 37467274;- Specified by:
getStartTimeBytesin interfaceFutureResourcesRecommendationOrBuilder- Returns:
- The bytes for startTime.
-
setStartTime
optional string start_time = 37467274;- Parameters:
value- The startTime to set.- Returns:
- This builder for chaining.
-
clearStartTime
optional string start_time = 37467274;- Returns:
- This builder for chaining.
-
setStartTimeBytes
public FutureResourcesRecommendation.Builder setStartTimeBytes(com.google.protobuf.ByteString value) optional string start_time = 37467274;- Parameters:
value- The bytes for startTime to set.- Returns:
- This builder for chaining.
-