org.hbase.async.generated.ErrorHandlingPB 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: ErrorHandling.proto
package org.hbase.async.generated;
public final class ErrorHandlingPB {
private ErrorHandlingPB() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface StackTraceElementMessageOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional string declaring_class = 1;
/**
* optional string declaring_class = 1;
*/
boolean hasDeclaringClass();
/**
* optional string declaring_class = 1;
*/
java.lang.String getDeclaringClass();
/**
* optional string declaring_class = 1;
*/
com.google.protobuf.ByteString
getDeclaringClassBytes();
// optional string method_name = 2;
/**
* optional string method_name = 2;
*/
boolean hasMethodName();
/**
* optional string method_name = 2;
*/
java.lang.String getMethodName();
/**
* optional string method_name = 2;
*/
com.google.protobuf.ByteString
getMethodNameBytes();
// optional string file_name = 3;
/**
* optional string file_name = 3;
*/
boolean hasFileName();
/**
* optional string file_name = 3;
*/
java.lang.String getFileName();
/**
* optional string file_name = 3;
*/
com.google.protobuf.ByteString
getFileNameBytes();
// optional int32 line_number = 4;
/**
* optional int32 line_number = 4;
*/
boolean hasLineNumber();
/**
* optional int32 line_number = 4;
*/
int getLineNumber();
}
/**
* Protobuf type {@code StackTraceElementMessage}
*
*
**
* Protobuf version of a java.lang.StackTraceElement
* so we can serialize exceptions.
*
*/
public static final class StackTraceElementMessage extends
com.google.protobuf.GeneratedMessageLite
implements StackTraceElementMessageOrBuilder {
// Use StackTraceElementMessage.newBuilder() to construct.
private StackTraceElementMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private StackTraceElementMessage(boolean noInit) {}
private static final StackTraceElementMessage defaultInstance;
public static StackTraceElementMessage getDefaultInstance() {
return defaultInstance;
}
public StackTraceElementMessage getDefaultInstanceForType() {
return defaultInstance;
}
private StackTraceElementMessage(
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;
declaringClass_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
methodName_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
fileName_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000008;
lineNumber_ = input.readInt32();
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 StackTraceElementMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StackTraceElementMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string declaring_class = 1;
public static final int DECLARING_CLASS_FIELD_NUMBER = 1;
private java.lang.Object declaringClass_;
/**
* optional string declaring_class = 1;
*/
public boolean hasDeclaringClass() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string declaring_class = 1;
*/
public java.lang.String getDeclaringClass() {
java.lang.Object ref = declaringClass_;
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()) {
declaringClass_ = s;
}
return s;
}
}
/**
* optional string declaring_class = 1;
*/
public com.google.protobuf.ByteString
getDeclaringClassBytes() {
java.lang.Object ref = declaringClass_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
declaringClass_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string method_name = 2;
public static final int METHOD_NAME_FIELD_NUMBER = 2;
private java.lang.Object methodName_;
/**
* optional string method_name = 2;
*/
public boolean hasMethodName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string method_name = 2;
*/
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 = 2;
*/
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 string file_name = 3;
public static final int FILE_NAME_FIELD_NUMBER = 3;
private java.lang.Object fileName_;
/**
* optional string file_name = 3;
*/
public boolean hasFileName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string file_name = 3;
*/
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
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()) {
fileName_ = s;
}
return s;
}
}
/**
* optional string file_name = 3;
*/
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 line_number = 4;
public static final int LINE_NUMBER_FIELD_NUMBER = 4;
private int lineNumber_;
/**
* optional int32 line_number = 4;
*/
public boolean hasLineNumber() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 line_number = 4;
*/
public int getLineNumber() {
return lineNumber_;
}
private void initFields() {
declaringClass_ = "";
methodName_ = "";
fileName_ = "";
lineNumber_ = 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.writeBytes(1, getDeclaringClassBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getMethodNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getFileNameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, lineNumber_);
}
}
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, getDeclaringClassBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getMethodNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getFileNameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, lineNumber_);
}
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.ErrorHandlingPB.StackTraceElementMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage 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.ErrorHandlingPB.StackTraceElementMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage 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.ErrorHandlingPB.StackTraceElementMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage 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.ErrorHandlingPB.StackTraceElementMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage 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.ErrorHandlingPB.StackTraceElementMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code StackTraceElementMessage}
*
*
**
* Protobuf version of a java.lang.StackTraceElement
* so we can serialize exceptions.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage, Builder>
implements org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessageOrBuilder {
// Construct using org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
declaringClass_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
methodName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
fileName_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
lineNumber_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage getDefaultInstanceForType() {
return org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage.getDefaultInstance();
}
public org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage build() {
org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage buildPartial() {
org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage result = new org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.declaringClass_ = declaringClass_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.methodName_ = methodName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.fileName_ = fileName_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.lineNumber_ = lineNumber_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage other) {
if (other == org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage.getDefaultInstance()) return this;
if (other.hasDeclaringClass()) {
bitField0_ |= 0x00000001;
declaringClass_ = other.declaringClass_;
}
if (other.hasMethodName()) {
bitField0_ |= 0x00000002;
methodName_ = other.methodName_;
}
if (other.hasFileName()) {
bitField0_ |= 0x00000004;
fileName_ = other.fileName_;
}
if (other.hasLineNumber()) {
setLineNumber(other.getLineNumber());
}
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.ErrorHandlingPB.StackTraceElementMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string declaring_class = 1;
private java.lang.Object declaringClass_ = "";
/**
* optional string declaring_class = 1;
*/
public boolean hasDeclaringClass() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string declaring_class = 1;
*/
public java.lang.String getDeclaringClass() {
java.lang.Object ref = declaringClass_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
declaringClass_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string declaring_class = 1;
*/
public com.google.protobuf.ByteString
getDeclaringClassBytes() {
java.lang.Object ref = declaringClass_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
declaringClass_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string declaring_class = 1;
*/
public Builder setDeclaringClass(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
declaringClass_ = value;
return this;
}
/**
* optional string declaring_class = 1;
*/
public Builder clearDeclaringClass() {
bitField0_ = (bitField0_ & ~0x00000001);
declaringClass_ = getDefaultInstance().getDeclaringClass();
return this;
}
/**
* optional string declaring_class = 1;
*/
public Builder setDeclaringClassBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
declaringClass_ = value;
return this;
}
// optional string method_name = 2;
private java.lang.Object methodName_ = "";
/**
* optional string method_name = 2;
*/
public boolean hasMethodName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string method_name = 2;
*/
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 = 2;
*/
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 = 2;
*/
public Builder setMethodName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
methodName_ = value;
return this;
}
/**
* optional string method_name = 2;
*/
public Builder clearMethodName() {
bitField0_ = (bitField0_ & ~0x00000002);
methodName_ = getDefaultInstance().getMethodName();
return this;
}
/**
* optional string method_name = 2;
*/
public Builder setMethodNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
methodName_ = value;
return this;
}
// optional string file_name = 3;
private java.lang.Object fileName_ = "";
/**
* optional string file_name = 3;
*/
public boolean hasFileName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string file_name = 3;
*/
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
fileName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string file_name = 3;
*/
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string file_name = 3;
*/
public Builder setFileName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
fileName_ = value;
return this;
}
/**
* optional string file_name = 3;
*/
public Builder clearFileName() {
bitField0_ = (bitField0_ & ~0x00000004);
fileName_ = getDefaultInstance().getFileName();
return this;
}
/**
* optional string file_name = 3;
*/
public Builder setFileNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
fileName_ = value;
return this;
}
// optional int32 line_number = 4;
private int lineNumber_ ;
/**
* optional int32 line_number = 4;
*/
public boolean hasLineNumber() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 line_number = 4;
*/
public int getLineNumber() {
return lineNumber_;
}
/**
* optional int32 line_number = 4;
*/
public Builder setLineNumber(int value) {
bitField0_ |= 0x00000008;
lineNumber_ = value;
return this;
}
/**
* optional int32 line_number = 4;
*/
public Builder clearLineNumber() {
bitField0_ = (bitField0_ & ~0x00000008);
lineNumber_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:StackTraceElementMessage)
}
static {
defaultInstance = new StackTraceElementMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:StackTraceElementMessage)
}
public interface GenericExceptionMessageOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional string class_name = 1;
/**
* optional string class_name = 1;
*/
boolean hasClassName();
/**
* optional string class_name = 1;
*/
java.lang.String getClassName();
/**
* optional string class_name = 1;
*/
com.google.protobuf.ByteString
getClassNameBytes();
// optional string message = 2;
/**
* optional string message = 2;
*/
boolean hasMessage();
/**
* optional string message = 2;
*/
java.lang.String getMessage();
/**
* optional string message = 2;
*/
com.google.protobuf.ByteString
getMessageBytes();
// optional bytes error_info = 3;
/**
* optional bytes error_info = 3;
*/
boolean hasErrorInfo();
/**
* optional bytes error_info = 3;
*/
com.google.protobuf.ByteString getErrorInfo();
// repeated .StackTraceElementMessage trace = 4;
/**
* repeated .StackTraceElementMessage trace = 4;
*/
java.util.List
getTraceList();
/**
* repeated .StackTraceElementMessage trace = 4;
*/
org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage getTrace(int index);
/**
* repeated .StackTraceElementMessage trace = 4;
*/
int getTraceCount();
}
/**
* Protobuf type {@code GenericExceptionMessage}
*
*
**
* Cause of a remote failure for a generic exception. Contains
* all the information for a generic exception as well as
* optional info about the error for generic info passing
* (which should be another protobuffed class).
*
*/
public static final class GenericExceptionMessage extends
com.google.protobuf.GeneratedMessageLite
implements GenericExceptionMessageOrBuilder {
// Use GenericExceptionMessage.newBuilder() to construct.
private GenericExceptionMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private GenericExceptionMessage(boolean noInit) {}
private static final GenericExceptionMessage defaultInstance;
public static GenericExceptionMessage getDefaultInstance() {
return defaultInstance;
}
public GenericExceptionMessage getDefaultInstanceForType() {
return defaultInstance;
}
private GenericExceptionMessage(
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;
className_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
message_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
errorInfo_ = input.readBytes();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
trace_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
trace_.add(input.readMessage(org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage.PARSER, extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
trace_ = java.util.Collections.unmodifiableList(trace_);
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GenericExceptionMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GenericExceptionMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string class_name = 1;
public static final int CLASS_NAME_FIELD_NUMBER = 1;
private java.lang.Object className_;
/**
* optional string class_name = 1;
*/
public boolean hasClassName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string class_name = 1;
*/
public java.lang.String getClassName() {
java.lang.Object ref = className_;
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()) {
className_ = s;
}
return s;
}
}
/**
* optional string class_name = 1;
*/
public com.google.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string message = 2;
public static final int MESSAGE_FIELD_NUMBER = 2;
private java.lang.Object message_;
/**
* optional string message = 2;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string message = 2;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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()) {
message_ = s;
}
return s;
}
}
/**
* optional string message = 2;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bytes error_info = 3;
public static final int ERROR_INFO_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString errorInfo_;
/**
* optional bytes error_info = 3;
*/
public boolean hasErrorInfo() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bytes error_info = 3;
*/
public com.google.protobuf.ByteString getErrorInfo() {
return errorInfo_;
}
// repeated .StackTraceElementMessage trace = 4;
public static final int TRACE_FIELD_NUMBER = 4;
private java.util.List trace_;
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public java.util.List getTraceList() {
return trace_;
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public java.util.List extends org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessageOrBuilder>
getTraceOrBuilderList() {
return trace_;
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public int getTraceCount() {
return trace_.size();
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage getTrace(int index) {
return trace_.get(index);
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessageOrBuilder getTraceOrBuilder(
int index) {
return trace_.get(index);
}
private void initFields() {
className_ = "";
message_ = "";
errorInfo_ = com.google.protobuf.ByteString.EMPTY;
trace_ = java.util.Collections.emptyList();
}
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, getClassNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getMessageBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, errorInfo_);
}
for (int i = 0; i < trace_.size(); i++) {
output.writeMessage(4, trace_.get(i));
}
}
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, getClassNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getMessageBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, errorInfo_);
}
for (int i = 0; i < trace_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, trace_.get(i));
}
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.ErrorHandlingPB.GenericExceptionMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage 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.ErrorHandlingPB.GenericExceptionMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage 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.ErrorHandlingPB.GenericExceptionMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage 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.ErrorHandlingPB.GenericExceptionMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage 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.ErrorHandlingPB.GenericExceptionMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code GenericExceptionMessage}
*
*
**
* Cause of a remote failure for a generic exception. Contains
* all the information for a generic exception as well as
* optional info about the error for generic info passing
* (which should be another protobuffed class).
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage, Builder>
implements org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessageOrBuilder {
// Construct using org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
className_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
errorInfo_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
trace_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage getDefaultInstanceForType() {
return org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.getDefaultInstance();
}
public org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage build() {
org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage buildPartial() {
org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage result = new org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.className_ = className_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.message_ = message_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.errorInfo_ = errorInfo_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
trace_ = java.util.Collections.unmodifiableList(trace_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.trace_ = trace_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage other) {
if (other == org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.getDefaultInstance()) return this;
if (other.hasClassName()) {
bitField0_ |= 0x00000001;
className_ = other.className_;
}
if (other.hasMessage()) {
bitField0_ |= 0x00000002;
message_ = other.message_;
}
if (other.hasErrorInfo()) {
setErrorInfo(other.getErrorInfo());
}
if (!other.trace_.isEmpty()) {
if (trace_.isEmpty()) {
trace_ = other.trace_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureTraceIsMutable();
trace_.addAll(other.trace_);
}
}
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.ErrorHandlingPB.GenericExceptionMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string class_name = 1;
private java.lang.Object className_ = "";
/**
* optional string class_name = 1;
*/
public boolean hasClassName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string class_name = 1;
*/
public java.lang.String getClassName() {
java.lang.Object ref = className_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
className_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string class_name = 1;
*/
public com.google.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string class_name = 1;
*/
public Builder setClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
className_ = value;
return this;
}
/**
* optional string class_name = 1;
*/
public Builder clearClassName() {
bitField0_ = (bitField0_ & ~0x00000001);
className_ = getDefaultInstance().getClassName();
return this;
}
/**
* optional string class_name = 1;
*/
public Builder setClassNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
className_ = value;
return this;
}
// optional string message = 2;
private java.lang.Object message_ = "";
/**
* optional string message = 2;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string message = 2;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string message = 2;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string message = 2;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
message_ = value;
return this;
}
/**
* optional string message = 2;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000002);
message_ = getDefaultInstance().getMessage();
return this;
}
/**
* optional string message = 2;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
message_ = value;
return this;
}
// optional bytes error_info = 3;
private com.google.protobuf.ByteString errorInfo_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes error_info = 3;
*/
public boolean hasErrorInfo() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bytes error_info = 3;
*/
public com.google.protobuf.ByteString getErrorInfo() {
return errorInfo_;
}
/**
* optional bytes error_info = 3;
*/
public Builder setErrorInfo(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
errorInfo_ = value;
return this;
}
/**
* optional bytes error_info = 3;
*/
public Builder clearErrorInfo() {
bitField0_ = (bitField0_ & ~0x00000004);
errorInfo_ = getDefaultInstance().getErrorInfo();
return this;
}
// repeated .StackTraceElementMessage trace = 4;
private java.util.List trace_ =
java.util.Collections.emptyList();
private void ensureTraceIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
trace_ = new java.util.ArrayList(trace_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public java.util.List getTraceList() {
return java.util.Collections.unmodifiableList(trace_);
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public int getTraceCount() {
return trace_.size();
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage getTrace(int index) {
return trace_.get(index);
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public Builder setTrace(
int index, org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage value) {
if (value == null) {
throw new NullPointerException();
}
ensureTraceIsMutable();
trace_.set(index, value);
return this;
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public Builder setTrace(
int index, org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage.Builder builderForValue) {
ensureTraceIsMutable();
trace_.set(index, builderForValue.build());
return this;
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public Builder addTrace(org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage value) {
if (value == null) {
throw new NullPointerException();
}
ensureTraceIsMutable();
trace_.add(value);
return this;
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public Builder addTrace(
int index, org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage value) {
if (value == null) {
throw new NullPointerException();
}
ensureTraceIsMutable();
trace_.add(index, value);
return this;
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public Builder addTrace(
org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage.Builder builderForValue) {
ensureTraceIsMutable();
trace_.add(builderForValue.build());
return this;
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public Builder addTrace(
int index, org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage.Builder builderForValue) {
ensureTraceIsMutable();
trace_.add(index, builderForValue.build());
return this;
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public Builder addAllTrace(
java.lang.Iterable extends org.hbase.async.generated.ErrorHandlingPB.StackTraceElementMessage> values) {
ensureTraceIsMutable();
super.addAll(values, trace_);
return this;
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public Builder clearTrace() {
trace_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* repeated .StackTraceElementMessage trace = 4;
*/
public Builder removeTrace(int index) {
ensureTraceIsMutable();
trace_.remove(index);
return this;
}
// @@protoc_insertion_point(builder_scope:GenericExceptionMessage)
}
static {
defaultInstance = new GenericExceptionMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GenericExceptionMessage)
}
public interface ForeignExceptionMessageOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder {
// optional string source = 1;
/**
* optional string source = 1;
*/
boolean hasSource();
/**
* optional string source = 1;
*/
java.lang.String getSource();
/**
* optional string source = 1;
*/
com.google.protobuf.ByteString
getSourceBytes();
// optional .GenericExceptionMessage generic_exception = 2;
/**
* optional .GenericExceptionMessage generic_exception = 2;
*/
boolean hasGenericException();
/**
* optional .GenericExceptionMessage generic_exception = 2;
*/
org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage getGenericException();
}
/**
* Protobuf type {@code ForeignExceptionMessage}
*
*
**
* Exception sent across the wire when a remote task needs
* to notify other tasks that it failed and why
*
*/
public static final class ForeignExceptionMessage extends
com.google.protobuf.GeneratedMessageLite
implements ForeignExceptionMessageOrBuilder {
// Use ForeignExceptionMessage.newBuilder() to construct.
private ForeignExceptionMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
}
private ForeignExceptionMessage(boolean noInit) {}
private static final ForeignExceptionMessage defaultInstance;
public static ForeignExceptionMessage getDefaultInstance() {
return defaultInstance;
}
public ForeignExceptionMessage getDefaultInstanceForType() {
return defaultInstance;
}
private ForeignExceptionMessage(
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;
source_ = input.readBytes();
break;
}
case 18: {
org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = genericException_.toBuilder();
}
genericException_ = input.readMessage(org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(genericException_);
genericException_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
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 ForeignExceptionMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ForeignExceptionMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string source = 1;
public static final int SOURCE_FIELD_NUMBER = 1;
private java.lang.Object source_;
/**
* optional string source = 1;
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string source = 1;
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
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()) {
source_ = s;
}
return s;
}
}
/**
* optional string source = 1;
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional .GenericExceptionMessage generic_exception = 2;
public static final int GENERIC_EXCEPTION_FIELD_NUMBER = 2;
private org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage genericException_;
/**
* optional .GenericExceptionMessage generic_exception = 2;
*/
public boolean hasGenericException() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .GenericExceptionMessage generic_exception = 2;
*/
public org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage getGenericException() {
return genericException_;
}
private void initFields() {
source_ = "";
genericException_ = org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.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.writeBytes(1, getSourceBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, genericException_);
}
}
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, getSourceBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, genericException_);
}
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.ErrorHandlingPB.ForeignExceptionMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage 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.ErrorHandlingPB.ForeignExceptionMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage 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.ErrorHandlingPB.ForeignExceptionMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage 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.ErrorHandlingPB.ForeignExceptionMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage 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.ErrorHandlingPB.ForeignExceptionMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code ForeignExceptionMessage}
*
*
**
* Exception sent across the wire when a remote task needs
* to notify other tasks that it failed and why
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage, Builder>
implements org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessageOrBuilder {
// Construct using org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
source_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
genericException_ = org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage getDefaultInstanceForType() {
return org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage.getDefaultInstance();
}
public org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage build() {
org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage buildPartial() {
org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage result = new org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.source_ = source_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.genericException_ = genericException_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage other) {
if (other == org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage.getDefaultInstance()) return this;
if (other.hasSource()) {
bitField0_ |= 0x00000001;
source_ = other.source_;
}
if (other.hasGenericException()) {
mergeGenericException(other.getGenericException());
}
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.ErrorHandlingPB.ForeignExceptionMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hbase.async.generated.ErrorHandlingPB.ForeignExceptionMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string source = 1;
private java.lang.Object source_ = "";
/**
* optional string source = 1;
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string source = 1;
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
source_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string source = 1;
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string source = 1;
*/
public Builder setSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
source_ = value;
return this;
}
/**
* optional string source = 1;
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000001);
source_ = getDefaultInstance().getSource();
return this;
}
/**
* optional string source = 1;
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
source_ = value;
return this;
}
// optional .GenericExceptionMessage generic_exception = 2;
private org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage genericException_ = org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.getDefaultInstance();
/**
* optional .GenericExceptionMessage generic_exception = 2;
*/
public boolean hasGenericException() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .GenericExceptionMessage generic_exception = 2;
*/
public org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage getGenericException() {
return genericException_;
}
/**
* optional .GenericExceptionMessage generic_exception = 2;
*/
public Builder setGenericException(org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage value) {
if (value == null) {
throw new NullPointerException();
}
genericException_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .GenericExceptionMessage generic_exception = 2;
*/
public Builder setGenericException(
org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.Builder builderForValue) {
genericException_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .GenericExceptionMessage generic_exception = 2;
*/
public Builder mergeGenericException(org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
genericException_ != org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.getDefaultInstance()) {
genericException_ =
org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.newBuilder(genericException_).mergeFrom(value).buildPartial();
} else {
genericException_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .GenericExceptionMessage generic_exception = 2;
*/
public Builder clearGenericException() {
genericException_ = org.hbase.async.generated.ErrorHandlingPB.GenericExceptionMessage.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
// @@protoc_insertion_point(builder_scope:ForeignExceptionMessage)
}
static {
defaultInstance = new ForeignExceptionMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ForeignExceptionMessage)
}
static {
}
// @@protoc_insertion_point(outer_class_scope)
}