Class QuotaExceededInfo.Builder

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

public static final class QuotaExceededInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<QuotaExceededInfo.Builder> implements QuotaExceededInfoOrBuilder
 Additional details for quota exceeded error for resource quota.
 
Protobuf type google.cloud.compute.v1.QuotaExceededInfo
  • 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<QuotaExceededInfo.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public QuotaExceededInfo.Builder mergeFrom(QuotaExceededInfo other)
    • isInitialized

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

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

      public int getDimensionsCount()
      Description copied from interface: QuotaExceededInfoOrBuilder
       The map holding related quota dimensions.
       
      map<string, string> dimensions = 414334925;
      Specified by:
      getDimensionsCount in interface QuotaExceededInfoOrBuilder
    • containsDimensions

      public boolean containsDimensions(String key)
       The map holding related quota dimensions.
       
      map<string, string> dimensions = 414334925;
      Specified by:
      containsDimensions in interface QuotaExceededInfoOrBuilder
    • getDimensions

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

      public Map<String,String> getDimensionsMap()
       The map holding related quota dimensions.
       
      map<string, string> dimensions = 414334925;
      Specified by:
      getDimensionsMap in interface QuotaExceededInfoOrBuilder
    • getDimensionsOrDefault

      public String getDimensionsOrDefault(String key, String defaultValue)
       The map holding related quota dimensions.
       
      map<string, string> dimensions = 414334925;
      Specified by:
      getDimensionsOrDefault in interface QuotaExceededInfoOrBuilder
    • getDimensionsOrThrow

      public String getDimensionsOrThrow(String key)
       The map holding related quota dimensions.
       
      map<string, string> dimensions = 414334925;
      Specified by:
      getDimensionsOrThrow in interface QuotaExceededInfoOrBuilder
    • clearDimensions

      public QuotaExceededInfo.Builder clearDimensions()
    • removeDimensions

      public QuotaExceededInfo.Builder removeDimensions(String key)
       The map holding related quota dimensions.
       
      map<string, string> dimensions = 414334925;
    • getMutableDimensions

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

      public QuotaExceededInfo.Builder putDimensions(String key, String value)
       The map holding related quota dimensions.
       
      map<string, string> dimensions = 414334925;
    • putAllDimensions

      public QuotaExceededInfo.Builder putAllDimensions(Map<String,String> values)
       The map holding related quota dimensions.
       
      map<string, string> dimensions = 414334925;
    • hasFutureLimit

      public boolean hasFutureLimit()
       Future quota limit being rolled out. The limit's unit depends on the quota
       type or metric.
       
      optional double future_limit = 456564287;
      Specified by:
      hasFutureLimit in interface QuotaExceededInfoOrBuilder
      Returns:
      Whether the futureLimit field is set.
    • getFutureLimit

      public double getFutureLimit()
       Future quota limit being rolled out. The limit's unit depends on the quota
       type or metric.
       
      optional double future_limit = 456564287;
      Specified by:
      getFutureLimit in interface QuotaExceededInfoOrBuilder
      Returns:
      The futureLimit.
    • setFutureLimit

      public QuotaExceededInfo.Builder setFutureLimit(double value)
       Future quota limit being rolled out. The limit's unit depends on the quota
       type or metric.
       
      optional double future_limit = 456564287;
      Parameters:
      value - The futureLimit to set.
      Returns:
      This builder for chaining.
    • clearFutureLimit

      public QuotaExceededInfo.Builder clearFutureLimit()
       Future quota limit being rolled out. The limit's unit depends on the quota
       type or metric.
       
      optional double future_limit = 456564287;
      Returns:
      This builder for chaining.
    • hasLimit

      public boolean hasLimit()
       Current effective quota limit. The limit's unit depends on the quota type
       or metric.
       
      optional double limit = 102976443;
      Specified by:
      hasLimit in interface QuotaExceededInfoOrBuilder
      Returns:
      Whether the limit field is set.
    • getLimit

      public double getLimit()
       Current effective quota limit. The limit's unit depends on the quota type
       or metric.
       
      optional double limit = 102976443;
      Specified by:
      getLimit in interface QuotaExceededInfoOrBuilder
      Returns:
      The limit.
    • setLimit

      public QuotaExceededInfo.Builder setLimit(double value)
       Current effective quota limit. The limit's unit depends on the quota type
       or metric.
       
      optional double limit = 102976443;
      Parameters:
      value - The limit to set.
      Returns:
      This builder for chaining.
    • clearLimit

      public QuotaExceededInfo.Builder clearLimit()
       Current effective quota limit. The limit's unit depends on the quota type
       or metric.
       
      optional double limit = 102976443;
      Returns:
      This builder for chaining.
    • hasLimitName

      public boolean hasLimitName()
       The name of the quota limit.
       
      optional string limit_name = 398197903;
      Specified by:
      hasLimitName in interface QuotaExceededInfoOrBuilder
      Returns:
      Whether the limitName field is set.
    • getLimitName

      public String getLimitName()
       The name of the quota limit.
       
      optional string limit_name = 398197903;
      Specified by:
      getLimitName in interface QuotaExceededInfoOrBuilder
      Returns:
      The limitName.
    • getLimitNameBytes

      public com.google.protobuf.ByteString getLimitNameBytes()
       The name of the quota limit.
       
      optional string limit_name = 398197903;
      Specified by:
      getLimitNameBytes in interface QuotaExceededInfoOrBuilder
      Returns:
      The bytes for limitName.
    • setLimitName

      public QuotaExceededInfo.Builder setLimitName(String value)
       The name of the quota limit.
       
      optional string limit_name = 398197903;
      Parameters:
      value - The limitName to set.
      Returns:
      This builder for chaining.
    • clearLimitName

      public QuotaExceededInfo.Builder clearLimitName()
       The name of the quota limit.
       
      optional string limit_name = 398197903;
      Returns:
      This builder for chaining.
    • setLimitNameBytes

      public QuotaExceededInfo.Builder setLimitNameBytes(com.google.protobuf.ByteString value)
       The name of the quota limit.
       
      optional string limit_name = 398197903;
      Parameters:
      value - The bytes for limitName to set.
      Returns:
      This builder for chaining.
    • hasMetricName

      public boolean hasMetricName()
       The Compute Engine quota metric name.
       
      optional string metric_name = 409881530;
      Specified by:
      hasMetricName in interface QuotaExceededInfoOrBuilder
      Returns:
      Whether the metricName field is set.
    • getMetricName

      public String getMetricName()
       The Compute Engine quota metric name.
       
      optional string metric_name = 409881530;
      Specified by:
      getMetricName in interface QuotaExceededInfoOrBuilder
      Returns:
      The metricName.
    • getMetricNameBytes

      public com.google.protobuf.ByteString getMetricNameBytes()
       The Compute Engine quota metric name.
       
      optional string metric_name = 409881530;
      Specified by:
      getMetricNameBytes in interface QuotaExceededInfoOrBuilder
      Returns:
      The bytes for metricName.
    • setMetricName

      public QuotaExceededInfo.Builder setMetricName(String value)
       The Compute Engine quota metric name.
       
      optional string metric_name = 409881530;
      Parameters:
      value - The metricName to set.
      Returns:
      This builder for chaining.
    • clearMetricName

      public QuotaExceededInfo.Builder clearMetricName()
       The Compute Engine quota metric name.
       
      optional string metric_name = 409881530;
      Returns:
      This builder for chaining.
    • setMetricNameBytes

      public QuotaExceededInfo.Builder setMetricNameBytes(com.google.protobuf.ByteString value)
       The Compute Engine quota metric name.
       
      optional string metric_name = 409881530;
      Parameters:
      value - The bytes for metricName to set.
      Returns:
      This builder for chaining.
    • hasRolloutStatus

      public boolean hasRolloutStatus()
       Rollout status of the future quota limit.
       Check the RolloutStatus enum for the list of possible values.
       
      optional string rollout_status = 476426816;
      Specified by:
      hasRolloutStatus in interface QuotaExceededInfoOrBuilder
      Returns:
      Whether the rolloutStatus field is set.
    • getRolloutStatus

      public String getRolloutStatus()
       Rollout status of the future quota limit.
       Check the RolloutStatus enum for the list of possible values.
       
      optional string rollout_status = 476426816;
      Specified by:
      getRolloutStatus in interface QuotaExceededInfoOrBuilder
      Returns:
      The rolloutStatus.
    • getRolloutStatusBytes

      public com.google.protobuf.ByteString getRolloutStatusBytes()
       Rollout status of the future quota limit.
       Check the RolloutStatus enum for the list of possible values.
       
      optional string rollout_status = 476426816;
      Specified by:
      getRolloutStatusBytes in interface QuotaExceededInfoOrBuilder
      Returns:
      The bytes for rolloutStatus.
    • setRolloutStatus

      public QuotaExceededInfo.Builder setRolloutStatus(String value)
       Rollout status of the future quota limit.
       Check the RolloutStatus enum for the list of possible values.
       
      optional string rollout_status = 476426816;
      Parameters:
      value - The rolloutStatus to set.
      Returns:
      This builder for chaining.
    • clearRolloutStatus

      public QuotaExceededInfo.Builder clearRolloutStatus()
       Rollout status of the future quota limit.
       Check the RolloutStatus enum for the list of possible values.
       
      optional string rollout_status = 476426816;
      Returns:
      This builder for chaining.
    • setRolloutStatusBytes

      public QuotaExceededInfo.Builder setRolloutStatusBytes(com.google.protobuf.ByteString value)
       Rollout status of the future quota limit.
       Check the RolloutStatus enum for the list of possible values.
       
      optional string rollout_status = 476426816;
      Parameters:
      value - The bytes for rolloutStatus to set.
      Returns:
      This builder for chaining.