Class DimensionsInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DimensionsInfo.Builder>
com.google.api.cloudquotas.v1.DimensionsInfo.Builder
All Implemented Interfaces:
DimensionsInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DimensionsInfo

public static final class DimensionsInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<DimensionsInfo.Builder> implements DimensionsInfoOrBuilder
 The detailed quota information such as effective quota value for a
 combination of dimensions.
 
Protobuf type google.api.cloudquotas.v1.DimensionsInfo
  • 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<DimensionsInfo.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public DimensionsInfo.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<DimensionsInfo.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<DimensionsInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DimensionsInfo.Builder mergeFrom(DimensionsInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DimensionsInfo.Builder>
    • mergeFrom

      public DimensionsInfo.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<DimensionsInfo.Builder>
      Throws:
      IOException
    • getDimensionsCount

      public int getDimensionsCount()
      Description copied from interface: DimensionsInfoOrBuilder
       The map of dimensions for this dimensions info. The key of a map entry
       is "region", "zone" or the name of a service specific dimension, and the
       value of a map entry is the value of the dimension.  If a dimension does
       not appear in the map of dimensions, the dimensions info applies to all
       the dimension values except for those that have another DimenisonInfo
       instance configured for the specific value.
       Example: {"provider" : "Foo Inc"} where "provider" is a service specific
       dimension of a quota.
       
      map<string, string> dimensions = 1;
      Specified by:
      getDimensionsCount in interface DimensionsInfoOrBuilder
    • containsDimensions

      public boolean containsDimensions(String key)
       The map of dimensions for this dimensions info. The key of a map entry
       is "region", "zone" or the name of a service specific dimension, and the
       value of a map entry is the value of the dimension.  If a dimension does
       not appear in the map of dimensions, the dimensions info applies to all
       the dimension values except for those that have another DimenisonInfo
       instance configured for the specific value.
       Example: {"provider" : "Foo Inc"} where "provider" is a service specific
       dimension of a quota.
       
      map<string, string> dimensions = 1;
      Specified by:
      containsDimensions in interface DimensionsInfoOrBuilder
    • getDimensions

      @Deprecated public Map<String,String> getDimensions()
      Deprecated.
      Use getDimensionsMap() instead.
      Specified by:
      getDimensions in interface DimensionsInfoOrBuilder
    • getDimensionsMap

      public Map<String,String> getDimensionsMap()
       The map of dimensions for this dimensions info. The key of a map entry
       is "region", "zone" or the name of a service specific dimension, and the
       value of a map entry is the value of the dimension.  If a dimension does
       not appear in the map of dimensions, the dimensions info applies to all
       the dimension values except for those that have another DimenisonInfo
       instance configured for the specific value.
       Example: {"provider" : "Foo Inc"} where "provider" is a service specific
       dimension of a quota.
       
      map<string, string> dimensions = 1;
      Specified by:
      getDimensionsMap in interface DimensionsInfoOrBuilder
    • getDimensionsOrDefault

      public String getDimensionsOrDefault(String key, String defaultValue)
       The map of dimensions for this dimensions info. The key of a map entry
       is "region", "zone" or the name of a service specific dimension, and the
       value of a map entry is the value of the dimension.  If a dimension does
       not appear in the map of dimensions, the dimensions info applies to all
       the dimension values except for those that have another DimenisonInfo
       instance configured for the specific value.
       Example: {"provider" : "Foo Inc"} where "provider" is a service specific
       dimension of a quota.
       
      map<string, string> dimensions = 1;
      Specified by:
      getDimensionsOrDefault in interface DimensionsInfoOrBuilder
    • getDimensionsOrThrow

      public String getDimensionsOrThrow(String key)
       The map of dimensions for this dimensions info. The key of a map entry
       is "region", "zone" or the name of a service specific dimension, and the
       value of a map entry is the value of the dimension.  If a dimension does
       not appear in the map of dimensions, the dimensions info applies to all
       the dimension values except for those that have another DimenisonInfo
       instance configured for the specific value.
       Example: {"provider" : "Foo Inc"} where "provider" is a service specific
       dimension of a quota.
       
      map<string, string> dimensions = 1;
      Specified by:
      getDimensionsOrThrow in interface DimensionsInfoOrBuilder
    • clearDimensions

      public DimensionsInfo.Builder clearDimensions()
    • removeDimensions

      public DimensionsInfo.Builder removeDimensions(String key)
       The map of dimensions for this dimensions info. The key of a map entry
       is "region", "zone" or the name of a service specific dimension, and the
       value of a map entry is the value of the dimension.  If a dimension does
       not appear in the map of dimensions, the dimensions info applies to all
       the dimension values except for those that have another DimenisonInfo
       instance configured for the specific value.
       Example: {"provider" : "Foo Inc"} where "provider" is a service specific
       dimension of a quota.
       
      map<string, string> dimensions = 1;
    • getMutableDimensions

      @Deprecated public Map<String,String> getMutableDimensions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putDimensions

      public DimensionsInfo.Builder putDimensions(String key, String value)
       The map of dimensions for this dimensions info. The key of a map entry
       is "region", "zone" or the name of a service specific dimension, and the
       value of a map entry is the value of the dimension.  If a dimension does
       not appear in the map of dimensions, the dimensions info applies to all
       the dimension values except for those that have another DimenisonInfo
       instance configured for the specific value.
       Example: {"provider" : "Foo Inc"} where "provider" is a service specific
       dimension of a quota.
       
      map<string, string> dimensions = 1;
    • putAllDimensions

      public DimensionsInfo.Builder putAllDimensions(Map<String,String> values)
       The map of dimensions for this dimensions info. The key of a map entry
       is "region", "zone" or the name of a service specific dimension, and the
       value of a map entry is the value of the dimension.  If a dimension does
       not appear in the map of dimensions, the dimensions info applies to all
       the dimension values except for those that have another DimenisonInfo
       instance configured for the specific value.
       Example: {"provider" : "Foo Inc"} where "provider" is a service specific
       dimension of a quota.
       
      map<string, string> dimensions = 1;
    • hasDetails

      public boolean hasDetails()
       Quota details for the specified dimensions.
       
      .google.api.cloudquotas.v1.QuotaDetails details = 2;
      Specified by:
      hasDetails in interface DimensionsInfoOrBuilder
      Returns:
      Whether the details field is set.
    • getDetails

      public QuotaDetails getDetails()
       Quota details for the specified dimensions.
       
      .google.api.cloudquotas.v1.QuotaDetails details = 2;
      Specified by:
      getDetails in interface DimensionsInfoOrBuilder
      Returns:
      The details.
    • setDetails

      public DimensionsInfo.Builder setDetails(QuotaDetails value)
       Quota details for the specified dimensions.
       
      .google.api.cloudquotas.v1.QuotaDetails details = 2;
    • setDetails

      public DimensionsInfo.Builder setDetails(QuotaDetails.Builder builderForValue)
       Quota details for the specified dimensions.
       
      .google.api.cloudquotas.v1.QuotaDetails details = 2;
    • mergeDetails

      public DimensionsInfo.Builder mergeDetails(QuotaDetails value)
       Quota details for the specified dimensions.
       
      .google.api.cloudquotas.v1.QuotaDetails details = 2;
    • clearDetails

      public DimensionsInfo.Builder clearDetails()
       Quota details for the specified dimensions.
       
      .google.api.cloudquotas.v1.QuotaDetails details = 2;
    • getDetailsBuilder

      public QuotaDetails.Builder getDetailsBuilder()
       Quota details for the specified dimensions.
       
      .google.api.cloudquotas.v1.QuotaDetails details = 2;
    • getDetailsOrBuilder

      public QuotaDetailsOrBuilder getDetailsOrBuilder()
       Quota details for the specified dimensions.
       
      .google.api.cloudquotas.v1.QuotaDetails details = 2;
      Specified by:
      getDetailsOrBuilder in interface DimensionsInfoOrBuilder
    • getApplicableLocationsList

      public com.google.protobuf.ProtocolStringList getApplicableLocationsList()
       The applicable regions or zones of this dimensions info. The field will be
       set to ['global'] for quotas that are not per region or per zone.
       Otherwise, it will be set to the list of locations this dimension info is
       applicable to.
       
      repeated string applicable_locations = 3;
      Specified by:
      getApplicableLocationsList in interface DimensionsInfoOrBuilder
      Returns:
      A list containing the applicableLocations.
    • getApplicableLocationsCount

      public int getApplicableLocationsCount()
       The applicable regions or zones of this dimensions info. The field will be
       set to ['global'] for quotas that are not per region or per zone.
       Otherwise, it will be set to the list of locations this dimension info is
       applicable to.
       
      repeated string applicable_locations = 3;
      Specified by:
      getApplicableLocationsCount in interface DimensionsInfoOrBuilder
      Returns:
      The count of applicableLocations.
    • getApplicableLocations

      public String getApplicableLocations(int index)
       The applicable regions or zones of this dimensions info. The field will be
       set to ['global'] for quotas that are not per region or per zone.
       Otherwise, it will be set to the list of locations this dimension info is
       applicable to.
       
      repeated string applicable_locations = 3;
      Specified by:
      getApplicableLocations in interface DimensionsInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The applicableLocations at the given index.
    • getApplicableLocationsBytes

      public com.google.protobuf.ByteString getApplicableLocationsBytes(int index)
       The applicable regions or zones of this dimensions info. The field will be
       set to ['global'] for quotas that are not per region or per zone.
       Otherwise, it will be set to the list of locations this dimension info is
       applicable to.
       
      repeated string applicable_locations = 3;
      Specified by:
      getApplicableLocationsBytes in interface DimensionsInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the applicableLocations at the given index.
    • setApplicableLocations

      public DimensionsInfo.Builder setApplicableLocations(int index, String value)
       The applicable regions or zones of this dimensions info. The field will be
       set to ['global'] for quotas that are not per region or per zone.
       Otherwise, it will be set to the list of locations this dimension info is
       applicable to.
       
      repeated string applicable_locations = 3;
      Parameters:
      index - The index to set the value at.
      value - The applicableLocations to set.
      Returns:
      This builder for chaining.
    • addApplicableLocations

      public DimensionsInfo.Builder addApplicableLocations(String value)
       The applicable regions or zones of this dimensions info. The field will be
       set to ['global'] for quotas that are not per region or per zone.
       Otherwise, it will be set to the list of locations this dimension info is
       applicable to.
       
      repeated string applicable_locations = 3;
      Parameters:
      value - The applicableLocations to add.
      Returns:
      This builder for chaining.
    • addAllApplicableLocations

      public DimensionsInfo.Builder addAllApplicableLocations(Iterable<String> values)
       The applicable regions or zones of this dimensions info. The field will be
       set to ['global'] for quotas that are not per region or per zone.
       Otherwise, it will be set to the list of locations this dimension info is
       applicable to.
       
      repeated string applicable_locations = 3;
      Parameters:
      values - The applicableLocations to add.
      Returns:
      This builder for chaining.
    • clearApplicableLocations

      public DimensionsInfo.Builder clearApplicableLocations()
       The applicable regions or zones of this dimensions info. The field will be
       set to ['global'] for quotas that are not per region or per zone.
       Otherwise, it will be set to the list of locations this dimension info is
       applicable to.
       
      repeated string applicable_locations = 3;
      Returns:
      This builder for chaining.
    • addApplicableLocationsBytes

      public DimensionsInfo.Builder addApplicableLocationsBytes(com.google.protobuf.ByteString value)
       The applicable regions or zones of this dimensions info. The field will be
       set to ['global'] for quotas that are not per region or per zone.
       Otherwise, it will be set to the list of locations this dimension info is
       applicable to.
       
      repeated string applicable_locations = 3;
      Parameters:
      value - The bytes of the applicableLocations to add.
      Returns:
      This builder for chaining.