You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2013/08/21 07:10:45 UTC
svn commit: r1516086 [22/43] - in /hbase/branches/0.95: ./
hbase-client/src/main/java/org/apache/hadoop/hbase/
hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/
hbase-common/src/test/java/org/apache/hadoop/hbase/
hbase-protocol/src/main/java...
Modified: hbase/branches/0.95/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/RPCProtos.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/RPCProtos.java?rev=1516086&r1=1516085&r2=1516086&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/RPCProtos.java (original)
+++ hbase/branches/0.95/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/RPCProtos.java Wed Aug 21 05:10:43 2013
@@ -10,108 +10,228 @@ public final class RPCProtos {
}
public interface UserInformationOrBuilder
extends com.google.protobuf.MessageOrBuilder {
-
+
// required string effective_user = 1;
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
boolean hasEffectiveUser();
- String getEffectiveUser();
-
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
+ java.lang.String getEffectiveUser();
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
+ com.google.protobuf.ByteString
+ getEffectiveUserBytes();
+
// optional string real_user = 2;
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
boolean hasRealUser();
- String getRealUser();
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
+ java.lang.String getRealUser();
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
+ com.google.protobuf.ByteString
+ getRealUserBytes();
}
+ /**
+ * Protobuf type {@code UserInformation}
+ *
+ * <pre>
+ * User Information proto. Included in ConnectionHeader on connection setup
+ * </pre>
+ */
public static final class UserInformation extends
com.google.protobuf.GeneratedMessage
implements UserInformationOrBuilder {
// Use UserInformation.newBuilder() to construct.
- private UserInformation(Builder builder) {
+ private UserInformation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
+ this.unknownFields = builder.getUnknownFields();
}
- private UserInformation(boolean noInit) {}
-
+ private UserInformation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
private static final UserInformation defaultInstance;
public static UserInformation getDefaultInstance() {
return defaultInstance;
}
-
+
public UserInformation getDefaultInstanceForType() {
return defaultInstance;
}
-
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private UserInformation(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ 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: {
+ bitField0_ |= 0x00000001;
+ effectiveUser_ = input.readBytes();
+ break;
+ }
+ case 18: {
+ bitField0_ |= 0x00000002;
+ realUser_ = input.readBytes();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_UserInformation_descriptor;
}
-
+
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_UserInformation_fieldAccessorTable;
+ return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_UserInformation_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.class, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<UserInformation> PARSER =
+ new com.google.protobuf.AbstractParser<UserInformation>() {
+ public UserInformation parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new UserInformation(input, extensionRegistry);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<UserInformation> getParserForType() {
+ return PARSER;
}
-
+
private int bitField0_;
// required string effective_user = 1;
public static final int EFFECTIVE_USER_FIELD_NUMBER = 1;
private java.lang.Object effectiveUser_;
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
public boolean hasEffectiveUser() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public String getEffectiveUser() {
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
+ public java.lang.String getEffectiveUser() {
java.lang.Object ref = effectiveUser_;
- if (ref instanceof String) {
- return (String) ref;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
effectiveUser_ = s;
}
return s;
}
}
- private com.google.protobuf.ByteString getEffectiveUserBytes() {
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getEffectiveUserBytes() {
java.lang.Object ref = effectiveUser_;
- if (ref instanceof String) {
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
effectiveUser_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
+
// optional string real_user = 2;
public static final int REAL_USER_FIELD_NUMBER = 2;
private java.lang.Object realUser_;
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
public boolean hasRealUser() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
- public String getRealUser() {
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
+ public java.lang.String getRealUser() {
java.lang.Object ref = realUser_;
- if (ref instanceof String) {
- return (String) ref;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
realUser_ = s;
}
return s;
}
}
- private com.google.protobuf.ByteString getRealUserBytes() {
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getRealUserBytes() {
java.lang.Object ref = realUser_;
- if (ref instanceof String) {
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
realUser_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
+
private void initFields() {
effectiveUser_ = "";
realUser_ = "";
@@ -120,7 +240,7 @@ public final class RPCProtos {
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
-
+
if (!hasEffectiveUser()) {
memoizedIsInitialized = 0;
return false;
@@ -128,7 +248,7 @@ public final class RPCProtos {
memoizedIsInitialized = 1;
return true;
}
-
+
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
@@ -140,12 +260,12 @@ public final class RPCProtos {
}
getUnknownFields().writeTo(output);
}
-
+
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
-
+
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
@@ -159,14 +279,14 @@ public final class RPCProtos {
memoizedSerializedSize = size;
return size;
}
-
+
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
-
+
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
@@ -176,7 +296,7 @@ public final class RPCProtos {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation other = (org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation) obj;
-
+
boolean result = true;
result = result && (hasEffectiveUser() == other.hasEffectiveUser());
if (hasEffectiveUser()) {
@@ -192,9 +312,13 @@ public final class RPCProtos {
getUnknownFields().equals(other.getUnknownFields());
return result;
}
-
+
+ private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasEffectiveUser()) {
@@ -206,89 +330,83 @@ public final class RPCProtos {
hash = (53 * hash) + getRealUser().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
return hash;
}
-
+
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
+ return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
+ return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
+ return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
+ return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
+ return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(input, extensionRegistry);
}
-
+
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
-
+
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
+ /**
+ * Protobuf type {@code UserInformation}
+ *
+ * <pre>
+ * User Information proto. Included in ConnectionHeader on connection setup
+ * </pre>
+ */
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformationOrBuilder {
@@ -296,18 +414,21 @@ public final class RPCProtos {
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_UserInformation_descriptor;
}
-
+
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_UserInformation_fieldAccessorTable;
+ return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_UserInformation_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.class, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.Builder.class);
}
-
+
// Construct using org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
-
- private Builder(BuilderParent parent) {
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
@@ -318,7 +439,7 @@ public final class RPCProtos {
private static Builder create() {
return new Builder();
}
-
+
public Builder clear() {
super.clear();
effectiveUser_ = "";
@@ -327,20 +448,20 @@ public final class RPCProtos {
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
-
+
public Builder clone() {
return create().mergeFrom(buildPartial());
}
-
+
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.getDescriptor();
+ return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_UserInformation_descriptor;
}
-
+
public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation getDefaultInstanceForType() {
return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance();
}
-
+
public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation build() {
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation result = buildPartial();
if (!result.isInitialized()) {
@@ -348,17 +469,7 @@ public final class RPCProtos {
}
return result;
}
-
- private org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
+
public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation buildPartial() {
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation result = new org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation(this);
int from_bitField0_ = bitField0_;
@@ -375,7 +486,7 @@ public final class RPCProtos {
onBuilt();
return result;
}
-
+
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation) {
return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation)other);
@@ -384,19 +495,23 @@ public final class RPCProtos {
return this;
}
}
-
+
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance()) return this;
if (other.hasEffectiveUser()) {
- setEffectiveUser(other.getEffectiveUser());
+ bitField0_ |= 0x00000001;
+ effectiveUser_ = other.effectiveUser_;
+ onChanged();
}
if (other.hasRealUser()) {
- setRealUser(other.getRealUser());
+ bitField0_ |= 0x00000002;
+ realUser_ = other.realUser_;
+ onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
-
+
public final boolean isInitialized() {
if (!hasEffectiveUser()) {
@@ -404,62 +519,69 @@ public final class RPCProtos {
}
return true;
}
-
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- break;
- }
- case 10: {
- bitField0_ |= 0x00000001;
- effectiveUser_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- realUser_ = input.readBytes();
- break;
- }
+ org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
}
}
+ return this;
}
-
private int bitField0_;
-
+
// required string effective_user = 1;
private java.lang.Object effectiveUser_ = "";
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
public boolean hasEffectiveUser() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public String getEffectiveUser() {
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
+ public java.lang.String getEffectiveUser() {
java.lang.Object ref = effectiveUser_;
- if (!(ref instanceof String)) {
- String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ if (!(ref instanceof java.lang.String)) {
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
effectiveUser_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getEffectiveUserBytes() {
+ java.lang.Object ref = effectiveUser_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ effectiveUser_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
}
- public Builder setEffectiveUser(String value) {
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
+ public Builder setEffectiveUser(
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
@@ -468,34 +590,72 @@ public final class RPCProtos {
onChanged();
return this;
}
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
public Builder clearEffectiveUser() {
bitField0_ = (bitField0_ & ~0x00000001);
effectiveUser_ = getDefaultInstance().getEffectiveUser();
onChanged();
return this;
}
- void setEffectiveUser(com.google.protobuf.ByteString value) {
- bitField0_ |= 0x00000001;
+ /**
+ * <code>required string effective_user = 1;</code>
+ */
+ public Builder setEffectiveUserBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
effectiveUser_ = value;
onChanged();
+ return this;
}
-
+
// optional string real_user = 2;
private java.lang.Object realUser_ = "";
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
public boolean hasRealUser() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
- public String getRealUser() {
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
+ public java.lang.String getRealUser() {
java.lang.Object ref = realUser_;
- if (!(ref instanceof String)) {
- String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ if (!(ref instanceof java.lang.String)) {
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
realUser_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
- public Builder setRealUser(String value) {
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getRealUserBytes() {
+ java.lang.Object ref = realUser_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ realUser_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
+ public Builder setRealUser(
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
@@ -504,187 +664,436 @@ public final class RPCProtos {
onChanged();
return this;
}
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
public Builder clearRealUser() {
bitField0_ = (bitField0_ & ~0x00000002);
realUser_ = getDefaultInstance().getRealUser();
onChanged();
return this;
}
- void setRealUser(com.google.protobuf.ByteString value) {
- bitField0_ |= 0x00000002;
+ /**
+ * <code>optional string real_user = 2;</code>
+ */
+ public Builder setRealUserBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
realUser_ = value;
onChanged();
+ return this;
}
-
+
// @@protoc_insertion_point(builder_scope:UserInformation)
}
-
+
static {
defaultInstance = new UserInformation(true);
defaultInstance.initFields();
}
-
+
// @@protoc_insertion_point(class_scope:UserInformation)
}
-
+
public interface ConnectionHeaderOrBuilder
extends com.google.protobuf.MessageOrBuilder {
-
+
// optional .UserInformation user_info = 1;
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
boolean hasUserInfo();
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation getUserInfo();
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();
-
+
// optional string service_name = 2;
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
boolean hasServiceName();
- String getServiceName();
-
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
+ java.lang.String getServiceName();
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
+ com.google.protobuf.ByteString
+ getServiceNameBytes();
+
// optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
boolean hasCellBlockCodecClass();
- String getCellBlockCodecClass();
-
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
+ java.lang.String getCellBlockCodecClass();
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
+ com.google.protobuf.ByteString
+ getCellBlockCodecClassBytes();
+
// optional string cell_block_compressor_class = 4;
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
boolean hasCellBlockCompressorClass();
- String getCellBlockCompressorClass();
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
+ java.lang.String getCellBlockCompressorClass();
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
+ com.google.protobuf.ByteString
+ getCellBlockCompressorClassBytes();
}
+ /**
+ * Protobuf type {@code ConnectionHeader}
+ *
+ * <pre>
+ * This is sent on connection setup after the connection preamble is sent.
+ * </pre>
+ */
public static final class ConnectionHeader extends
com.google.protobuf.GeneratedMessage
implements ConnectionHeaderOrBuilder {
// Use ConnectionHeader.newBuilder() to construct.
- private ConnectionHeader(Builder builder) {
+ private ConnectionHeader(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
+ this.unknownFields = builder.getUnknownFields();
}
- private ConnectionHeader(boolean noInit) {}
-
+ private ConnectionHeader(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
private static final ConnectionHeader defaultInstance;
public static ConnectionHeader getDefaultInstance() {
return defaultInstance;
}
-
+
public ConnectionHeader getDefaultInstanceForType() {
return defaultInstance;
}
-
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ConnectionHeader(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ 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.protobuf.generated.RPCProtos.UserInformation.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = userInfo_.toBuilder();
+ }
+ userInfo_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(userInfo_);
+ userInfo_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ case 18: {
+ bitField0_ |= 0x00000002;
+ serviceName_ = input.readBytes();
+ break;
+ }
+ case 26: {
+ bitField0_ |= 0x00000004;
+ cellBlockCodecClass_ = input.readBytes();
+ break;
+ }
+ case 34: {
+ bitField0_ |= 0x00000008;
+ cellBlockCompressorClass_ = input.readBytes();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_descriptor;
}
-
+
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_fieldAccessorTable;
+ return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader.class, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<ConnectionHeader> PARSER =
+ new com.google.protobuf.AbstractParser<ConnectionHeader>() {
+ public ConnectionHeader parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ConnectionHeader(input, extensionRegistry);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ConnectionHeader> getParserForType() {
+ return PARSER;
}
-
+
private int bitField0_;
// optional .UserInformation user_info = 1;
public static final int USER_INFO_FIELD_NUMBER = 1;
private org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation userInfo_;
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
public boolean hasUserInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation getUserInfo() {
return userInfo_;
}
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder() {
return userInfo_;
}
-
+
// optional string service_name = 2;
public static final int SERVICE_NAME_FIELD_NUMBER = 2;
private java.lang.Object serviceName_;
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
public boolean hasServiceName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
- public String getServiceName() {
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
+ public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
- if (ref instanceof String) {
- return (String) ref;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
serviceName_ = s;
}
return s;
}
}
- private com.google.protobuf.ByteString getServiceNameBytes() {
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getServiceNameBytes() {
java.lang.Object ref = serviceName_;
- if (ref instanceof String) {
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
+
// optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];
public static final int CELL_BLOCK_CODEC_CLASS_FIELD_NUMBER = 3;
private java.lang.Object cellBlockCodecClass_;
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
public boolean hasCellBlockCodecClass() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
- public String getCellBlockCodecClass() {
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
+ public java.lang.String getCellBlockCodecClass() {
java.lang.Object ref = cellBlockCodecClass_;
- if (ref instanceof String) {
- return (String) ref;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
cellBlockCodecClass_ = s;
}
return s;
}
}
- private com.google.protobuf.ByteString getCellBlockCodecClassBytes() {
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
+ public com.google.protobuf.ByteString
+ getCellBlockCodecClassBytes() {
java.lang.Object ref = cellBlockCodecClass_;
- if (ref instanceof String) {
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
cellBlockCodecClass_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
+
// optional string cell_block_compressor_class = 4;
public static final int CELL_BLOCK_COMPRESSOR_CLASS_FIELD_NUMBER = 4;
private java.lang.Object cellBlockCompressorClass_;
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
public boolean hasCellBlockCompressorClass() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
- public String getCellBlockCompressorClass() {
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
+ public java.lang.String getCellBlockCompressorClass() {
java.lang.Object ref = cellBlockCompressorClass_;
- if (ref instanceof String) {
- return (String) ref;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
cellBlockCompressorClass_ = s;
}
return s;
}
}
- private com.google.protobuf.ByteString getCellBlockCompressorClassBytes() {
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
+ public com.google.protobuf.ByteString
+ getCellBlockCompressorClassBytes() {
java.lang.Object ref = cellBlockCompressorClass_;
- if (ref instanceof String) {
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
cellBlockCompressorClass_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
-
+
private void initFields() {
userInfo_ = org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance();
serviceName_ = "";
@@ -695,7 +1104,7 @@ public final class RPCProtos {
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
-
+
if (hasUserInfo()) {
if (!getUserInfo().isInitialized()) {
memoizedIsInitialized = 0;
@@ -705,7 +1114,7 @@ public final class RPCProtos {
memoizedIsInitialized = 1;
return true;
}
-
+
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
@@ -723,12 +1132,12 @@ public final class RPCProtos {
}
getUnknownFields().writeTo(output);
}
-
+
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
-
+
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
@@ -750,14 +1159,14 @@ public final class RPCProtos {
memoizedSerializedSize = size;
return size;
}
-
+
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
-
+
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
@@ -767,7 +1176,7 @@ public final class RPCProtos {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader other = (org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader) obj;
-
+
boolean result = true;
result = result && (hasUserInfo() == other.hasUserInfo());
if (hasUserInfo()) {
@@ -793,9 +1202,13 @@ public final class RPCProtos {
getUnknownFields().equals(other.getUnknownFields());
return result;
}
-
+
+ private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasUserInfo()) {
@@ -815,89 +1228,83 @@ public final class RPCProtos {
hash = (53 * hash) + getCellBlockCompressorClass().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
return hash;
}
-
+
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
+ return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
+ return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
+ return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
+ return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
+ return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(input, extensionRegistry);
}
-
+
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
-
+
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
+ /**
+ * Protobuf type {@code ConnectionHeader}
+ *
+ * <pre>
+ * This is sent on connection setup after the connection preamble is sent.
+ * </pre>
+ */
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeaderOrBuilder {
@@ -905,18 +1312,21 @@ public final class RPCProtos {
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_descriptor;
}
-
+
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_fieldAccessorTable;
+ return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader.class, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader.Builder.class);
}
-
+
// Construct using org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
-
- private Builder(BuilderParent parent) {
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
@@ -928,7 +1338,7 @@ public final class RPCProtos {
private static Builder create() {
return new Builder();
}
-
+
public Builder clear() {
super.clear();
if (userInfoBuilder_ == null) {
@@ -945,20 +1355,20 @@ public final class RPCProtos {
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
-
+
public Builder clone() {
return create().mergeFrom(buildPartial());
}
-
+
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader.getDescriptor();
+ return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_descriptor;
}
-
+
public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader getDefaultInstanceForType() {
return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader.getDefaultInstance();
}
-
+
public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader build() {
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader result = buildPartial();
if (!result.isInitialized()) {
@@ -966,17 +1376,7 @@ public final class RPCProtos {
}
return result;
}
-
- private org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
+
public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader buildPartial() {
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader result = new org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader(this);
int from_bitField0_ = bitField0_;
@@ -1005,7 +1405,7 @@ public final class RPCProtos {
onBuilt();
return result;
}
-
+
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader) {
return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader)other);
@@ -1014,25 +1414,31 @@ public final class RPCProtos {
return this;
}
}
-
+
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader.getDefaultInstance()) return this;
if (other.hasUserInfo()) {
mergeUserInfo(other.getUserInfo());
}
if (other.hasServiceName()) {
- setServiceName(other.getServiceName());
+ bitField0_ |= 0x00000002;
+ serviceName_ = other.serviceName_;
+ onChanged();
}
if (other.hasCellBlockCodecClass()) {
- setCellBlockCodecClass(other.getCellBlockCodecClass());
+ bitField0_ |= 0x00000004;
+ cellBlockCodecClass_ = other.cellBlockCodecClass_;
+ onChanged();
}
if (other.hasCellBlockCompressorClass()) {
- setCellBlockCompressorClass(other.getCellBlockCompressorClass());
+ bitField0_ |= 0x00000008;
+ cellBlockCompressorClass_ = other.cellBlockCompressorClass_;
+ onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
-
+
public final boolean isInitialized() {
if (hasUserInfo()) {
if (!getUserInfo().isInitialized()) {
@@ -1042,67 +1448,39 @@ public final class RPCProtos {
}
return true;
}
-
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- break;
- }
- case 10: {
- org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.newBuilder();
- if (hasUserInfo()) {
- subBuilder.mergeFrom(getUserInfo());
- }
- input.readMessage(subBuilder, extensionRegistry);
- setUserInfo(subBuilder.buildPartial());
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- serviceName_ = input.readBytes();
- break;
- }
- case 26: {
- bitField0_ |= 0x00000004;
- cellBlockCodecClass_ = input.readBytes();
- break;
- }
- case 34: {
- bitField0_ |= 0x00000008;
- cellBlockCompressorClass_ = input.readBytes();
- break;
- }
+ org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
}
}
+ return this;
}
-
private int bitField0_;
-
+
// optional .UserInformation user_info = 1;
private org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation userInfo_ = org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformationOrBuilder> userInfoBuilder_;
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
public boolean hasUserInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation getUserInfo() {
if (userInfoBuilder_ == null) {
return userInfo_;
@@ -1110,6 +1488,9 @@ public final class RPCProtos {
return userInfoBuilder_.getMessage();
}
}
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
public Builder setUserInfo(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation value) {
if (userInfoBuilder_ == null) {
if (value == null) {
@@ -1123,6 +1504,9 @@ public final class RPCProtos {
bitField0_ |= 0x00000001;
return this;
}
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
public Builder setUserInfo(
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.Builder builderForValue) {
if (userInfoBuilder_ == null) {
@@ -1134,6 +1518,9 @@ public final class RPCProtos {
bitField0_ |= 0x00000001;
return this;
}
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
public Builder mergeUserInfo(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation value) {
if (userInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
@@ -1150,6 +1537,9 @@ public final class RPCProtos {
bitField0_ |= 0x00000001;
return this;
}
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
public Builder clearUserInfo() {
if (userInfoBuilder_ == null) {
userInfo_ = org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance();
@@ -1160,11 +1550,17 @@ public final class RPCProtos {
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.Builder getUserInfoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getUserInfoFieldBuilder().getBuilder();
}
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder() {
if (userInfoBuilder_ != null) {
return userInfoBuilder_.getMessageOrBuilder();
@@ -1172,6 +1568,9 @@ public final class RPCProtos {
return userInfo_;
}
}
+ /**
+ * <code>optional .UserInformation user_info = 1;</code>
+ */
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformationOrBuilder>
getUserInfoFieldBuilder() {
@@ -1185,23 +1584,50 @@ public final class RPCProtos {
}
return userInfoBuilder_;
}
-
+
// optional string service_name = 2;
private java.lang.Object serviceName_ = "";
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
public boolean hasServiceName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
- public String getServiceName() {
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
+ public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
- if (!(ref instanceof String)) {
- String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ if (!(ref instanceof java.lang.String)) {
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
serviceName_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getServiceNameBytes() {
+ java.lang.Object ref = serviceName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
}
- public Builder setServiceName(String value) {
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
+ public Builder setServiceName(
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
@@ -1210,34 +1636,92 @@ public final class RPCProtos {
onChanged();
return this;
}
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
public Builder clearServiceName() {
bitField0_ = (bitField0_ & ~0x00000002);
serviceName_ = getDefaultInstance().getServiceName();
onChanged();
return this;
}
- void setServiceName(com.google.protobuf.ByteString value) {
- bitField0_ |= 0x00000002;
+ /**
+ * <code>optional string service_name = 2;</code>
+ */
+ public Builder setServiceNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
serviceName_ = value;
onChanged();
+ return this;
}
-
+
// optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];
private java.lang.Object cellBlockCodecClass_ = "org.apache.hadoop.hbase.codec.KeyValueCodec";
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
public boolean hasCellBlockCodecClass() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
- public String getCellBlockCodecClass() {
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
+ public java.lang.String getCellBlockCodecClass() {
java.lang.Object ref = cellBlockCodecClass_;
- if (!(ref instanceof String)) {
- String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ if (!(ref instanceof java.lang.String)) {
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
cellBlockCodecClass_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
- public Builder setCellBlockCodecClass(String value) {
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
+ public com.google.protobuf.ByteString
+ getCellBlockCodecClassBytes() {
+ java.lang.Object ref = cellBlockCodecClass_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ cellBlockCodecClass_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
+ public Builder setCellBlockCodecClass(
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
@@ -1246,34 +1730,102 @@ public final class RPCProtos {
onChanged();
return this;
}
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
public Builder clearCellBlockCodecClass() {
bitField0_ = (bitField0_ & ~0x00000004);
cellBlockCodecClass_ = getDefaultInstance().getCellBlockCodecClass();
onChanged();
return this;
}
- void setCellBlockCodecClass(com.google.protobuf.ByteString value) {
- bitField0_ |= 0x00000004;
+ /**
+ * <code>optional string cell_block_codec_class = 3 [default = "org.apache.hadoop.hbase.codec.KeyValueCodec"];</code>
+ *
+ * <pre>
+ * Cell block codec we will use sending over optional cell blocks. Server throws exception
+ * if cannot deal.
+ * </pre>
+ */
+ public Builder setCellBlockCodecClassBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
cellBlockCodecClass_ = value;
onChanged();
+ return this;
}
-
+
// optional string cell_block_compressor_class = 4;
private java.lang.Object cellBlockCompressorClass_ = "";
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
public boolean hasCellBlockCompressorClass() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
- public String getCellBlockCompressorClass() {
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
+ public java.lang.String getCellBlockCompressorClass() {
java.lang.Object ref = cellBlockCompressorClass_;
- if (!(ref instanceof String)) {
- String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ if (!(ref instanceof java.lang.String)) {
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
cellBlockCompressorClass_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
- public Builder setCellBlockCompressorClass(String value) {
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
+ public com.google.protobuf.ByteString
+ getCellBlockCompressorClassBytes() {
+ java.lang.Object ref = cellBlockCompressorClass_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ cellBlockCompressorClass_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
+ public Builder setCellBlockCompressorClass(
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
@@ -1282,75 +1834,195 @@ public final class RPCProtos {
onChanged();
return this;
}
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
public Builder clearCellBlockCompressorClass() {
bitField0_ = (bitField0_ & ~0x00000008);
cellBlockCompressorClass_ = getDefaultInstance().getCellBlockCompressorClass();
onChanged();
return this;
}
- void setCellBlockCompressorClass(com.google.protobuf.ByteString value) {
- bitField0_ |= 0x00000008;
+ /**
+ * <code>optional string cell_block_compressor_class = 4;</code>
+ *
+ * <pre>
+ * Compressor we will use if cell block is compressed. Server will throw exception if not supported.
+ * Class must implement hadoop's CompressionCodec Interface
+ * </pre>
+ */
+ public Builder setCellBlockCompressorClassBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
cellBlockCompressorClass_ = value;
onChanged();
+ return this;
}
-
+
// @@protoc_insertion_point(builder_scope:ConnectionHeader)
}
-
+
static {
defaultInstance = new ConnectionHeader(true);
defaultInstance.initFields();
}
-
+
// @@protoc_insertion_point(class_scope:ConnectionHeader)
}
-
+
public interface CellBlockMetaOrBuilder
extends com.google.protobuf.MessageOrBuilder {
-
+
// optional uint32 length = 1;
+ /**
+ * <code>optional uint32 length = 1;</code>
+ *
+ * <pre>
+ * Length of the following cell block. Could calculate it but convenient having it too hand.
+ * </pre>
+ */
boolean hasLength();
+ /**
+ * <code>optional uint32 length = 1;</code>
+ *
+ * <pre>
+ * Length of the following cell block. Could calculate it but convenient having it too hand.
+ * </pre>
+ */
int getLength();
}
+ /**
+ * Protobuf type {@code CellBlockMeta}
+ *
+ * <pre>
+ * Optional Cell block Message. Included in client RequestHeader
+ * </pre>
+ */
public static final class CellBlockMeta extends
com.google.protobuf.GeneratedMessage
implements CellBlockMetaOrBuilder {
// Use CellBlockMeta.newBuilder() to construct.
- private CellBlockMeta(Builder builder) {
+ private CellBlockMeta(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
+ this.unknownFields = builder.getUnknownFields();
}
- private CellBlockMeta(boolean noInit) {}
-
+ private CellBlockMeta(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
private static final CellBlockMeta defaultInstance;
public static CellBlockMeta getDefaultInstance() {
return defaultInstance;
}
-
+
public CellBlockMeta getDefaultInstanceForType() {
return defaultInstance;
}
-
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CellBlockMeta(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ 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;
+ length_ = input.readUInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_CellBlockMeta_descriptor;
}
-
+
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_CellBlockMeta_fieldAccessorTable;
+ return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_CellBlockMeta_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta.class, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<CellBlockMeta> PARSER =
+ new com.google.protobuf.AbstractParser<CellBlockMeta>() {
+ public CellBlockMeta parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CellBlockMeta(input, extensionRegistry);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CellBlockMeta> getParserForType() {
+ return PARSER;
}
-
+
private int bitField0_;
// optional uint32 length = 1;
public static final int LENGTH_FIELD_NUMBER = 1;
private int length_;
+ /**
+ * <code>optional uint32 length = 1;</code>
+ *
+ * <pre>
+ * Length of the following cell block. Could calculate it but convenient having it too hand.
+ * </pre>
+ */
public boolean hasLength() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
+ /**
+ * <code>optional uint32 length = 1;</code>
+ *
+ * <pre>
+ * Length of the following cell block. Could calculate it but convenient having it too hand.
+ * </pre>
+ */
public int getLength() {
return length_;
}
-
+
private void initFields() {
length_ = 0;
}
@@ -1358,11 +2030,11 @@ public final class RPCProtos {
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
-
+
memoizedIsInitialized = 1;
return true;
}
-
+
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
@@ -1371,12 +2043,12 @@ public final class RPCProtos {
}
getUnknownFields().writeTo(output);
}
-
+
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
-
+
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
@@ -1386,14 +2058,14 @@ public final class RPCProtos {
memoizedSerializedSize = size;
return size;
}
-
+
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
-
+
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
@@ -1403,7 +2075,7 @@ public final class RPCProtos {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta other = (org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta) obj;
-
+
boolean result = true;
result = result && (hasLength() == other.hasLength());
if (hasLength()) {
@@ -1414,9 +2086,13 @@ public final class RPCProtos {
getUnknownFields().equals(other.getUnknownFields());
return result;
}
-
+
+ private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasLength()) {
@@ -1424,89 +2100,83 @@ public final class RPCProtos {
hash = (53 * hash) + getLength();
}
hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
return hash;
}
-
+
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
+ return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
+ return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
+ return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
+ return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
+ return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
+ return PARSER.parseFrom(input, extensionRegistry);
}
-
+
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
-
+
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
+ /**
+ * Protobuf type {@code CellBlockMeta}
+ *
+ * <pre>
+ * Optional Cell block Message. Included in client RequestHeader
+ * </pre>
+ */
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMetaOrBuilder {
@@ -1514,18 +2184,21 @@ public final class RPCProtos {
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_CellBlockMeta_descriptor;
}
-
+
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_CellBlockMeta_fieldAccessorTable;
+ return org.apache.hadoop.hbase.protobuf.generated.RPCProtos.internal_static_CellBlockMeta_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta.class, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta.Builder.class);
}
-
+
// Construct using org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
-
- private Builder(BuilderParent parent) {
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
@@ -1536,27 +2209,27 @@ public final class RPCProtos {
private static Builder create() {
return new Builder();
}
-
+
public Builder clear() {
super.clear();
[... 3928 lines stripped ...]