Send feedback
Class QuotaFailure.Builder (2.14.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.14.2 keyboard_arrow_down
public static final class QuotaFailure . Builder extends GeneratedMessageV3 . Builder<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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addAllViolations(Iterable<? extends QuotaFailure.Violation> values)
public QuotaFailure . Builder addAllViolations ( Iterable <? extends QuotaFailure . Violation > values )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameter
Name Description values
Iterable <? extends com.google.rpc.QuotaFailure.Violation >
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QuotaFailure . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
addViolations(QuotaFailure.Violation value)
public QuotaFailure . Builder addViolations ( QuotaFailure . Violation value )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameter
Returns
addViolations(QuotaFailure.Violation.Builder builderForValue)
public QuotaFailure . Builder addViolations ( QuotaFailure . Violation . Builder builderForValue )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameter
Returns
addViolations(int index, QuotaFailure.Violation value)
public QuotaFailure . Builder addViolations ( int index , QuotaFailure . Violation value )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameters
Returns
addViolations(int index, QuotaFailure.Violation.Builder builderForValue)
public QuotaFailure . Builder addViolations ( int index , QuotaFailure . Violation . Builder builderForValue )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameters
Returns
addViolationsBuilder()
public QuotaFailure . Violation . Builder addViolationsBuilder ()
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Returns
addViolationsBuilder(int index)
public QuotaFailure . Violation . Builder addViolationsBuilder ( int index )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameter
Returns
build()
public QuotaFailure build ()
Returns
buildPartial()
public QuotaFailure buildPartial ()
Returns
clear()
public QuotaFailure . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public QuotaFailure . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public QuotaFailure . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearViolations()
public QuotaFailure . Builder clearViolations ()
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Returns
clone()
public QuotaFailure . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public QuotaFailure getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getViolations(int index)
public QuotaFailure . Violation getViolations ( int index )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameter
Returns
getViolationsBuilder(int index)
public QuotaFailure . Violation . Builder getViolationsBuilder ( int index )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameter
Returns
getViolationsBuilderList()
public List<QuotaFailure . Violation . Builder > getViolationsBuilderList ()
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Returns
getViolationsCount()
public int getViolationsCount ()
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Returns
getViolationsList()
public List<QuotaFailure . Violation > getViolationsList ()
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Returns
getViolationsOrBuilder(int index)
public QuotaFailure . ViolationOrBuilder getViolationsOrBuilder ( int index )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameter
Returns
getViolationsOrBuilderList()
public List <? extends QuotaFailure . ViolationOrBuilder > getViolationsOrBuilderList ()
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Returns
Type Description List <? extends com.google.rpc.QuotaFailure.ViolationOrBuilder >
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
public QuotaFailure . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public QuotaFailure . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeFrom(QuotaFailure other)
public QuotaFailure . Builder mergeFrom ( QuotaFailure other )
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QuotaFailure . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
removeViolations(int index)
public QuotaFailure . Builder removeViolations ( int index )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public QuotaFailure . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QuotaFailure . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final QuotaFailure . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setViolations(int index, QuotaFailure.Violation value)
public QuotaFailure . Builder setViolations ( int index , QuotaFailure . Violation value )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameters
Returns
setViolations(int index, QuotaFailure.Violation.Builder builderForValue)
public QuotaFailure . Builder setViolations ( int index , QuotaFailure . Violation . Builder builderForValue )
Describes all quota violations.
repeated .google.rpc.QuotaFailure.Violation violations = 1;
Parameters
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]