Class QuotaFailure.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<QuotaFailure,QuotaFailure.Builder>
com.google.rpc.QuotaFailure.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, QuotaFailureOrBuilder, Cloneable
Enclosing class:
QuotaFailure

public static final class QuotaFailure.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<QuotaFailure,QuotaFailure.Builder> implements QuotaFailureOrBuilder
 Describes how a quota check failed.

 For example if a daily limit was exceeded for the calling project,
 a service could respond with a QuotaFailure detail containing the project
 id and the description of the quota limit that was exceeded.  If the
 calling project hasn't enabled the service in the developer console, then
 a service could respond with the project id and set `service_disabled`
 to true.

 Also see RetryInfo and Help types for other details about handling a
 quota failure.
 
Protobuf type google.rpc.QuotaFailure
  • Method Details

    • getViolationsList

      public List<QuotaFailure.Violation> getViolationsList()
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
      Specified by:
      getViolationsList in interface QuotaFailureOrBuilder
    • getViolationsCount

      public int getViolationsCount()
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
      Specified by:
      getViolationsCount in interface QuotaFailureOrBuilder
    • getViolations

      public QuotaFailure.Violation getViolations(int index)
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
      Specified by:
      getViolations in interface QuotaFailureOrBuilder
    • setViolations

      public QuotaFailure.Builder setViolations(int index, QuotaFailure.Violation value)
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
    • setViolations

      public QuotaFailure.Builder setViolations(int index, QuotaFailure.Violation.Builder builderForValue)
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
    • addViolations

      public QuotaFailure.Builder addViolations(QuotaFailure.Violation value)
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
    • addViolations

      public QuotaFailure.Builder addViolations(int index, QuotaFailure.Violation value)
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
    • addViolations

      public QuotaFailure.Builder addViolations(QuotaFailure.Violation.Builder builderForValue)
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
    • addViolations

      public QuotaFailure.Builder addViolations(int index, QuotaFailure.Violation.Builder builderForValue)
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
    • addAllViolations

      public QuotaFailure.Builder addAllViolations(Iterable<? extends QuotaFailure.Violation> values)
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
    • clearViolations

      public QuotaFailure.Builder clearViolations()
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
    • removeViolations

      public QuotaFailure.Builder removeViolations(int index)
       Describes all quota violations.
       
      repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];