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:
  • 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:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasEndTime

      public boolean hasEndTime()
      optional string end_time = 114938801;
      Specified by:
      hasEndTime in interface FutureResourcesRecommendationOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public String getEndTime()
      optional string end_time = 114938801;
      Specified by:
      getEndTime in interface FutureResourcesRecommendationOrBuilder
      Returns:
      The endTime.
    • getEndTimeBytes

      public com.google.protobuf.ByteString getEndTimeBytes()
      optional string end_time = 114938801;
      Specified by:
      getEndTimeBytes in interface FutureResourcesRecommendationOrBuilder
      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:
      hasLocation in interface FutureResourcesRecommendationOrBuilder
      Returns:
      Whether the location field is set.
    • 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;
      Specified by:
      getLocation in interface FutureResourcesRecommendationOrBuilder
      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:
      getLocationBytes in interface FutureResourcesRecommendationOrBuilder
      Returns:
      The bytes for location.
    • getOtherLocationsCount

      public int getOtherLocationsCount()
      Description copied from interface: FutureResourcesRecommendationOrBuilder
       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:
      getOtherLocationsCount in interface FutureResourcesRecommendationOrBuilder
    • containsOtherLocations

      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;
      Specified by:
      containsOtherLocations in interface FutureResourcesRecommendationOrBuilder
    • getOtherLocations

      Deprecated.
      Specified by:
      getOtherLocations in interface FutureResourcesRecommendationOrBuilder
    • 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;
      Specified by:
      getOtherLocationsMap in interface FutureResourcesRecommendationOrBuilder
    • getOtherLocationsOrDefault

       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:
      getOtherLocationsOrDefault in interface FutureResourcesRecommendationOrBuilder
    • getOtherLocationsOrThrow

      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;
      Specified by:
      getOtherLocationsOrThrow in interface FutureResourcesRecommendationOrBuilder
    • hasRecommendationId

      public boolean hasRecommendationId()
       Unique id of the recommendation, a UUID string generated by the API.
       
      optional string recommendation_id = 474540897;
      Specified by:
      hasRecommendationId in interface FutureResourcesRecommendationOrBuilder
      Returns:
      Whether the recommendationId field is set.
    • getRecommendationId

      public String getRecommendationId()
       Unique id of the recommendation, a UUID string generated by the API.
       
      optional string recommendation_id = 474540897;
      Specified by:
      getRecommendationId in interface FutureResourcesRecommendationOrBuilder
      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:
      getRecommendationIdBytes in interface FutureResourcesRecommendationOrBuilder
      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:
      hasRecommendationType in interface FutureResourcesRecommendationOrBuilder
      Returns:
      Whether the recommendationType field is set.
    • 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;
      Specified by:
      getRecommendationType in interface FutureResourcesRecommendationOrBuilder
      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:
      getRecommendationTypeBytes in interface FutureResourcesRecommendationOrBuilder
      Returns:
      The bytes for recommendationType.
    • hasStartTime

      public boolean hasStartTime()
      optional string start_time = 37467274;
      Specified by:
      hasStartTime in interface FutureResourcesRecommendationOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public String getStartTime()
      optional string start_time = 37467274;
      Specified by:
      getStartTime in interface FutureResourcesRecommendationOrBuilder
      Returns:
      The startTime.
    • getStartTimeBytes

      public com.google.protobuf.ByteString getStartTimeBytes()
      optional string start_time = 37467274;
      Specified by:
      getStartTimeBytes in interface FutureResourcesRecommendationOrBuilder
      Returns:
      The bytes for startTime.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static FutureResourcesRecommendation parseFrom(InputStream input) throws IOException
      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

      public FutureResourcesRecommendation.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static FutureResourcesRecommendation.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected FutureResourcesRecommendation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static FutureResourcesRecommendation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FutureResourcesRecommendation> parser()
    • getParserForType

      public com.google.protobuf.Parser<FutureResourcesRecommendation> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public FutureResourcesRecommendation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder