Class CalendarModeAdviceRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CalendarModeAdviceRequest.Builder>
com.google.cloud.compute.v1.CalendarModeAdviceRequest.Builder
All Implemented Interfaces:
CalendarModeAdviceRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CalendarModeAdviceRequest

public static final class CalendarModeAdviceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CalendarModeAdviceRequest.Builder> implements CalendarModeAdviceRequestOrBuilder
 A request to recommend the best way to consume the specified resources in the
 future.
 
Protobuf type google.cloud.compute.v1.CalendarModeAdviceRequest
  • 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<CalendarModeAdviceRequest.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CalendarModeAdviceRequest.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<CalendarModeAdviceRequest.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<CalendarModeAdviceRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CalendarModeAdviceRequest.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<CalendarModeAdviceRequest.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<CalendarModeAdviceRequest.Builder>
    • mergeFrom

      public CalendarModeAdviceRequest.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<CalendarModeAdviceRequest.Builder>
      Throws:
      IOException
    • getFutureResourcesSpecsCount

      public int getFutureResourcesSpecsCount()
      Description copied from interface: CalendarModeAdviceRequestOrBuilder
       Specification of resources to create in the future.
       The key of the map is an arbitrary string specified by the caller.
       Value of the map is a specification of required resources and their
       constraints. Currently only one value is allowed in this map.
       
      map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;
      Specified by:
      getFutureResourcesSpecsCount in interface CalendarModeAdviceRequestOrBuilder
    • containsFutureResourcesSpecs

      public boolean containsFutureResourcesSpecs(String key)
       Specification of resources to create in the future.
       The key of the map is an arbitrary string specified by the caller.
       Value of the map is a specification of required resources and their
       constraints. Currently only one value is allowed in this map.
       
      map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;
      Specified by:
      containsFutureResourcesSpecs in interface CalendarModeAdviceRequestOrBuilder
    • getFutureResourcesSpecs

      @Deprecated public Map<String,FutureResourcesSpec> getFutureResourcesSpecs()
      Deprecated.
      Specified by:
      getFutureResourcesSpecs in interface CalendarModeAdviceRequestOrBuilder
    • getFutureResourcesSpecsMap

      public Map<String,FutureResourcesSpec> getFutureResourcesSpecsMap()
       Specification of resources to create in the future.
       The key of the map is an arbitrary string specified by the caller.
       Value of the map is a specification of required resources and their
       constraints. Currently only one value is allowed in this map.
       
      map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;
      Specified by:
      getFutureResourcesSpecsMap in interface CalendarModeAdviceRequestOrBuilder
    • getFutureResourcesSpecsOrDefault

      public FutureResourcesSpec getFutureResourcesSpecsOrDefault(String key, FutureResourcesSpec defaultValue)
       Specification of resources to create in the future.
       The key of the map is an arbitrary string specified by the caller.
       Value of the map is a specification of required resources and their
       constraints. Currently only one value is allowed in this map.
       
      map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;
      Specified by:
      getFutureResourcesSpecsOrDefault in interface CalendarModeAdviceRequestOrBuilder
    • getFutureResourcesSpecsOrThrow

      public FutureResourcesSpec getFutureResourcesSpecsOrThrow(String key)
       Specification of resources to create in the future.
       The key of the map is an arbitrary string specified by the caller.
       Value of the map is a specification of required resources and their
       constraints. Currently only one value is allowed in this map.
       
      map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;
      Specified by:
      getFutureResourcesSpecsOrThrow in interface CalendarModeAdviceRequestOrBuilder
    • clearFutureResourcesSpecs

      public CalendarModeAdviceRequest.Builder clearFutureResourcesSpecs()
    • removeFutureResourcesSpecs

      public CalendarModeAdviceRequest.Builder removeFutureResourcesSpecs(String key)
       Specification of resources to create in the future.
       The key of the map is an arbitrary string specified by the caller.
       Value of the map is a specification of required resources and their
       constraints. Currently only one value is allowed in this map.
       
      map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;
    • getMutableFutureResourcesSpecs

      @Deprecated public Map<String,FutureResourcesSpec> getMutableFutureResourcesSpecs()
      Deprecated.
      Use alternate mutation accessors instead.
    • putFutureResourcesSpecs

      public CalendarModeAdviceRequest.Builder putFutureResourcesSpecs(String key, FutureResourcesSpec value)
       Specification of resources to create in the future.
       The key of the map is an arbitrary string specified by the caller.
       Value of the map is a specification of required resources and their
       constraints. Currently only one value is allowed in this map.
       
      map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;
    • putAllFutureResourcesSpecs

      public CalendarModeAdviceRequest.Builder putAllFutureResourcesSpecs(Map<String,FutureResourcesSpec> values)
       Specification of resources to create in the future.
       The key of the map is an arbitrary string specified by the caller.
       Value of the map is a specification of required resources and their
       constraints. Currently only one value is allowed in this map.
       
      map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;
    • putFutureResourcesSpecsBuilderIfAbsent

      public FutureResourcesSpec.Builder putFutureResourcesSpecsBuilderIfAbsent(String key)
       Specification of resources to create in the future.
       The key of the map is an arbitrary string specified by the caller.
       Value of the map is a specification of required resources and their
       constraints. Currently only one value is allowed in this map.
       
      map<string, .google.cloud.compute.v1.FutureResourcesSpec> future_resources_specs = 255012610;