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 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.Builder<FutureResourcesRecommendation.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FutureResourcesRecommendation.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public FutureResourcesRecommendation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FutureResourcesRecommendation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FutureResourcesRecommendation.Builder>
      Throws:
      IOException
    • 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.
    • setEndTime

      public FutureResourcesRecommendation.Builder setEndTime(String value)
      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

      public FutureResourcesRecommendation.Builder setEndTimeBytes(com.google.protobuf.ByteString value)
      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:
      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.
    • setLocation

      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;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setLocationBytes

      public FutureResourcesRecommendation.Builder setLocationBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • 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
    • clearOtherLocations

      public FutureResourcesRecommendation.Builder clearOtherLocations()
    • removeOtherLocations

      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;
    • getMutableOtherLocations

      Deprecated.
      Use alternate mutation accessors instead.
    • putOtherLocations

       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

       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:
      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.
    • setRecommendationId

      public FutureResourcesRecommendation.Builder setRecommendationId(String value)
       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

      public FutureResourcesRecommendation.Builder 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:
      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.
    • setRecommendationType

      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;
      Parameters:
      value - The recommendationType to set.
      Returns:
      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:
      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:
      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.
    • setStartTime

      public FutureResourcesRecommendation.Builder setStartTime(String value)
      optional string start_time = 37467274;
      Parameters:
      value - The startTime to set.
      Returns:
      This builder for chaining.
    • clearStartTime

      public FutureResourcesRecommendation.Builder 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.