Class QuotaFailure.Violation.Builder (2.46.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QuotaFailure.Violation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QuotaFailure.Violation.Builder
Overrides

build()

public QuotaFailure.Violation build()
Returns
Type Description
QuotaFailure.Violation

buildPartial()

public QuotaFailure.Violation buildPartial()
Returns
Type Description
QuotaFailure.Violation

clear()

public QuotaFailure.Violation.Builder clear()
Returns
Type Description
QuotaFailure.Violation.Builder
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
Type Description
QuotaFailure.Violation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public QuotaFailure.Violation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QuotaFailure.Violation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QuotaFailure.Violation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QuotaFailure.Violation.Builder
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
Type Description
QuotaFailure.Violation.Builder

This builder for chaining.

clone()

public QuotaFailure.Violation.Builder clone()
Returns
Type Description
QuotaFailure.Violation.Builder
Overrides

getDefaultInstanceForType()

public QuotaFailure.Violation getDefaultInstanceForType()
Returns
Type Description
QuotaFailure.Violation

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
Type Description
Descriptor
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
Type Description
ByteString

The bytes for subject.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QuotaFailure.Violation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaFailure.Violation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QuotaFailure.Violation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QuotaFailure.Violation.Builder
Overrides

mergeFrom(QuotaFailure.Violation other)

public QuotaFailure.Violation.Builder mergeFrom(QuotaFailure.Violation other)
Parameter
Name Description
other QuotaFailure.Violation
Returns
Type Description
QuotaFailure.Violation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QuotaFailure.Violation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QuotaFailure.Violation.Builder
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
Type Description
QuotaFailure.Violation.Builder

This builder for chaining.

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
Type Description
QuotaFailure.Violation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public QuotaFailure.Violation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QuotaFailure.Violation.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public QuotaFailure.Violation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QuotaFailure.Violation.Builder
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
Type Description
QuotaFailure.Violation.Builder

This builder for chaining.

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
Type Description
QuotaFailure.Violation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QuotaFailure.Violation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QuotaFailure.Violation.Builder
Overrides