Class QuotaFailure.Violation.Builder (2.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QuotaFailure.Violation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QuotaFailure.Violation.Builder
Overrides

build()

public QuotaFailure.Violation build()
Returns
TypeDescription
QuotaFailure.Violation

buildPartial()

public QuotaFailure.Violation buildPartial()
Returns
TypeDescription
QuotaFailure.Violation

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public QuotaFailure.Violation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
QuotaFailure.Violation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QuotaFailure.Violation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
QuotaFailure.Violation.Builder

This builder for chaining.

clone()

public QuotaFailure.Violation.Builder clone()
Returns
TypeDescription
QuotaFailure.Violation.Builder
Overrides

getDefaultInstanceForType()

public QuotaFailure.Violation getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for subject.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QuotaFailure.Violation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaFailure.Violation.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public QuotaFailure.Violation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
QuotaFailure.Violation.Builder
Overrides

mergeFrom(QuotaFailure.Violation other)

public QuotaFailure.Violation.Builder mergeFrom(QuotaFailure.Violation other)
Parameter
NameDescription
otherQuotaFailure.Violation
Returns
TypeDescription
QuotaFailure.Violation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QuotaFailure.Violation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
QuotaFailure.Violation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public QuotaFailure.Violation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The subject to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for subject to set.

Returns
TypeDescription
QuotaFailure.Violation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QuotaFailure.Violation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QuotaFailure.Violation.Builder
Overrides