org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Procedure.proto
package org.apache.hadoop.hbase.protobuf.generated;
public final class ProcedureProtos {
private ProcedureProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code hbase.pb.ProcedureState}
*/
public enum ProcedureState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* INITIALIZING = 1;
*
*
* Procedure in construction, not yet added to the executor
*
*/
INITIALIZING(0, 1),
/**
* RUNNABLE = 2;
*
*
* Procedure added to the executor, and ready to be executed
*
*/
RUNNABLE(1, 2),
/**
* WAITING = 3;
*
*
* The procedure is waiting on children to be completed
*
*/
WAITING(2, 3),
/**
* WAITING_TIMEOUT = 4;
*
*
* The procedure is waiting a timout or an external event
*
*/
WAITING_TIMEOUT(3, 4),
/**
* ROLLEDBACK = 5;
*
*
* The procedure failed and was rolledback
*
*/
ROLLEDBACK(4, 5),
/**
* FINISHED = 6;
*
*
* The procedure execution is completed. may need a rollback if failed.
*
*/
FINISHED(5, 6),
;
/**
* INITIALIZING = 1;
*
*
* Procedure in construction, not yet added to the executor
*
*/
public static final int INITIALIZING_VALUE = 1;
/**
* RUNNABLE = 2;
*
*
* Procedure added to the executor, and ready to be executed
*
*/
public static final int RUNNABLE_VALUE = 2;
/**
* WAITING = 3;
*
*
* The procedure is waiting on children to be completed
*
*/
public static final int WAITING_VALUE = 3;
/**
* WAITING_TIMEOUT = 4;
*
*
* The procedure is waiting a timout or an external event
*
*/
public static final int WAITING_TIMEOUT_VALUE = 4;
/**
* ROLLEDBACK = 5;
*
*
* The procedure failed and was rolledback
*
*/
public static final int ROLLEDBACK_VALUE = 5;
/**
* FINISHED = 6;
*
*
* The procedure execution is completed. may need a rollback if failed.
*
*/
public static final int FINISHED_VALUE = 6;
public final int getNumber() { return value; }
public static ProcedureState valueOf(int value) {
switch (value) {
case 1: return INITIALIZING;
case 2: return RUNNABLE;
case 3: return WAITING;
case 4: return WAITING_TIMEOUT;
case 5: return ROLLEDBACK;
case 6: return FINISHED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ProcedureState findValueByNumber(int number) {
return ProcedureState.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.getDescriptor().getEnumTypes().get(0);
}
private static final ProcedureState[] VALUES = values();
public static ProcedureState valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private ProcedureState(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hbase.pb.ProcedureState)
}
public interface ProcedureOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string class_name = 1;
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
boolean hasClassName();
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
java.lang.String getClassName();
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
com.google.protobuf.ByteString
getClassNameBytes();
// optional uint64 parent_id = 2;
/**
* optional uint64 parent_id = 2;
*
*
* parent if not a root-procedure otherwise not set
*
*/
boolean hasParentId();
/**
* optional uint64 parent_id = 2;
*
*
* parent if not a root-procedure otherwise not set
*
*/
long getParentId();
// required uint64 proc_id = 3;
/**
* required uint64 proc_id = 3;
*/
boolean hasProcId();
/**
* required uint64 proc_id = 3;
*/
long getProcId();
// required uint64 start_time = 4;
/**
* required uint64 start_time = 4;
*/
boolean hasStartTime();
/**
* required uint64 start_time = 4;
*/
long getStartTime();
// optional string owner = 5;
/**
* optional string owner = 5;
*/
boolean hasOwner();
/**
* optional string owner = 5;
*/
java.lang.String getOwner();
/**
* optional string owner = 5;
*/
com.google.protobuf.ByteString
getOwnerBytes();
// required .hbase.pb.ProcedureState state = 6;
/**
* required .hbase.pb.ProcedureState state = 6;
*
*
* internal "runtime" state
*
*/
boolean hasState();
/**
* required .hbase.pb.ProcedureState state = 6;
*
*
* internal "runtime" state
*
*/
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState getState();
// repeated uint32 stack_id = 7;
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
java.util.List getStackIdList();
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
int getStackIdCount();
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
int getStackId(int index);
// required uint64 last_update = 8;
/**
* required uint64 last_update = 8;
*/
boolean hasLastUpdate();
/**
* required uint64 last_update = 8;
*/
long getLastUpdate();
// optional uint32 timeout = 9;
/**
* optional uint32 timeout = 9;
*/
boolean hasTimeout();
/**
* optional uint32 timeout = 9;
*/
int getTimeout();
// optional .hbase.pb.ForeignExceptionMessage exception = 10;
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
boolean hasException();
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage getException();
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessageOrBuilder getExceptionOrBuilder();
// optional bytes result = 11;
/**
* optional bytes result = 11;
*
*
* opaque (user) result structure
*
*/
boolean hasResult();
/**
* optional bytes result = 11;
*
*
* opaque (user) result structure
*
*/
com.google.protobuf.ByteString getResult();
// optional bytes state_data = 12;
/**
* optional bytes state_data = 12;
*
*
* opaque (user) procedure internal-state
*
*/
boolean hasStateData();
/**
* optional bytes state_data = 12;
*
*
* opaque (user) procedure internal-state
*
*/
com.google.protobuf.ByteString getStateData();
// optional uint64 nonce_group = 13 [default = 0];
/**
* optional uint64 nonce_group = 13 [default = 0];
*
*
* Nonce to prevent same procedure submit by multiple times
*
*/
boolean hasNonceGroup();
/**
* optional uint64 nonce_group = 13 [default = 0];
*
*
* Nonce to prevent same procedure submit by multiple times
*
*/
long getNonceGroup();
// optional uint64 nonce = 14 [default = 0];
/**
* optional uint64 nonce = 14 [default = 0];
*/
boolean hasNonce();
/**
* optional uint64 nonce = 14 [default = 0];
*/
long getNonce();
}
/**
* Protobuf type {@code hbase.pb.Procedure}
*
*
**
* Procedure metadata, serialized by the ProcedureStore to be able to recover the old state.
*
*/
public static final class Procedure extends
com.google.protobuf.GeneratedMessage
implements ProcedureOrBuilder {
// Use Procedure.newBuilder() to construct.
private Procedure(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Procedure(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Procedure defaultInstance;
public static Procedure getDefaultInstance() {
return defaultInstance;
}
public Procedure getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Procedure(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
className_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
parentId_ = input.readUInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
procId_ = input.readUInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
startTime_ = input.readUInt64();
break;
}
case 42: {
bitField0_ |= 0x00000010;
owner_ = input.readBytes();
break;
}
case 48: {
int rawValue = input.readEnum();
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState value = org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(6, rawValue);
} else {
bitField0_ |= 0x00000020;
state_ = value;
}
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
stackId_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
stackId_.add(input.readUInt32());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
stackId_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
stackId_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 64: {
bitField0_ |= 0x00000040;
lastUpdate_ = input.readUInt64();
break;
}
case 72: {
bitField0_ |= 0x00000080;
timeout_ = input.readUInt32();
break;
}
case 82: {
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
subBuilder = exception_.toBuilder();
}
exception_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(exception_);
exception_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000100;
break;
}
case 90: {
bitField0_ |= 0x00000200;
result_ = input.readBytes();
break;
}
case 98: {
bitField0_ |= 0x00000400;
stateData_ = input.readBytes();
break;
}
case 104: {
bitField0_ |= 0x00000800;
nonceGroup_ = input.readUInt64();
break;
}
case 112: {
bitField0_ |= 0x00001000;
nonce_ = input.readUInt64();
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_ & 0x00000040) == 0x00000040)) {
stackId_ = java.util.Collections.unmodifiableList(stackId_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_Procedure_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_Procedure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Procedure parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Procedure(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string class_name = 1;
public static final int CLASS_NAME_FIELD_NUMBER = 1;
private java.lang.Object className_;
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
public boolean hasClassName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
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;
}
}
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
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 uint64 parent_id = 2;
public static final int PARENT_ID_FIELD_NUMBER = 2;
private long parentId_;
/**
* optional uint64 parent_id = 2;
*
*
* parent if not a root-procedure otherwise not set
*
*/
public boolean hasParentId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 parent_id = 2;
*
*
* parent if not a root-procedure otherwise not set
*
*/
public long getParentId() {
return parentId_;
}
// required uint64 proc_id = 3;
public static final int PROC_ID_FIELD_NUMBER = 3;
private long procId_;
/**
* required uint64 proc_id = 3;
*/
public boolean hasProcId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint64 proc_id = 3;
*/
public long getProcId() {
return procId_;
}
// required uint64 start_time = 4;
public static final int START_TIME_FIELD_NUMBER = 4;
private long startTime_;
/**
* required uint64 start_time = 4;
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required uint64 start_time = 4;
*/
public long getStartTime() {
return startTime_;
}
// optional string owner = 5;
public static final int OWNER_FIELD_NUMBER = 5;
private java.lang.Object owner_;
/**
* optional string owner = 5;
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string owner = 5;
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
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()) {
owner_ = s;
}
return s;
}
}
/**
* optional string owner = 5;
*/
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required .hbase.pb.ProcedureState state = 6;
public static final int STATE_FIELD_NUMBER = 6;
private org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState state_;
/**
* required .hbase.pb.ProcedureState state = 6;
*
*
* internal "runtime" state
*
*/
public boolean hasState() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* required .hbase.pb.ProcedureState state = 6;
*
*
* internal "runtime" state
*
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState getState() {
return state_;
}
// repeated uint32 stack_id = 7;
public static final int STACK_ID_FIELD_NUMBER = 7;
private java.util.List stackId_;
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
public java.util.List
getStackIdList() {
return stackId_;
}
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
public int getStackIdCount() {
return stackId_.size();
}
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
public int getStackId(int index) {
return stackId_.get(index);
}
// required uint64 last_update = 8;
public static final int LAST_UPDATE_FIELD_NUMBER = 8;
private long lastUpdate_;
/**
* required uint64 last_update = 8;
*/
public boolean hasLastUpdate() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* required uint64 last_update = 8;
*/
public long getLastUpdate() {
return lastUpdate_;
}
// optional uint32 timeout = 9;
public static final int TIMEOUT_FIELD_NUMBER = 9;
private int timeout_;
/**
* optional uint32 timeout = 9;
*/
public boolean hasTimeout() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional uint32 timeout = 9;
*/
public int getTimeout() {
return timeout_;
}
// optional .hbase.pb.ForeignExceptionMessage exception = 10;
public static final int EXCEPTION_FIELD_NUMBER = 10;
private org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage exception_;
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
public boolean hasException() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
public org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage getException() {
return exception_;
}
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
public org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessageOrBuilder getExceptionOrBuilder() {
return exception_;
}
// optional bytes result = 11;
public static final int RESULT_FIELD_NUMBER = 11;
private com.google.protobuf.ByteString result_;
/**
* optional bytes result = 11;
*
*
* opaque (user) result structure
*
*/
public boolean hasResult() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional bytes result = 11;
*
*
* opaque (user) result structure
*
*/
public com.google.protobuf.ByteString getResult() {
return result_;
}
// optional bytes state_data = 12;
public static final int STATE_DATA_FIELD_NUMBER = 12;
private com.google.protobuf.ByteString stateData_;
/**
* optional bytes state_data = 12;
*
*
* opaque (user) procedure internal-state
*
*/
public boolean hasStateData() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional bytes state_data = 12;
*
*
* opaque (user) procedure internal-state
*
*/
public com.google.protobuf.ByteString getStateData() {
return stateData_;
}
// optional uint64 nonce_group = 13 [default = 0];
public static final int NONCE_GROUP_FIELD_NUMBER = 13;
private long nonceGroup_;
/**
* optional uint64 nonce_group = 13 [default = 0];
*
*
* Nonce to prevent same procedure submit by multiple times
*
*/
public boolean hasNonceGroup() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional uint64 nonce_group = 13 [default = 0];
*
*
* Nonce to prevent same procedure submit by multiple times
*
*/
public long getNonceGroup() {
return nonceGroup_;
}
// optional uint64 nonce = 14 [default = 0];
public static final int NONCE_FIELD_NUMBER = 14;
private long nonce_;
/**
* optional uint64 nonce = 14 [default = 0];
*/
public boolean hasNonce() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional uint64 nonce = 14 [default = 0];
*/
public long getNonce() {
return nonce_;
}
private void initFields() {
className_ = "";
parentId_ = 0L;
procId_ = 0L;
startTime_ = 0L;
owner_ = "";
state_ = org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState.INITIALIZING;
stackId_ = java.util.Collections.emptyList();
lastUpdate_ = 0L;
timeout_ = 0;
exception_ = org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.getDefaultInstance();
result_ = com.google.protobuf.ByteString.EMPTY;
stateData_ = com.google.protobuf.ByteString.EMPTY;
nonceGroup_ = 0L;
nonce_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasClassName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasProcId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasStartTime()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasState()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLastUpdate()) {
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, getClassNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, parentId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, procId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt64(4, startTime_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getOwnerBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeEnum(6, state_.getNumber());
}
for (int i = 0; i < stackId_.size(); i++) {
output.writeUInt32(7, stackId_.get(i));
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeUInt64(8, lastUpdate_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeUInt32(9, timeout_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeMessage(10, exception_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBytes(11, result_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeBytes(12, stateData_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeUInt64(13, nonceGroup_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeUInt64(14, nonce_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getClassNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, parentId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, procId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, startTime_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getOwnerBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, state_.getNumber());
}
{
int dataSize = 0;
for (int i = 0; i < stackId_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(stackId_.get(i));
}
size += dataSize;
size += 1 * getStackIdList().size();
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, lastUpdate_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, timeout_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, exception_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(11, result_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(12, stateData_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(13, nonceGroup_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(14, nonce_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure other = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure) obj;
boolean result = true;
result = result && (hasClassName() == other.hasClassName());
if (hasClassName()) {
result = result && getClassName()
.equals(other.getClassName());
}
result = result && (hasParentId() == other.hasParentId());
if (hasParentId()) {
result = result && (getParentId()
== other.getParentId());
}
result = result && (hasProcId() == other.hasProcId());
if (hasProcId()) {
result = result && (getProcId()
== other.getProcId());
}
result = result && (hasStartTime() == other.hasStartTime());
if (hasStartTime()) {
result = result && (getStartTime()
== other.getStartTime());
}
result = result && (hasOwner() == other.hasOwner());
if (hasOwner()) {
result = result && getOwner()
.equals(other.getOwner());
}
result = result && (hasState() == other.hasState());
if (hasState()) {
result = result &&
(getState() == other.getState());
}
result = result && getStackIdList()
.equals(other.getStackIdList());
result = result && (hasLastUpdate() == other.hasLastUpdate());
if (hasLastUpdate()) {
result = result && (getLastUpdate()
== other.getLastUpdate());
}
result = result && (hasTimeout() == other.hasTimeout());
if (hasTimeout()) {
result = result && (getTimeout()
== other.getTimeout());
}
result = result && (hasException() == other.hasException());
if (hasException()) {
result = result && getException()
.equals(other.getException());
}
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
result = result && (hasStateData() == other.hasStateData());
if (hasStateData()) {
result = result && getStateData()
.equals(other.getStateData());
}
result = result && (hasNonceGroup() == other.hasNonceGroup());
if (hasNonceGroup()) {
result = result && (getNonceGroup()
== other.getNonceGroup());
}
result = result && (hasNonce() == other.hasNonce());
if (hasNonce()) {
result = result && (getNonce()
== other.getNonce());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasClassName()) {
hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClassName().hashCode();
}
if (hasParentId()) {
hash = (37 * hash) + PARENT_ID_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getParentId());
}
if (hasProcId()) {
hash = (37 * hash) + PROC_ID_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getProcId());
}
if (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getStartTime());
}
if (hasOwner()) {
hash = (37 * hash) + OWNER_FIELD_NUMBER;
hash = (53 * hash) + getOwner().hashCode();
}
if (hasState()) {
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + hashEnum(getState());
}
if (getStackIdCount() > 0) {
hash = (37 * hash) + STACK_ID_FIELD_NUMBER;
hash = (53 * hash) + getStackIdList().hashCode();
}
if (hasLastUpdate()) {
hash = (37 * hash) + LAST_UPDATE_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getLastUpdate());
}
if (hasTimeout()) {
hash = (37 * hash) + TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getTimeout();
}
if (hasException()) {
hash = (37 * hash) + EXCEPTION_FIELD_NUMBER;
hash = (53 * hash) + getException().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
if (hasStateData()) {
hash = (37 * hash) + STATE_DATA_FIELD_NUMBER;
hash = (53 * hash) + getStateData().hashCode();
}
if (hasNonceGroup()) {
hash = (37 * hash) + NONCE_GROUP_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getNonceGroup());
}
if (hasNonce()) {
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getNonce());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure 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.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.Procedure}
*
*
**
* Procedure metadata, serialized by the ProcedureStore to be able to recover the old state.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_Procedure_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_Procedure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.Builder.class);
}
// Construct using org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getExceptionFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
className_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
parentId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
procId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
startTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
owner_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
state_ = org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState.INITIALIZING;
bitField0_ = (bitField0_ & ~0x00000020);
stackId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
lastUpdate_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
timeout_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
if (exceptionBuilder_ == null) {
exception_ = org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.getDefaultInstance();
} else {
exceptionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
result_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000400);
stateData_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000800);
nonceGroup_ = 0L;
bitField0_ = (bitField0_ & ~0x00001000);
nonce_ = 0L;
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_Procedure_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure getDefaultInstanceForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.getDefaultInstance();
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure build() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure buildPartial() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure result = new org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure(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.parentId_ = parentId_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.procId_ = procId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.startTime_ = startTime_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.owner_ = owner_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.state_ = state_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
stackId_ = java.util.Collections.unmodifiableList(stackId_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.stackId_ = stackId_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000040;
}
result.lastUpdate_ = lastUpdate_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000080;
}
result.timeout_ = timeout_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000100;
}
if (exceptionBuilder_ == null) {
result.exception_ = exception_;
} else {
result.exception_ = exceptionBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000200;
}
result.result_ = result_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000400;
}
result.stateData_ = stateData_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00000800;
}
result.nonceGroup_ = nonceGroup_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00001000;
}
result.nonce_ = nonce_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure) {
return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.getDefaultInstance()) return this;
if (other.hasClassName()) {
bitField0_ |= 0x00000001;
className_ = other.className_;
onChanged();
}
if (other.hasParentId()) {
setParentId(other.getParentId());
}
if (other.hasProcId()) {
setProcId(other.getProcId());
}
if (other.hasStartTime()) {
setStartTime(other.getStartTime());
}
if (other.hasOwner()) {
bitField0_ |= 0x00000010;
owner_ = other.owner_;
onChanged();
}
if (other.hasState()) {
setState(other.getState());
}
if (!other.stackId_.isEmpty()) {
if (stackId_.isEmpty()) {
stackId_ = other.stackId_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureStackIdIsMutable();
stackId_.addAll(other.stackId_);
}
onChanged();
}
if (other.hasLastUpdate()) {
setLastUpdate(other.getLastUpdate());
}
if (other.hasTimeout()) {
setTimeout(other.getTimeout());
}
if (other.hasException()) {
mergeException(other.getException());
}
if (other.hasResult()) {
setResult(other.getResult());
}
if (other.hasStateData()) {
setStateData(other.getStateData());
}
if (other.hasNonceGroup()) {
setNonceGroup(other.getNonceGroup());
}
if (other.hasNonce()) {
setNonce(other.getNonce());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasClassName()) {
return false;
}
if (!hasProcId()) {
return false;
}
if (!hasStartTime()) {
return false;
}
if (!hasState()) {
return false;
}
if (!hasLastUpdate()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string class_name = 1;
private java.lang.Object className_ = "";
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
public boolean hasClassName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
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;
}
}
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
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;
}
}
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
public Builder setClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
className_ = value;
onChanged();
return this;
}
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
public Builder clearClassName() {
bitField0_ = (bitField0_ & ~0x00000001);
className_ = getDefaultInstance().getClassName();
onChanged();
return this;
}
/**
* required string class_name = 1;
*
*
* internal "static" state
*
*/
public Builder setClassNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
className_ = value;
onChanged();
return this;
}
// optional uint64 parent_id = 2;
private long parentId_ ;
/**
* optional uint64 parent_id = 2;
*
*
* parent if not a root-procedure otherwise not set
*
*/
public boolean hasParentId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 parent_id = 2;
*
*
* parent if not a root-procedure otherwise not set
*
*/
public long getParentId() {
return parentId_;
}
/**
* optional uint64 parent_id = 2;
*
*
* parent if not a root-procedure otherwise not set
*
*/
public Builder setParentId(long value) {
bitField0_ |= 0x00000002;
parentId_ = value;
onChanged();
return this;
}
/**
* optional uint64 parent_id = 2;
*
*
* parent if not a root-procedure otherwise not set
*
*/
public Builder clearParentId() {
bitField0_ = (bitField0_ & ~0x00000002);
parentId_ = 0L;
onChanged();
return this;
}
// required uint64 proc_id = 3;
private long procId_ ;
/**
* required uint64 proc_id = 3;
*/
public boolean hasProcId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint64 proc_id = 3;
*/
public long getProcId() {
return procId_;
}
/**
* required uint64 proc_id = 3;
*/
public Builder setProcId(long value) {
bitField0_ |= 0x00000004;
procId_ = value;
onChanged();
return this;
}
/**
* required uint64 proc_id = 3;
*/
public Builder clearProcId() {
bitField0_ = (bitField0_ & ~0x00000004);
procId_ = 0L;
onChanged();
return this;
}
// required uint64 start_time = 4;
private long startTime_ ;
/**
* required uint64 start_time = 4;
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required uint64 start_time = 4;
*/
public long getStartTime() {
return startTime_;
}
/**
* required uint64 start_time = 4;
*/
public Builder setStartTime(long value) {
bitField0_ |= 0x00000008;
startTime_ = value;
onChanged();
return this;
}
/**
* required uint64 start_time = 4;
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000008);
startTime_ = 0L;
onChanged();
return this;
}
// optional string owner = 5;
private java.lang.Object owner_ = "";
/**
* optional string owner = 5;
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string owner = 5;
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
owner_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string owner = 5;
*/
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string owner = 5;
*/
public Builder setOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
owner_ = value;
onChanged();
return this;
}
/**
* optional string owner = 5;
*/
public Builder clearOwner() {
bitField0_ = (bitField0_ & ~0x00000010);
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
* optional string owner = 5;
*/
public Builder setOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
owner_ = value;
onChanged();
return this;
}
// required .hbase.pb.ProcedureState state = 6;
private org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState state_ = org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState.INITIALIZING;
/**
* required .hbase.pb.ProcedureState state = 6;
*
*
* internal "runtime" state
*
*/
public boolean hasState() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* required .hbase.pb.ProcedureState state = 6;
*
*
* internal "runtime" state
*
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState getState() {
return state_;
}
/**
* required .hbase.pb.ProcedureState state = 6;
*
*
* internal "runtime" state
*
*/
public Builder setState(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
state_ = value;
onChanged();
return this;
}
/**
* required .hbase.pb.ProcedureState state = 6;
*
*
* internal "runtime" state
*
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000020);
state_ = org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState.INITIALIZING;
onChanged();
return this;
}
// repeated uint32 stack_id = 7;
private java.util.List stackId_ = java.util.Collections.emptyList();
private void ensureStackIdIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
stackId_ = new java.util.ArrayList(stackId_);
bitField0_ |= 0x00000040;
}
}
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
public java.util.List
getStackIdList() {
return java.util.Collections.unmodifiableList(stackId_);
}
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
public int getStackIdCount() {
return stackId_.size();
}
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
public int getStackId(int index) {
return stackId_.get(index);
}
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
public Builder setStackId(
int index, int value) {
ensureStackIdIsMutable();
stackId_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
public Builder addStackId(int value) {
ensureStackIdIsMutable();
stackId_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
public Builder addAllStackId(
java.lang.Iterable extends java.lang.Integer> values) {
ensureStackIdIsMutable();
super.addAll(values, stackId_);
onChanged();
return this;
}
/**
* repeated uint32 stack_id = 7;
*
*
* stack indices in case the procedure was running
*
*/
public Builder clearStackId() {
stackId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
// required uint64 last_update = 8;
private long lastUpdate_ ;
/**
* required uint64 last_update = 8;
*/
public boolean hasLastUpdate() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* required uint64 last_update = 8;
*/
public long getLastUpdate() {
return lastUpdate_;
}
/**
* required uint64 last_update = 8;
*/
public Builder setLastUpdate(long value) {
bitField0_ |= 0x00000080;
lastUpdate_ = value;
onChanged();
return this;
}
/**
* required uint64 last_update = 8;
*/
public Builder clearLastUpdate() {
bitField0_ = (bitField0_ & ~0x00000080);
lastUpdate_ = 0L;
onChanged();
return this;
}
// optional uint32 timeout = 9;
private int timeout_ ;
/**
* optional uint32 timeout = 9;
*/
public boolean hasTimeout() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional uint32 timeout = 9;
*/
public int getTimeout() {
return timeout_;
}
/**
* optional uint32 timeout = 9;
*/
public Builder setTimeout(int value) {
bitField0_ |= 0x00000100;
timeout_ = value;
onChanged();
return this;
}
/**
* optional uint32 timeout = 9;
*/
public Builder clearTimeout() {
bitField0_ = (bitField0_ & ~0x00000100);
timeout_ = 0;
onChanged();
return this;
}
// optional .hbase.pb.ForeignExceptionMessage exception = 10;
private org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage exception_ = org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage, org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.Builder, org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessageOrBuilder> exceptionBuilder_;
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
public boolean hasException() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
public org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage getException() {
if (exceptionBuilder_ == null) {
return exception_;
} else {
return exceptionBuilder_.getMessage();
}
}
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
public Builder setException(org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage value) {
if (exceptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exception_ = value;
onChanged();
} else {
exceptionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
public Builder setException(
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.Builder builderForValue) {
if (exceptionBuilder_ == null) {
exception_ = builderForValue.build();
onChanged();
} else {
exceptionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
public Builder mergeException(org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage value) {
if (exceptionBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200) &&
exception_ != org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.getDefaultInstance()) {
exception_ =
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.newBuilder(exception_).mergeFrom(value).buildPartial();
} else {
exception_ = value;
}
onChanged();
} else {
exceptionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
public Builder clearException() {
if (exceptionBuilder_ == null) {
exception_ = org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.getDefaultInstance();
onChanged();
} else {
exceptionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
public org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.Builder getExceptionBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getExceptionFieldBuilder().getBuilder();
}
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
public org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessageOrBuilder getExceptionOrBuilder() {
if (exceptionBuilder_ != null) {
return exceptionBuilder_.getMessageOrBuilder();
} else {
return exception_;
}
}
/**
* optional .hbase.pb.ForeignExceptionMessage exception = 10;
*
*
* user state/results
*
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage, org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.Builder, org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessageOrBuilder>
getExceptionFieldBuilder() {
if (exceptionBuilder_ == null) {
exceptionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage, org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage.Builder, org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessageOrBuilder>(
exception_,
getParentForChildren(),
isClean());
exception_ = null;
}
return exceptionBuilder_;
}
// optional bytes result = 11;
private com.google.protobuf.ByteString result_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes result = 11;
*
*
* opaque (user) result structure
*
*/
public boolean hasResult() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional bytes result = 11;
*
*
* opaque (user) result structure
*
*/
public com.google.protobuf.ByteString getResult() {
return result_;
}
/**
* optional bytes result = 11;
*
*
* opaque (user) result structure
*
*/
public Builder setResult(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
result_ = value;
onChanged();
return this;
}
/**
* optional bytes result = 11;
*
*
* opaque (user) result structure
*
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000400);
result_ = getDefaultInstance().getResult();
onChanged();
return this;
}
// optional bytes state_data = 12;
private com.google.protobuf.ByteString stateData_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes state_data = 12;
*
*
* opaque (user) procedure internal-state
*
*/
public boolean hasStateData() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional bytes state_data = 12;
*
*
* opaque (user) procedure internal-state
*
*/
public com.google.protobuf.ByteString getStateData() {
return stateData_;
}
/**
* optional bytes state_data = 12;
*
*
* opaque (user) procedure internal-state
*
*/
public Builder setStateData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
stateData_ = value;
onChanged();
return this;
}
/**
* optional bytes state_data = 12;
*
*
* opaque (user) procedure internal-state
*
*/
public Builder clearStateData() {
bitField0_ = (bitField0_ & ~0x00000800);
stateData_ = getDefaultInstance().getStateData();
onChanged();
return this;
}
// optional uint64 nonce_group = 13 [default = 0];
private long nonceGroup_ ;
/**
* optional uint64 nonce_group = 13 [default = 0];
*
*
* Nonce to prevent same procedure submit by multiple times
*
*/
public boolean hasNonceGroup() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional uint64 nonce_group = 13 [default = 0];
*
*
* Nonce to prevent same procedure submit by multiple times
*
*/
public long getNonceGroup() {
return nonceGroup_;
}
/**
* optional uint64 nonce_group = 13 [default = 0];
*
*
* Nonce to prevent same procedure submit by multiple times
*
*/
public Builder setNonceGroup(long value) {
bitField0_ |= 0x00001000;
nonceGroup_ = value;
onChanged();
return this;
}
/**
* optional uint64 nonce_group = 13 [default = 0];
*
*
* Nonce to prevent same procedure submit by multiple times
*
*/
public Builder clearNonceGroup() {
bitField0_ = (bitField0_ & ~0x00001000);
nonceGroup_ = 0L;
onChanged();
return this;
}
// optional uint64 nonce = 14 [default = 0];
private long nonce_ ;
/**
* optional uint64 nonce = 14 [default = 0];
*/
public boolean hasNonce() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional uint64 nonce = 14 [default = 0];
*/
public long getNonce() {
return nonce_;
}
/**
* optional uint64 nonce = 14 [default = 0];
*/
public Builder setNonce(long value) {
bitField0_ |= 0x00002000;
nonce_ = value;
onChanged();
return this;
}
/**
* optional uint64 nonce = 14 [default = 0];
*/
public Builder clearNonce() {
bitField0_ = (bitField0_ & ~0x00002000);
nonce_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hbase.pb.Procedure)
}
static {
defaultInstance = new Procedure(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hbase.pb.Procedure)
}
public interface SequentialProcedureDataOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required bool executed = 1;
/**
* required bool executed = 1;
*/
boolean hasExecuted();
/**
* required bool executed = 1;
*/
boolean getExecuted();
}
/**
* Protobuf type {@code hbase.pb.SequentialProcedureData}
*
*
**
* SequentialProcedure data
*
*/
public static final class SequentialProcedureData extends
com.google.protobuf.GeneratedMessage
implements SequentialProcedureDataOrBuilder {
// Use SequentialProcedureData.newBuilder() to construct.
private SequentialProcedureData(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SequentialProcedureData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SequentialProcedureData defaultInstance;
public static SequentialProcedureData getDefaultInstance() {
return defaultInstance;
}
public SequentialProcedureData getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SequentialProcedureData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
executed_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_SequentialProcedureData_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_SequentialProcedureData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SequentialProcedureData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SequentialProcedureData(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required bool executed = 1;
public static final int EXECUTED_FIELD_NUMBER = 1;
private boolean executed_;
/**
* required bool executed = 1;
*/
public boolean hasExecuted() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bool executed = 1;
*/
public boolean getExecuted() {
return executed_;
}
private void initFields() {
executed_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasExecuted()) {
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.writeBool(1, executed_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, executed_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData other = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData) obj;
boolean result = true;
result = result && (hasExecuted() == other.hasExecuted());
if (hasExecuted()) {
result = result && (getExecuted()
== other.getExecuted());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasExecuted()) {
hash = (37 * hash) + EXECUTED_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getExecuted());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData 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.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.SequentialProcedureData}
*
*
**
* SequentialProcedure data
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_SequentialProcedureData_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_SequentialProcedureData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData.Builder.class);
}
// Construct using org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
executed_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_SequentialProcedureData_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData getDefaultInstanceForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData.getDefaultInstance();
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData build() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData buildPartial() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData result = new org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.executed_ = executed_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData) {
return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData.getDefaultInstance()) return this;
if (other.hasExecuted()) {
setExecuted(other.getExecuted());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasExecuted()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProcedureData) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required bool executed = 1;
private boolean executed_ ;
/**
* required bool executed = 1;
*/
public boolean hasExecuted() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bool executed = 1;
*/
public boolean getExecuted() {
return executed_;
}
/**
* required bool executed = 1;
*/
public Builder setExecuted(boolean value) {
bitField0_ |= 0x00000001;
executed_ = value;
onChanged();
return this;
}
/**
* required bool executed = 1;
*/
public Builder clearExecuted() {
bitField0_ = (bitField0_ & ~0x00000001);
executed_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hbase.pb.SequentialProcedureData)
}
static {
defaultInstance = new SequentialProcedureData(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hbase.pb.SequentialProcedureData)
}
public interface StateMachineProcedureDataOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated uint32 state = 1;
/**
* repeated uint32 state = 1;
*/
java.util.List getStateList();
/**
* repeated uint32 state = 1;
*/
int getStateCount();
/**
* repeated uint32 state = 1;
*/
int getState(int index);
}
/**
* Protobuf type {@code hbase.pb.StateMachineProcedureData}
*
*
**
* StateMachineProcedure data
*
*/
public static final class StateMachineProcedureData extends
com.google.protobuf.GeneratedMessage
implements StateMachineProcedureDataOrBuilder {
// Use StateMachineProcedureData.newBuilder() to construct.
private StateMachineProcedureData(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StateMachineProcedureData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StateMachineProcedureData defaultInstance;
public static StateMachineProcedureData getDefaultInstance() {
return defaultInstance;
}
public StateMachineProcedureData getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StateMachineProcedureData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
state_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
state_.add(input.readUInt32());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
state_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
state_.add(input.readUInt32());
}
input.popLimit(limit);
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_ & 0x00000001) == 0x00000001)) {
state_ = java.util.Collections.unmodifiableList(state_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_StateMachineProcedureData_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_StateMachineProcedureData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public StateMachineProcedureData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StateMachineProcedureData(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated uint32 state = 1;
public static final int STATE_FIELD_NUMBER = 1;
private java.util.List state_;
/**
* repeated uint32 state = 1;
*/
public java.util.List
getStateList() {
return state_;
}
/**
* repeated uint32 state = 1;
*/
public int getStateCount() {
return state_.size();
}
/**
* repeated uint32 state = 1;
*/
public int getState(int index) {
return state_.get(index);
}
private void initFields() {
state_ = 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();
for (int i = 0; i < state_.size(); i++) {
output.writeUInt32(1, state_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < state_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(state_.get(i));
}
size += dataSize;
size += 1 * getStateList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData other = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData) obj;
boolean result = true;
result = result && getStateList()
.equals(other.getStateList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getStateCount() > 0) {
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getStateList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData 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.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.StateMachineProcedureData}
*
*
**
* StateMachineProcedure data
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_StateMachineProcedureData_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_StateMachineProcedureData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData.Builder.class);
}
// Construct using org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
state_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_StateMachineProcedureData_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData getDefaultInstanceForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData.getDefaultInstance();
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData build() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData buildPartial() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData result = new org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
state_ = java.util.Collections.unmodifiableList(state_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.state_ = state_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData) {
return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData.getDefaultInstance()) return this;
if (!other.state_.isEmpty()) {
if (state_.isEmpty()) {
state_ = other.state_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStateIsMutable();
state_.addAll(other.state_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachineProcedureData) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated uint32 state = 1;
private java.util.List state_ = java.util.Collections.emptyList();
private void ensureStateIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
state_ = new java.util.ArrayList(state_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated uint32 state = 1;
*/
public java.util.List
getStateList() {
return java.util.Collections.unmodifiableList(state_);
}
/**
* repeated uint32 state = 1;
*/
public int getStateCount() {
return state_.size();
}
/**
* repeated uint32 state = 1;
*/
public int getState(int index) {
return state_.get(index);
}
/**
* repeated uint32 state = 1;
*/
public Builder setState(
int index, int value) {
ensureStateIsMutable();
state_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 state = 1;
*/
public Builder addState(int value) {
ensureStateIsMutable();
state_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 state = 1;
*/
public Builder addAllState(
java.lang.Iterable extends java.lang.Integer> values) {
ensureStateIsMutable();
super.addAll(values, state_);
onChanged();
return this;
}
/**
* repeated uint32 state = 1;
*/
public Builder clearState() {
state_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hbase.pb.StateMachineProcedureData)
}
static {
defaultInstance = new StateMachineProcedureData(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hbase.pb.StateMachineProcedureData)
}
public interface ProcedureWALHeaderOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required uint32 version = 1;
/**
* required uint32 version = 1;
*/
boolean hasVersion();
/**
* required uint32 version = 1;
*/
int getVersion();
// required uint32 type = 2;
/**
* required uint32 type = 2;
*/
boolean hasType();
/**
* required uint32 type = 2;
*/
int getType();
// required uint64 log_id = 3;
/**
* required uint64 log_id = 3;
*/
boolean hasLogId();
/**
* required uint64 log_id = 3;
*/
long getLogId();
// required uint64 min_proc_id = 4;
/**
* required uint64 min_proc_id = 4;
*/
boolean hasMinProcId();
/**
* required uint64 min_proc_id = 4;
*/
long getMinProcId();
}
/**
* Protobuf type {@code hbase.pb.ProcedureWALHeader}
*
*
**
* Procedure WAL header
*
*/
public static final class ProcedureWALHeader extends
com.google.protobuf.GeneratedMessage
implements ProcedureWALHeaderOrBuilder {
// Use ProcedureWALHeader.newBuilder() to construct.
private ProcedureWALHeader(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ProcedureWALHeader(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ProcedureWALHeader defaultInstance;
public static ProcedureWALHeader getDefaultInstance() {
return defaultInstance;
}
public ProcedureWALHeader getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProcedureWALHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
version_ = input.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
type_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
logId_ = input.readUInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
minProcId_ = input.readUInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ProcedureWALHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProcedureWALHeader(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required uint32 version = 1;
public static final int VERSION_FIELD_NUMBER = 1;
private int version_;
/**
* required uint32 version = 1;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 version = 1;
*/
public int getVersion() {
return version_;
}
// required uint32 type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* required uint32 type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 type = 2;
*/
public int getType() {
return type_;
}
// required uint64 log_id = 3;
public static final int LOG_ID_FIELD_NUMBER = 3;
private long logId_;
/**
* required uint64 log_id = 3;
*/
public boolean hasLogId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint64 log_id = 3;
*/
public long getLogId() {
return logId_;
}
// required uint64 min_proc_id = 4;
public static final int MIN_PROC_ID_FIELD_NUMBER = 4;
private long minProcId_;
/**
* required uint64 min_proc_id = 4;
*/
public boolean hasMinProcId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required uint64 min_proc_id = 4;
*/
public long getMinProcId() {
return minProcId_;
}
private void initFields() {
version_ = 0;
type_ = 0;
logId_ = 0L;
minProcId_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasVersion()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLogId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasMinProcId()) {
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.writeUInt32(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, logId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt64(4, minProcId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, logId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, minProcId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader other = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader) obj;
boolean result = true;
result = result && (hasVersion() == other.hasVersion());
if (hasVersion()) {
result = result && (getVersion()
== other.getVersion());
}
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && (getType()
== other.getType());
}
result = result && (hasLogId() == other.hasLogId());
if (hasLogId()) {
result = result && (getLogId()
== other.getLogId());
}
result = result && (hasMinProcId() == other.hasMinProcId());
if (hasMinProcId()) {
result = result && (getMinProcId()
== other.getMinProcId());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType();
}
if (hasLogId()) {
hash = (37 * hash) + LOG_ID_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getLogId());
}
if (hasMinProcId()) {
hash = (37 * hash) + MIN_PROC_ID_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getMinProcId());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader 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.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.ProcedureWALHeader}
*
*
**
* Procedure WAL header
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader.Builder.class);
}
// Construct using org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
version_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
logId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
minProcId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALHeader_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader getDefaultInstanceForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader.getDefaultInstance();
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader build() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader buildPartial() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader result = new org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.logId_ = logId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.minProcId_ = minProcId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader) {
return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader.getDefaultInstance()) return this;
if (other.hasVersion()) {
setVersion(other.getVersion());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasLogId()) {
setLogId(other.getLogId());
}
if (other.hasMinProcId()) {
setMinProcId(other.getMinProcId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasVersion()) {
return false;
}
if (!hasType()) {
return false;
}
if (!hasLogId()) {
return false;
}
if (!hasMinProcId()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required uint32 version = 1;
private int version_ ;
/**
* required uint32 version = 1;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 version = 1;
*/
public int getVersion() {
return version_;
}
/**
* required uint32 version = 1;
*/
public Builder setVersion(int value) {
bitField0_ |= 0x00000001;
version_ = value;
onChanged();
return this;
}
/**
* required uint32 version = 1;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
version_ = 0;
onChanged();
return this;
}
// required uint32 type = 2;
private int type_ ;
/**
* required uint32 type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 type = 2;
*/
public int getType() {
return type_;
}
/**
* required uint32 type = 2;
*/
public Builder setType(int value) {
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
* required uint32 type = 2;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
onChanged();
return this;
}
// required uint64 log_id = 3;
private long logId_ ;
/**
* required uint64 log_id = 3;
*/
public boolean hasLogId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint64 log_id = 3;
*/
public long getLogId() {
return logId_;
}
/**
* required uint64 log_id = 3;
*/
public Builder setLogId(long value) {
bitField0_ |= 0x00000004;
logId_ = value;
onChanged();
return this;
}
/**
* required uint64 log_id = 3;
*/
public Builder clearLogId() {
bitField0_ = (bitField0_ & ~0x00000004);
logId_ = 0L;
onChanged();
return this;
}
// required uint64 min_proc_id = 4;
private long minProcId_ ;
/**
* required uint64 min_proc_id = 4;
*/
public boolean hasMinProcId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required uint64 min_proc_id = 4;
*/
public long getMinProcId() {
return minProcId_;
}
/**
* required uint64 min_proc_id = 4;
*/
public Builder setMinProcId(long value) {
bitField0_ |= 0x00000008;
minProcId_ = value;
onChanged();
return this;
}
/**
* required uint64 min_proc_id = 4;
*/
public Builder clearMinProcId() {
bitField0_ = (bitField0_ & ~0x00000008);
minProcId_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hbase.pb.ProcedureWALHeader)
}
static {
defaultInstance = new ProcedureWALHeader(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hbase.pb.ProcedureWALHeader)
}
public interface ProcedureWALTrailerOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required uint32 version = 1;
/**
* required uint32 version = 1;
*/
boolean hasVersion();
/**
* required uint32 version = 1;
*/
int getVersion();
// required uint64 tracker_pos = 2;
/**
* required uint64 tracker_pos = 2;
*/
boolean hasTrackerPos();
/**
* required uint64 tracker_pos = 2;
*/
long getTrackerPos();
}
/**
* Protobuf type {@code hbase.pb.ProcedureWALTrailer}
*
*
**
* Procedure WAL trailer
*
*/
public static final class ProcedureWALTrailer extends
com.google.protobuf.GeneratedMessage
implements ProcedureWALTrailerOrBuilder {
// Use ProcedureWALTrailer.newBuilder() to construct.
private ProcedureWALTrailer(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ProcedureWALTrailer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ProcedureWALTrailer defaultInstance;
public static ProcedureWALTrailer getDefaultInstance() {
return defaultInstance;
}
public ProcedureWALTrailer getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProcedureWALTrailer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
version_ = input.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
trackerPos_ = input.readUInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALTrailer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALTrailer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ProcedureWALTrailer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProcedureWALTrailer(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required uint32 version = 1;
public static final int VERSION_FIELD_NUMBER = 1;
private int version_;
/**
* required uint32 version = 1;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 version = 1;
*/
public int getVersion() {
return version_;
}
// required uint64 tracker_pos = 2;
public static final int TRACKER_POS_FIELD_NUMBER = 2;
private long trackerPos_;
/**
* required uint64 tracker_pos = 2;
*/
public boolean hasTrackerPos() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint64 tracker_pos = 2;
*/
public long getTrackerPos() {
return trackerPos_;
}
private void initFields() {
version_ = 0;
trackerPos_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasVersion()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTrackerPos()) {
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.writeUInt32(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, trackerPos_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, version_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, trackerPos_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer other = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer) obj;
boolean result = true;
result = result && (hasVersion() == other.hasVersion());
if (hasVersion()) {
result = result && (getVersion()
== other.getVersion());
}
result = result && (hasTrackerPos() == other.hasTrackerPos());
if (hasTrackerPos()) {
result = result && (getTrackerPos()
== other.getTrackerPos());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
}
if (hasTrackerPos()) {
hash = (37 * hash) + TRACKER_POS_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getTrackerPos());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer 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.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.ProcedureWALTrailer}
*
*
**
* Procedure WAL trailer
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALTrailer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALTrailer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer.Builder.class);
}
// Construct using org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
version_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
trackerPos_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALTrailer_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer getDefaultInstanceForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer.getDefaultInstance();
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer build() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer buildPartial() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer result = new org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.trackerPos_ = trackerPos_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer) {
return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer.getDefaultInstance()) return this;
if (other.hasVersion()) {
setVersion(other.getVersion());
}
if (other.hasTrackerPos()) {
setTrackerPos(other.getTrackerPos());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasVersion()) {
return false;
}
if (!hasTrackerPos()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required uint32 version = 1;
private int version_ ;
/**
* required uint32 version = 1;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 version = 1;
*/
public int getVersion() {
return version_;
}
/**
* required uint32 version = 1;
*/
public Builder setVersion(int value) {
bitField0_ |= 0x00000001;
version_ = value;
onChanged();
return this;
}
/**
* required uint32 version = 1;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
version_ = 0;
onChanged();
return this;
}
// required uint64 tracker_pos = 2;
private long trackerPos_ ;
/**
* required uint64 tracker_pos = 2;
*/
public boolean hasTrackerPos() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint64 tracker_pos = 2;
*/
public long getTrackerPos() {
return trackerPos_;
}
/**
* required uint64 tracker_pos = 2;
*/
public Builder setTrackerPos(long value) {
bitField0_ |= 0x00000002;
trackerPos_ = value;
onChanged();
return this;
}
/**
* required uint64 tracker_pos = 2;
*/
public Builder clearTrackerPos() {
bitField0_ = (bitField0_ & ~0x00000002);
trackerPos_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hbase.pb.ProcedureWALTrailer)
}
static {
defaultInstance = new ProcedureWALTrailer(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hbase.pb.ProcedureWALTrailer)
}
public interface ProcedureStoreTrackerOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
java.util.List
getNodeList();
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode getNode(int index);
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
int getNodeCount();
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
java.util.List extends org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNodeOrBuilder>
getNodeOrBuilderList();
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNodeOrBuilder getNodeOrBuilder(
int index);
}
/**
* Protobuf type {@code hbase.pb.ProcedureStoreTracker}
*/
public static final class ProcedureStoreTracker extends
com.google.protobuf.GeneratedMessage
implements ProcedureStoreTrackerOrBuilder {
// Use ProcedureStoreTracker.newBuilder() to construct.
private ProcedureStoreTracker(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ProcedureStoreTracker(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ProcedureStoreTracker defaultInstance;
public static ProcedureStoreTracker getDefaultInstance() {
return defaultInstance;
}
public ProcedureStoreTracker getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProcedureStoreTracker(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
node_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
node_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.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_ & 0x00000001) == 0x00000001)) {
node_ = java.util.Collections.unmodifiableList(node_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureStoreTracker_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureStoreTracker_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ProcedureStoreTracker parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProcedureStoreTracker(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public interface TrackerNodeOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required uint64 start_id = 1;
/**
* required uint64 start_id = 1;
*/
boolean hasStartId();
/**
* required uint64 start_id = 1;
*/
long getStartId();
// repeated uint64 updated = 2;
/**
* repeated uint64 updated = 2;
*/
java.util.List getUpdatedList();
/**
* repeated uint64 updated = 2;
*/
int getUpdatedCount();
/**
* repeated uint64 updated = 2;
*/
long getUpdated(int index);
// repeated uint64 deleted = 3;
/**
* repeated uint64 deleted = 3;
*/
java.util.List getDeletedList();
/**
* repeated uint64 deleted = 3;
*/
int getDeletedCount();
/**
* repeated uint64 deleted = 3;
*/
long getDeleted(int index);
}
/**
* Protobuf type {@code hbase.pb.ProcedureStoreTracker.TrackerNode}
*/
public static final class TrackerNode extends
com.google.protobuf.GeneratedMessage
implements TrackerNodeOrBuilder {
// Use TrackerNode.newBuilder() to construct.
private TrackerNode(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TrackerNode(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final TrackerNode defaultInstance;
public static TrackerNode getDefaultInstance() {
return defaultInstance;
}
public TrackerNode getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TrackerNode(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
startId_ = input.readUInt64();
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
updated_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
updated_.add(input.readUInt64());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
updated_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
updated_.add(input.readUInt64());
}
input.popLimit(limit);
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
deleted_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
deleted_.add(input.readUInt64());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
deleted_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
deleted_.add(input.readUInt64());
}
input.popLimit(limit);
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_ & 0x00000002) == 0x00000002)) {
updated_ = java.util.Collections.unmodifiableList(updated_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
deleted_ = java.util.Collections.unmodifiableList(deleted_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureStoreTracker_TrackerNode_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureStoreTracker_TrackerNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TrackerNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TrackerNode(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required uint64 start_id = 1;
public static final int START_ID_FIELD_NUMBER = 1;
private long startId_;
/**
* required uint64 start_id = 1;
*/
public boolean hasStartId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint64 start_id = 1;
*/
public long getStartId() {
return startId_;
}
// repeated uint64 updated = 2;
public static final int UPDATED_FIELD_NUMBER = 2;
private java.util.List updated_;
/**
* repeated uint64 updated = 2;
*/
public java.util.List
getUpdatedList() {
return updated_;
}
/**
* repeated uint64 updated = 2;
*/
public int getUpdatedCount() {
return updated_.size();
}
/**
* repeated uint64 updated = 2;
*/
public long getUpdated(int index) {
return updated_.get(index);
}
// repeated uint64 deleted = 3;
public static final int DELETED_FIELD_NUMBER = 3;
private java.util.List deleted_;
/**
* repeated uint64 deleted = 3;
*/
public java.util.List
getDeletedList() {
return deleted_;
}
/**
* repeated uint64 deleted = 3;
*/
public int getDeletedCount() {
return deleted_.size();
}
/**
* repeated uint64 deleted = 3;
*/
public long getDeleted(int index) {
return deleted_.get(index);
}
private void initFields() {
startId_ = 0L;
updated_ = java.util.Collections.emptyList();
deleted_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasStartId()) {
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.writeUInt64(1, startId_);
}
for (int i = 0; i < updated_.size(); i++) {
output.writeUInt64(2, updated_.get(i));
}
for (int i = 0; i < deleted_.size(); i++) {
output.writeUInt64(3, deleted_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, startId_);
}
{
int dataSize = 0;
for (int i = 0; i < updated_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(updated_.get(i));
}
size += dataSize;
size += 1 * getUpdatedList().size();
}
{
int dataSize = 0;
for (int i = 0; i < deleted_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(deleted_.get(i));
}
size += dataSize;
size += 1 * getDeletedList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode other = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode) obj;
boolean result = true;
result = result && (hasStartId() == other.hasStartId());
if (hasStartId()) {
result = result && (getStartId()
== other.getStartId());
}
result = result && getUpdatedList()
.equals(other.getUpdatedList());
result = result && getDeletedList()
.equals(other.getDeletedList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasStartId()) {
hash = (37 * hash) + START_ID_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getStartId());
}
if (getUpdatedCount() > 0) {
hash = (37 * hash) + UPDATED_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedList().hashCode();
}
if (getDeletedCount() > 0) {
hash = (37 * hash) + DELETED_FIELD_NUMBER;
hash = (53 * hash) + getDeletedList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode 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.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.ProcedureStoreTracker.TrackerNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureStoreTracker_TrackerNode_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureStoreTracker_TrackerNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.Builder.class);
}
// Construct using org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
startId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
updated_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
deleted_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureStoreTracker_TrackerNode_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode getDefaultInstanceForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.getDefaultInstance();
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode build() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode buildPartial() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode result = new org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.startId_ = startId_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
updated_ = java.util.Collections.unmodifiableList(updated_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.updated_ = updated_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
deleted_ = java.util.Collections.unmodifiableList(deleted_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.deleted_ = deleted_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode) {
return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.getDefaultInstance()) return this;
if (other.hasStartId()) {
setStartId(other.getStartId());
}
if (!other.updated_.isEmpty()) {
if (updated_.isEmpty()) {
updated_ = other.updated_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureUpdatedIsMutable();
updated_.addAll(other.updated_);
}
onChanged();
}
if (!other.deleted_.isEmpty()) {
if (deleted_.isEmpty()) {
deleted_ = other.deleted_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureDeletedIsMutable();
deleted_.addAll(other.deleted_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasStartId()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required uint64 start_id = 1;
private long startId_ ;
/**
* required uint64 start_id = 1;
*/
public boolean hasStartId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint64 start_id = 1;
*/
public long getStartId() {
return startId_;
}
/**
* required uint64 start_id = 1;
*/
public Builder setStartId(long value) {
bitField0_ |= 0x00000001;
startId_ = value;
onChanged();
return this;
}
/**
* required uint64 start_id = 1;
*/
public Builder clearStartId() {
bitField0_ = (bitField0_ & ~0x00000001);
startId_ = 0L;
onChanged();
return this;
}
// repeated uint64 updated = 2;
private java.util.List updated_ = java.util.Collections.emptyList();
private void ensureUpdatedIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
updated_ = new java.util.ArrayList(updated_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated uint64 updated = 2;
*/
public java.util.List
getUpdatedList() {
return java.util.Collections.unmodifiableList(updated_);
}
/**
* repeated uint64 updated = 2;
*/
public int getUpdatedCount() {
return updated_.size();
}
/**
* repeated uint64 updated = 2;
*/
public long getUpdated(int index) {
return updated_.get(index);
}
/**
* repeated uint64 updated = 2;
*/
public Builder setUpdated(
int index, long value) {
ensureUpdatedIsMutable();
updated_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint64 updated = 2;
*/
public Builder addUpdated(long value) {
ensureUpdatedIsMutable();
updated_.add(value);
onChanged();
return this;
}
/**
* repeated uint64 updated = 2;
*/
public Builder addAllUpdated(
java.lang.Iterable extends java.lang.Long> values) {
ensureUpdatedIsMutable();
super.addAll(values, updated_);
onChanged();
return this;
}
/**
* repeated uint64 updated = 2;
*/
public Builder clearUpdated() {
updated_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
// repeated uint64 deleted = 3;
private java.util.List deleted_ = java.util.Collections.emptyList();
private void ensureDeletedIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
deleted_ = new java.util.ArrayList(deleted_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated uint64 deleted = 3;
*/
public java.util.List
getDeletedList() {
return java.util.Collections.unmodifiableList(deleted_);
}
/**
* repeated uint64 deleted = 3;
*/
public int getDeletedCount() {
return deleted_.size();
}
/**
* repeated uint64 deleted = 3;
*/
public long getDeleted(int index) {
return deleted_.get(index);
}
/**
* repeated uint64 deleted = 3;
*/
public Builder setDeleted(
int index, long value) {
ensureDeletedIsMutable();
deleted_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint64 deleted = 3;
*/
public Builder addDeleted(long value) {
ensureDeletedIsMutable();
deleted_.add(value);
onChanged();
return this;
}
/**
* repeated uint64 deleted = 3;
*/
public Builder addAllDeleted(
java.lang.Iterable extends java.lang.Long> values) {
ensureDeletedIsMutable();
super.addAll(values, deleted_);
onChanged();
return this;
}
/**
* repeated uint64 deleted = 3;
*/
public Builder clearDeleted() {
deleted_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hbase.pb.ProcedureStoreTracker.TrackerNode)
}
static {
defaultInstance = new TrackerNode(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hbase.pb.ProcedureStoreTracker.TrackerNode)
}
// repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
public static final int NODE_FIELD_NUMBER = 1;
private java.util.List node_;
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public java.util.List getNodeList() {
return node_;
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNodeOrBuilder>
getNodeOrBuilderList() {
return node_;
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public int getNodeCount() {
return node_.size();
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode getNode(int index) {
return node_.get(index);
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNodeOrBuilder getNodeOrBuilder(
int index) {
return node_.get(index);
}
private void initFields() {
node_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getNodeCount(); i++) {
if (!getNode(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < node_.size(); i++) {
output.writeMessage(1, node_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < node_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, node_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker other = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker) obj;
boolean result = true;
result = result && getNodeList()
.equals(other.getNodeList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getNodeCount() > 0) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNodeList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker 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.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.ProcedureStoreTracker}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTrackerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureStoreTracker_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureStoreTracker_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.Builder.class);
}
// Construct using org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getNodeFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (nodeBuilder_ == null) {
node_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
nodeBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureStoreTracker_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker getDefaultInstanceForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.getDefaultInstance();
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker build() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker buildPartial() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker result = new org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker(this);
int from_bitField0_ = bitField0_;
if (nodeBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
node_ = java.util.Collections.unmodifiableList(node_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker) {
return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.getDefaultInstance()) return this;
if (nodeBuilder_ == null) {
if (!other.node_.isEmpty()) {
if (node_.isEmpty()) {
node_ = other.node_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodeIsMutable();
node_.addAll(other.node_);
}
onChanged();
}
} else {
if (!other.node_.isEmpty()) {
if (nodeBuilder_.isEmpty()) {
nodeBuilder_.dispose();
nodeBuilder_ = null;
node_ = other.node_;
bitField0_ = (bitField0_ & ~0x00000001);
nodeBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getNodeFieldBuilder() : null;
} else {
nodeBuilder_.addAllMessages(other.node_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getNodeCount(); i++) {
if (!getNode(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
private java.util.List node_ =
java.util.Collections.emptyList();
private void ensureNodeIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
node_ = new java.util.ArrayList(node_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.Builder, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNodeOrBuilder> nodeBuilder_;
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public java.util.List getNodeList() {
if (nodeBuilder_ == null) {
return java.util.Collections.unmodifiableList(node_);
} else {
return nodeBuilder_.getMessageList();
}
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public int getNodeCount() {
if (nodeBuilder_ == null) {
return node_.size();
} else {
return nodeBuilder_.getCount();
}
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode getNode(int index) {
if (nodeBuilder_ == null) {
return node_.get(index);
} else {
return nodeBuilder_.getMessage(index);
}
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public Builder setNode(
int index, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeIsMutable();
node_.set(index, value);
onChanged();
} else {
nodeBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public Builder setNode(
int index, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.Builder builderForValue) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.set(index, builderForValue.build());
onChanged();
} else {
nodeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public Builder addNode(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeIsMutable();
node_.add(value);
onChanged();
} else {
nodeBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public Builder addNode(
int index, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeIsMutable();
node_.add(index, value);
onChanged();
} else {
nodeBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public Builder addNode(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.Builder builderForValue) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.add(builderForValue.build());
onChanged();
} else {
nodeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public Builder addNode(
int index, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.Builder builderForValue) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.add(index, builderForValue.build());
onChanged();
} else {
nodeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public Builder addAllNode(
java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode> values) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
super.addAll(values, node_);
onChanged();
} else {
nodeBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nodeBuilder_.clear();
}
return this;
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public Builder removeNode(int index) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.remove(index);
onChanged();
} else {
nodeBuilder_.remove(index);
}
return this;
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.Builder getNodeBuilder(
int index) {
return getNodeFieldBuilder().getBuilder(index);
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNodeOrBuilder getNodeOrBuilder(
int index) {
if (nodeBuilder_ == null) {
return node_.get(index); } else {
return nodeBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNodeOrBuilder>
getNodeOrBuilderList() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(node_);
}
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.Builder addNodeBuilder() {
return getNodeFieldBuilder().addBuilder(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.getDefaultInstance());
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.Builder addNodeBuilder(
int index) {
return getNodeFieldBuilder().addBuilder(
index, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.getDefaultInstance());
}
/**
* repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1;
*/
public java.util.List
getNodeBuilderList() {
return getNodeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.Builder, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode.Builder, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNodeOrBuilder>(
node_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
// @@protoc_insertion_point(builder_scope:hbase.pb.ProcedureStoreTracker)
}
static {
defaultInstance = new ProcedureStoreTracker(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hbase.pb.ProcedureStoreTracker)
}
public interface ProcedureWALEntryOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .hbase.pb.ProcedureWALEntry.Type type = 1;
/**
* required .hbase.pb.ProcedureWALEntry.Type type = 1;
*/
boolean hasType();
/**
* required .hbase.pb.ProcedureWALEntry.Type type = 1;
*/
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type getType();
// repeated .hbase.pb.Procedure procedure = 2;
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
java.util.List
getProcedureList();
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure getProcedure(int index);
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
int getProcedureCount();
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
java.util.List extends org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureOrBuilder>
getProcedureOrBuilderList();
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureOrBuilder getProcedureOrBuilder(
int index);
// optional uint64 proc_id = 3;
/**
* optional uint64 proc_id = 3;
*/
boolean hasProcId();
/**
* optional uint64 proc_id = 3;
*/
long getProcId();
// repeated uint64 child_id = 4;
/**
* repeated uint64 child_id = 4;
*/
java.util.List getChildIdList();
/**
* repeated uint64 child_id = 4;
*/
int getChildIdCount();
/**
* repeated uint64 child_id = 4;
*/
long getChildId(int index);
}
/**
* Protobuf type {@code hbase.pb.ProcedureWALEntry}
*/
public static final class ProcedureWALEntry extends
com.google.protobuf.GeneratedMessage
implements ProcedureWALEntryOrBuilder {
// Use ProcedureWALEntry.newBuilder() to construct.
private ProcedureWALEntry(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ProcedureWALEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ProcedureWALEntry defaultInstance;
public static ProcedureWALEntry getDefaultInstance() {
return defaultInstance;
}
public ProcedureWALEntry getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProcedureWALEntry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type value = org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = value;
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
procedure_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
procedure_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.PARSER, extensionRegistry));
break;
}
case 24: {
bitField0_ |= 0x00000002;
procId_ = input.readUInt64();
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
childId_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
childId_.add(input.readUInt64());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
childId_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
childId_.add(input.readUInt64());
}
input.popLimit(limit);
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_ & 0x00000002) == 0x00000002)) {
procedure_ = java.util.Collections.unmodifiableList(procedure_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
childId_ = java.util.Collections.unmodifiableList(childId_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALEntry_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ProcedureWALEntry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProcedureWALEntry(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code hbase.pb.ProcedureWALEntry.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PROCEDURE_WAL_EOF = 1;
*/
PROCEDURE_WAL_EOF(0, 1),
/**
* PROCEDURE_WAL_INIT = 2;
*/
PROCEDURE_WAL_INIT(1, 2),
/**
* PROCEDURE_WAL_INSERT = 3;
*/
PROCEDURE_WAL_INSERT(2, 3),
/**
* PROCEDURE_WAL_UPDATE = 4;
*/
PROCEDURE_WAL_UPDATE(3, 4),
/**
* PROCEDURE_WAL_DELETE = 5;
*/
PROCEDURE_WAL_DELETE(4, 5),
/**
* PROCEDURE_WAL_COMPACT = 6;
*/
PROCEDURE_WAL_COMPACT(5, 6),
;
/**
* PROCEDURE_WAL_EOF = 1;
*/
public static final int PROCEDURE_WAL_EOF_VALUE = 1;
/**
* PROCEDURE_WAL_INIT = 2;
*/
public static final int PROCEDURE_WAL_INIT_VALUE = 2;
/**
* PROCEDURE_WAL_INSERT = 3;
*/
public static final int PROCEDURE_WAL_INSERT_VALUE = 3;
/**
* PROCEDURE_WAL_UPDATE = 4;
*/
public static final int PROCEDURE_WAL_UPDATE_VALUE = 4;
/**
* PROCEDURE_WAL_DELETE = 5;
*/
public static final int PROCEDURE_WAL_DELETE_VALUE = 5;
/**
* PROCEDURE_WAL_COMPACT = 6;
*/
public static final int PROCEDURE_WAL_COMPACT_VALUE = 6;
public final int getNumber() { return value; }
public static Type valueOf(int value) {
switch (value) {
case 1: return PROCEDURE_WAL_EOF;
case 2: return PROCEDURE_WAL_INIT;
case 3: return PROCEDURE_WAL_INSERT;
case 4: return PROCEDURE_WAL_UPDATE;
case 5: return PROCEDURE_WAL_DELETE;
case 6: return PROCEDURE_WAL_COMPACT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Type(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hbase.pb.ProcedureWALEntry.Type)
}
private int bitField0_;
// required .hbase.pb.ProcedureWALEntry.Type type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
private org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type type_;
/**
* required .hbase.pb.ProcedureWALEntry.Type type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .hbase.pb.ProcedureWALEntry.Type type = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type getType() {
return type_;
}
// repeated .hbase.pb.Procedure procedure = 2;
public static final int PROCEDURE_FIELD_NUMBER = 2;
private java.util.List procedure_;
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public java.util.List getProcedureList() {
return procedure_;
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureOrBuilder>
getProcedureOrBuilderList() {
return procedure_;
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public int getProcedureCount() {
return procedure_.size();
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure getProcedure(int index) {
return procedure_.get(index);
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureOrBuilder getProcedureOrBuilder(
int index) {
return procedure_.get(index);
}
// optional uint64 proc_id = 3;
public static final int PROC_ID_FIELD_NUMBER = 3;
private long procId_;
/**
* optional uint64 proc_id = 3;
*/
public boolean hasProcId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 proc_id = 3;
*/
public long getProcId() {
return procId_;
}
// repeated uint64 child_id = 4;
public static final int CHILD_ID_FIELD_NUMBER = 4;
private java.util.List childId_;
/**
* repeated uint64 child_id = 4;
*/
public java.util.List
getChildIdList() {
return childId_;
}
/**
* repeated uint64 child_id = 4;
*/
public int getChildIdCount() {
return childId_.size();
}
/**
* repeated uint64 child_id = 4;
*/
public long getChildId(int index) {
return childId_.get(index);
}
private void initFields() {
type_ = org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type.PROCEDURE_WAL_EOF;
procedure_ = java.util.Collections.emptyList();
procId_ = 0L;
childId_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getProcedureCount(); i++) {
if (!getProcedure(i).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.writeEnum(1, type_.getNumber());
}
for (int i = 0; i < procedure_.size(); i++) {
output.writeMessage(2, procedure_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(3, procId_);
}
for (int i = 0; i < childId_.size(); i++) {
output.writeUInt64(4, childId_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_.getNumber());
}
for (int i = 0; i < procedure_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, procedure_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, procId_);
}
{
int dataSize = 0;
for (int i = 0; i < childId_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(childId_.get(i));
}
size += dataSize;
size += 1 * getChildIdList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry)) {
return super.equals(obj);
}
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry other = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result &&
(getType() == other.getType());
}
result = result && getProcedureList()
.equals(other.getProcedureList());
result = result && (hasProcId() == other.hasProcId());
if (hasProcId()) {
result = result && (getProcId()
== other.getProcId());
}
result = result && getChildIdList()
.equals(other.getChildIdList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + hashEnum(getType());
}
if (getProcedureCount() > 0) {
hash = (37 * hash) + PROCEDURE_FIELD_NUMBER;
hash = (53 * hash) + getProcedureList().hashCode();
}
if (hasProcId()) {
hash = (37 * hash) + PROC_ID_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getProcId());
}
if (getChildIdCount() > 0) {
hash = (37 * hash) + CHILD_ID_FIELD_NUMBER;
hash = (53 * hash) + getChildIdList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry 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.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hbase.pb.ProcedureWALEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALEntry_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.class, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Builder.class);
}
// Construct using org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getProcedureFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type.PROCEDURE_WAL_EOF;
bitField0_ = (bitField0_ & ~0x00000001);
if (procedureBuilder_ == null) {
procedure_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
procedureBuilder_.clear();
}
procId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
childId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.internal_static_hbase_pb_ProcedureWALEntry_descriptor;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry getDefaultInstanceForType() {
return org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.getDefaultInstance();
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry build() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry buildPartial() {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry result = new org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (procedureBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
procedure_ = java.util.Collections.unmodifiableList(procedure_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.procedure_ = procedure_;
} else {
result.procedure_ = procedureBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.procId_ = procId_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
childId_ = java.util.Collections.unmodifiableList(childId_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.childId_ = childId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry) {
return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (procedureBuilder_ == null) {
if (!other.procedure_.isEmpty()) {
if (procedure_.isEmpty()) {
procedure_ = other.procedure_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureProcedureIsMutable();
procedure_.addAll(other.procedure_);
}
onChanged();
}
} else {
if (!other.procedure_.isEmpty()) {
if (procedureBuilder_.isEmpty()) {
procedureBuilder_.dispose();
procedureBuilder_ = null;
procedure_ = other.procedure_;
bitField0_ = (bitField0_ & ~0x00000002);
procedureBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getProcedureFieldBuilder() : null;
} else {
procedureBuilder_.addAllMessages(other.procedure_);
}
}
}
if (other.hasProcId()) {
setProcId(other.getProcId());
}
if (!other.childId_.isEmpty()) {
if (childId_.isEmpty()) {
childId_ = other.childId_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureChildIdIsMutable();
childId_.addAll(other.childId_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasType()) {
return false;
}
for (int i = 0; i < getProcedureCount(); i++) {
if (!getProcedure(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .hbase.pb.ProcedureWALEntry.Type type = 1;
private org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type type_ = org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type.PROCEDURE_WAL_EOF;
/**
* required .hbase.pb.ProcedureWALEntry.Type type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .hbase.pb.ProcedureWALEntry.Type type = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type getType() {
return type_;
}
/**
* required .hbase.pb.ProcedureWALEntry.Type type = 1;
*/
public Builder setType(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* required .hbase.pb.ProcedureWALEntry.Type type = 1;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type.PROCEDURE_WAL_EOF;
onChanged();
return this;
}
// repeated .hbase.pb.Procedure procedure = 2;
private java.util.List procedure_ =
java.util.Collections.emptyList();
private void ensureProcedureIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
procedure_ = new java.util.ArrayList(procedure_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.Builder, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureOrBuilder> procedureBuilder_;
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public java.util.List getProcedureList() {
if (procedureBuilder_ == null) {
return java.util.Collections.unmodifiableList(procedure_);
} else {
return procedureBuilder_.getMessageList();
}
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public int getProcedureCount() {
if (procedureBuilder_ == null) {
return procedure_.size();
} else {
return procedureBuilder_.getCount();
}
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure getProcedure(int index) {
if (procedureBuilder_ == null) {
return procedure_.get(index);
} else {
return procedureBuilder_.getMessage(index);
}
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public Builder setProcedure(
int index, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure value) {
if (procedureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProcedureIsMutable();
procedure_.set(index, value);
onChanged();
} else {
procedureBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public Builder setProcedure(
int index, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.Builder builderForValue) {
if (procedureBuilder_ == null) {
ensureProcedureIsMutable();
procedure_.set(index, builderForValue.build());
onChanged();
} else {
procedureBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public Builder addProcedure(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure value) {
if (procedureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProcedureIsMutable();
procedure_.add(value);
onChanged();
} else {
procedureBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public Builder addProcedure(
int index, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure value) {
if (procedureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProcedureIsMutable();
procedure_.add(index, value);
onChanged();
} else {
procedureBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public Builder addProcedure(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.Builder builderForValue) {
if (procedureBuilder_ == null) {
ensureProcedureIsMutable();
procedure_.add(builderForValue.build());
onChanged();
} else {
procedureBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public Builder addProcedure(
int index, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.Builder builderForValue) {
if (procedureBuilder_ == null) {
ensureProcedureIsMutable();
procedure_.add(index, builderForValue.build());
onChanged();
} else {
procedureBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public Builder addAllProcedure(
java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure> values) {
if (procedureBuilder_ == null) {
ensureProcedureIsMutable();
super.addAll(values, procedure_);
onChanged();
} else {
procedureBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public Builder clearProcedure() {
if (procedureBuilder_ == null) {
procedure_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
procedureBuilder_.clear();
}
return this;
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public Builder removeProcedure(int index) {
if (procedureBuilder_ == null) {
ensureProcedureIsMutable();
procedure_.remove(index);
onChanged();
} else {
procedureBuilder_.remove(index);
}
return this;
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.Builder getProcedureBuilder(
int index) {
return getProcedureFieldBuilder().getBuilder(index);
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureOrBuilder getProcedureOrBuilder(
int index) {
if (procedureBuilder_ == null) {
return procedure_.get(index); } else {
return procedureBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureOrBuilder>
getProcedureOrBuilderList() {
if (procedureBuilder_ != null) {
return procedureBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(procedure_);
}
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.Builder addProcedureBuilder() {
return getProcedureFieldBuilder().addBuilder(
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.getDefaultInstance());
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.Builder addProcedureBuilder(
int index) {
return getProcedureFieldBuilder().addBuilder(
index, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.getDefaultInstance());
}
/**
* repeated .hbase.pb.Procedure procedure = 2;
*/
public java.util.List
getProcedureBuilderList() {
return getProcedureFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.Builder, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureOrBuilder>
getProcedureFieldBuilder() {
if (procedureBuilder_ == null) {
procedureBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure.Builder, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureOrBuilder>(
procedure_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
procedure_ = null;
}
return procedureBuilder_;
}
// optional uint64 proc_id = 3;
private long procId_ ;
/**
* optional uint64 proc_id = 3;
*/
public boolean hasProcId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint64 proc_id = 3;
*/
public long getProcId() {
return procId_;
}
/**
* optional uint64 proc_id = 3;
*/
public Builder setProcId(long value) {
bitField0_ |= 0x00000004;
procId_ = value;
onChanged();
return this;
}
/**
* optional uint64 proc_id = 3;
*/
public Builder clearProcId() {
bitField0_ = (bitField0_ & ~0x00000004);
procId_ = 0L;
onChanged();
return this;
}
// repeated uint64 child_id = 4;
private java.util.List childId_ = java.util.Collections.emptyList();
private void ensureChildIdIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
childId_ = new java.util.ArrayList(childId_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated uint64 child_id = 4;
*/
public java.util.List
getChildIdList() {
return java.util.Collections.unmodifiableList(childId_);
}
/**
* repeated uint64 child_id = 4;
*/
public int getChildIdCount() {
return childId_.size();
}
/**
* repeated uint64 child_id = 4;
*/
public long getChildId(int index) {
return childId_.get(index);
}
/**
* repeated uint64 child_id = 4;
*/
public Builder setChildId(
int index, long value) {
ensureChildIdIsMutable();
childId_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint64 child_id = 4;
*/
public Builder addChildId(long value) {
ensureChildIdIsMutable();
childId_.add(value);
onChanged();
return this;
}
/**
* repeated uint64 child_id = 4;
*/
public Builder addAllChildId(
java.lang.Iterable extends java.lang.Long> values) {
ensureChildIdIsMutable();
super.addAll(values, childId_);
onChanged();
return this;
}
/**
* repeated uint64 child_id = 4;
*/
public Builder clearChildId() {
childId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hbase.pb.ProcedureWALEntry)
}
static {
defaultInstance = new ProcedureWALEntry(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hbase.pb.ProcedureWALEntry)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_Procedure_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hbase_pb_Procedure_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_SequentialProcedureData_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hbase_pb_SequentialProcedureData_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_StateMachineProcedureData_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hbase_pb_StateMachineProcedureData_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_ProcedureWALHeader_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hbase_pb_ProcedureWALHeader_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_ProcedureWALTrailer_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hbase_pb_ProcedureWALTrailer_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_ProcedureStoreTracker_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hbase_pb_ProcedureStoreTracker_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_ProcedureStoreTracker_TrackerNode_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hbase_pb_ProcedureStoreTracker_TrackerNode_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_ProcedureWALEntry_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hbase_pb_ProcedureWALEntry_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\017Procedure.proto\022\010hbase.pb\032\023ErrorHandli" +
"ng.proto\"\313\002\n\tProcedure\022\022\n\nclass_name\030\001 \002" +
"(\t\022\021\n\tparent_id\030\002 \001(\004\022\017\n\007proc_id\030\003 \002(\004\022\022" +
"\n\nstart_time\030\004 \002(\004\022\r\n\005owner\030\005 \001(\t\022\'\n\005sta" +
"te\030\006 \002(\0162\030.hbase.pb.ProcedureState\022\020\n\010st" +
"ack_id\030\007 \003(\r\022\023\n\013last_update\030\010 \002(\004\022\017\n\007tim" +
"eout\030\t \001(\r\0224\n\texception\030\n \001(\0132!.hbase.pb" +
".ForeignExceptionMessage\022\016\n\006result\030\013 \001(\014" +
"\022\022\n\nstate_data\030\014 \001(\014\022\026\n\013nonce_group\030\r \001(" +
"\004:\0010\022\020\n\005nonce\030\016 \001(\004:\0010\"+\n\027SequentialProc",
"edureData\022\020\n\010executed\030\001 \002(\010\"*\n\031StateMach" +
"ineProcedureData\022\r\n\005state\030\001 \003(\r\"X\n\022Proce" +
"dureWALHeader\022\017\n\007version\030\001 \002(\r\022\014\n\004type\030\002" +
" \002(\r\022\016\n\006log_id\030\003 \002(\004\022\023\n\013min_proc_id\030\004 \002(" +
"\004\";\n\023ProcedureWALTrailer\022\017\n\007version\030\001 \002(" +
"\r\022\023\n\013tracker_pos\030\002 \002(\004\"\225\001\n\025ProcedureStor" +
"eTracker\0229\n\004node\030\001 \003(\0132+.hbase.pb.Proced" +
"ureStoreTracker.TrackerNode\032A\n\013TrackerNo" +
"de\022\020\n\010start_id\030\001 \002(\004\022\017\n\007updated\030\002 \003(\004\022\017\n" +
"\007deleted\030\003 \003(\004\"\257\002\n\021ProcedureWALEntry\022.\n\004",
"type\030\001 \002(\0162 .hbase.pb.ProcedureWALEntry." +
"Type\022&\n\tprocedure\030\002 \003(\0132\023.hbase.pb.Proce" +
"dure\022\017\n\007proc_id\030\003 \001(\004\022\020\n\010child_id\030\004 \003(\004\"" +
"\236\001\n\004Type\022\025\n\021PROCEDURE_WAL_EOF\020\001\022\026\n\022PROCE" +
"DURE_WAL_INIT\020\002\022\030\n\024PROCEDURE_WAL_INSERT\020" +
"\003\022\030\n\024PROCEDURE_WAL_UPDATE\020\004\022\030\n\024PROCEDURE" +
"_WAL_DELETE\020\005\022\031\n\025PROCEDURE_WAL_COMPACT\020\006" +
"*p\n\016ProcedureState\022\020\n\014INITIALIZING\020\001\022\014\n\010" +
"RUNNABLE\020\002\022\013\n\007WAITING\020\003\022\023\n\017WAITING_TIMEO" +
"UT\020\004\022\016\n\nROLLEDBACK\020\005\022\014\n\010FINISHED\020\006BE\n*or",
"g.apache.hadoop.hbase.protobuf.generated" +
"B\017ProcedureProtosH\001\210\001\001\240\001\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_hbase_pb_Procedure_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_hbase_pb_Procedure_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_Procedure_descriptor,
new java.lang.String[] { "ClassName", "ParentId", "ProcId", "StartTime", "Owner", "State", "StackId", "LastUpdate", "Timeout", "Exception", "Result", "StateData", "NonceGroup", "Nonce", });
internal_static_hbase_pb_SequentialProcedureData_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_hbase_pb_SequentialProcedureData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_SequentialProcedureData_descriptor,
new java.lang.String[] { "Executed", });
internal_static_hbase_pb_StateMachineProcedureData_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_hbase_pb_StateMachineProcedureData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_StateMachineProcedureData_descriptor,
new java.lang.String[] { "State", });
internal_static_hbase_pb_ProcedureWALHeader_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_hbase_pb_ProcedureWALHeader_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_ProcedureWALHeader_descriptor,
new java.lang.String[] { "Version", "Type", "LogId", "MinProcId", });
internal_static_hbase_pb_ProcedureWALTrailer_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_hbase_pb_ProcedureWALTrailer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_ProcedureWALTrailer_descriptor,
new java.lang.String[] { "Version", "TrackerPos", });
internal_static_hbase_pb_ProcedureStoreTracker_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_hbase_pb_ProcedureStoreTracker_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_ProcedureStoreTracker_descriptor,
new java.lang.String[] { "Node", });
internal_static_hbase_pb_ProcedureStoreTracker_TrackerNode_descriptor =
internal_static_hbase_pb_ProcedureStoreTracker_descriptor.getNestedTypes().get(0);
internal_static_hbase_pb_ProcedureStoreTracker_TrackerNode_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_ProcedureStoreTracker_TrackerNode_descriptor,
new java.lang.String[] { "StartId", "Updated", "Deleted", });
internal_static_hbase_pb_ProcedureWALEntry_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_hbase_pb_ProcedureWALEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_ProcedureWALEntry_descriptor,
new java.lang.String[] { "Type", "Procedure", "ProcId", "ChildId", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy