Package com.google.rpc
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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllViolations
(Iterable<? extends QuotaFailure.Violation> values) Describes all quota violations.addViolations
(int index, QuotaFailure.Violation value) Describes all quota violations.addViolations
(int index, QuotaFailure.Violation.Builder builderForValue) Describes all quota violations.Describes all quota violations.addViolations
(QuotaFailure.Violation.Builder builderForValue) Describes all quota violations.Describes all quota violations.getViolations
(int index) Describes all quota violations.int
Describes all quota violations.Describes all quota violations.removeViolations
(int index) Describes all quota violations.setViolations
(int index, QuotaFailure.Violation value) Describes all quota violations.setViolations
(int index, QuotaFailure.Violation.Builder builderForValue) Describes all quota violations.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getViolationsList
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
- Specified by:
getViolationsList
in interfaceQuotaFailureOrBuilder
-
getViolationsCount
public int getViolationsCount()Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
- Specified by:
getViolationsCount
in interfaceQuotaFailureOrBuilder
-
getViolations
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
- Specified by:
getViolations
in interfaceQuotaFailureOrBuilder
-
setViolations
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
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
-
addViolations
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
-
addViolations
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
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
-
clearViolations
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
-
removeViolations
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1 [json_name = "violations"];
-