// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Quota.proto
package org.apache.hadoop.hbase.shaded.protobuf.generated;
public final class QuotaProtos {
private QuotaProtos() {}
public static void registerAllExtensions(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code hbase.pb.QuotaScope}
*/
public enum QuotaScope
implements org.apache.hadoop.hbase.shaded.com.google.protobuf.ProtocolMessageEnum {
/**
* <code>CLUSTER = 1;</code>
*/
CLUSTER(1),
/**
* <code>MACHINE = 2;</code>
*/
MACHINE(2),
;
/**
* <code>CLUSTER = 1;</code>
*/
public static final int CLUSTER_VALUE = 1;
/**
* <code>MACHINE = 2;</code>
*/
public static final int MACHINE_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static QuotaScope valueOf(int value) {
return forNumber(value);
}
public static QuotaScope forNumber(int value) {
switch (value) {
case 1: return CLUSTER;
case 2: return MACHINE;
default: return null;
}
}
public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap<QuotaScope>
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap<
QuotaScope> internalValueMap =
new org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap<QuotaScope>() {
public QuotaScope findValueByNumber(int number) {
return QuotaScope.forNumber(number);
}
};
public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.getDescriptor().getEnumTypes().get(0);
}
private static final QuotaScope[] VALUES = values();
public static QuotaScope valueOf(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private QuotaScope(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hbase.pb.QuotaScope)
}
/**
* Protobuf enum {@code hbase.pb.ThrottleType}
*/
public enum ThrottleType
implements org.apache.hadoop.hbase.shaded.com.google.protobuf.ProtocolMessageEnum {
/**
* <code>REQUEST_NUMBER = 1;</code>
*/
REQUEST_NUMBER(1),
/**
* <code>REQUEST_SIZE = 2;</code>
*/
REQUEST_SIZE(2),
/**
* <code>WRITE_NUMBER = 3;</code>
*/
WRITE_NUMBER(3),
/**
* <code>WRITE_SIZE = 4;</code>
*/
WRITE_SIZE(4),
/**
* <code>READ_NUMBER = 5;</code>
*/
READ_NUMBER(5),
/**
* <code>READ_SIZE = 6;</code>
*/
READ_SIZE(6),
;
/**
* <code>REQUEST_NUMBER = 1;</code>
*/
public static final int REQUEST_NUMBER_VALUE = 1;
/**
* <code>REQUEST_SIZE = 2;</code>
*/
public static final int REQUEST_SIZE_VALUE = 2;
/**
* <code>WRITE_NUMBER = 3;</code>
*/
public static final int WRITE_NUMBER_VALUE = 3;
/**
* <code>WRITE_SIZE = 4;</code>
*/
public static final int WRITE_SIZE_VALUE = 4;
/**
* <code>READ_NUMBER = 5;</code>
*/
public static final int READ_NUMBER_VALUE = 5;
/**
* <code>READ_SIZE = 6;</code>
*/
public static final int READ_SIZE_VALUE = 6;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ThrottleType valueOf(int value) {
return forNumber(value);
}
public static ThrottleType forNumber(int value) {
switch (value) {
case 1: return REQUEST_NUMBER;
case 2: return REQUEST_SIZE;
case 3: return WRITE_NUMBER;
case 4: return WRITE_SIZE;
case 5: return READ_NUMBER;
case 6: return READ_SIZE;
default: return null;
}
}
public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap<ThrottleType>
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap<
ThrottleType> internalValueMap =
new org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap<ThrottleType>() {
public ThrottleType findValueByNumber(int number) {
return ThrottleType.forNumber(number);
}
};
public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.getDescriptor().getEnumTypes().get(1);
}
private static final ThrottleType[] VALUES = values();
public static ThrottleType valueOf(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private ThrottleType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hbase.pb.ThrottleType)
}
/**
* Protobuf enum {@code hbase.pb.QuotaType}
*/
public enum QuotaType
implements org.apache.hadoop.hbase.shaded.com.google.protobuf.ProtocolMessageEnum {
/**
* <code>THROTTLE = 1;</code>
*/
THROTTLE(1),
;
/**
* <code>THROTTLE = 1;</code>
*/
public static final int THROTTLE_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static QuotaType valueOf(int value) {
return forNumber(value);
}
public static QuotaType forNumber(int value) {
switch (value) {
case 1: return THROTTLE;
default: return null;
}
}
public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap<QuotaType>
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap<
QuotaType> internalValueMap =
new org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap<QuotaType>() {
public QuotaType findValueByNumber(int number) {
return QuotaType.forNumber(number);
}
};
public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.getDescriptor().getEnumTypes().get(2);
}
private static final QuotaType[] VALUES = values();
public static QuotaType valueOf(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private QuotaType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hbase.pb.QuotaType)
}
public interface TimedQuotaOrBuilder extends
// @@protoc_insertion_point(interface_extends:hbase.pb.TimedQuota)
org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder {
/**
* <code>required .hbase.pb.TimeUnit time_unit = 1;</code>
*/
boolean hasTimeUnit();
/**
* <code>required .hbase.pb.TimeUnit time_unit = 1;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit getTimeUnit();
/**
* <code>optional uint64 soft_limit = 2;</code>
*/
boolean hasSoftLimit();
/**
* <code>optional uint64 soft_limit = 2;</code>
*/
long getSoftLimit();
/**
* <code>optional float share = 3;</code>
*/
boolean hasShare();
/**
* <code>optional float share = 3;</code>
*/
float getShare();
/**
* <code>optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE];</code>
*/
boolean hasScope();
/**
* <code>optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE];</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope getScope();
}
/**
* Protobuf type {@code hbase.pb.TimedQuota}
*/
public static final class TimedQuota extends
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hbase.pb.TimedQuota)
TimedQuotaOrBuilder {
// Use TimedQuota.newBuilder() to construct.
private TimedQuota(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private TimedQuota() {
timeUnit_ = 1;
softLimit_ = 0L;
share_ = 0F;
scope_ = 2;
}
@java.lang.Override
public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TimedQuota(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit value = org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
timeUnit_ = rawValue;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
softLimit_ = input.readUInt64();
break;
}
case 29: {
bitField0_ |= 0x00000004;
share_ = input.readFloat();
break;
}
case 32: {
int rawValue = input.readEnum();
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope value = org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000008;
scope_ = rawValue;
}
break;
}
}
}
} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_TimedQuota_descriptor;
}
protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_TimedQuota_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.class, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder.class);
}
private int bitField0_;
public static final int TIME_UNIT_FIELD_NUMBER = 1;
private int timeUnit_;
/**
* <code>required .hbase.pb.TimeUnit time_unit = 1;</code>
*/
public boolean hasTimeUnit() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .hbase.pb.TimeUnit time_unit = 1;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit getTimeUnit() {
org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit result = org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit.valueOf(timeUnit_);
return result == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit.NANOSECONDS : result;
}
public static final int SOFT_LIMIT_FIELD_NUMBER = 2;
private long softLimit_;
/**
* <code>optional uint64 soft_limit = 2;</code>
*/
public boolean hasSoftLimit() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional uint64 soft_limit = 2;</code>
*/
public long getSoftLimit() {
return softLimit_;
}
public static final int SHARE_FIELD_NUMBER = 3;
private float share_;
/**
* <code>optional float share = 3;</code>
*/
public boolean hasShare() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float share = 3;</code>
*/
public float getShare() {
return share_;
}
public static final int SCOPE_FIELD_NUMBER = 4;
private int scope_;
/**
* <code>optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE];</code>
*/
public boolean hasScope() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE];</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope getScope() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope result = org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope.valueOf(scope_);
return result == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope.MACHINE : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasTimeUnit()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, timeUnit_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, softLimit_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, share_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeEnum(4, scope_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeEnumSize(1, timeUnit_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, softLimit_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeFloatSize(3, share_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeEnumSize(4, scope_);
}
size += unknownFields.getSerializedSize();
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 org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota other = (org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota) obj;
boolean result = true;
result = result && (hasTimeUnit() == other.hasTimeUnit());
if (hasTimeUnit()) {
result = result && timeUnit_ == other.timeUnit_;
}
result = result && (hasSoftLimit() == other.hasSoftLimit());
if (hasSoftLimit()) {
result = result && (getSoftLimit()
== other.getSoftLimit());
}
result = result && (hasShare() == other.hasShare());
if (hasShare()) {
result = result && (
java.lang.Float.floatToIntBits(getShare())
== java.lang.Float.floatToIntBits(
other.getShare()));
}
result = result && (hasScope() == other.hasScope());
if (hasScope()) {
result = result && scope_ == other.scope_;
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTimeUnit()) {
hash = (37 * hash) + TIME_UNIT_FIELD_NUMBER;
hash = (53 * hash) + timeUnit_;
}
if (hasSoftLimit()) {
hash = (37 * hash) + SOFT_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.hashLong(
getSoftLimit());
}
if (hasShare()) {
hash = (37 * hash) + SHARE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getShare());
}
if (hasScope()) {
hash = (37 * hash) + SCOPE_FIELD_NUMBER;
hash = (53 * hash) + scope_;
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota parseFrom(byte[] data)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota parseFrom(
byte[] data,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota parseFrom(
java.io.InputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.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(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota 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(
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.TimedQuota}
*/
public static final class Builder extends
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:hbase.pb.TimedQuota)
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder {
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_TimedQuota_descriptor;
}
protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_TimedQuota_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.class, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder.class);
}
// Construct using org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
timeUnit_ = 1;
bitField0_ = (bitField0_ & ~0x00000001);
softLimit_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
share_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
scope_ = 2;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_TimedQuota_descriptor;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getDefaultInstanceForType() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance();
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota build() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota buildPartial() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota result = new org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.timeUnit_ = timeUnit_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.softLimit_ = softLimit_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.share_ = share_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.scope_ = scope_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota) {
return mergeFrom((org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota other) {
if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance()) return this;
if (other.hasTimeUnit()) {
setTimeUnit(other.getTimeUnit());
}
if (other.hasSoftLimit()) {
setSoftLimit(other.getSoftLimit());
}
if (other.hasShare()) {
setShare(other.getShare());
}
if (other.hasScope()) {
setScope(other.getScope());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasTimeUnit()) {
return false;
}
return true;
}
public Builder mergeFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int timeUnit_ = 1;
/**
* <code>required .hbase.pb.TimeUnit time_unit = 1;</code>
*/
public boolean hasTimeUnit() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .hbase.pb.TimeUnit time_unit = 1;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit getTimeUnit() {
org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit result = org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit.valueOf(timeUnit_);
return result == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit.NANOSECONDS : result;
}
/**
* <code>required .hbase.pb.TimeUnit time_unit = 1;</code>
*/
public Builder setTimeUnit(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.TimeUnit value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
timeUnit_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>required .hbase.pb.TimeUnit time_unit = 1;</code>
*/
public Builder clearTimeUnit() {
bitField0_ = (bitField0_ & ~0x00000001);
timeUnit_ = 1;
onChanged();
return this;
}
private long softLimit_ ;
/**
* <code>optional uint64 soft_limit = 2;</code>
*/
public boolean hasSoftLimit() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional uint64 soft_limit = 2;</code>
*/
public long getSoftLimit() {
return softLimit_;
}
/**
* <code>optional uint64 soft_limit = 2;</code>
*/
public Builder setSoftLimit(long value) {
bitField0_ |= 0x00000002;
softLimit_ = value;
onChanged();
return this;
}
/**
* <code>optional uint64 soft_limit = 2;</code>
*/
public Builder clearSoftLimit() {
bitField0_ = (bitField0_ & ~0x00000002);
softLimit_ = 0L;
onChanged();
return this;
}
private float share_ ;
/**
* <code>optional float share = 3;</code>
*/
public boolean hasShare() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float share = 3;</code>
*/
public float getShare() {
return share_;
}
/**
* <code>optional float share = 3;</code>
*/
public Builder setShare(float value) {
bitField0_ |= 0x00000004;
share_ = value;
onChanged();
return this;
}
/**
* <code>optional float share = 3;</code>
*/
public Builder clearShare() {
bitField0_ = (bitField0_ & ~0x00000004);
share_ = 0F;
onChanged();
return this;
}
private int scope_ = 2;
/**
* <code>optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE];</code>
*/
public boolean hasScope() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE];</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope getScope() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope result = org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope.valueOf(scope_);
return result == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope.MACHINE : result;
}
/**
* <code>optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE];</code>
*/
public Builder setScope(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaScope value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
scope_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE];</code>
*/
public Builder clearScope() {
bitField0_ = (bitField0_ & ~0x00000008);
scope_ = 2;
onChanged();
return this;
}
public final Builder setUnknownFields(
final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hbase.pb.TimedQuota)
}
// @@protoc_insertion_point(class_scope:hbase.pb.TimedQuota)
private static final org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota();
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<TimedQuota>
PARSER = new org.apache.hadoop.hbase.shaded.com.google.protobuf.AbstractParser<TimedQuota>() {
public TimedQuota parsePartialFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new TimedQuota(input, extensionRegistry);
}
};
public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<TimedQuota> parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<TimedQuota> getParserForType() {
return PARSER;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ThrottleOrBuilder extends
// @@protoc_insertion_point(interface_extends:hbase.pb.Throttle)
org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder {
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
boolean hasReqNum();
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReqNum();
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReqNumOrBuilder();
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
boolean hasReqSize();
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReqSize();
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReqSizeOrBuilder();
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
boolean hasWriteNum();
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getWriteNum();
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getWriteNumOrBuilder();
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
boolean hasWriteSize();
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getWriteSize();
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getWriteSizeOrBuilder();
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
boolean hasReadNum();
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReadNum();
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReadNumOrBuilder();
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
boolean hasReadSize();
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReadSize();
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReadSizeOrBuilder();
}
/**
* Protobuf type {@code hbase.pb.Throttle}
*/
public static final class Throttle extends
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hbase.pb.Throttle)
ThrottleOrBuilder {
// Use Throttle.newBuilder() to construct.
private Throttle(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Throttle() {
}
@java.lang.Override
public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Throttle(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = reqNum_.toBuilder();
}
reqNum_ = input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(reqNum_);
reqNum_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = reqSize_.toBuilder();
}
reqSize_ = input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(reqSize_);
reqSize_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = writeNum_.toBuilder();
}
writeNum_ = input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(writeNum_);
writeNum_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = writeSize_.toBuilder();
}
writeSize_ = input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(writeSize_);
writeSize_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = readNum_.toBuilder();
}
readNum_ = input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(readNum_);
readNum_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = readSize_.toBuilder();
}
readSize_ = input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(readSize_);
readSize_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
}
}
} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_Throttle_descriptor;
}
protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_Throttle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.class, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.Builder.class);
}
private int bitField0_;
public static final int REQ_NUM_FIELD_NUMBER = 1;
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota reqNum_;
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
public boolean hasReqNum() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReqNum() {
return reqNum_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : reqNum_;
}
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReqNumOrBuilder() {
return reqNum_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : reqNum_;
}
public static final int REQ_SIZE_FIELD_NUMBER = 2;
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota reqSize_;
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
public boolean hasReqSize() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReqSize() {
return reqSize_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : reqSize_;
}
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReqSizeOrBuilder() {
return reqSize_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : reqSize_;
}
public static final int WRITE_NUM_FIELD_NUMBER = 3;
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota writeNum_;
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
public boolean hasWriteNum() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getWriteNum() {
return writeNum_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : writeNum_;
}
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getWriteNumOrBuilder() {
return writeNum_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : writeNum_;
}
public static final int WRITE_SIZE_FIELD_NUMBER = 4;
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota writeSize_;
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
public boolean hasWriteSize() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getWriteSize() {
return writeSize_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : writeSize_;
}
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getWriteSizeOrBuilder() {
return writeSize_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : writeSize_;
}
public static final int READ_NUM_FIELD_NUMBER = 5;
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota readNum_;
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
public boolean hasReadNum() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReadNum() {
return readNum_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : readNum_;
}
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReadNumOrBuilder() {
return readNum_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : readNum_;
}
public static final int READ_SIZE_FIELD_NUMBER = 6;
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota readSize_;
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
public boolean hasReadSize() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReadSize() {
return readSize_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : readSize_;
}
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReadSizeOrBuilder() {
return readSize_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : readSize_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasReqNum()) {
if (!getReqNum().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasReqSize()) {
if (!getReqSize().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasWriteNum()) {
if (!getWriteNum().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasWriteSize()) {
if (!getWriteSize().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasReadNum()) {
if (!getReadNum().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasReadSize()) {
if (!getReadSize().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getReqNum());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getReqSize());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getWriteNum());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getWriteSize());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, getReadNum());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(6, getReadSize());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getReqNum());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getReqSize());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getWriteNum());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getWriteSize());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getReadNum());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getReadSize());
}
size += unknownFields.getSerializedSize();
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 org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle other = (org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle) obj;
boolean result = true;
result = result && (hasReqNum() == other.hasReqNum());
if (hasReqNum()) {
result = result && getReqNum()
.equals(other.getReqNum());
}
result = result && (hasReqSize() == other.hasReqSize());
if (hasReqSize()) {
result = result && getReqSize()
.equals(other.getReqSize());
}
result = result && (hasWriteNum() == other.hasWriteNum());
if (hasWriteNum()) {
result = result && getWriteNum()
.equals(other.getWriteNum());
}
result = result && (hasWriteSize() == other.hasWriteSize());
if (hasWriteSize()) {
result = result && getWriteSize()
.equals(other.getWriteSize());
}
result = result && (hasReadNum() == other.hasReadNum());
if (hasReadNum()) {
result = result && getReadNum()
.equals(other.getReadNum());
}
result = result && (hasReadSize() == other.hasReadSize());
if (hasReadSize()) {
result = result && getReadSize()
.equals(other.getReadSize());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasReqNum()) {
hash = (37 * hash) + REQ_NUM_FIELD_NUMBER;
hash = (53 * hash) + getReqNum().hashCode();
}
if (hasReqSize()) {
hash = (37 * hash) + REQ_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getReqSize().hashCode();
}
if (hasWriteNum()) {
hash = (37 * hash) + WRITE_NUM_FIELD_NUMBER;
hash = (53 * hash) + getWriteNum().hashCode();
}
if (hasWriteSize()) {
hash = (37 * hash) + WRITE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getWriteSize().hashCode();
}
if (hasReadNum()) {
hash = (37 * hash) + READ_NUM_FIELD_NUMBER;
hash = (53 * hash) + getReadNum().hashCode();
}
if (hasReadSize()) {
hash = (37 * hash) + READ_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getReadSize().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle parseFrom(byte[] data)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle parseFrom(
byte[] data,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle parseFrom(
java.io.InputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.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(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle 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(
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.Throttle}
*/
public static final class Builder extends
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:hbase.pb.Throttle)
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleOrBuilder {
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_Throttle_descriptor;
}
protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_Throttle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.class, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.Builder.class);
}
// Construct using org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getReqNumFieldBuilder();
getReqSizeFieldBuilder();
getWriteNumFieldBuilder();
getWriteSizeFieldBuilder();
getReadNumFieldBuilder();
getReadSizeFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (reqNumBuilder_ == null) {
reqNum_ = null;
} else {
reqNumBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (reqSizeBuilder_ == null) {
reqSize_ = null;
} else {
reqSizeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (writeNumBuilder_ == null) {
writeNum_ = null;
} else {
writeNumBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (writeSizeBuilder_ == null) {
writeSize_ = null;
} else {
writeSizeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (readNumBuilder_ == null) {
readNum_ = null;
} else {
readNumBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (readSizeBuilder_ == null) {
readSize_ = null;
} else {
readSizeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_Throttle_descriptor;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle getDefaultInstanceForType() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.getDefaultInstance();
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle build() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle buildPartial() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle result = new org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (reqNumBuilder_ == null) {
result.reqNum_ = reqNum_;
} else {
result.reqNum_ = reqNumBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (reqSizeBuilder_ == null) {
result.reqSize_ = reqSize_;
} else {
result.reqSize_ = reqSizeBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (writeNumBuilder_ == null) {
result.writeNum_ = writeNum_;
} else {
result.writeNum_ = writeNumBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (writeSizeBuilder_ == null) {
result.writeSize_ = writeSize_;
} else {
result.writeSize_ = writeSizeBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (readNumBuilder_ == null) {
result.readNum_ = readNum_;
} else {
result.readNum_ = readNumBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (readSizeBuilder_ == null) {
result.readSize_ = readSize_;
} else {
result.readSize_ = readSizeBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle) {
return mergeFrom((org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle other) {
if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.getDefaultInstance()) return this;
if (other.hasReqNum()) {
mergeReqNum(other.getReqNum());
}
if (other.hasReqSize()) {
mergeReqSize(other.getReqSize());
}
if (other.hasWriteNum()) {
mergeWriteNum(other.getWriteNum());
}
if (other.hasWriteSize()) {
mergeWriteSize(other.getWriteSize());
}
if (other.hasReadNum()) {
mergeReadNum(other.getReadNum());
}
if (other.hasReadSize()) {
mergeReadSize(other.getReadSize());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (hasReqNum()) {
if (!getReqNum().isInitialized()) {
return false;
}
}
if (hasReqSize()) {
if (!getReqSize().isInitialized()) {
return false;
}
}
if (hasWriteNum()) {
if (!getWriteNum().isInitialized()) {
return false;
}
}
if (hasWriteSize()) {
if (!getWriteSize().isInitialized()) {
return false;
}
}
if (hasReadNum()) {
if (!getReadNum().isInitialized()) {
return false;
}
}
if (hasReadSize()) {
if (!getReadSize().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota reqNum_ = null;
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder> reqNumBuilder_;
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
public boolean hasReqNum() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReqNum() {
if (reqNumBuilder_ == null) {
return reqNum_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : reqNum_;
} else {
return reqNumBuilder_.getMessage();
}
}
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
public Builder setReqNum(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (reqNumBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reqNum_ = value;
onChanged();
} else {
reqNumBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
public Builder setReqNum(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder builderForValue) {
if (reqNumBuilder_ == null) {
reqNum_ = builderForValue.build();
onChanged();
} else {
reqNumBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
public Builder mergeReqNum(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (reqNumBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
reqNum_ != null &&
reqNum_ != org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance()) {
reqNum_ =
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.newBuilder(reqNum_).mergeFrom(value).buildPartial();
} else {
reqNum_ = value;
}
onChanged();
} else {
reqNumBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
public Builder clearReqNum() {
if (reqNumBuilder_ == null) {
reqNum_ = null;
onChanged();
} else {
reqNumBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder getReqNumBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getReqNumFieldBuilder().getBuilder();
}
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReqNumOrBuilder() {
if (reqNumBuilder_ != null) {
return reqNumBuilder_.getMessageOrBuilder();
} else {
return reqNum_ == null ?
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : reqNum_;
}
}
/**
* <code>optional .hbase.pb.TimedQuota req_num = 1;</code>
*/
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>
getReqNumFieldBuilder() {
if (reqNumBuilder_ == null) {
reqNumBuilder_ = new org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>(
getReqNum(),
getParentForChildren(),
isClean());
reqNum_ = null;
}
return reqNumBuilder_;
}
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota reqSize_ = null;
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder> reqSizeBuilder_;
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
public boolean hasReqSize() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReqSize() {
if (reqSizeBuilder_ == null) {
return reqSize_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : reqSize_;
} else {
return reqSizeBuilder_.getMessage();
}
}
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
public Builder setReqSize(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (reqSizeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reqSize_ = value;
onChanged();
} else {
reqSizeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
public Builder setReqSize(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder builderForValue) {
if (reqSizeBuilder_ == null) {
reqSize_ = builderForValue.build();
onChanged();
} else {
reqSizeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
public Builder mergeReqSize(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (reqSizeBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
reqSize_ != null &&
reqSize_ != org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance()) {
reqSize_ =
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.newBuilder(reqSize_).mergeFrom(value).buildPartial();
} else {
reqSize_ = value;
}
onChanged();
} else {
reqSizeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
public Builder clearReqSize() {
if (reqSizeBuilder_ == null) {
reqSize_ = null;
onChanged();
} else {
reqSizeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder getReqSizeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getReqSizeFieldBuilder().getBuilder();
}
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReqSizeOrBuilder() {
if (reqSizeBuilder_ != null) {
return reqSizeBuilder_.getMessageOrBuilder();
} else {
return reqSize_ == null ?
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : reqSize_;
}
}
/**
* <code>optional .hbase.pb.TimedQuota req_size = 2;</code>
*/
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>
getReqSizeFieldBuilder() {
if (reqSizeBuilder_ == null) {
reqSizeBuilder_ = new org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>(
getReqSize(),
getParentForChildren(),
isClean());
reqSize_ = null;
}
return reqSizeBuilder_;
}
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota writeNum_ = null;
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder> writeNumBuilder_;
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
public boolean hasWriteNum() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getWriteNum() {
if (writeNumBuilder_ == null) {
return writeNum_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : writeNum_;
} else {
return writeNumBuilder_.getMessage();
}
}
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
public Builder setWriteNum(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (writeNumBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
writeNum_ = value;
onChanged();
} else {
writeNumBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
public Builder setWriteNum(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder builderForValue) {
if (writeNumBuilder_ == null) {
writeNum_ = builderForValue.build();
onChanged();
} else {
writeNumBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
public Builder mergeWriteNum(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (writeNumBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
writeNum_ != null &&
writeNum_ != org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance()) {
writeNum_ =
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.newBuilder(writeNum_).mergeFrom(value).buildPartial();
} else {
writeNum_ = value;
}
onChanged();
} else {
writeNumBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
public Builder clearWriteNum() {
if (writeNumBuilder_ == null) {
writeNum_ = null;
onChanged();
} else {
writeNumBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder getWriteNumBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getWriteNumFieldBuilder().getBuilder();
}
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getWriteNumOrBuilder() {
if (writeNumBuilder_ != null) {
return writeNumBuilder_.getMessageOrBuilder();
} else {
return writeNum_ == null ?
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : writeNum_;
}
}
/**
* <code>optional .hbase.pb.TimedQuota write_num = 3;</code>
*/
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>
getWriteNumFieldBuilder() {
if (writeNumBuilder_ == null) {
writeNumBuilder_ = new org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>(
getWriteNum(),
getParentForChildren(),
isClean());
writeNum_ = null;
}
return writeNumBuilder_;
}
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota writeSize_ = null;
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder> writeSizeBuilder_;
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
public boolean hasWriteSize() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getWriteSize() {
if (writeSizeBuilder_ == null) {
return writeSize_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : writeSize_;
} else {
return writeSizeBuilder_.getMessage();
}
}
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
public Builder setWriteSize(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (writeSizeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
writeSize_ = value;
onChanged();
} else {
writeSizeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
public Builder setWriteSize(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder builderForValue) {
if (writeSizeBuilder_ == null) {
writeSize_ = builderForValue.build();
onChanged();
} else {
writeSizeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
public Builder mergeWriteSize(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (writeSizeBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
writeSize_ != null &&
writeSize_ != org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance()) {
writeSize_ =
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.newBuilder(writeSize_).mergeFrom(value).buildPartial();
} else {
writeSize_ = value;
}
onChanged();
} else {
writeSizeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
public Builder clearWriteSize() {
if (writeSizeBuilder_ == null) {
writeSize_ = null;
onChanged();
} else {
writeSizeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder getWriteSizeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getWriteSizeFieldBuilder().getBuilder();
}
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getWriteSizeOrBuilder() {
if (writeSizeBuilder_ != null) {
return writeSizeBuilder_.getMessageOrBuilder();
} else {
return writeSize_ == null ?
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : writeSize_;
}
}
/**
* <code>optional .hbase.pb.TimedQuota write_size = 4;</code>
*/
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>
getWriteSizeFieldBuilder() {
if (writeSizeBuilder_ == null) {
writeSizeBuilder_ = new org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>(
getWriteSize(),
getParentForChildren(),
isClean());
writeSize_ = null;
}
return writeSizeBuilder_;
}
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota readNum_ = null;
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder> readNumBuilder_;
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
public boolean hasReadNum() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReadNum() {
if (readNumBuilder_ == null) {
return readNum_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : readNum_;
} else {
return readNumBuilder_.getMessage();
}
}
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
public Builder setReadNum(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (readNumBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
readNum_ = value;
onChanged();
} else {
readNumBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
public Builder setReadNum(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder builderForValue) {
if (readNumBuilder_ == null) {
readNum_ = builderForValue.build();
onChanged();
} else {
readNumBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
public Builder mergeReadNum(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (readNumBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
readNum_ != null &&
readNum_ != org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance()) {
readNum_ =
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.newBuilder(readNum_).mergeFrom(value).buildPartial();
} else {
readNum_ = value;
}
onChanged();
} else {
readNumBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
public Builder clearReadNum() {
if (readNumBuilder_ == null) {
readNum_ = null;
onChanged();
} else {
readNumBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder getReadNumBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getReadNumFieldBuilder().getBuilder();
}
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReadNumOrBuilder() {
if (readNumBuilder_ != null) {
return readNumBuilder_.getMessageOrBuilder();
} else {
return readNum_ == null ?
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : readNum_;
}
}
/**
* <code>optional .hbase.pb.TimedQuota read_num = 5;</code>
*/
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>
getReadNumFieldBuilder() {
if (readNumBuilder_ == null) {
readNumBuilder_ = new org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>(
getReadNum(),
getParentForChildren(),
isClean());
readNum_ = null;
}
return readNumBuilder_;
}
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota readSize_ = null;
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder> readSizeBuilder_;
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
public boolean hasReadSize() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getReadSize() {
if (readSizeBuilder_ == null) {
return readSize_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : readSize_;
} else {
return readSizeBuilder_.getMessage();
}
}
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
public Builder setReadSize(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (readSizeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
readSize_ = value;
onChanged();
} else {
readSizeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
public Builder setReadSize(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder builderForValue) {
if (readSizeBuilder_ == null) {
readSize_ = builderForValue.build();
onChanged();
} else {
readSizeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
public Builder mergeReadSize(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (readSizeBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
readSize_ != null &&
readSize_ != org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance()) {
readSize_ =
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.newBuilder(readSize_).mergeFrom(value).buildPartial();
} else {
readSize_ = value;
}
onChanged();
} else {
readSizeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
public Builder clearReadSize() {
if (readSizeBuilder_ == null) {
readSize_ = null;
onChanged();
} else {
readSizeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder getReadSizeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getReadSizeFieldBuilder().getBuilder();
}
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getReadSizeOrBuilder() {
if (readSizeBuilder_ != null) {
return readSizeBuilder_.getMessageOrBuilder();
} else {
return readSize_ == null ?
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : readSize_;
}
}
/**
* <code>optional .hbase.pb.TimedQuota read_size = 6;</code>
*/
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>
getReadSizeFieldBuilder() {
if (readSizeBuilder_ == null) {
readSizeBuilder_ = new org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>(
getReadSize(),
getParentForChildren(),
isClean());
readSize_ = null;
}
return readSizeBuilder_;
}
public final Builder setUnknownFields(
final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hbase.pb.Throttle)
}
// @@protoc_insertion_point(class_scope:hbase.pb.Throttle)
private static final org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle();
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<Throttle>
PARSER = new org.apache.hadoop.hbase.shaded.com.google.protobuf.AbstractParser<Throttle>() {
public Throttle parsePartialFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new Throttle(input, extensionRegistry);
}
};
public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<Throttle> parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<Throttle> getParserForType() {
return PARSER;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ThrottleRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:hbase.pb.ThrottleRequest)
org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder {
/**
* <code>optional .hbase.pb.ThrottleType type = 1;</code>
*/
boolean hasType();
/**
* <code>optional .hbase.pb.ThrottleType type = 1;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType getType();
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
boolean hasTimedQuota();
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getTimedQuota();
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getTimedQuotaOrBuilder();
}
/**
* Protobuf type {@code hbase.pb.ThrottleRequest}
*/
public static final class ThrottleRequest extends
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hbase.pb.ThrottleRequest)
ThrottleRequestOrBuilder {
// Use ThrottleRequest.newBuilder() to construct.
private ThrottleRequest(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ThrottleRequest() {
type_ = 1;
}
@java.lang.Override
public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ThrottleRequest(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType value = org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = rawValue;
}
break;
}
case 18: {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = timedQuota_.toBuilder();
}
timedQuota_ = input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timedQuota_);
timedQuota_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_ThrottleRequest_descriptor;
}
protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_ThrottleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest.class, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* <code>optional .hbase.pb.ThrottleType type = 1;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .hbase.pb.ThrottleType type = 1;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType getType() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType result = org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType.valueOf(type_);
return result == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType.REQUEST_NUMBER : result;
}
public static final int TIMED_QUOTA_FIELD_NUMBER = 2;
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota timedQuota_;
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
public boolean hasTimedQuota() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getTimedQuota() {
return timedQuota_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : timedQuota_;
}
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getTimedQuotaOrBuilder() {
return timedQuota_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : timedQuota_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasTimedQuota()) {
if (!getTimedQuota().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getTimedQuota());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTimedQuota());
}
size += unknownFields.getSerializedSize();
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 org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest other = (org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && type_ == other.type_;
}
result = result && (hasTimedQuota() == other.hasTimedQuota());
if (hasTimedQuota()) {
result = result && getTimedQuota()
.equals(other.getTimedQuota());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (hasTimedQuota()) {
hash = (37 * hash) + TIMED_QUOTA_FIELD_NUMBER;
hash = (53 * hash) + getTimedQuota().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest parseFrom(byte[] data)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest parseFrom(
byte[] data,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest parseFrom(
java.io.InputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.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(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest 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(
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.ThrottleRequest}
*/
public static final class Builder extends
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:hbase.pb.ThrottleRequest)
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequestOrBuilder {
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_ThrottleRequest_descriptor;
}
protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_ThrottleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest.class, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest.Builder.class);
}
// Construct using org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTimedQuotaFieldBuilder();
}
}
public Builder clear() {
super.clear();
type_ = 1;
bitField0_ = (bitField0_ & ~0x00000001);
if (timedQuotaBuilder_ == null) {
timedQuota_ = null;
} else {
timedQuotaBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_ThrottleRequest_descriptor;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest getDefaultInstanceForType() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest.getDefaultInstance();
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest build() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest buildPartial() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest result = new org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (timedQuotaBuilder_ == null) {
result.timedQuota_ = timedQuota_;
} else {
result.timedQuota_ = timedQuotaBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest) {
return mergeFrom((org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest other) {
if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasTimedQuota()) {
mergeTimedQuota(other.getTimedQuota());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (hasTimedQuota()) {
if (!getTimedQuota().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int type_ = 1;
/**
* <code>optional .hbase.pb.ThrottleType type = 1;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .hbase.pb.ThrottleType type = 1;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType getType() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType result = org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType.valueOf(type_);
return result == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType.REQUEST_NUMBER : result;
}
/**
* <code>optional .hbase.pb.ThrottleType type = 1;</code>
*/
public Builder setType(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>optional .hbase.pb.ThrottleType type = 1;</code>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 1;
onChanged();
return this;
}
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota timedQuota_ = null;
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder> timedQuotaBuilder_;
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
public boolean hasTimedQuota() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota getTimedQuota() {
if (timedQuotaBuilder_ == null) {
return timedQuota_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : timedQuota_;
} else {
return timedQuotaBuilder_.getMessage();
}
}
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
public Builder setTimedQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (timedQuotaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timedQuota_ = value;
onChanged();
} else {
timedQuotaBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
public Builder setTimedQuota(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder builderForValue) {
if (timedQuotaBuilder_ == null) {
timedQuota_ = builderForValue.build();
onChanged();
} else {
timedQuotaBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
public Builder mergeTimedQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota value) {
if (timedQuotaBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
timedQuota_ != null &&
timedQuota_ != org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance()) {
timedQuota_ =
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.newBuilder(timedQuota_).mergeFrom(value).buildPartial();
} else {
timedQuota_ = value;
}
onChanged();
} else {
timedQuotaBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
public Builder clearTimedQuota() {
if (timedQuotaBuilder_ == null) {
timedQuota_ = null;
onChanged();
} else {
timedQuotaBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder getTimedQuotaBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTimedQuotaFieldBuilder().getBuilder();
}
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder getTimedQuotaOrBuilder() {
if (timedQuotaBuilder_ != null) {
return timedQuotaBuilder_.getMessageOrBuilder();
} else {
return timedQuota_ == null ?
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.getDefaultInstance() : timedQuota_;
}
}
/**
* <code>optional .hbase.pb.TimedQuota timed_quota = 2;</code>
*/
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>
getTimedQuotaFieldBuilder() {
if (timedQuotaBuilder_ == null) {
timedQuotaBuilder_ = new org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuota.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.TimedQuotaOrBuilder>(
getTimedQuota(),
getParentForChildren(),
isClean());
timedQuota_ = null;
}
return timedQuotaBuilder_;
}
public final Builder setUnknownFields(
final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hbase.pb.ThrottleRequest)
}
// @@protoc_insertion_point(class_scope:hbase.pb.ThrottleRequest)
private static final org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest();
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<ThrottleRequest>
PARSER = new org.apache.hadoop.hbase.shaded.com.google.protobuf.AbstractParser<ThrottleRequest>() {
public ThrottleRequest parsePartialFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new ThrottleRequest(input, extensionRegistry);
}
};
public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<ThrottleRequest> parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<ThrottleRequest> getParserForType() {
return PARSER;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QuotasOrBuilder extends
// @@protoc_insertion_point(interface_extends:hbase.pb.Quotas)
org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder {
/**
* <code>optional bool bypass_globals = 1 [default = false];</code>
*/
boolean hasBypassGlobals();
/**
* <code>optional bool bypass_globals = 1 [default = false];</code>
*/
boolean getBypassGlobals();
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
boolean hasThrottle();
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle getThrottle();
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleOrBuilder getThrottleOrBuilder();
}
/**
* Protobuf type {@code hbase.pb.Quotas}
*/
public static final class Quotas extends
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hbase.pb.Quotas)
QuotasOrBuilder {
// Use Quotas.newBuilder() to construct.
private Quotas(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Quotas() {
bypassGlobals_ = false;
}
@java.lang.Override
public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Quotas(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
bypassGlobals_ = input.readBool();
break;
}
case 18: {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = throttle_.toBuilder();
}
throttle_ = input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(throttle_);
throttle_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_Quotas_descriptor;
}
protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_Quotas_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas.class, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas.Builder.class);
}
private int bitField0_;
public static final int BYPASS_GLOBALS_FIELD_NUMBER = 1;
private boolean bypassGlobals_;
/**
* <code>optional bool bypass_globals = 1 [default = false];</code>
*/
public boolean hasBypassGlobals() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool bypass_globals = 1 [default = false];</code>
*/
public boolean getBypassGlobals() {
return bypassGlobals_;
}
public static final int THROTTLE_FIELD_NUMBER = 2;
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle throttle_;
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
public boolean hasThrottle() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle getThrottle() {
return throttle_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.getDefaultInstance() : throttle_;
}
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleOrBuilder getThrottleOrBuilder() {
return throttle_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.getDefaultInstance() : throttle_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasThrottle()) {
if (!getThrottle().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, bypassGlobals_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getThrottle());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeBoolSize(1, bypassGlobals_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getThrottle());
}
size += unknownFields.getSerializedSize();
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 org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas other = (org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas) obj;
boolean result = true;
result = result && (hasBypassGlobals() == other.hasBypassGlobals());
if (hasBypassGlobals()) {
result = result && (getBypassGlobals()
== other.getBypassGlobals());
}
result = result && (hasThrottle() == other.hasThrottle());
if (hasThrottle()) {
result = result && getThrottle()
.equals(other.getThrottle());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBypassGlobals()) {
hash = (37 * hash) + BYPASS_GLOBALS_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.hashBoolean(
getBypassGlobals());
}
if (hasThrottle()) {
hash = (37 * hash) + THROTTLE_FIELD_NUMBER;
hash = (53 * hash) + getThrottle().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas parseFrom(byte[] data)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas parseFrom(
byte[] data,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas parseFrom(
java.io.InputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.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(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas 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(
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.Quotas}
*/
public static final class Builder extends
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:hbase.pb.Quotas)
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotasOrBuilder {
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_Quotas_descriptor;
}
protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_Quotas_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas.class, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas.Builder.class);
}
// Construct using org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getThrottleFieldBuilder();
}
}
public Builder clear() {
super.clear();
bypassGlobals_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
if (throttleBuilder_ == null) {
throttle_ = null;
} else {
throttleBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_Quotas_descriptor;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas getDefaultInstanceForType() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas.getDefaultInstance();
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas build() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas buildPartial() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas result = new org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.bypassGlobals_ = bypassGlobals_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (throttleBuilder_ == null) {
result.throttle_ = throttle_;
} else {
result.throttle_ = throttleBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas) {
return mergeFrom((org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas other) {
if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas.getDefaultInstance()) return this;
if (other.hasBypassGlobals()) {
setBypassGlobals(other.getBypassGlobals());
}
if (other.hasThrottle()) {
mergeThrottle(other.getThrottle());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (hasThrottle()) {
if (!getThrottle().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean bypassGlobals_ ;
/**
* <code>optional bool bypass_globals = 1 [default = false];</code>
*/
public boolean hasBypassGlobals() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool bypass_globals = 1 [default = false];</code>
*/
public boolean getBypassGlobals() {
return bypassGlobals_;
}
/**
* <code>optional bool bypass_globals = 1 [default = false];</code>
*/
public Builder setBypassGlobals(boolean value) {
bitField0_ |= 0x00000001;
bypassGlobals_ = value;
onChanged();
return this;
}
/**
* <code>optional bool bypass_globals = 1 [default = false];</code>
*/
public Builder clearBypassGlobals() {
bitField0_ = (bitField0_ & ~0x00000001);
bypassGlobals_ = false;
onChanged();
return this;
}
private org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle throttle_ = null;
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleOrBuilder> throttleBuilder_;
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
public boolean hasThrottle() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle getThrottle() {
if (throttleBuilder_ == null) {
return throttle_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.getDefaultInstance() : throttle_;
} else {
return throttleBuilder_.getMessage();
}
}
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
public Builder setThrottle(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle value) {
if (throttleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
throttle_ = value;
onChanged();
} else {
throttleBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
public Builder setThrottle(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.Builder builderForValue) {
if (throttleBuilder_ == null) {
throttle_ = builderForValue.build();
onChanged();
} else {
throttleBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
public Builder mergeThrottle(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle value) {
if (throttleBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
throttle_ != null &&
throttle_ != org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.getDefaultInstance()) {
throttle_ =
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.newBuilder(throttle_).mergeFrom(value).buildPartial();
} else {
throttle_ = value;
}
onChanged();
} else {
throttleBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
public Builder clearThrottle() {
if (throttleBuilder_ == null) {
throttle_ = null;
onChanged();
} else {
throttleBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.Builder getThrottleBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getThrottleFieldBuilder().getBuilder();
}
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleOrBuilder getThrottleOrBuilder() {
if (throttleBuilder_ != null) {
return throttleBuilder_.getMessageOrBuilder();
} else {
return throttle_ == null ?
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.getDefaultInstance() : throttle_;
}
}
/**
* <code>optional .hbase.pb.Throttle throttle = 2;</code>
*/
private org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleOrBuilder>
getThrottleFieldBuilder() {
if (throttleBuilder_ == null) {
throttleBuilder_ = new org.apache.hadoop.hbase.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Throttle.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.ThrottleOrBuilder>(
getThrottle(),
getParentForChildren(),
isClean());
throttle_ = null;
}
return throttleBuilder_;
}
public final Builder setUnknownFields(
final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hbase.pb.Quotas)
}
// @@protoc_insertion_point(class_scope:hbase.pb.Quotas)
private static final org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas();
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<Quotas>
PARSER = new org.apache.hadoop.hbase.shaded.com.google.protobuf.AbstractParser<Quotas>() {
public Quotas parsePartialFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new Quotas(input, extensionRegistry);
}
};
public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<Quotas> parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<Quotas> getParserForType() {
return PARSER;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QuotaUsageOrBuilder extends
// @@protoc_insertion_point(interface_extends:hbase.pb.QuotaUsage)
org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code hbase.pb.QuotaUsage}
*/
public static final class QuotaUsage extends
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hbase.pb.QuotaUsage)
QuotaUsageOrBuilder {
// Use QuotaUsage.newBuilder() to construct.
private QuotaUsage(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private QuotaUsage() {
}
@java.lang.Override
public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QuotaUsage(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_QuotaUsage_descriptor;
}
protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_QuotaUsage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage.class, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage.Builder.class);
}
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(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
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 org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage other = (org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString data,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage parseFrom(byte[] data)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage parseFrom(
byte[] data,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage parseFrom(
java.io.InputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage parseFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.hbase.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(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage 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(
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.QuotaUsage}
*/
public static final class Builder extends
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:hbase.pb.QuotaUsage)
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsageOrBuilder {
public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_QuotaUsage_descriptor;
}
protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_QuotaUsage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage.class, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage.Builder.class);
}
// Construct using org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.internal_static_hbase_pb_QuotaUsage_descriptor;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage getDefaultInstanceForType() {
return org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage.getDefaultInstance();
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage build() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage buildPartial() {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage result = new org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage) {
return mergeFrom((org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage other) {
if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hbase.pb.QuotaUsage)
}
// @@protoc_insertion_point(class_scope:hbase.pb.QuotaUsage)
private static final org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage();
}
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<QuotaUsage>
PARSER = new org.apache.hadoop.hbase.shaded.com.google.protobuf.AbstractParser<QuotaUsage>() {
public QuotaUsage parsePartialFrom(
org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input,
org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new QuotaUsage(input, extensionRegistry);
}
};
public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<QuotaUsage> parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.hbase.shaded.com.google.protobuf.Parser<QuotaUsage> getParserForType() {
return PARSER;
}
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.QuotaUsage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_TimedQuota_descriptor;
private static final
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_hbase_pb_TimedQuota_fieldAccessorTable;
private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_Throttle_descriptor;
private static final
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_hbase_pb_Throttle_fieldAccessorTable;
private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_ThrottleRequest_descriptor;
private static final
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_hbase_pb_ThrottleRequest_fieldAccessorTable;
private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_Quotas_descriptor;
private static final
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_hbase_pb_Quotas_fieldAccessorTable;
private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_QuotaUsage_descriptor;
private static final
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_hbase_pb_QuotaUsage_fieldAccessorTable;
public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\013Quota.proto\022\010hbase.pb\032\013HBase.proto\"\204\001\n" +
"\nTimedQuota\022%\n\ttime_unit\030\001 \002(\0162\022.hbase.p" +
"b.TimeUnit\022\022\n\nsoft_limit\030\002 \001(\004\022\r\n\005share\030" +
"\003 \001(\002\022,\n\005scope\030\004 \001(\0162\024.hbase.pb.QuotaSco" +
"pe:\007MACHINE\"\375\001\n\010Throttle\022%\n\007req_num\030\001 \001(" +
"\0132\024.hbase.pb.TimedQuota\022&\n\010req_size\030\002 \001(" +
"\0132\024.hbase.pb.TimedQuota\022\'\n\twrite_num\030\003 \001" +
"(\0132\024.hbase.pb.TimedQuota\022(\n\nwrite_size\030\004" +
" \001(\0132\024.hbase.pb.TimedQuota\022&\n\010read_num\030\005" +
" \001(\0132\024.hbase.pb.TimedQuota\022\'\n\tread_size\030",
"\006 \001(\0132\024.hbase.pb.TimedQuota\"b\n\017ThrottleR" +
"equest\022$\n\004type\030\001 \001(\0162\026.hbase.pb.Throttle" +
"Type\022)\n\013timed_quota\030\002 \001(\0132\024.hbase.pb.Tim" +
"edQuota\"M\n\006Quotas\022\035\n\016bypass_globals\030\001 \001(" +
"\010:\005false\022$\n\010throttle\030\002 \001(\0132\022.hbase.pb.Th" +
"rottle\"\014\n\nQuotaUsage*&\n\nQuotaScope\022\013\n\007CL" +
"USTER\020\001\022\013\n\007MACHINE\020\002*v\n\014ThrottleType\022\022\n\016" +
"REQUEST_NUMBER\020\001\022\020\n\014REQUEST_SIZE\020\002\022\020\n\014WR" +
"ITE_NUMBER\020\003\022\016\n\nWRITE_SIZE\020\004\022\017\n\013READ_NUM" +
"BER\020\005\022\r\n\tREAD_SIZE\020\006*\031\n\tQuotaType\022\014\n\010THR",
"OTTLE\020\001BH\n1org.apache.hadoop.hbase.shade" +
"d.protobuf.generatedB\013QuotaProtosH\001\210\001\001\240\001" +
"\001"
};
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry assignDescriptors(
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.getDescriptor(),
}, assigner);
internal_static_hbase_pb_TimedQuota_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_hbase_pb_TimedQuota_fieldAccessorTable = new
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_hbase_pb_TimedQuota_descriptor,
new java.lang.String[] { "TimeUnit", "SoftLimit", "Share", "Scope", });
internal_static_hbase_pb_Throttle_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_hbase_pb_Throttle_fieldAccessorTable = new
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_hbase_pb_Throttle_descriptor,
new java.lang.String[] { "ReqNum", "ReqSize", "WriteNum", "WriteSize", "ReadNum", "ReadSize", });
internal_static_hbase_pb_ThrottleRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_hbase_pb_ThrottleRequest_fieldAccessorTable = new
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_hbase_pb_ThrottleRequest_descriptor,
new java.lang.String[] { "Type", "TimedQuota", });
internal_static_hbase_pb_Quotas_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_hbase_pb_Quotas_fieldAccessorTable = new
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_hbase_pb_Quotas_descriptor,
new java.lang.String[] { "BypassGlobals", "Throttle", });
internal_static_hbase_pb_QuotaUsage_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_hbase_pb_QuotaUsage_fieldAccessorTable = new
org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_hbase_pb_QuotaUsage_descriptor,
new java.lang.String[] { });
org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}