org.hbase.async.generated.RPCPB Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asynchbase Show documentation
Show all versions of asynchbase Show documentation
An alternative HBase client library for applications requiring fully
asynchronous, non-blocking and thread-safe HBase connectivity.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RPC.proto
package org.hbase.async.generated;
public final class RPCPB {
private RPCPB() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface UserInformationOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// required string effective_user = 1;
/**
* required string effective_user = 1;
*/
boolean hasEffectiveUser();
/**
* required string effective_user = 1;
*/
java.lang.String getEffectiveUser();
/**
* required string effective_user = 1;
*/
com.google.protobuf.ByteString
getEffectiveUserBytes();
// optional string real_user = 2;
/**
* optional string real_user = 2;
*/
boolean hasRealUser();
/**
* optional string real_user = 2;
*/
java.lang.String getRealUser();
/**
* optional string real_user = 2;
*/
com.google.protobuf.ByteString
getRealUserBytes();
}
/**
* Protobuf type {@code UserInformation}
*
*
* User Information proto. Included in ConnectionHeader on connection setup
*
*/
public static final class UserInformation extends
com.google.protobuf.GeneratedMessageLite
implements UserInformationOrBuilder {
// Use UserInformation.newBuilder() to construct.
private UserInformation(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private UserInformation(boolean noInit) {}
private static final UserInformation defaultInstance;
public static UserInformation getDefaultInstance() {
return defaultInstance;
}
public UserInformation getDefaultInstanceForType() {
return defaultInstance;
}
private UserInformation(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
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 {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
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 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_;
/**
* required string effective_user = 1;
*/
public boolean hasEffectiveUser() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string effective_user = 1;
*/
public java.lang.String getEffectiveUser() {
java.lang.Object ref = effectiveUser_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
effectiveUser_ = s;
}
return s;
}
}
/**
* required string effective_user = 1;
*/
public com.google.protobuf.ByteString
getEffectiveUserBytes() {
java.lang.Object ref = effectiveUser_;
if (ref instanceof java.lang.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;
}
}
// optional string real_user = 2;
public static final int REAL_USER_FIELD_NUMBER = 2;
private java.lang.Object realUser_;
/**
* optional string real_user = 2;
*/
public boolean hasRealUser() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string real_user = 2;
*/
public java.lang.String getRealUser() {
java.lang.Object ref = realUser_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
realUser_ = s;
}
return s;
}
}
/**
* optional string real_user = 2;
*/
public com.google.protobuf.ByteString
getRealUserBytes() {
java.lang.Object ref = realUser_;
if (ref instanceof java.lang.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;
}
}
private void initFields() {
effectiveUser_ = "";
realUser_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasEffectiveUser()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getEffectiveUserBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getRealUserBytes());
}
}
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
.computeBytesSize(1, getEffectiveUserBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getRealUserBytes());
}
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();
}
public static org.hbase.async.generated.RPCPB.UserInformation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.UserInformation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.UserInformation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.UserInformation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.UserInformation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.UserInformation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.UserInformation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.hbase.async.generated.RPCPB.UserInformation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.UserInformation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.UserInformation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.hbase.async.generated.RPCPB.UserInformation prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code UserInformation}
*
*
* User Information proto. Included in ConnectionHeader on connection setup
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.hbase.async.generated.RPCPB.UserInformation, Builder>
implements org.hbase.async.generated.RPCPB.UserInformationOrBuilder {
// Construct using org.hbase.async.generated.RPCPB.UserInformation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
effectiveUser_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
realUser_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.hbase.async.generated.RPCPB.UserInformation getDefaultInstanceForType() {
return org.hbase.async.generated.RPCPB.UserInformation.getDefaultInstance();
}
public org.hbase.async.generated.RPCPB.UserInformation build() {
org.hbase.async.generated.RPCPB.UserInformation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hbase.async.generated.RPCPB.UserInformation buildPartial() {
org.hbase.async.generated.RPCPB.UserInformation result = new org.hbase.async.generated.RPCPB.UserInformation(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.effectiveUser_ = effectiveUser_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.realUser_ = realUser_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.hbase.async.generated.RPCPB.UserInformation other) {
if (other == org.hbase.async.generated.RPCPB.UserInformation.getDefaultInstance()) return this;
if (other.hasEffectiveUser()) {
bitField0_ |= 0x00000001;
effectiveUser_ = other.effectiveUser_;
}
if (other.hasRealUser()) {
bitField0_ |= 0x00000002;
realUser_ = other.realUser_;
}
return this;
}
public final boolean isInitialized() {
if (!hasEffectiveUser()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hbase.async.generated.RPCPB.UserInformation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hbase.async.generated.RPCPB.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_ = "";
/**
* required string effective_user = 1;
*/
public boolean hasEffectiveUser() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string effective_user = 1;
*/
public java.lang.String getEffectiveUser() {
java.lang.Object ref = effectiveUser_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
effectiveUser_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string effective_user = 1;
*/
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;
}
}
/**
* required string effective_user = 1;
*/
public Builder setEffectiveUser(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
effectiveUser_ = value;
return this;
}
/**
* required string effective_user = 1;
*/
public Builder clearEffectiveUser() {
bitField0_ = (bitField0_ & ~0x00000001);
effectiveUser_ = getDefaultInstance().getEffectiveUser();
return this;
}
/**
* required string effective_user = 1;
*/
public Builder setEffectiveUserBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
effectiveUser_ = value;
return this;
}
// optional string real_user = 2;
private java.lang.Object realUser_ = "";
/**
* optional string real_user = 2;
*/
public boolean hasRealUser() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string real_user = 2;
*/
public java.lang.String getRealUser() {
java.lang.Object ref = realUser_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
realUser_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string real_user = 2;
*/
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;
}
}
/**
* optional string real_user = 2;
*/
public Builder setRealUser(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
realUser_ = value;
return this;
}
/**
* optional string real_user = 2;
*/
public Builder clearRealUser() {
bitField0_ = (bitField0_ & ~0x00000002);
realUser_ = getDefaultInstance().getRealUser();
return this;
}
/**
* optional string real_user = 2;
*/
public Builder setRealUserBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
realUser_ = value;
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.MessageLiteOrBuilder {
// optional .UserInformation user_info = 1;
/**
* optional .UserInformation user_info = 1;
*/
boolean hasUserInfo();
/**
* optional .UserInformation user_info = 1;
*/
org.hbase.async.generated.RPCPB.UserInformation getUserInfo();
// optional string service_name = 2;
/**
* optional string service_name = 2;
*/
boolean hasServiceName();
/**
* optional string service_name = 2;
*/
java.lang.String getServiceName();
/**
* optional string service_name = 2;
*/
com.google.protobuf.ByteString
getServiceNameBytes();
// optional string cell_block_codec_class = 3;
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
boolean hasCellBlockCodecClass();
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
java.lang.String getCellBlockCodecClass();
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
com.google.protobuf.ByteString
getCellBlockCodecClassBytes();
// optional string cell_block_compressor_class = 4;
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
boolean hasCellBlockCompressorClass();
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
java.lang.String getCellBlockCompressorClass();
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
com.google.protobuf.ByteString
getCellBlockCompressorClassBytes();
// optional .VersionInfo version_info = 5;
/**
* optional .VersionInfo version_info = 5;
*/
boolean hasVersionInfo();
/**
* optional .VersionInfo version_info = 5;
*/
org.hbase.async.generated.HBasePB.VersionInfo getVersionInfo();
}
/**
* Protobuf type {@code ConnectionHeader}
*
*
* This is sent on connection setup after the connection preamble is sent.
*
*/
public static final class ConnectionHeader extends
com.google.protobuf.GeneratedMessageLite
implements ConnectionHeaderOrBuilder {
// Use ConnectionHeader.newBuilder() to construct.
private ConnectionHeader(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private ConnectionHeader(boolean noInit) {}
private static final ConnectionHeader defaultInstance;
public static ConnectionHeader getDefaultInstance() {
return defaultInstance;
}
public ConnectionHeader getDefaultInstanceForType() {
return defaultInstance;
}
private ConnectionHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.hbase.async.generated.RPCPB.UserInformation.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = userInfo_.toBuilder();
}
userInfo_ = input.readMessage(org.hbase.async.generated.RPCPB.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;
}
case 42: {
org.hbase.async.generated.HBasePB.VersionInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = versionInfo_.toBuilder();
}
versionInfo_ = input.readMessage(org.hbase.async.generated.HBasePB.VersionInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(versionInfo_);
versionInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
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 {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
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 getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .UserInformation user_info = 1;
public static final int USER_INFO_FIELD_NUMBER = 1;
private org.hbase.async.generated.RPCPB.UserInformation userInfo_;
/**
* optional .UserInformation user_info = 1;
*/
public boolean hasUserInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .UserInformation user_info = 1;
*/
public org.hbase.async.generated.RPCPB.UserInformation getUserInfo() {
return userInfo_;
}
// optional string service_name = 2;
public static final int SERVICE_NAME_FIELD_NUMBER = 2;
private java.lang.Object serviceName_;
/**
* optional string service_name = 2;
*/
public boolean hasServiceName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string service_name = 2;
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
serviceName_ = s;
}
return s;
}
}
/**
* optional string service_name = 2;
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.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;
}
}
// optional string cell_block_codec_class = 3;
public static final int CELL_BLOCK_CODEC_CLASS_FIELD_NUMBER = 3;
private java.lang.Object cellBlockCodecClass_;
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
public boolean hasCellBlockCodecClass() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
public java.lang.String getCellBlockCodecClass() {
java.lang.Object ref = cellBlockCodecClass_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
cellBlockCodecClass_ = s;
}
return s;
}
}
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
public com.google.protobuf.ByteString
getCellBlockCodecClassBytes() {
java.lang.Object ref = cellBlockCodecClass_;
if (ref instanceof java.lang.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;
}
}
// optional string cell_block_compressor_class = 4;
public static final int CELL_BLOCK_COMPRESSOR_CLASS_FIELD_NUMBER = 4;
private java.lang.Object cellBlockCompressorClass_;
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
public boolean hasCellBlockCompressorClass() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
public java.lang.String getCellBlockCompressorClass() {
java.lang.Object ref = cellBlockCompressorClass_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
cellBlockCompressorClass_ = s;
}
return s;
}
}
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
public com.google.protobuf.ByteString
getCellBlockCompressorClassBytes() {
java.lang.Object ref = cellBlockCompressorClass_;
if (ref instanceof java.lang.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;
}
}
// optional .VersionInfo version_info = 5;
public static final int VERSION_INFO_FIELD_NUMBER = 5;
private org.hbase.async.generated.HBasePB.VersionInfo versionInfo_;
/**
* optional .VersionInfo version_info = 5;
*/
public boolean hasVersionInfo() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .VersionInfo version_info = 5;
*/
public org.hbase.async.generated.HBasePB.VersionInfo getVersionInfo() {
return versionInfo_;
}
private void initFields() {
userInfo_ = org.hbase.async.generated.RPCPB.UserInformation.getDefaultInstance();
serviceName_ = "";
cellBlockCodecClass_ = "";
cellBlockCompressorClass_ = "";
versionInfo_ = org.hbase.async.generated.HBasePB.VersionInfo.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasUserInfo()) {
if (!getUserInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasVersionInfo()) {
if (!getVersionInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, userInfo_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getServiceNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getCellBlockCodecClassBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getCellBlockCompressorClassBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, versionInfo_);
}
}
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
.computeMessageSize(1, userInfo_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getServiceNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getCellBlockCodecClassBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getCellBlockCompressorClassBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, versionInfo_);
}
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();
}
public static org.hbase.async.generated.RPCPB.ConnectionHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.ConnectionHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ConnectionHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.ConnectionHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ConnectionHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.ConnectionHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ConnectionHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.hbase.async.generated.RPCPB.ConnectionHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ConnectionHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.ConnectionHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.hbase.async.generated.RPCPB.ConnectionHeader prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code ConnectionHeader}
*
*
* This is sent on connection setup after the connection preamble is sent.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.hbase.async.generated.RPCPB.ConnectionHeader, Builder>
implements org.hbase.async.generated.RPCPB.ConnectionHeaderOrBuilder {
// Construct using org.hbase.async.generated.RPCPB.ConnectionHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
userInfo_ = org.hbase.async.generated.RPCPB.UserInformation.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
serviceName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
cellBlockCodecClass_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
cellBlockCompressorClass_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
versionInfo_ = org.hbase.async.generated.HBasePB.VersionInfo.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.hbase.async.generated.RPCPB.ConnectionHeader getDefaultInstanceForType() {
return org.hbase.async.generated.RPCPB.ConnectionHeader.getDefaultInstance();
}
public org.hbase.async.generated.RPCPB.ConnectionHeader build() {
org.hbase.async.generated.RPCPB.ConnectionHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hbase.async.generated.RPCPB.ConnectionHeader buildPartial() {
org.hbase.async.generated.RPCPB.ConnectionHeader result = new org.hbase.async.generated.RPCPB.ConnectionHeader(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.userInfo_ = userInfo_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.serviceName_ = serviceName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.cellBlockCodecClass_ = cellBlockCodecClass_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.cellBlockCompressorClass_ = cellBlockCompressorClass_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.versionInfo_ = versionInfo_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.hbase.async.generated.RPCPB.ConnectionHeader other) {
if (other == org.hbase.async.generated.RPCPB.ConnectionHeader.getDefaultInstance()) return this;
if (other.hasUserInfo()) {
mergeUserInfo(other.getUserInfo());
}
if (other.hasServiceName()) {
bitField0_ |= 0x00000002;
serviceName_ = other.serviceName_;
}
if (other.hasCellBlockCodecClass()) {
bitField0_ |= 0x00000004;
cellBlockCodecClass_ = other.cellBlockCodecClass_;
}
if (other.hasCellBlockCompressorClass()) {
bitField0_ |= 0x00000008;
cellBlockCompressorClass_ = other.cellBlockCompressorClass_;
}
if (other.hasVersionInfo()) {
mergeVersionInfo(other.getVersionInfo());
}
return this;
}
public final boolean isInitialized() {
if (hasUserInfo()) {
if (!getUserInfo().isInitialized()) {
return false;
}
}
if (hasVersionInfo()) {
if (!getVersionInfo().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hbase.async.generated.RPCPB.ConnectionHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hbase.async.generated.RPCPB.ConnectionHeader) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .UserInformation user_info = 1;
private org.hbase.async.generated.RPCPB.UserInformation userInfo_ = org.hbase.async.generated.RPCPB.UserInformation.getDefaultInstance();
/**
* optional .UserInformation user_info = 1;
*/
public boolean hasUserInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .UserInformation user_info = 1;
*/
public org.hbase.async.generated.RPCPB.UserInformation getUserInfo() {
return userInfo_;
}
/**
* optional .UserInformation user_info = 1;
*/
public Builder setUserInfo(org.hbase.async.generated.RPCPB.UserInformation value) {
if (value == null) {
throw new NullPointerException();
}
userInfo_ = value;
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .UserInformation user_info = 1;
*/
public Builder setUserInfo(
org.hbase.async.generated.RPCPB.UserInformation.Builder builderForValue) {
userInfo_ = builderForValue.build();
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .UserInformation user_info = 1;
*/
public Builder mergeUserInfo(org.hbase.async.generated.RPCPB.UserInformation value) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
userInfo_ != org.hbase.async.generated.RPCPB.UserInformation.getDefaultInstance()) {
userInfo_ =
org.hbase.async.generated.RPCPB.UserInformation.newBuilder(userInfo_).mergeFrom(value).buildPartial();
} else {
userInfo_ = value;
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .UserInformation user_info = 1;
*/
public Builder clearUserInfo() {
userInfo_ = org.hbase.async.generated.RPCPB.UserInformation.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
// optional string service_name = 2;
private java.lang.Object serviceName_ = "";
/**
* optional string service_name = 2;
*/
public boolean hasServiceName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string service_name = 2;
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
serviceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string service_name = 2;
*/
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;
}
}
/**
* optional string service_name = 2;
*/
public Builder setServiceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
serviceName_ = value;
return this;
}
/**
* optional string service_name = 2;
*/
public Builder clearServiceName() {
bitField0_ = (bitField0_ & ~0x00000002);
serviceName_ = getDefaultInstance().getServiceName();
return this;
}
/**
* optional string service_name = 2;
*/
public Builder setServiceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
serviceName_ = value;
return this;
}
// optional string cell_block_codec_class = 3;
private java.lang.Object cellBlockCodecClass_ = "";
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
public boolean hasCellBlockCodecClass() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
public java.lang.String getCellBlockCodecClass() {
java.lang.Object ref = cellBlockCodecClass_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
cellBlockCodecClass_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
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;
}
}
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
public Builder setCellBlockCodecClass(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
cellBlockCodecClass_ = value;
return this;
}
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
public Builder clearCellBlockCodecClass() {
bitField0_ = (bitField0_ & ~0x00000004);
cellBlockCodecClass_ = getDefaultInstance().getCellBlockCodecClass();
return this;
}
/**
* optional string cell_block_codec_class = 3;
*
*
* Cell block codec we will use sending over optional cell blocks. Server throws exception
* if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!)
*
*/
public Builder setCellBlockCodecClassBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
cellBlockCodecClass_ = value;
return this;
}
// optional string cell_block_compressor_class = 4;
private java.lang.Object cellBlockCompressorClass_ = "";
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
public boolean hasCellBlockCompressorClass() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
public java.lang.String getCellBlockCompressorClass() {
java.lang.Object ref = cellBlockCompressorClass_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
cellBlockCompressorClass_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
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;
}
}
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
public Builder setCellBlockCompressorClass(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
cellBlockCompressorClass_ = value;
return this;
}
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
public Builder clearCellBlockCompressorClass() {
bitField0_ = (bitField0_ & ~0x00000008);
cellBlockCompressorClass_ = getDefaultInstance().getCellBlockCompressorClass();
return this;
}
/**
* optional string cell_block_compressor_class = 4;
*
*
* Compressor we will use if cell block is compressed. Server will throw exception if not supported.
* Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec.
*
*/
public Builder setCellBlockCompressorClassBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
cellBlockCompressorClass_ = value;
return this;
}
// optional .VersionInfo version_info = 5;
private org.hbase.async.generated.HBasePB.VersionInfo versionInfo_ = org.hbase.async.generated.HBasePB.VersionInfo.getDefaultInstance();
/**
* optional .VersionInfo version_info = 5;
*/
public boolean hasVersionInfo() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .VersionInfo version_info = 5;
*/
public org.hbase.async.generated.HBasePB.VersionInfo getVersionInfo() {
return versionInfo_;
}
/**
* optional .VersionInfo version_info = 5;
*/
public Builder setVersionInfo(org.hbase.async.generated.HBasePB.VersionInfo value) {
if (value == null) {
throw new NullPointerException();
}
versionInfo_ = value;
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .VersionInfo version_info = 5;
*/
public Builder setVersionInfo(
org.hbase.async.generated.HBasePB.VersionInfo.Builder builderForValue) {
versionInfo_ = builderForValue.build();
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .VersionInfo version_info = 5;
*/
public Builder mergeVersionInfo(org.hbase.async.generated.HBasePB.VersionInfo value) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
versionInfo_ != org.hbase.async.generated.HBasePB.VersionInfo.getDefaultInstance()) {
versionInfo_ =
org.hbase.async.generated.HBasePB.VersionInfo.newBuilder(versionInfo_).mergeFrom(value).buildPartial();
} else {
versionInfo_ = value;
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .VersionInfo version_info = 5;
*/
public Builder clearVersionInfo() {
versionInfo_ = org.hbase.async.generated.HBasePB.VersionInfo.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
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.MessageLiteOrBuilder {
// optional uint32 length = 1;
/**
* optional uint32 length = 1;
*
*
* Length of the following cell block. Could calculate it but convenient having it too hand.
*
*/
boolean hasLength();
/**
* optional uint32 length = 1;
*
*
* Length of the following cell block. Could calculate it but convenient having it too hand.
*
*/
int getLength();
}
/**
* Protobuf type {@code CellBlockMeta}
*
*
* Optional Cell block Message. Included in client RequestHeader
*
*/
public static final class CellBlockMeta extends
com.google.protobuf.GeneratedMessageLite
implements CellBlockMetaOrBuilder {
// Use CellBlockMeta.newBuilder() to construct.
private CellBlockMeta(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private CellBlockMeta(boolean noInit) {}
private static final CellBlockMeta defaultInstance;
public static CellBlockMeta getDefaultInstance() {
return defaultInstance;
}
public CellBlockMeta getDefaultInstanceForType() {
return defaultInstance;
}
private CellBlockMeta(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
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 {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
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 getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint32 length = 1;
public static final int LENGTH_FIELD_NUMBER = 1;
private int length_;
/**
* optional uint32 length = 1;
*
*
* Length of the following cell block. Could calculate it but convenient having it too hand.
*
*/
public boolean hasLength() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 length = 1;
*
*
* Length of the following cell block. Could calculate it but convenient having it too hand.
*
*/
public int getLength() {
return length_;
}
private void initFields() {
length_ = 0;
}
private byte memoizedIsInitialized = -1;
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();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, length_);
}
}
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
.computeUInt32Size(1, length_);
}
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();
}
public static org.hbase.async.generated.RPCPB.CellBlockMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.CellBlockMeta parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.CellBlockMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.CellBlockMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.CellBlockMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.CellBlockMeta parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.CellBlockMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.hbase.async.generated.RPCPB.CellBlockMeta parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.CellBlockMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.CellBlockMeta parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.hbase.async.generated.RPCPB.CellBlockMeta prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code CellBlockMeta}
*
*
* Optional Cell block Message. Included in client RequestHeader
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.hbase.async.generated.RPCPB.CellBlockMeta, Builder>
implements org.hbase.async.generated.RPCPB.CellBlockMetaOrBuilder {
// Construct using org.hbase.async.generated.RPCPB.CellBlockMeta.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
length_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.hbase.async.generated.RPCPB.CellBlockMeta getDefaultInstanceForType() {
return org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance();
}
public org.hbase.async.generated.RPCPB.CellBlockMeta build() {
org.hbase.async.generated.RPCPB.CellBlockMeta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hbase.async.generated.RPCPB.CellBlockMeta buildPartial() {
org.hbase.async.generated.RPCPB.CellBlockMeta result = new org.hbase.async.generated.RPCPB.CellBlockMeta(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.length_ = length_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.hbase.async.generated.RPCPB.CellBlockMeta other) {
if (other == org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance()) return this;
if (other.hasLength()) {
setLength(other.getLength());
}
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hbase.async.generated.RPCPB.CellBlockMeta parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hbase.async.generated.RPCPB.CellBlockMeta) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint32 length = 1;
private int length_ ;
/**
* optional uint32 length = 1;
*
*
* Length of the following cell block. Could calculate it but convenient having it too hand.
*
*/
public boolean hasLength() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 length = 1;
*
*
* Length of the following cell block. Could calculate it but convenient having it too hand.
*
*/
public int getLength() {
return length_;
}
/**
* optional uint32 length = 1;
*
*
* Length of the following cell block. Could calculate it but convenient having it too hand.
*
*/
public Builder setLength(int value) {
bitField0_ |= 0x00000001;
length_ = value;
return this;
}
/**
* optional uint32 length = 1;
*
*
* Length of the following cell block. Could calculate it but convenient having it too hand.
*
*/
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000001);
length_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:CellBlockMeta)
}
static {
defaultInstance = new CellBlockMeta(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:CellBlockMeta)
}
public interface ExceptionResponseOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional string exception_class_name = 1;
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
boolean hasExceptionClassName();
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
java.lang.String getExceptionClassName();
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
com.google.protobuf.ByteString
getExceptionClassNameBytes();
// optional string stack_trace = 2;
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
boolean hasStackTrace();
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
java.lang.String getStackTrace();
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
com.google.protobuf.ByteString
getStackTraceBytes();
// optional string hostname = 3;
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
boolean hasHostname();
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
java.lang.String getHostname();
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
com.google.protobuf.ByteString
getHostnameBytes();
// optional int32 port = 4;
/**
* optional int32 port = 4;
*/
boolean hasPort();
/**
* optional int32 port = 4;
*/
int getPort();
// optional bool do_not_retry = 5;
/**
* optional bool do_not_retry = 5;
*
*
* Set if we are NOT to retry on receipt of this exception
*
*/
boolean hasDoNotRetry();
/**
* optional bool do_not_retry = 5;
*
*
* Set if we are NOT to retry on receipt of this exception
*
*/
boolean getDoNotRetry();
}
/**
* Protobuf type {@code ExceptionResponse}
*
*
* At the RPC layer, this message is used to carry
* the server side exception to the RPC client.
*
*/
public static final class ExceptionResponse extends
com.google.protobuf.GeneratedMessageLite
implements ExceptionResponseOrBuilder {
// Use ExceptionResponse.newBuilder() to construct.
private ExceptionResponse(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private ExceptionResponse(boolean noInit) {}
private static final ExceptionResponse defaultInstance;
public static ExceptionResponse getDefaultInstance() {
return defaultInstance;
}
public ExceptionResponse getDefaultInstanceForType() {
return defaultInstance;
}
private ExceptionResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
exceptionClassName_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
stackTrace_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
hostname_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000008;
port_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
doNotRetry_ = input.readBool();
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 {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ExceptionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExceptionResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string exception_class_name = 1;
public static final int EXCEPTION_CLASS_NAME_FIELD_NUMBER = 1;
private java.lang.Object exceptionClassName_;
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
public boolean hasExceptionClassName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
public java.lang.String getExceptionClassName() {
java.lang.Object ref = exceptionClassName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
exceptionClassName_ = s;
}
return s;
}
}
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
public com.google.protobuf.ByteString
getExceptionClassNameBytes() {
java.lang.Object ref = exceptionClassName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exceptionClassName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string stack_trace = 2;
public static final int STACK_TRACE_FIELD_NUMBER = 2;
private java.lang.Object stackTrace_;
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
public boolean hasStackTrace() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
public java.lang.String getStackTrace() {
java.lang.Object ref = stackTrace_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
stackTrace_ = s;
}
return s;
}
}
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
public com.google.protobuf.ByteString
getStackTraceBytes() {
java.lang.Object ref = stackTrace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stackTrace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string hostname = 3;
public static final int HOSTNAME_FIELD_NUMBER = 3;
private java.lang.Object hostname_;
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
public boolean hasHostname() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
hostname_ = s;
}
return s;
}
}
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 port = 4;
public static final int PORT_FIELD_NUMBER = 4;
private int port_;
/**
* optional int32 port = 4;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 port = 4;
*/
public int getPort() {
return port_;
}
// optional bool do_not_retry = 5;
public static final int DO_NOT_RETRY_FIELD_NUMBER = 5;
private boolean doNotRetry_;
/**
* optional bool do_not_retry = 5;
*
*
* Set if we are NOT to retry on receipt of this exception
*
*/
public boolean hasDoNotRetry() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bool do_not_retry = 5;
*
*
* Set if we are NOT to retry on receipt of this exception
*
*/
public boolean getDoNotRetry() {
return doNotRetry_;
}
private void initFields() {
exceptionClassName_ = "";
stackTrace_ = "";
hostname_ = "";
port_ = 0;
doNotRetry_ = false;
}
private byte memoizedIsInitialized = -1;
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();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getExceptionClassNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getStackTraceBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getHostnameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, port_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(5, doNotRetry_);
}
}
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
.computeBytesSize(1, getExceptionClassNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getStackTraceBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getHostnameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, port_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, doNotRetry_);
}
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();
}
public static org.hbase.async.generated.RPCPB.ExceptionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.ExceptionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ExceptionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.ExceptionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ExceptionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.ExceptionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ExceptionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.hbase.async.generated.RPCPB.ExceptionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ExceptionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.ExceptionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.hbase.async.generated.RPCPB.ExceptionResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code ExceptionResponse}
*
*
* At the RPC layer, this message is used to carry
* the server side exception to the RPC client.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.hbase.async.generated.RPCPB.ExceptionResponse, Builder>
implements org.hbase.async.generated.RPCPB.ExceptionResponseOrBuilder {
// Construct using org.hbase.async.generated.RPCPB.ExceptionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
exceptionClassName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
stackTrace_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
hostname_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
port_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
doNotRetry_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.hbase.async.generated.RPCPB.ExceptionResponse getDefaultInstanceForType() {
return org.hbase.async.generated.RPCPB.ExceptionResponse.getDefaultInstance();
}
public org.hbase.async.generated.RPCPB.ExceptionResponse build() {
org.hbase.async.generated.RPCPB.ExceptionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hbase.async.generated.RPCPB.ExceptionResponse buildPartial() {
org.hbase.async.generated.RPCPB.ExceptionResponse result = new org.hbase.async.generated.RPCPB.ExceptionResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.exceptionClassName_ = exceptionClassName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.stackTrace_ = stackTrace_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.hostname_ = hostname_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.port_ = port_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.doNotRetry_ = doNotRetry_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.hbase.async.generated.RPCPB.ExceptionResponse other) {
if (other == org.hbase.async.generated.RPCPB.ExceptionResponse.getDefaultInstance()) return this;
if (other.hasExceptionClassName()) {
bitField0_ |= 0x00000001;
exceptionClassName_ = other.exceptionClassName_;
}
if (other.hasStackTrace()) {
bitField0_ |= 0x00000002;
stackTrace_ = other.stackTrace_;
}
if (other.hasHostname()) {
bitField0_ |= 0x00000004;
hostname_ = other.hostname_;
}
if (other.hasPort()) {
setPort(other.getPort());
}
if (other.hasDoNotRetry()) {
setDoNotRetry(other.getDoNotRetry());
}
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hbase.async.generated.RPCPB.ExceptionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hbase.async.generated.RPCPB.ExceptionResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string exception_class_name = 1;
private java.lang.Object exceptionClassName_ = "";
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
public boolean hasExceptionClassName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
public java.lang.String getExceptionClassName() {
java.lang.Object ref = exceptionClassName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
exceptionClassName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
public com.google.protobuf.ByteString
getExceptionClassNameBytes() {
java.lang.Object ref = exceptionClassName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exceptionClassName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
public Builder setExceptionClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
exceptionClassName_ = value;
return this;
}
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
public Builder clearExceptionClassName() {
bitField0_ = (bitField0_ & ~0x00000001);
exceptionClassName_ = getDefaultInstance().getExceptionClassName();
return this;
}
/**
* optional string exception_class_name = 1;
*
*
* Class name of the exception thrown from the server
*
*/
public Builder setExceptionClassNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
exceptionClassName_ = value;
return this;
}
// optional string stack_trace = 2;
private java.lang.Object stackTrace_ = "";
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
public boolean hasStackTrace() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
public java.lang.String getStackTrace() {
java.lang.Object ref = stackTrace_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
stackTrace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
public com.google.protobuf.ByteString
getStackTraceBytes() {
java.lang.Object ref = stackTrace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stackTrace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
public Builder setStackTrace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
stackTrace_ = value;
return this;
}
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
public Builder clearStackTrace() {
bitField0_ = (bitField0_ & ~0x00000002);
stackTrace_ = getDefaultInstance().getStackTrace();
return this;
}
/**
* optional string stack_trace = 2;
*
*
* Exception stack trace from the server side
*
*/
public Builder setStackTraceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
stackTrace_ = value;
return this;
}
// optional string hostname = 3;
private java.lang.Object hostname_ = "";
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
public boolean hasHostname() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
hostname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
public Builder setHostname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
hostname_ = value;
return this;
}
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
public Builder clearHostname() {
bitField0_ = (bitField0_ & ~0x00000004);
hostname_ = getDefaultInstance().getHostname();
return this;
}
/**
* optional string hostname = 3;
*
*
* Optional hostname. Filled in for some exceptions such as region moved
* where exception gives clue on where the region may have moved.
*
*/
public Builder setHostnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
hostname_ = value;
return this;
}
// optional int32 port = 4;
private int port_ ;
/**
* optional int32 port = 4;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 port = 4;
*/
public int getPort() {
return port_;
}
/**
* optional int32 port = 4;
*/
public Builder setPort(int value) {
bitField0_ |= 0x00000008;
port_ = value;
return this;
}
/**
* optional int32 port = 4;
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000008);
port_ = 0;
return this;
}
// optional bool do_not_retry = 5;
private boolean doNotRetry_ ;
/**
* optional bool do_not_retry = 5;
*
*
* Set if we are NOT to retry on receipt of this exception
*
*/
public boolean hasDoNotRetry() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bool do_not_retry = 5;
*
*
* Set if we are NOT to retry on receipt of this exception
*
*/
public boolean getDoNotRetry() {
return doNotRetry_;
}
/**
* optional bool do_not_retry = 5;
*
*
* Set if we are NOT to retry on receipt of this exception
*
*/
public Builder setDoNotRetry(boolean value) {
bitField0_ |= 0x00000010;
doNotRetry_ = value;
return this;
}
/**
* optional bool do_not_retry = 5;
*
*
* Set if we are NOT to retry on receipt of this exception
*
*/
public Builder clearDoNotRetry() {
bitField0_ = (bitField0_ & ~0x00000010);
doNotRetry_ = false;
return this;
}
// @@protoc_insertion_point(builder_scope:ExceptionResponse)
}
static {
defaultInstance = new ExceptionResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ExceptionResponse)
}
public interface RequestHeaderOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional uint32 call_id = 1;
/**
* optional uint32 call_id = 1;
*
*
* Monotonically increasing call_id to keep track of RPC requests and their response
*
*/
boolean hasCallId();
/**
* optional uint32 call_id = 1;
*
*
* Monotonically increasing call_id to keep track of RPC requests and their response
*
*/
int getCallId();
// optional .RPCTInfo trace_info = 2;
/**
* optional .RPCTInfo trace_info = 2;
*/
boolean hasTraceInfo();
/**
* optional .RPCTInfo trace_info = 2;
*/
org.hbase.async.generated.TracingPB.RPCTInfo getTraceInfo();
// optional string method_name = 3;
/**
* optional string method_name = 3;
*/
boolean hasMethodName();
/**
* optional string method_name = 3;
*/
java.lang.String getMethodName();
/**
* optional string method_name = 3;
*/
com.google.protobuf.ByteString
getMethodNameBytes();
// optional bool request_param = 4;
/**
* optional bool request_param = 4;
*
*
* If true, then a pb Message param follows.
*
*/
boolean hasRequestParam();
/**
* optional bool request_param = 4;
*
*
* If true, then a pb Message param follows.
*
*/
boolean getRequestParam();
// optional .CellBlockMeta cell_block_meta = 5;
/**
* optional .CellBlockMeta cell_block_meta = 5;
*
*
* If present, then an encoded data block follows.
*
*/
boolean hasCellBlockMeta();
/**
* optional .CellBlockMeta cell_block_meta = 5;
*
*
* If present, then an encoded data block follows.
*
*/
org.hbase.async.generated.RPCPB.CellBlockMeta getCellBlockMeta();
// optional uint32 priority = 6;
/**
* optional uint32 priority = 6;
*
*
* 0 is NORMAL priority. 200 is HIGH. If no priority, treat it as NORMAL.
* See HConstants.
*
*/
boolean hasPriority();
/**
* optional uint32 priority = 6;
*
*
* 0 is NORMAL priority. 200 is HIGH. If no priority, treat it as NORMAL.
* See HConstants.
*
*/
int getPriority();
// optional uint32 timeout = 7;
/**
* optional uint32 timeout = 7;
*/
boolean hasTimeout();
/**
* optional uint32 timeout = 7;
*/
int getTimeout();
}
/**
* Protobuf type {@code RequestHeader}
*
*
* Header sent making a request.
*
*/
public static final class RequestHeader extends
com.google.protobuf.GeneratedMessageLite
implements RequestHeaderOrBuilder {
// Use RequestHeader.newBuilder() to construct.
private RequestHeader(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private RequestHeader(boolean noInit) {}
private static final RequestHeader defaultInstance;
public static RequestHeader getDefaultInstance() {
return defaultInstance;
}
public RequestHeader getDefaultInstanceForType() {
return defaultInstance;
}
private RequestHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
callId_ = input.readUInt32();
break;
}
case 18: {
org.hbase.async.generated.TracingPB.RPCTInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = traceInfo_.toBuilder();
}
traceInfo_ = input.readMessage(org.hbase.async.generated.TracingPB.RPCTInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(traceInfo_);
traceInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
bitField0_ |= 0x00000004;
methodName_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000008;
requestParam_ = input.readBool();
break;
}
case 42: {
org.hbase.async.generated.RPCPB.CellBlockMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = cellBlockMeta_.toBuilder();
}
cellBlockMeta_ = input.readMessage(org.hbase.async.generated.RPCPB.CellBlockMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cellBlockMeta_);
cellBlockMeta_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 48: {
bitField0_ |= 0x00000020;
priority_ = input.readUInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
timeout_ = 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 {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RequestHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestHeader(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint32 call_id = 1;
public static final int CALL_ID_FIELD_NUMBER = 1;
private int callId_;
/**
* optional uint32 call_id = 1;
*
*
* Monotonically increasing call_id to keep track of RPC requests and their response
*
*/
public boolean hasCallId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 call_id = 1;
*
*
* Monotonically increasing call_id to keep track of RPC requests and their response
*
*/
public int getCallId() {
return callId_;
}
// optional .RPCTInfo trace_info = 2;
public static final int TRACE_INFO_FIELD_NUMBER = 2;
private org.hbase.async.generated.TracingPB.RPCTInfo traceInfo_;
/**
* optional .RPCTInfo trace_info = 2;
*/
public boolean hasTraceInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .RPCTInfo trace_info = 2;
*/
public org.hbase.async.generated.TracingPB.RPCTInfo getTraceInfo() {
return traceInfo_;
}
// optional string method_name = 3;
public static final int METHOD_NAME_FIELD_NUMBER = 3;
private java.lang.Object methodName_;
/**
* optional string method_name = 3;
*/
public boolean hasMethodName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string method_name = 3;
*/
public java.lang.String getMethodName() {
java.lang.Object ref = methodName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
methodName_ = s;
}
return s;
}
}
/**
* optional string method_name = 3;
*/
public com.google.protobuf.ByteString
getMethodNameBytes() {
java.lang.Object ref = methodName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
methodName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool request_param = 4;
public static final int REQUEST_PARAM_FIELD_NUMBER = 4;
private boolean requestParam_;
/**
* optional bool request_param = 4;
*
*
* If true, then a pb Message param follows.
*
*/
public boolean hasRequestParam() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool request_param = 4;
*
*
* If true, then a pb Message param follows.
*
*/
public boolean getRequestParam() {
return requestParam_;
}
// optional .CellBlockMeta cell_block_meta = 5;
public static final int CELL_BLOCK_META_FIELD_NUMBER = 5;
private org.hbase.async.generated.RPCPB.CellBlockMeta cellBlockMeta_;
/**
* optional .CellBlockMeta cell_block_meta = 5;
*
*
* If present, then an encoded data block follows.
*
*/
public boolean hasCellBlockMeta() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .CellBlockMeta cell_block_meta = 5;
*
*
* If present, then an encoded data block follows.
*
*/
public org.hbase.async.generated.RPCPB.CellBlockMeta getCellBlockMeta() {
return cellBlockMeta_;
}
// optional uint32 priority = 6;
public static final int PRIORITY_FIELD_NUMBER = 6;
private int priority_;
/**
* optional uint32 priority = 6;
*
*
* 0 is NORMAL priority. 200 is HIGH. If no priority, treat it as NORMAL.
* See HConstants.
*
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 priority = 6;
*
*
* 0 is NORMAL priority. 200 is HIGH. If no priority, treat it as NORMAL.
* See HConstants.
*
*/
public int getPriority() {
return priority_;
}
// optional uint32 timeout = 7;
public static final int TIMEOUT_FIELD_NUMBER = 7;
private int timeout_;
/**
* optional uint32 timeout = 7;
*/
public boolean hasTimeout() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 timeout = 7;
*/
public int getTimeout() {
return timeout_;
}
private void initFields() {
callId_ = 0;
traceInfo_ = org.hbase.async.generated.TracingPB.RPCTInfo.getDefaultInstance();
methodName_ = "";
requestParam_ = false;
cellBlockMeta_ = org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance();
priority_ = 0;
timeout_ = 0;
}
private byte memoizedIsInitialized = -1;
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();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, callId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, traceInfo_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getMethodNameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, requestParam_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, cellBlockMeta_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeUInt32(6, priority_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeUInt32(7, timeout_);
}
}
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
.computeUInt32Size(1, callId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, traceInfo_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getMethodNameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, requestParam_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, cellBlockMeta_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, priority_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, timeout_);
}
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();
}
public static org.hbase.async.generated.RPCPB.RequestHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.RequestHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.RequestHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.RequestHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.RequestHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.RequestHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.RequestHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.hbase.async.generated.RPCPB.RequestHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.RequestHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.RequestHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.hbase.async.generated.RPCPB.RequestHeader prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code RequestHeader}
*
*
* Header sent making a request.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.hbase.async.generated.RPCPB.RequestHeader, Builder>
implements org.hbase.async.generated.RPCPB.RequestHeaderOrBuilder {
// Construct using org.hbase.async.generated.RPCPB.RequestHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
callId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
traceInfo_ = org.hbase.async.generated.TracingPB.RPCTInfo.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
methodName_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
requestParam_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
cellBlockMeta_ = org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
priority_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
timeout_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.hbase.async.generated.RPCPB.RequestHeader getDefaultInstanceForType() {
return org.hbase.async.generated.RPCPB.RequestHeader.getDefaultInstance();
}
public org.hbase.async.generated.RPCPB.RequestHeader build() {
org.hbase.async.generated.RPCPB.RequestHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hbase.async.generated.RPCPB.RequestHeader buildPartial() {
org.hbase.async.generated.RPCPB.RequestHeader result = new org.hbase.async.generated.RPCPB.RequestHeader(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.callId_ = callId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.traceInfo_ = traceInfo_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.methodName_ = methodName_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.requestParam_ = requestParam_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.cellBlockMeta_ = cellBlockMeta_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.priority_ = priority_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.timeout_ = timeout_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.hbase.async.generated.RPCPB.RequestHeader other) {
if (other == org.hbase.async.generated.RPCPB.RequestHeader.getDefaultInstance()) return this;
if (other.hasCallId()) {
setCallId(other.getCallId());
}
if (other.hasTraceInfo()) {
mergeTraceInfo(other.getTraceInfo());
}
if (other.hasMethodName()) {
bitField0_ |= 0x00000004;
methodName_ = other.methodName_;
}
if (other.hasRequestParam()) {
setRequestParam(other.getRequestParam());
}
if (other.hasCellBlockMeta()) {
mergeCellBlockMeta(other.getCellBlockMeta());
}
if (other.hasPriority()) {
setPriority(other.getPriority());
}
if (other.hasTimeout()) {
setTimeout(other.getTimeout());
}
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hbase.async.generated.RPCPB.RequestHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hbase.async.generated.RPCPB.RequestHeader) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint32 call_id = 1;
private int callId_ ;
/**
* optional uint32 call_id = 1;
*
*
* Monotonically increasing call_id to keep track of RPC requests and their response
*
*/
public boolean hasCallId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 call_id = 1;
*
*
* Monotonically increasing call_id to keep track of RPC requests and their response
*
*/
public int getCallId() {
return callId_;
}
/**
* optional uint32 call_id = 1;
*
*
* Monotonically increasing call_id to keep track of RPC requests and their response
*
*/
public Builder setCallId(int value) {
bitField0_ |= 0x00000001;
callId_ = value;
return this;
}
/**
* optional uint32 call_id = 1;
*
*
* Monotonically increasing call_id to keep track of RPC requests and their response
*
*/
public Builder clearCallId() {
bitField0_ = (bitField0_ & ~0x00000001);
callId_ = 0;
return this;
}
// optional .RPCTInfo trace_info = 2;
private org.hbase.async.generated.TracingPB.RPCTInfo traceInfo_ = org.hbase.async.generated.TracingPB.RPCTInfo.getDefaultInstance();
/**
* optional .RPCTInfo trace_info = 2;
*/
public boolean hasTraceInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .RPCTInfo trace_info = 2;
*/
public org.hbase.async.generated.TracingPB.RPCTInfo getTraceInfo() {
return traceInfo_;
}
/**
* optional .RPCTInfo trace_info = 2;
*/
public Builder setTraceInfo(org.hbase.async.generated.TracingPB.RPCTInfo value) {
if (value == null) {
throw new NullPointerException();
}
traceInfo_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .RPCTInfo trace_info = 2;
*/
public Builder setTraceInfo(
org.hbase.async.generated.TracingPB.RPCTInfo.Builder builderForValue) {
traceInfo_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .RPCTInfo trace_info = 2;
*/
public Builder mergeTraceInfo(org.hbase.async.generated.TracingPB.RPCTInfo value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
traceInfo_ != org.hbase.async.generated.TracingPB.RPCTInfo.getDefaultInstance()) {
traceInfo_ =
org.hbase.async.generated.TracingPB.RPCTInfo.newBuilder(traceInfo_).mergeFrom(value).buildPartial();
} else {
traceInfo_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .RPCTInfo trace_info = 2;
*/
public Builder clearTraceInfo() {
traceInfo_ = org.hbase.async.generated.TracingPB.RPCTInfo.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
// optional string method_name = 3;
private java.lang.Object methodName_ = "";
/**
* optional string method_name = 3;
*/
public boolean hasMethodName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string method_name = 3;
*/
public java.lang.String getMethodName() {
java.lang.Object ref = methodName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
methodName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string method_name = 3;
*/
public com.google.protobuf.ByteString
getMethodNameBytes() {
java.lang.Object ref = methodName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
methodName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string method_name = 3;
*/
public Builder setMethodName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
methodName_ = value;
return this;
}
/**
* optional string method_name = 3;
*/
public Builder clearMethodName() {
bitField0_ = (bitField0_ & ~0x00000004);
methodName_ = getDefaultInstance().getMethodName();
return this;
}
/**
* optional string method_name = 3;
*/
public Builder setMethodNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
methodName_ = value;
return this;
}
// optional bool request_param = 4;
private boolean requestParam_ ;
/**
* optional bool request_param = 4;
*
*
* If true, then a pb Message param follows.
*
*/
public boolean hasRequestParam() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool request_param = 4;
*
*
* If true, then a pb Message param follows.
*
*/
public boolean getRequestParam() {
return requestParam_;
}
/**
* optional bool request_param = 4;
*
*
* If true, then a pb Message param follows.
*
*/
public Builder setRequestParam(boolean value) {
bitField0_ |= 0x00000008;
requestParam_ = value;
return this;
}
/**
* optional bool request_param = 4;
*
*
* If true, then a pb Message param follows.
*
*/
public Builder clearRequestParam() {
bitField0_ = (bitField0_ & ~0x00000008);
requestParam_ = false;
return this;
}
// optional .CellBlockMeta cell_block_meta = 5;
private org.hbase.async.generated.RPCPB.CellBlockMeta cellBlockMeta_ = org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance();
/**
* optional .CellBlockMeta cell_block_meta = 5;
*
*
* If present, then an encoded data block follows.
*
*/
public boolean hasCellBlockMeta() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .CellBlockMeta cell_block_meta = 5;
*
*
* If present, then an encoded data block follows.
*
*/
public org.hbase.async.generated.RPCPB.CellBlockMeta getCellBlockMeta() {
return cellBlockMeta_;
}
/**
* optional .CellBlockMeta cell_block_meta = 5;
*
*
* If present, then an encoded data block follows.
*
*/
public Builder setCellBlockMeta(org.hbase.async.generated.RPCPB.CellBlockMeta value) {
if (value == null) {
throw new NullPointerException();
}
cellBlockMeta_ = value;
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .CellBlockMeta cell_block_meta = 5;
*
*
* If present, then an encoded data block follows.
*
*/
public Builder setCellBlockMeta(
org.hbase.async.generated.RPCPB.CellBlockMeta.Builder builderForValue) {
cellBlockMeta_ = builderForValue.build();
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .CellBlockMeta cell_block_meta = 5;
*
*
* If present, then an encoded data block follows.
*
*/
public Builder mergeCellBlockMeta(org.hbase.async.generated.RPCPB.CellBlockMeta value) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
cellBlockMeta_ != org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance()) {
cellBlockMeta_ =
org.hbase.async.generated.RPCPB.CellBlockMeta.newBuilder(cellBlockMeta_).mergeFrom(value).buildPartial();
} else {
cellBlockMeta_ = value;
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .CellBlockMeta cell_block_meta = 5;
*
*
* If present, then an encoded data block follows.
*
*/
public Builder clearCellBlockMeta() {
cellBlockMeta_ = org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
// optional uint32 priority = 6;
private int priority_ ;
/**
* optional uint32 priority = 6;
*
*
* 0 is NORMAL priority. 200 is HIGH. If no priority, treat it as NORMAL.
* See HConstants.
*
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 priority = 6;
*
*
* 0 is NORMAL priority. 200 is HIGH. If no priority, treat it as NORMAL.
* See HConstants.
*
*/
public int getPriority() {
return priority_;
}
/**
* optional uint32 priority = 6;
*
*
* 0 is NORMAL priority. 200 is HIGH. If no priority, treat it as NORMAL.
* See HConstants.
*
*/
public Builder setPriority(int value) {
bitField0_ |= 0x00000020;
priority_ = value;
return this;
}
/**
* optional uint32 priority = 6;
*
*
* 0 is NORMAL priority. 200 is HIGH. If no priority, treat it as NORMAL.
* See HConstants.
*
*/
public Builder clearPriority() {
bitField0_ = (bitField0_ & ~0x00000020);
priority_ = 0;
return this;
}
// optional uint32 timeout = 7;
private int timeout_ ;
/**
* optional uint32 timeout = 7;
*/
public boolean hasTimeout() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 timeout = 7;
*/
public int getTimeout() {
return timeout_;
}
/**
* optional uint32 timeout = 7;
*/
public Builder setTimeout(int value) {
bitField0_ |= 0x00000040;
timeout_ = value;
return this;
}
/**
* optional uint32 timeout = 7;
*/
public Builder clearTimeout() {
bitField0_ = (bitField0_ & ~0x00000040);
timeout_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:RequestHeader)
}
static {
defaultInstance = new RequestHeader(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RequestHeader)
}
public interface ResponseHeaderOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional uint32 call_id = 1;
/**
* optional uint32 call_id = 1;
*/
boolean hasCallId();
/**
* optional uint32 call_id = 1;
*/
int getCallId();
// optional .ExceptionResponse exception = 2;
/**
* optional .ExceptionResponse exception = 2;
*
*
* If present, then request threw an exception and no response message (else we presume one)
*
*/
boolean hasException();
/**
* optional .ExceptionResponse exception = 2;
*
*
* If present, then request threw an exception and no response message (else we presume one)
*
*/
org.hbase.async.generated.RPCPB.ExceptionResponse getException();
// optional .CellBlockMeta cell_block_meta = 3;
/**
* optional .CellBlockMeta cell_block_meta = 3;
*
*
* If present, then an encoded data block follows.
*
*/
boolean hasCellBlockMeta();
/**
* optional .CellBlockMeta cell_block_meta = 3;
*
*
* If present, then an encoded data block follows.
*
*/
org.hbase.async.generated.RPCPB.CellBlockMeta getCellBlockMeta();
}
/**
* Protobuf type {@code ResponseHeader}
*/
public static final class ResponseHeader extends
com.google.protobuf.GeneratedMessageLite
implements ResponseHeaderOrBuilder {
// Use ResponseHeader.newBuilder() to construct.
private ResponseHeader(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private ResponseHeader(boolean noInit) {}
private static final ResponseHeader defaultInstance;
public static ResponseHeader getDefaultInstance() {
return defaultInstance;
}
public ResponseHeader getDefaultInstanceForType() {
return defaultInstance;
}
private ResponseHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
callId_ = input.readUInt32();
break;
}
case 18: {
org.hbase.async.generated.RPCPB.ExceptionResponse.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = exception_.toBuilder();
}
exception_ = input.readMessage(org.hbase.async.generated.RPCPB.ExceptionResponse.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(exception_);
exception_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.hbase.async.generated.RPCPB.CellBlockMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = cellBlockMeta_.toBuilder();
}
cellBlockMeta_ = input.readMessage(org.hbase.async.generated.RPCPB.CellBlockMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cellBlockMeta_);
cellBlockMeta_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
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 {
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ResponseHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseHeader(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint32 call_id = 1;
public static final int CALL_ID_FIELD_NUMBER = 1;
private int callId_;
/**
* optional uint32 call_id = 1;
*/
public boolean hasCallId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 call_id = 1;
*/
public int getCallId() {
return callId_;
}
// optional .ExceptionResponse exception = 2;
public static final int EXCEPTION_FIELD_NUMBER = 2;
private org.hbase.async.generated.RPCPB.ExceptionResponse exception_;
/**
* optional .ExceptionResponse exception = 2;
*
*
* If present, then request threw an exception and no response message (else we presume one)
*
*/
public boolean hasException() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .ExceptionResponse exception = 2;
*
*
* If present, then request threw an exception and no response message (else we presume one)
*
*/
public org.hbase.async.generated.RPCPB.ExceptionResponse getException() {
return exception_;
}
// optional .CellBlockMeta cell_block_meta = 3;
public static final int CELL_BLOCK_META_FIELD_NUMBER = 3;
private org.hbase.async.generated.RPCPB.CellBlockMeta cellBlockMeta_;
/**
* optional .CellBlockMeta cell_block_meta = 3;
*
*
* If present, then an encoded data block follows.
*
*/
public boolean hasCellBlockMeta() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .CellBlockMeta cell_block_meta = 3;
*
*
* If present, then an encoded data block follows.
*
*/
public org.hbase.async.generated.RPCPB.CellBlockMeta getCellBlockMeta() {
return cellBlockMeta_;
}
private void initFields() {
callId_ = 0;
exception_ = org.hbase.async.generated.RPCPB.ExceptionResponse.getDefaultInstance();
cellBlockMeta_ = org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
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();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, callId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, exception_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, cellBlockMeta_);
}
}
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
.computeUInt32Size(1, callId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, exception_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, cellBlockMeta_);
}
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();
}
public static org.hbase.async.generated.RPCPB.ResponseHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.ResponseHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ResponseHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.RPCPB.ResponseHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ResponseHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.ResponseHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ResponseHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.hbase.async.generated.RPCPB.ResponseHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.hbase.async.generated.RPCPB.ResponseHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.RPCPB.ResponseHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.hbase.async.generated.RPCPB.ResponseHeader prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code ResponseHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.hbase.async.generated.RPCPB.ResponseHeader, Builder>
implements org.hbase.async.generated.RPCPB.ResponseHeaderOrBuilder {
// Construct using org.hbase.async.generated.RPCPB.ResponseHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
callId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
exception_ = org.hbase.async.generated.RPCPB.ExceptionResponse.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
cellBlockMeta_ = org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.hbase.async.generated.RPCPB.ResponseHeader getDefaultInstanceForType() {
return org.hbase.async.generated.RPCPB.ResponseHeader.getDefaultInstance();
}
public org.hbase.async.generated.RPCPB.ResponseHeader build() {
org.hbase.async.generated.RPCPB.ResponseHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hbase.async.generated.RPCPB.ResponseHeader buildPartial() {
org.hbase.async.generated.RPCPB.ResponseHeader result = new org.hbase.async.generated.RPCPB.ResponseHeader(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.callId_ = callId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.exception_ = exception_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.cellBlockMeta_ = cellBlockMeta_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.hbase.async.generated.RPCPB.ResponseHeader other) {
if (other == org.hbase.async.generated.RPCPB.ResponseHeader.getDefaultInstance()) return this;
if (other.hasCallId()) {
setCallId(other.getCallId());
}
if (other.hasException()) {
mergeException(other.getException());
}
if (other.hasCellBlockMeta()) {
mergeCellBlockMeta(other.getCellBlockMeta());
}
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hbase.async.generated.RPCPB.ResponseHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hbase.async.generated.RPCPB.ResponseHeader) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint32 call_id = 1;
private int callId_ ;
/**
* optional uint32 call_id = 1;
*/
public boolean hasCallId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 call_id = 1;
*/
public int getCallId() {
return callId_;
}
/**
* optional uint32 call_id = 1;
*/
public Builder setCallId(int value) {
bitField0_ |= 0x00000001;
callId_ = value;
return this;
}
/**
* optional uint32 call_id = 1;
*/
public Builder clearCallId() {
bitField0_ = (bitField0_ & ~0x00000001);
callId_ = 0;
return this;
}
// optional .ExceptionResponse exception = 2;
private org.hbase.async.generated.RPCPB.ExceptionResponse exception_ = org.hbase.async.generated.RPCPB.ExceptionResponse.getDefaultInstance();
/**
* optional .ExceptionResponse exception = 2;
*
*
* If present, then request threw an exception and no response message (else we presume one)
*
*/
public boolean hasException() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .ExceptionResponse exception = 2;
*
*
* If present, then request threw an exception and no response message (else we presume one)
*
*/
public org.hbase.async.generated.RPCPB.ExceptionResponse getException() {
return exception_;
}
/**
* optional .ExceptionResponse exception = 2;
*
*
* If present, then request threw an exception and no response message (else we presume one)
*
*/
public Builder setException(org.hbase.async.generated.RPCPB.ExceptionResponse value) {
if (value == null) {
throw new NullPointerException();
}
exception_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .ExceptionResponse exception = 2;
*
*
* If present, then request threw an exception and no response message (else we presume one)
*
*/
public Builder setException(
org.hbase.async.generated.RPCPB.ExceptionResponse.Builder builderForValue) {
exception_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .ExceptionResponse exception = 2;
*
*
* If present, then request threw an exception and no response message (else we presume one)
*
*/
public Builder mergeException(org.hbase.async.generated.RPCPB.ExceptionResponse value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
exception_ != org.hbase.async.generated.RPCPB.ExceptionResponse.getDefaultInstance()) {
exception_ =
org.hbase.async.generated.RPCPB.ExceptionResponse.newBuilder(exception_).mergeFrom(value).buildPartial();
} else {
exception_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .ExceptionResponse exception = 2;
*
*
* If present, then request threw an exception and no response message (else we presume one)
*
*/
public Builder clearException() {
exception_ = org.hbase.async.generated.RPCPB.ExceptionResponse.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
// optional .CellBlockMeta cell_block_meta = 3;
private org.hbase.async.generated.RPCPB.CellBlockMeta cellBlockMeta_ = org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance();
/**
* optional .CellBlockMeta cell_block_meta = 3;
*
*
* If present, then an encoded data block follows.
*
*/
public boolean hasCellBlockMeta() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .CellBlockMeta cell_block_meta = 3;
*
*
* If present, then an encoded data block follows.
*
*/
public org.hbase.async.generated.RPCPB.CellBlockMeta getCellBlockMeta() {
return cellBlockMeta_;
}
/**
* optional .CellBlockMeta cell_block_meta = 3;
*
*
* If present, then an encoded data block follows.
*
*/
public Builder setCellBlockMeta(org.hbase.async.generated.RPCPB.CellBlockMeta value) {
if (value == null) {
throw new NullPointerException();
}
cellBlockMeta_ = value;
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .CellBlockMeta cell_block_meta = 3;
*
*
* If present, then an encoded data block follows.
*
*/
public Builder setCellBlockMeta(
org.hbase.async.generated.RPCPB.CellBlockMeta.Builder builderForValue) {
cellBlockMeta_ = builderForValue.build();
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .CellBlockMeta cell_block_meta = 3;
*
*
* If present, then an encoded data block follows.
*
*/
public Builder mergeCellBlockMeta(org.hbase.async.generated.RPCPB.CellBlockMeta value) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
cellBlockMeta_ != org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance()) {
cellBlockMeta_ =
org.hbase.async.generated.RPCPB.CellBlockMeta.newBuilder(cellBlockMeta_).mergeFrom(value).buildPartial();
} else {
cellBlockMeta_ = value;
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .CellBlockMeta cell_block_meta = 3;
*
*
* If present, then an encoded data block follows.
*
*/
public Builder clearCellBlockMeta() {
cellBlockMeta_ = org.hbase.async.generated.RPCPB.CellBlockMeta.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
// @@protoc_insertion_point(builder_scope:ResponseHeader)
}
static {
defaultInstance = new ResponseHeader(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ResponseHeader)
}
static {
}
// @@protoc_insertion_point(outer_class_scope)
}