Package com.google.cloud.compute.v1
Class FutureResourcesRecommendation
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.FutureResourcesRecommendation
- All Implemented Interfaces:
FutureResourcesRecommendationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class FutureResourcesRecommendation
extends com.google.protobuf.GeneratedMessage
implements FutureResourcesRecommendationOrBuilder
Recommendation for single resources specification, to be created in the future.Protobuf type
google.cloud.compute.v1.FutureResourcesRecommendation- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRecommendation for single resources specification, to be created in the future.static enumType of recommendation.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanList of locations in the request scope that were not recommended.booleanstatic final com.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.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.com.google.protobuf.Parser<FutureResourcesRecommendation>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.intoptional string start_time = 37467274;com.google.protobuf.ByteStringoptional string start_time = 37467274;booleanoptional string end_time = 114938801;inthashCode()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) final booleannewBuilder(FutureResourcesRecommendation prototype) protected FutureResourcesRecommendation.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FutureResourcesRecommendation>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER- See Also:
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER- See Also:
-
OTHER_LOCATIONS_FIELD_NUMBER
public static final int OTHER_LOCATIONS_FIELD_NUMBER- See Also:
-
RECOMMENDATION_ID_FIELD_NUMBER
public static final int RECOMMENDATION_ID_FIELD_NUMBER- See Also:
-
RECOMMENDATION_TYPE_FIELD_NUMBER
public static final int RECOMMENDATION_TYPE_FIELD_NUMBER- See Also:
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER- See Also:
-
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FutureResourcesRecommendation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FutureResourcesRecommendation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FutureResourcesRecommendation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FutureResourcesRecommendation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FutureResourcesRecommendation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FutureResourcesRecommendation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FutureResourcesRecommendation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static FutureResourcesRecommendation parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static FutureResourcesRecommendation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static FutureResourcesRecommendation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static FutureResourcesRecommendation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static FutureResourcesRecommendation.Builder newBuilder(FutureResourcesRecommendation prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FutureResourcesRecommendation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-