public static final class QuotaFailure.Violation.Builder extends GeneratedMessageV3.Builder<QuotaFailure.Violation.Builder> implements QuotaFailure.ViolationOrBuilder
A message type used to describe a single quota violation. For example, a
daily quota or a custom quota that was exceeded.
Protobuf type google.rpc.QuotaFailure.Violation
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QuotaFailure.Violation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public QuotaFailure.Violation build()
Returns
buildPartial()
public QuotaFailure.Violation buildPartial()
Returns
clear()
public QuotaFailure.Violation.Builder clear()
Returns
Overrides
clearDescription()
public QuotaFailure.Violation.Builder clearDescription()
A description of how the quota check failed. Clients can use this
description to find more about the quota configuration in the service's
public documentation, or find the relevant quota limit to adjust through
developer console.
For example: "Service disabled" or "Daily Limit for read operations
exceeded".
string description = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public QuotaFailure.Violation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public QuotaFailure.Violation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSubject()
public QuotaFailure.Violation.Builder clearSubject()
The subject on which the quota check failed.
For example, "clientip:<ip address of client>" or "project:<Google
developer project id>".
string subject = 1;
Returns
clone()
public QuotaFailure.Violation.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public QuotaFailure.Violation getDefaultInstanceForType()
Returns
getDescription()
public String getDescription()
A description of how the quota check failed. Clients can use this
description to find more about the quota configuration in the service's
public documentation, or find the relevant quota limit to adjust through
developer console.
For example: "Service disabled" or "Daily Limit for read operations
exceeded".
string description = 2;
Returns
Type | Description |
String | The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
A description of how the quota check failed. Clients can use this
description to find more about the quota configuration in the service's
public documentation, or find the relevant quota limit to adjust through
developer console.
For example: "Service disabled" or "Daily Limit for read operations
exceeded".
string description = 2;
Returns
Type | Description |
ByteString | The bytes for description.
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getSubject()
public String getSubject()
The subject on which the quota check failed.
For example, "clientip:<ip address of client>" or "project:<Google
developer project id>".
string subject = 1;
Returns
Type | Description |
String | The subject.
|
getSubjectBytes()
public ByteString getSubjectBytes()
The subject on which the quota check failed.
For example, "clientip:<ip address of client>" or "project:<Google
developer project id>".
string subject = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public QuotaFailure.Violation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public QuotaFailure.Violation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(QuotaFailure.Violation other)
public QuotaFailure.Violation.Builder mergeFrom(QuotaFailure.Violation other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QuotaFailure.Violation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setDescription(String value)
public QuotaFailure.Violation.Builder setDescription(String value)
A description of how the quota check failed. Clients can use this
description to find more about the quota configuration in the service's
public documentation, or find the relevant quota limit to adjust through
developer console.
For example: "Service disabled" or "Daily Limit for read operations
exceeded".
string description = 2;
Parameter
Name | Description |
value | String
The description to set.
|
Returns
setDescriptionBytes(ByteString value)
public QuotaFailure.Violation.Builder setDescriptionBytes(ByteString value)
A description of how the quota check failed. Clients can use this
description to find more about the quota configuration in the service's
public documentation, or find the relevant quota limit to adjust through
developer console.
For example: "Service disabled" or "Daily Limit for read operations
exceeded".
string description = 2;
Parameter
Name | Description |
value | ByteString
The bytes for description to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public QuotaFailure.Violation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QuotaFailure.Violation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSubject(String value)
public QuotaFailure.Violation.Builder setSubject(String value)
The subject on which the quota check failed.
For example, "clientip:<ip address of client>" or "project:<Google
developer project id>".
string subject = 1;
Parameter
Name | Description |
value | String
The subject to set.
|
Returns
setSubjectBytes(ByteString value)
public QuotaFailure.Violation.Builder setSubjectBytes(ByteString value)
The subject on which the quota check failed.
For example, "clientip:<ip address of client>" or "project:<Google
developer project id>".
string subject = 1;
Parameter
Name | Description |
value | ByteString
The bytes for subject to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final QuotaFailure.Violation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides