nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spanner-jdbc Show documentation
Show all versions of spanner-jdbc Show documentation
JDBC Driver for Google Cloud Spanner
// Generated by the protocol buffer nl.topicus.jdbc.shaded.com.iler. DO NOT EDIT!
// source: google/rpc/error_details.proto
package nl.topicus.jdbc.shaded.com.google.rpc;
/**
*
* 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 RetryDetail and Help types for other details about handling a
* quota failure.
*
*
* Protobuf type {@code google.rpc.QuotaFailure}
*/
public final class QuotaFailure extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.rpc.QuotaFailure)
QuotaFailureOrBuilder {
// Use QuotaFailure.newBuilder() to construct.
private QuotaFailure(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QuotaFailure() {
violations_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private QuotaFailure(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
violations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
violations_.add(
input.readMessage(nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.parser(), extensionRegistry));
break;
}
}
}
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.nl.topicus.jdbc.shaded.io.IOException e) {
throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
violations_ = java.util.Collections.unmodifiableList(violations_);
}
makeExtensionsImmutable();
}
}
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.class, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Builder.class);
}
public interface ViolationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.QuotaFailure.Violation)
nl.topicus.jdbc.shaded.com.google.protobuf.MessageOrBuilder {
/**
*
* The subject on which the quota check failed.
* For example, "clientip:<ip address of client>" or "project:<Google
* developer project id>".
*
*
* string subject = 1;
*/
java.lang.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;
*/
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getSubjectBytes();
/**
*
* 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;
*/
java.lang.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;
*/
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getDescriptionBytes();
}
/**
*
* A message type used to describe a single quota violation. For example, a
* daily quota or a custom quota that was exceeded.
*
*
* Protobuf type {@code google.rpc.QuotaFailure.Violation}
*/
public static final class Violation extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.rpc.QuotaFailure.Violation)
ViolationOrBuilder {
// Use Violation.newBuilder() to construct.
private Violation(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Violation() {
subject_ = "";
description_ = "";
}
@java.lang.Override
public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Violation(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
subject_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
}
}
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.nl.topicus.jdbc.shaded.io.IOException e) {
throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_Violation_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_Violation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.class, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.Builder.class);
}
public static final int SUBJECT_FIELD_NUMBER = 1;
private volatile java.lang.Object subject_;
/**
*
* The subject on which the quota check failed.
* For example, "clientip:<ip address of client>" or "project:<Google
* developer project id>".
*
*
* string subject = 1;
*/
public java.lang.String getSubject() {
java.lang.Object ref = subject_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subject_ = s;
return s;
}
}
/**
*
* The subject on which the quota check failed.
* For example, "clientip:<ip address of client>" or "project:<Google
* developer project id>".
*
*
* string subject = 1;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getSubjectBytes() {
java.lang.Object ref = subject_;
if (ref instanceof java.lang.String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subject_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
private volatile java.lang.Object description_;
/**
*
* 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;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* 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;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output)
throws java.nl.topicus.jdbc.shaded.io.IOException {
if (!getSubjectBytes().isEmpty()) {
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subject_);
}
if (!getDescriptionBytes().isEmpty()) {
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSubjectBytes().isEmpty()) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.nl.topicus.jdbc.shaded.com.uteStringSize(1, subject_);
}
if (!getDescriptionBytes().isEmpty()) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.nl.topicus.jdbc.shaded.com.uteStringSize(2, description_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation)) {
return super.equals(obj);
}
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation other = (nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation) obj;
boolean result = true;
result = result && getSubject()
.equals(other.getSubject());
result = result && getDescription()
.equals(other.getDescription());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SUBJECT_FIELD_NUMBER;
hash = (53 * hash) + getSubject().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseFrom(
java.nio.ByteBuffer data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseFrom(
java.nio.ByteBuffer data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseFrom(byte[] data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseFrom(
byte[] data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseFrom(java.nl.topicus.jdbc.shaded.io.InputStream input)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseFrom(
java.nl.topicus.jdbc.shaded.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseDelimitedFrom(java.nl.topicus.jdbc.shaded.io.InputStream input)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseDelimitedFrom(
java.nl.topicus.jdbc.shaded.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A message type used to describe a single quota violation. For example, a
* daily quota or a custom quota that was exceeded.
*
*
* Protobuf type {@code google.rpc.QuotaFailure.Violation}
*/
public static final class Builder extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.rpc.QuotaFailure.Violation)
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.ViolationOrBuilder {
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_Violation_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_Violation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.class, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.Builder.class);
}
// Construct using nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
subject_ = "";
description_ = "";
return this;
}
public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return nl.topicus.jdbc.shaded.com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_Violation_descriptor;
}
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation getDefaultInstanceForType() {
return nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.getDefaultInstance();
}
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation build() {
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation buildPartial() {
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation result = new nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation(this);
result.subject_ = subject_;
result.description_ = description_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) {
if (other instanceof nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation) {
return mergeFrom((nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation other) {
if (other == nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.getDefaultInstance()) return this;
if (!other.getSubject().isEmpty()) {
subject_ = other.subject_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object subject_ = "";
/**
*
* The subject on which the quota check failed.
* For example, "clientip:<ip address of client>" or "project:<Google
* developer project id>".
*
*
* string subject = 1;
*/
public java.lang.String getSubject() {
java.lang.Object ref = subject_;
if (!(ref instanceof java.lang.String)) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subject_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The subject on which the quota check failed.
* For example, "clientip:<ip address of client>" or "project:<Google
* developer project id>".
*
*
* string subject = 1;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getSubjectBytes() {
java.lang.Object ref = subject_;
if (ref instanceof String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subject_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* The subject on which the quota check failed.
* For example, "clientip:<ip address of client>" or "project:<Google
* developer project id>".
*
*
* string subject = 1;
*/
public Builder setSubject(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subject_ = value;
onChanged();
return this;
}
/**
*
* The subject on which the quota check failed.
* For example, "clientip:<ip address of client>" or "project:<Google
* developer project id>".
*
*
* string subject = 1;
*/
public Builder clearSubject() {
subject_ = getDefaultInstance().getSubject();
onChanged();
return this;
}
/**
*
* The subject on which the quota check failed.
* For example, "clientip:<ip address of client>" or "project:<Google
* developer project id>".
*
*
* string subject = 1;
*/
public Builder setSubjectBytes(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subject_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* 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;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* 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;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* 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;
*/
public Builder setDescriptionBytes(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:google.rpc.QuotaFailure.Violation)
}
// @@protoc_insertion_point(class_scope:google.rpc.QuotaFailure.Violation)
private static final nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation();
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser
PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() {
public Violation parsePartialFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new Violation(input, extensionRegistry);
}
};
public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int VIOLATIONS_FIELD_NUMBER = 1;
private java.util.List violations_;
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public java.util.List getViolationsList() {
return violations_;
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public java.util.List extends nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.ViolationOrBuilder>
getViolationsOrBuilderList() {
return violations_;
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public int getViolationsCount() {
return violations_.size();
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation getViolations(int index) {
return violations_.get(index);
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder(
int index) {
return violations_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output)
throws java.nl.topicus.jdbc.shaded.io.IOException {
for (int i = 0; i < violations_.size(); i++) {
output.writeMessage(1, violations_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < violations_.size(); i++) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.nl.topicus.jdbc.shaded.com.uteMessageSize(1, violations_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure)) {
return super.equals(obj);
}
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure other = (nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure) obj;
boolean result = true;
result = result && getViolationsList()
.equals(other.getViolationsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getViolationsCount() > 0) {
hash = (37 * hash) + VIOLATIONS_FIELD_NUMBER;
hash = (53 * hash) + getViolationsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseFrom(
java.nio.ByteBuffer data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseFrom(
java.nio.ByteBuffer data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseFrom(byte[] data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseFrom(
byte[] data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseFrom(java.nl.topicus.jdbc.shaded.io.InputStream input)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseFrom(
java.nl.topicus.jdbc.shaded.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseDelimitedFrom(java.nl.topicus.jdbc.shaded.io.InputStream input)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseDelimitedFrom(
java.nl.topicus.jdbc.shaded.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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 RetryDetail and Help types for other details about handling a
* quota failure.
*
*
* Protobuf type {@code google.rpc.QuotaFailure}
*/
public static final class Builder extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.rpc.QuotaFailure)
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailureOrBuilder {
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.class, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Builder.class);
}
// Construct using nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getViolationsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (violationsBuilder_ == null) {
violations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
violationsBuilder_.clear();
}
return this;
}
public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return nl.topicus.jdbc.shaded.com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_descriptor;
}
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure getDefaultInstanceForType() {
return nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.getDefaultInstance();
}
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure build() {
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure buildPartial() {
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure result = new nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure(this);
int from_bitField0_ = bitField0_;
if (violationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
violations_ = java.util.Collections.unmodifiableList(violations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.violations_ = violations_;
} else {
result.violations_ = violationsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) {
if (other instanceof nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure) {
return mergeFrom((nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure other) {
if (other == nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.getDefaultInstance()) return this;
if (violationsBuilder_ == null) {
if (!other.violations_.isEmpty()) {
if (violations_.isEmpty()) {
violations_ = other.violations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureViolationsIsMutable();
violations_.addAll(other.violations_);
}
onChanged();
}
} else {
if (!other.violations_.isEmpty()) {
if (violationsBuilder_.isEmpty()) {
violationsBuilder_.dispose();
violationsBuilder_ = null;
violations_ = other.violations_;
bitField0_ = (bitField0_ & ~0x00000001);
violationsBuilder_ =
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getViolationsFieldBuilder() : null;
} else {
violationsBuilder_.addAllMessages(other.violations_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.nl.topicus.jdbc.shaded.io.IOException {
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List violations_ =
java.util.Collections.emptyList();
private void ensureViolationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
violations_ = new java.util.ArrayList(violations_);
bitField0_ |= 0x00000001;
}
}
private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.Builder, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.ViolationOrBuilder> violationsBuilder_;
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public java.util.List getViolationsList() {
if (violationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(violations_);
} else {
return violationsBuilder_.getMessageList();
}
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public int getViolationsCount() {
if (violationsBuilder_ == null) {
return violations_.size();
} else {
return violationsBuilder_.getCount();
}
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation getViolations(int index) {
if (violationsBuilder_ == null) {
return violations_.get(index);
} else {
return violationsBuilder_.getMessage(index);
}
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public Builder setViolations(
int index, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation value) {
if (violationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureViolationsIsMutable();
violations_.set(index, value);
onChanged();
} else {
violationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public Builder setViolations(
int index, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.Builder builderForValue) {
if (violationsBuilder_ == null) {
ensureViolationsIsMutable();
violations_.set(index, builderForValue.build());
onChanged();
} else {
violationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public Builder addViolations(nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation value) {
if (violationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureViolationsIsMutable();
violations_.add(value);
onChanged();
} else {
violationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public Builder addViolations(
int index, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation value) {
if (violationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureViolationsIsMutable();
violations_.add(index, value);
onChanged();
} else {
violationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public Builder addViolations(
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.Builder builderForValue) {
if (violationsBuilder_ == null) {
ensureViolationsIsMutable();
violations_.add(builderForValue.build());
onChanged();
} else {
violationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public Builder addViolations(
int index, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.Builder builderForValue) {
if (violationsBuilder_ == null) {
ensureViolationsIsMutable();
violations_.add(index, builderForValue.build());
onChanged();
} else {
violationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public Builder addAllViolations(
java.lang.Iterable extends nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation> values) {
if (violationsBuilder_ == null) {
ensureViolationsIsMutable();
nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, violations_);
onChanged();
} else {
violationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public Builder clearViolations() {
if (violationsBuilder_ == null) {
violations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
violationsBuilder_.clear();
}
return this;
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public Builder removeViolations(int index) {
if (violationsBuilder_ == null) {
ensureViolationsIsMutable();
violations_.remove(index);
onChanged();
} else {
violationsBuilder_.remove(index);
}
return this;
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.Builder getViolationsBuilder(
int index) {
return getViolationsFieldBuilder().getBuilder(index);
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder(
int index) {
if (violationsBuilder_ == null) {
return violations_.get(index); } else {
return violationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public java.util.List extends nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.ViolationOrBuilder>
getViolationsOrBuilderList() {
if (violationsBuilder_ != null) {
return violationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(violations_);
}
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.Builder addViolationsBuilder() {
return getViolationsFieldBuilder().addBuilder(
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.getDefaultInstance());
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.Builder addViolationsBuilder(
int index) {
return getViolationsFieldBuilder().addBuilder(
index, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.getDefaultInstance());
}
/**
*
* Describes all quota violations.
*
*
* repeated .google.rpc.QuotaFailure.Violation violations = 1;
*/
public java.util.List
getViolationsBuilderList() {
return getViolationsFieldBuilder().getBuilderList();
}
private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.Builder, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.ViolationOrBuilder>
getViolationsFieldBuilder() {
if (violationsBuilder_ == null) {
violationsBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.Violation.Builder, nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure.ViolationOrBuilder>(
violations_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
violations_ = null;
}
return violationsBuilder_;
}
public final Builder setUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:google.rpc.QuotaFailure)
}
// @@protoc_insertion_point(class_scope:google.rpc.QuotaFailure)
private static final nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure();
}
public static nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser
PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() {
public QuotaFailure parsePartialFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new QuotaFailure(input, extensionRegistry);
}
};
public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public nl.topicus.jdbc.shaded.com.google.rpc.QuotaFailure getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}