You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by se...@apache.org on 2013/04/30 20:34:42 UTC
svn commit: r1477761 [2/6] - in /hbase/trunk:
hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/
hbase-common/src/main/java/org/apache/hadoop/hbase/codec/
hbase-common/src/main/resources/
hbase-protocol/src/main/java/org/apache/hadoop/hbase/p...
Modified: hbase/trunk/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AdminProtos.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AdminProtos.java?rev=1477761&r1=1477760&r2=1477761&view=diff
==============================================================================
--- hbase/trunk/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AdminProtos.java (original)
+++ hbase/trunk/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AdminProtos.java Tue Apr 30 18:34:40 2013
@@ -9591,2539 +9591,78 @@ public final class AdminProtos {
// @@protoc_insertion_point(class_scope:MergeRegionsResponse)
}
- public interface UUIDOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required uint64 leastSigBits = 1;
- boolean hasLeastSigBits();
- long getLeastSigBits();
-
- // required uint64 mostSigBits = 2;
- boolean hasMostSigBits();
- long getMostSigBits();
- }
- public static final class UUID extends
- com.google.protobuf.GeneratedMessage
- implements UUIDOrBuilder {
- // Use UUID.newBuilder() to construct.
- private UUID(Builder builder) {
- super(builder);
- }
- private UUID(boolean noInit) {}
-
- private static final UUID defaultInstance;
- public static UUID getDefaultInstance() {
- return defaultInstance;
- }
-
- public UUID getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_UUID_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_UUID_fieldAccessorTable;
- }
-
- private int bitField0_;
- // required uint64 leastSigBits = 1;
- public static final int LEASTSIGBITS_FIELD_NUMBER = 1;
- private long leastSigBits_;
- public boolean hasLeastSigBits() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public long getLeastSigBits() {
- return leastSigBits_;
- }
-
- // required uint64 mostSigBits = 2;
- public static final int MOSTSIGBITS_FIELD_NUMBER = 2;
- private long mostSigBits_;
- public boolean hasMostSigBits() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public long getMostSigBits() {
- return mostSigBits_;
- }
-
- private void initFields() {
- leastSigBits_ = 0L;
- mostSigBits_ = 0L;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasLeastSigBits()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasMostSigBits()) {
- 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, leastSigBits_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeUInt64(2, mostSigBits_);
- }
- 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, leastSigBits_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(2, mostSigBits_);
- }
- 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.AdminProtos.UUID)) {
- return super.equals(obj);
- }
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID) obj;
-
- boolean result = true;
- result = result && (hasLeastSigBits() == other.hasLeastSigBits());
- if (hasLeastSigBits()) {
- result = result && (getLeastSigBits()
- == other.getLeastSigBits());
- }
- result = result && (hasMostSigBits() == other.hasMostSigBits());
- if (hasMostSigBits()) {
- result = result && (getMostSigBits()
- == other.getMostSigBits());
- }
- result = result &&
- getUnknownFields().equals(other.getUnknownFields());
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
- if (hasLeastSigBits()) {
- hash = (37 * hash) + LEASTSIGBITS_FIELD_NUMBER;
- hash = (53 * hash) + hashLong(getLeastSigBits());
- }
- if (hasMostSigBits()) {
- hash = (37 * hash) + MOSTSIGBITS_FIELD_NUMBER;
- hash = (53 * hash) + hashLong(getMostSigBits());
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- return hash;
- }
-
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID 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;
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUIDOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_UUID_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_UUID_fieldAccessorTable;
- }
-
- // Construct using org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(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();
- leastSigBits_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- mostSigBits_ = 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.AdminProtos.UUID.getDescriptor();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.getDefaultInstance();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID build() {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- private org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID result = new org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.leastSigBits_ = leastSigBits_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.mostSigBits_ = mostSigBits_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.getDefaultInstance()) return this;
- if (other.hasLeastSigBits()) {
- setLeastSigBits(other.getLeastSigBits());
- }
- if (other.hasMostSigBits()) {
- setMostSigBits(other.getMostSigBits());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- if (!hasLeastSigBits()) {
-
- return false;
- }
- if (!hasMostSigBits()) {
-
- return false;
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- break;
- }
- case 8: {
- bitField0_ |= 0x00000001;
- leastSigBits_ = input.readUInt64();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- mostSigBits_ = input.readUInt64();
- break;
- }
- }
- }
- }
-
- private int bitField0_;
-
- // required uint64 leastSigBits = 1;
- private long leastSigBits_ ;
- public boolean hasLeastSigBits() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public long getLeastSigBits() {
- return leastSigBits_;
- }
- public Builder setLeastSigBits(long value) {
- bitField0_ |= 0x00000001;
- leastSigBits_ = value;
- onChanged();
- return this;
- }
- public Builder clearLeastSigBits() {
- bitField0_ = (bitField0_ & ~0x00000001);
- leastSigBits_ = 0L;
- onChanged();
- return this;
- }
-
- // required uint64 mostSigBits = 2;
- private long mostSigBits_ ;
- public boolean hasMostSigBits() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public long getMostSigBits() {
- return mostSigBits_;
- }
- public Builder setMostSigBits(long value) {
- bitField0_ |= 0x00000002;
- mostSigBits_ = value;
- onChanged();
- return this;
- }
- public Builder clearMostSigBits() {
- bitField0_ = (bitField0_ & ~0x00000002);
- mostSigBits_ = 0L;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:UUID)
- }
-
- static {
- defaultInstance = new UUID(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:UUID)
- }
-
- public interface WALEntryOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required .WALEntry.WALKey key = 1;
- boolean hasKey();
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey getKey();
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKeyOrBuilder getKeyOrBuilder();
-
- // required .WALEntry.WALEdit edit = 2;
- boolean hasEdit();
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit getEdit();
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEditOrBuilder getEditOrBuilder();
- }
- public static final class WALEntry extends
- com.google.protobuf.GeneratedMessage
- implements WALEntryOrBuilder {
- // Use WALEntry.newBuilder() to construct.
- private WALEntry(Builder builder) {
- super(builder);
- }
- private WALEntry(boolean noInit) {}
-
- private static final WALEntry defaultInstance;
- public static WALEntry getDefaultInstance() {
- return defaultInstance;
- }
-
- public WALEntry getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_fieldAccessorTable;
- }
-
- public interface WALKeyOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required bytes encodedRegionName = 1;
- boolean hasEncodedRegionName();
- com.google.protobuf.ByteString getEncodedRegionName();
-
- // required bytes tableName = 2;
- boolean hasTableName();
- com.google.protobuf.ByteString getTableName();
-
- // required uint64 logSequenceNumber = 3;
- boolean hasLogSequenceNumber();
- long getLogSequenceNumber();
-
- // required uint64 writeTime = 4;
- boolean hasWriteTime();
- long getWriteTime();
-
- // optional .UUID clusterId = 5;
- boolean hasClusterId();
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID getClusterId();
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUIDOrBuilder getClusterIdOrBuilder();
- }
- public static final class WALKey extends
- com.google.protobuf.GeneratedMessage
- implements WALKeyOrBuilder {
- // Use WALKey.newBuilder() to construct.
- private WALKey(Builder builder) {
- super(builder);
- }
- private WALKey(boolean noInit) {}
-
- private static final WALKey defaultInstance;
- public static WALKey getDefaultInstance() {
- return defaultInstance;
- }
-
- public WALKey getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALKey_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALKey_fieldAccessorTable;
- }
-
- private int bitField0_;
- // required bytes encodedRegionName = 1;
- public static final int ENCODEDREGIONNAME_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString encodedRegionName_;
- public boolean hasEncodedRegionName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public com.google.protobuf.ByteString getEncodedRegionName() {
- return encodedRegionName_;
- }
-
- // required bytes tableName = 2;
- public static final int TABLENAME_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString tableName_;
- public boolean hasTableName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public com.google.protobuf.ByteString getTableName() {
- return tableName_;
- }
-
- // required uint64 logSequenceNumber = 3;
- public static final int LOGSEQUENCENUMBER_FIELD_NUMBER = 3;
- private long logSequenceNumber_;
- public boolean hasLogSequenceNumber() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- public long getLogSequenceNumber() {
- return logSequenceNumber_;
- }
-
- // required uint64 writeTime = 4;
- public static final int WRITETIME_FIELD_NUMBER = 4;
- private long writeTime_;
- public boolean hasWriteTime() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- public long getWriteTime() {
- return writeTime_;
- }
-
- // optional .UUID clusterId = 5;
- public static final int CLUSTERID_FIELD_NUMBER = 5;
- private org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID clusterId_;
- public boolean hasClusterId() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID getClusterId() {
- return clusterId_;
- }
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUIDOrBuilder getClusterIdOrBuilder() {
- return clusterId_;
- }
-
- private void initFields() {
- encodedRegionName_ = com.google.protobuf.ByteString.EMPTY;
- tableName_ = com.google.protobuf.ByteString.EMPTY;
- logSequenceNumber_ = 0L;
- writeTime_ = 0L;
- clusterId_ = org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.getDefaultInstance();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasEncodedRegionName()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasTableName()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasLogSequenceNumber()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasWriteTime()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (hasClusterId()) {
- if (!getClusterId().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.writeBytes(1, encodedRegionName_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, tableName_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeUInt64(3, logSequenceNumber_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeUInt64(4, writeTime_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeMessage(5, clusterId_);
- }
- 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, encodedRegionName_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, tableName_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(3, logSequenceNumber_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(4, writeTime_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, clusterId_);
- }
- 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.AdminProtos.WALEntry.WALKey)) {
- return super.equals(obj);
- }
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey) obj;
-
- boolean result = true;
- result = result && (hasEncodedRegionName() == other.hasEncodedRegionName());
- if (hasEncodedRegionName()) {
- result = result && getEncodedRegionName()
- .equals(other.getEncodedRegionName());
- }
- result = result && (hasTableName() == other.hasTableName());
- if (hasTableName()) {
- result = result && getTableName()
- .equals(other.getTableName());
- }
- result = result && (hasLogSequenceNumber() == other.hasLogSequenceNumber());
- if (hasLogSequenceNumber()) {
- result = result && (getLogSequenceNumber()
- == other.getLogSequenceNumber());
- }
- result = result && (hasWriteTime() == other.hasWriteTime());
- if (hasWriteTime()) {
- result = result && (getWriteTime()
- == other.getWriteTime());
- }
- result = result && (hasClusterId() == other.hasClusterId());
- if (hasClusterId()) {
- result = result && getClusterId()
- .equals(other.getClusterId());
- }
- result = result &&
- getUnknownFields().equals(other.getUnknownFields());
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
- if (hasEncodedRegionName()) {
- hash = (37 * hash) + ENCODEDREGIONNAME_FIELD_NUMBER;
- hash = (53 * hash) + getEncodedRegionName().hashCode();
- }
- if (hasTableName()) {
- hash = (37 * hash) + TABLENAME_FIELD_NUMBER;
- hash = (53 * hash) + getTableName().hashCode();
- }
- if (hasLogSequenceNumber()) {
- hash = (37 * hash) + LOGSEQUENCENUMBER_FIELD_NUMBER;
- hash = (53 * hash) + hashLong(getLogSequenceNumber());
- }
- if (hasWriteTime()) {
- hash = (37 * hash) + WRITETIME_FIELD_NUMBER;
- hash = (53 * hash) + hashLong(getWriteTime());
- }
- if (hasClusterId()) {
- hash = (37 * hash) + CLUSTERID_FIELD_NUMBER;
- hash = (53 * hash) + getClusterId().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- return hash;
- }
-
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey 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;
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKeyOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALKey_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALKey_fieldAccessorTable;
- }
-
- // Construct using org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getClusterIdFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- encodedRegionName_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
- tableName_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- logSequenceNumber_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000004);
- writeTime_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
- if (clusterIdBuilder_ == null) {
- clusterId_ = org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.getDefaultInstance();
- } else {
- clusterIdBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000010);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey.getDescriptor();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey.getDefaultInstance();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey build() {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- private org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey result = new org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.encodedRegionName_ = encodedRegionName_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.tableName_ = tableName_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.logSequenceNumber_ = logSequenceNumber_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.writeTime_ = writeTime_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
- }
- if (clusterIdBuilder_ == null) {
- result.clusterId_ = clusterId_;
- } else {
- result.clusterId_ = clusterIdBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALKey.getDefaultInstance()) return this;
- if (other.hasEncodedRegionName()) {
- setEncodedRegionName(other.getEncodedRegionName());
- }
- if (other.hasTableName()) {
- setTableName(other.getTableName());
- }
- if (other.hasLogSequenceNumber()) {
- setLogSequenceNumber(other.getLogSequenceNumber());
- }
- if (other.hasWriteTime()) {
- setWriteTime(other.getWriteTime());
- }
- if (other.hasClusterId()) {
- mergeClusterId(other.getClusterId());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- if (!hasEncodedRegionName()) {
-
- return false;
- }
- if (!hasTableName()) {
-
- return false;
- }
- if (!hasLogSequenceNumber()) {
-
- return false;
- }
- if (!hasWriteTime()) {
-
- return false;
- }
- if (hasClusterId()) {
- if (!getClusterId().isInitialized()) {
-
- return false;
- }
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- break;
- }
- case 10: {
- bitField0_ |= 0x00000001;
- encodedRegionName_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- tableName_ = input.readBytes();
- break;
- }
- case 24: {
- bitField0_ |= 0x00000004;
- logSequenceNumber_ = input.readUInt64();
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- writeTime_ = input.readUInt64();
- break;
- }
- case 42: {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.newBuilder();
- if (hasClusterId()) {
- subBuilder.mergeFrom(getClusterId());
- }
- input.readMessage(subBuilder, extensionRegistry);
- setClusterId(subBuilder.buildPartial());
- break;
- }
- }
- }
- }
-
- private int bitField0_;
-
- // required bytes encodedRegionName = 1;
- private com.google.protobuf.ByteString encodedRegionName_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasEncodedRegionName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public com.google.protobuf.ByteString getEncodedRegionName() {
- return encodedRegionName_;
- }
- public Builder setEncodedRegionName(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- encodedRegionName_ = value;
- onChanged();
- return this;
- }
- public Builder clearEncodedRegionName() {
- bitField0_ = (bitField0_ & ~0x00000001);
- encodedRegionName_ = getDefaultInstance().getEncodedRegionName();
- onChanged();
- return this;
- }
-
- // required bytes tableName = 2;
- private com.google.protobuf.ByteString tableName_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasTableName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public com.google.protobuf.ByteString getTableName() {
- return tableName_;
- }
- public Builder setTableName(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- tableName_ = value;
- onChanged();
- return this;
- }
- public Builder clearTableName() {
- bitField0_ = (bitField0_ & ~0x00000002);
- tableName_ = getDefaultInstance().getTableName();
- onChanged();
- return this;
- }
-
- // required uint64 logSequenceNumber = 3;
- private long logSequenceNumber_ ;
- public boolean hasLogSequenceNumber() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- public long getLogSequenceNumber() {
- return logSequenceNumber_;
- }
- public Builder setLogSequenceNumber(long value) {
- bitField0_ |= 0x00000004;
- logSequenceNumber_ = value;
- onChanged();
- return this;
- }
- public Builder clearLogSequenceNumber() {
- bitField0_ = (bitField0_ & ~0x00000004);
- logSequenceNumber_ = 0L;
- onChanged();
- return this;
- }
-
- // required uint64 writeTime = 4;
- private long writeTime_ ;
- public boolean hasWriteTime() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- public long getWriteTime() {
- return writeTime_;
- }
- public Builder setWriteTime(long value) {
- bitField0_ |= 0x00000008;
- writeTime_ = value;
- onChanged();
- return this;
- }
- public Builder clearWriteTime() {
- bitField0_ = (bitField0_ & ~0x00000008);
- writeTime_ = 0L;
- onChanged();
- return this;
- }
-
- // optional .UUID clusterId = 5;
- private org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID clusterId_ = org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.Builder, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUIDOrBuilder> clusterIdBuilder_;
- public boolean hasClusterId() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID getClusterId() {
- if (clusterIdBuilder_ == null) {
- return clusterId_;
- } else {
- return clusterIdBuilder_.getMessage();
- }
- }
- public Builder setClusterId(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID value) {
- if (clusterIdBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- clusterId_ = value;
- onChanged();
- } else {
- clusterIdBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000010;
- return this;
- }
- public Builder setClusterId(
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.Builder builderForValue) {
- if (clusterIdBuilder_ == null) {
- clusterId_ = builderForValue.build();
- onChanged();
- } else {
- clusterIdBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000010;
- return this;
- }
- public Builder mergeClusterId(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID value) {
- if (clusterIdBuilder_ == null) {
- if (((bitField0_ & 0x00000010) == 0x00000010) &&
- clusterId_ != org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.getDefaultInstance()) {
- clusterId_ =
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.newBuilder(clusterId_).mergeFrom(value).buildPartial();
- } else {
- clusterId_ = value;
- }
- onChanged();
- } else {
- clusterIdBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000010;
- return this;
- }
- public Builder clearClusterId() {
- if (clusterIdBuilder_ == null) {
- clusterId_ = org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.getDefaultInstance();
- onChanged();
- } else {
- clusterIdBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000010);
- return this;
- }
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.Builder getClusterIdBuilder() {
- bitField0_ |= 0x00000010;
- onChanged();
- return getClusterIdFieldBuilder().getBuilder();
- }
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUIDOrBuilder getClusterIdOrBuilder() {
- if (clusterIdBuilder_ != null) {
- return clusterIdBuilder_.getMessageOrBuilder();
- } else {
- return clusterId_;
- }
- }
- private com.google.protobuf.SingleFieldBuilder<
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.Builder, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUIDOrBuilder>
- getClusterIdFieldBuilder() {
- if (clusterIdBuilder_ == null) {
- clusterIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUID.Builder, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.UUIDOrBuilder>(
- clusterId_,
- getParentForChildren(),
- isClean());
- clusterId_ = null;
- }
- return clusterIdBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:WALEntry.WALKey)
- }
-
- static {
- defaultInstance = new WALKey(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:WALEntry.WALKey)
- }
-
- public interface WALEditOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // repeated bytes keyValueBytes = 1;
- java.util.List<com.google.protobuf.ByteString> getKeyValueBytesList();
- int getKeyValueBytesCount();
- com.google.protobuf.ByteString getKeyValueBytes(int index);
-
- // repeated .WALEntry.WALEdit.FamilyScope familyScope = 2;
- java.util.List<org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope>
- getFamilyScopeList();
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope getFamilyScope(int index);
- int getFamilyScopeCount();
- java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScopeOrBuilder>
- getFamilyScopeOrBuilderList();
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScopeOrBuilder getFamilyScopeOrBuilder(
- int index);
- }
- public static final class WALEdit extends
- com.google.protobuf.GeneratedMessage
- implements WALEditOrBuilder {
- // Use WALEdit.newBuilder() to construct.
- private WALEdit(Builder builder) {
- super(builder);
- }
- private WALEdit(boolean noInit) {}
-
- private static final WALEdit defaultInstance;
- public static WALEdit getDefaultInstance() {
- return defaultInstance;
- }
-
- public WALEdit getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALEdit_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALEdit_fieldAccessorTable;
- }
-
- public enum ScopeType
- implements com.google.protobuf.ProtocolMessageEnum {
- REPLICATION_SCOPE_LOCAL(0, 0),
- REPLICATION_SCOPE_GLOBAL(1, 1),
- ;
-
- public static final int REPLICATION_SCOPE_LOCAL_VALUE = 0;
- public static final int REPLICATION_SCOPE_GLOBAL_VALUE = 1;
-
-
- public final int getNumber() { return value; }
-
- public static ScopeType valueOf(int value) {
- switch (value) {
- case 0: return REPLICATION_SCOPE_LOCAL;
- case 1: return REPLICATION_SCOPE_GLOBAL;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<ScopeType>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<ScopeType>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<ScopeType>() {
- public ScopeType findValueByNumber(int number) {
- return ScopeType.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.AdminProtos.WALEntry.WALEdit.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final ScopeType[] VALUES = {
- REPLICATION_SCOPE_LOCAL, REPLICATION_SCOPE_GLOBAL,
- };
-
- public static ScopeType 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 ScopeType(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:WALEntry.WALEdit.ScopeType)
- }
-
- public interface FamilyScopeOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required bytes family = 1;
- boolean hasFamily();
- com.google.protobuf.ByteString getFamily();
-
- // required .WALEntry.WALEdit.ScopeType scopeType = 2;
- boolean hasScopeType();
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType getScopeType();
- }
- public static final class FamilyScope extends
- com.google.protobuf.GeneratedMessage
- implements FamilyScopeOrBuilder {
- // Use FamilyScope.newBuilder() to construct.
- private FamilyScope(Builder builder) {
- super(builder);
- }
- private FamilyScope(boolean noInit) {}
-
- private static final FamilyScope defaultInstance;
- public static FamilyScope getDefaultInstance() {
- return defaultInstance;
- }
-
- public FamilyScope getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALEdit_FamilyScope_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALEdit_FamilyScope_fieldAccessorTable;
- }
-
- private int bitField0_;
- // required bytes family = 1;
- public static final int FAMILY_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString family_;
- public boolean hasFamily() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public com.google.protobuf.ByteString getFamily() {
- return family_;
- }
-
- // required .WALEntry.WALEdit.ScopeType scopeType = 2;
- public static final int SCOPETYPE_FIELD_NUMBER = 2;
- private org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType scopeType_;
- public boolean hasScopeType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType getScopeType() {
- return scopeType_;
- }
-
- private void initFields() {
- family_ = com.google.protobuf.ByteString.EMPTY;
- scopeType_ = org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType.REPLICATION_SCOPE_LOCAL;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasFamily()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasScopeType()) {
- 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, family_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, scopeType_.getNumber());
- }
- 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, family_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, scopeType_.getNumber());
- }
- 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.AdminProtos.WALEntry.WALEdit.FamilyScope)) {
- return super.equals(obj);
- }
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope) obj;
-
- boolean result = true;
- result = result && (hasFamily() == other.hasFamily());
- if (hasFamily()) {
- result = result && getFamily()
- .equals(other.getFamily());
- }
- result = result && (hasScopeType() == other.hasScopeType());
- if (hasScopeType()) {
- result = result &&
- (getScopeType() == other.getScopeType());
- }
- result = result &&
- getUnknownFields().equals(other.getUnknownFields());
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
- if (hasFamily()) {
- hash = (37 * hash) + FAMILY_FIELD_NUMBER;
- hash = (53 * hash) + getFamily().hashCode();
- }
- if (hasScopeType()) {
- hash = (37 * hash) + SCOPETYPE_FIELD_NUMBER;
- hash = (53 * hash) + hashEnum(getScopeType());
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- return hash;
- }
-
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope 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;
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScopeOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALEdit_FamilyScope_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALEdit_FamilyScope_fieldAccessorTable;
- }
-
- // Construct using org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(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();
- family_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
- scopeType_ = org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType.REPLICATION_SCOPE_LOCAL;
- 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.AdminProtos.WALEntry.WALEdit.FamilyScope.getDescriptor();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope.getDefaultInstance();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope build() {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- private org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope result = new org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.family_ = family_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.scopeType_ = scopeType_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope.getDefaultInstance()) return this;
- if (other.hasFamily()) {
- setFamily(other.getFamily());
- }
- if (other.hasScopeType()) {
- setScopeType(other.getScopeType());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- if (!hasFamily()) {
-
- return false;
- }
- if (!hasScopeType()) {
-
- return false;
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- break;
- }
- case 10: {
- bitField0_ |= 0x00000001;
- family_ = input.readBytes();
- break;
- }
- case 16: {
- int rawValue = input.readEnum();
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType value = org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(2, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- scopeType_ = value;
- }
- break;
- }
- }
- }
- }
-
- private int bitField0_;
-
- // required bytes family = 1;
- private com.google.protobuf.ByteString family_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasFamily() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public com.google.protobuf.ByteString getFamily() {
- return family_;
- }
- public Builder setFamily(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- family_ = value;
- onChanged();
- return this;
- }
- public Builder clearFamily() {
- bitField0_ = (bitField0_ & ~0x00000001);
- family_ = getDefaultInstance().getFamily();
- onChanged();
- return this;
- }
-
- // required .WALEntry.WALEdit.ScopeType scopeType = 2;
- private org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType scopeType_ = org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType.REPLICATION_SCOPE_LOCAL;
- public boolean hasScopeType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType getScopeType() {
- return scopeType_;
- }
- public Builder setScopeType(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- scopeType_ = value;
- onChanged();
- return this;
- }
- public Builder clearScopeType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- scopeType_ = org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.ScopeType.REPLICATION_SCOPE_LOCAL;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:WALEntry.WALEdit.FamilyScope)
- }
-
- static {
- defaultInstance = new FamilyScope(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:WALEntry.WALEdit.FamilyScope)
- }
-
- // repeated bytes keyValueBytes = 1;
- public static final int KEYVALUEBYTES_FIELD_NUMBER = 1;
- private java.util.List<com.google.protobuf.ByteString> keyValueBytes_;
- public java.util.List<com.google.protobuf.ByteString>
- getKeyValueBytesList() {
- return keyValueBytes_;
- }
- public int getKeyValueBytesCount() {
- return keyValueBytes_.size();
- }
- public com.google.protobuf.ByteString getKeyValueBytes(int index) {
- return keyValueBytes_.get(index);
- }
-
- // repeated .WALEntry.WALEdit.FamilyScope familyScope = 2;
- public static final int FAMILYSCOPE_FIELD_NUMBER = 2;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope> familyScope_;
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope> getFamilyScopeList() {
- return familyScope_;
- }
- public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScopeOrBuilder>
- getFamilyScopeOrBuilderList() {
- return familyScope_;
- }
- public int getFamilyScopeCount() {
- return familyScope_.size();
- }
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScope getFamilyScope(int index) {
- return familyScope_.get(index);
- }
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.FamilyScopeOrBuilder getFamilyScopeOrBuilder(
- int index) {
- return familyScope_.get(index);
- }
-
- private void initFields() {
- keyValueBytes_ = java.util.Collections.emptyList();;
- familyScope_ = 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 < getFamilyScopeCount(); i++) {
- if (!getFamilyScope(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 < keyValueBytes_.size(); i++) {
- output.writeBytes(1, keyValueBytes_.get(i));
- }
- for (int i = 0; i < familyScope_.size(); i++) {
- output.writeMessage(2, familyScope_.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 < keyValueBytes_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(keyValueBytes_.get(i));
- }
- size += dataSize;
- size += 1 * getKeyValueBytesList().size();
- }
- for (int i = 0; i < familyScope_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, familyScope_.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.AdminProtos.WALEntry.WALEdit)) {
- return super.equals(obj);
- }
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit) obj;
-
- boolean result = true;
- result = result && getKeyValueBytesList()
- .equals(other.getKeyValueBytesList());
- result = result && getFamilyScopeList()
- .equals(other.getFamilyScopeList());
- result = result &&
- getUnknownFields().equals(other.getUnknownFields());
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
- if (getKeyValueBytesCount() > 0) {
- hash = (37 * hash) + KEYVALUEBYTES_FIELD_NUMBER;
- hash = (53 * hash) + getKeyValueBytesList().hashCode();
- }
- if (getFamilyScopeCount() > 0) {
- hash = (37 * hash) + FAMILYSCOPE_FIELD_NUMBER;
- hash = (53 * hash) + getFamilyScopeList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- return hash;
- }
-
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit 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;
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEditOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALEdit_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.internal_static_WALEntry_WALEdit_fieldAccessorTable;
- }
-
- // Construct using org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getFamilyScopeFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- keyValueBytes_ = java.util.Collections.emptyList();;
- bitField0_ = (bitField0_ & ~0x00000001);
- if (familyScopeBuilder_ == null) {
- familyScope_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- familyScopeBuilder_.clear();
- }
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.getDescriptor();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.getDefaultInstance();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit build() {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- private org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit result = new org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit(this);
- int from_bitField0_ = bitField0_;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- keyValueBytes_ = java.util.Collections.unmodifiableList(keyValueBytes_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.keyValueBytes_ = keyValueBytes_;
- if (familyScopeBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- familyScope_ = java.util.Collections.unmodifiableList(familyScope_);
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.familyScope_ = familyScope_;
- } else {
- result.familyScope_ = familyScopeBuilder_.build();
- }
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.WALEdit.getDefaultInstance()) return this;
[... 1156 lines stripped ...]