http://git-wip-us.apache.org/repos/asf/hbase/blob/b4a729ed/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/SnapshotProtos.java ---------------------------------------------------------------------- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/SnapshotProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/SnapshotProtos.java index bb09cde..4d3b294 100644 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/SnapshotProtos.java +++ b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/SnapshotProtos.java @@ -6,12 +6,18 @@ package org.apache.hadoop.hbase.shaded.protobuf.generated; public final class SnapshotProtos { private SnapshotProtos() {} public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface SnapshotFileInfoOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface SnapshotFileInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:hbase.pb.SnapshotFileInfo) + com.google.protobuf.MessageOrBuilder { - // required .hbase.pb.SnapshotFileInfo.Type type = 1; /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ @@ -21,7 +27,6 @@ public final class SnapshotProtos { */ org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type getType(); - // optional string hfile = 3; /** * <code>optional string hfile = 3;</code> */ @@ -36,7 +41,6 @@ public final class SnapshotProtos { com.google.protobuf.ByteString getHfileBytes(); - // optional string wal_server = 4; /** * <code>optional string wal_server = 4;</code> */ @@ -51,7 +55,6 @@ public final class SnapshotProtos { com.google.protobuf.ByteString getWalServerBytes(); - // optional string wal_name = 5; /** * <code>optional string wal_name = 5;</code> */ @@ -69,36 +72,31 @@ public final class SnapshotProtos { /** * Protobuf type {@code hbase.pb.SnapshotFileInfo} */ - public static final class SnapshotFileInfo extends - com.google.protobuf.GeneratedMessage - implements SnapshotFileInfoOrBuilder { + public static final class SnapshotFileInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:hbase.pb.SnapshotFileInfo) + SnapshotFileInfoOrBuilder { // Use SnapshotFileInfo.newBuilder() to construct. - private SnapshotFileInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + private SnapshotFileInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private SnapshotFileInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SnapshotFileInfo defaultInstance; - public static SnapshotFileInfo getDefaultInstance() { - return defaultInstance; - } - - public SnapshotFileInfo getDefaultInstanceForType() { - return defaultInstance; + private SnapshotFileInfo() { + type_ = 1; + hfile_ = ""; + walServer_ = ""; + walName_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private SnapshotFileInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -124,23 +122,26 @@ public final class SnapshotProtos { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; - type_ = value; + type_ = rawValue; } break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - hfile_ = input.readBytes(); + hfile_ = bs; break; } case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - walServer_ = input.readBytes(); + walServer_ = bs; break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - walName_ = input.readBytes(); + walName_ = bs; break; } } @@ -149,7 +150,7 @@ public final class SnapshotProtos { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -160,28 +161,13 @@ public final class SnapshotProtos { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.class, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Builder.class); } - public static com.google.protobuf.Parser<SnapshotFileInfo> PARSER = - new com.google.protobuf.AbstractParser<SnapshotFileInfo>() { - public SnapshotFileInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotFileInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser<SnapshotFileInfo> getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code hbase.pb.SnapshotFileInfo.Type} */ @@ -190,11 +176,11 @@ public final class SnapshotProtos { /** * <code>HFILE = 1;</code> */ - HFILE(0, 1), + HFILE(1), /** * <code>WAL = 2;</code> */ - WAL(1, 2), + WAL(2), ; /** @@ -207,9 +193,19 @@ public final class SnapshotProtos { public static final int WAL_VALUE = 2; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static Type valueOf(int value) { + return forNumber(value); + } + + public static Type forNumber(int value) { switch (value) { case 1: return HFILE; case 2: return WAL; @@ -221,17 +217,17 @@ public final class SnapshotProtos { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap<Type> - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Type>() { public Type findValueByNumber(int number) { - return Type.valueOf(number); + return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -253,11 +249,9 @@ public final class SnapshotProtos { return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private Type(int index, int value) { - this.index = index; + private Type(int value) { this.value = value; } @@ -265,9 +259,8 @@ public final class SnapshotProtos { } private int bitField0_; - // required .hbase.pb.SnapshotFileInfo.Type type = 1; public static final int TYPE_FIELD_NUMBER = 1; - private org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type type_; + private int type_; /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ @@ -278,12 +271,12 @@ public final class SnapshotProtos { * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ public org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type getType() { - return type_; + org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type result = org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.valueOf(type_); + return result == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.HFILE : result; } - // optional string hfile = 3; public static final int HFILE_FIELD_NUMBER = 3; - private java.lang.Object hfile_; + private volatile java.lang.Object hfile_; /** * <code>optional string hfile = 3;</code> */ @@ -324,9 +317,8 @@ public final class SnapshotProtos { } } - // optional string wal_server = 4; public static final int WAL_SERVER_FIELD_NUMBER = 4; - private java.lang.Object walServer_; + private volatile java.lang.Object walServer_; /** * <code>optional string wal_server = 4;</code> */ @@ -367,9 +359,8 @@ public final class SnapshotProtos { } } - // optional string wal_name = 5; public static final int WAL_NAME_FIELD_NUMBER = 5; - private java.lang.Object walName_; + private volatile java.lang.Object walName_; /** * <code>optional string wal_name = 5;</code> */ @@ -410,16 +401,11 @@ public final class SnapshotProtos { } } - private void initFields() { - type_ = org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.HFILE; - hfile_ = ""; - walServer_ = ""; - walName_ = ""; - } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasType()) { memoizedIsInitialized = 0; @@ -431,57 +417,46 @@ public final class SnapshotProtos { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, type_.getNumber()); + output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(3, getHfileBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hfile_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(4, getWalServerBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, walServer_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(5, getWalNameBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, walName_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_.getNumber()); + .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getHfileBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hfile_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getWalServerBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, walServer_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getWalNameBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, walName_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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; @@ -494,8 +469,7 @@ public final class SnapshotProtos { boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { - result = result && - (getType() == other.getType()); + result = result && type_ == other.type_; } result = result && (hasHfile() == other.hasHfile()); if (hasHfile()) { @@ -512,12 +486,10 @@ public final class SnapshotProtos { result = result && getWalName() .equals(other.getWalName()); } - result = result && - getUnknownFields().equals(other.getUnknownFields()); + result = result && unknownFields.equals(other.unknownFields); return result; } - private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { @@ -527,7 +499,7 @@ public final class SnapshotProtos { hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + hashEnum(getType()); + hash = (53 * hash) + type_; } if (hasHfile()) { hash = (37 * hash) + HFILE_FIELD_NUMBER; @@ -541,7 +513,7 @@ public final class SnapshotProtos { hash = (37 * hash) + WAL_NAME_FIELD_NUMBER; hash = (53 * hash) + getWalName().hashCode(); } - hash = (29 * hash) + getUnknownFields().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } @@ -569,46 +541,57 @@ public final class SnapshotProtos { } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -616,14 +599,15 @@ public final class SnapshotProtos { * Protobuf type {@code hbase.pb.SnapshotFileInfo} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> - implements org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfoOrBuilder { + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:hbase.pb.SnapshotFileInfo) + org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -636,21 +620,18 @@ public final class SnapshotProtos { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); - type_ = org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.HFILE; + type_ = 1; bitField0_ = (bitField0_ & ~0x00000001); hfile_ = ""; bitField0_ = (bitField0_ & ~0x00000002); @@ -661,10 +642,6 @@ public final class SnapshotProtos { return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_descriptor; @@ -707,6 +684,32 @@ public final class SnapshotProtos { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo) { return mergeFrom((org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo)other); @@ -736,13 +739,13 @@ public final class SnapshotProtos { walName_ = other.walName_; onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } public final boolean isInitialized() { if (!hasType()) { - return false; } return true; @@ -757,7 +760,7 @@ public final class SnapshotProtos { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -767,8 +770,7 @@ public final class SnapshotProtos { } private int bitField0_; - // required .hbase.pb.SnapshotFileInfo.Type type = 1; - private org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type type_ = org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.HFILE; + private int type_ = 1; /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ @@ -779,7 +781,8 @@ public final class SnapshotProtos { * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ public org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type getType() { - return type_; + org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type result = org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.valueOf(type_); + return result == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.HFILE : result; } /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> @@ -789,7 +792,7 @@ public final class SnapshotProtos { throw new NullPointerException(); } bitField0_ |= 0x00000001; - type_ = value; + type_ = value.getNumber(); onChanged(); return this; } @@ -798,12 +801,11 @@ public final class SnapshotProtos { */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); - type_ = org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.HFILE; + type_ = 1; onChanged(); return this; } - // optional string hfile = 3; private java.lang.Object hfile_ = ""; /** * <code>optional string hfile = 3;</code> @@ -817,9 +819,12 @@ public final class SnapshotProtos { public java.lang.String getHfile() { java.lang.Object ref = hfile_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - hfile_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + hfile_ = s; + } return s; } else { return (java.lang.String) ref; @@ -877,7 +882,6 @@ public final class SnapshotProtos { return this; } - // optional string wal_server = 4; private java.lang.Object walServer_ = ""; /** * <code>optional string wal_server = 4;</code> @@ -891,9 +895,12 @@ public final class SnapshotProtos { public java.lang.String getWalServer() { java.lang.Object ref = walServer_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - walServer_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + walServer_ = s; + } return s; } else { return (java.lang.String) ref; @@ -951,7 +958,6 @@ public final class SnapshotProtos { return this; } - // optional string wal_name = 5; private java.lang.Object walName_ = ""; /** * <code>optional string wal_name = 5;</code> @@ -965,9 +971,12 @@ public final class SnapshotProtos { public java.lang.String getWalName() { java.lang.Object ref = walName_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - walName_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + walName_ = s; + } return s; } else { return (java.lang.String) ref; @@ -1024,22 +1033,59 @@ public final class SnapshotProtos { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotFileInfo) } + // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotFileInfo) + private static final org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo DEFAULT_INSTANCE; static { - defaultInstance = new SnapshotFileInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo(); + } + + public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser<SnapshotFileInfo> + PARSER = new com.google.protobuf.AbstractParser<SnapshotFileInfo>() { + public SnapshotFileInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotFileInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<SnapshotFileInfo> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<SnapshotFileInfo> getParserForType() { + return PARSER; + } + + public org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotFileInfo) } - public interface SnapshotRegionManifestOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface SnapshotRegionManifestOrBuilder extends + // @@protoc_insertion_point(interface_extends:hbase.pb.SnapshotRegionManifest) + com.google.protobuf.MessageOrBuilder { - // optional int32 version = 1; /** * <code>optional int32 version = 1;</code> */ @@ -1049,7 +1095,6 @@ public final class SnapshotProtos { */ int getVersion(); - // required .hbase.pb.RegionInfo region_info = 2; /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ @@ -1063,7 +1108,6 @@ public final class SnapshotProtos { */ org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionInfoOrBuilder getRegionInfoOrBuilder(); - // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3; /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ @@ -1091,36 +1135,29 @@ public final class SnapshotProtos { /** * Protobuf type {@code hbase.pb.SnapshotRegionManifest} */ - public static final class SnapshotRegionManifest extends - com.google.protobuf.GeneratedMessage - implements SnapshotRegionManifestOrBuilder { + public static final class SnapshotRegionManifest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:hbase.pb.SnapshotRegionManifest) + SnapshotRegionManifestOrBuilder { // Use SnapshotRegionManifest.newBuilder() to construct. - private SnapshotRegionManifest(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + private SnapshotRegionManifest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private SnapshotRegionManifest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SnapshotRegionManifest defaultInstance; - public static SnapshotRegionManifest getDefaultInstance() { - return defaultInstance; - } - - public SnapshotRegionManifest getDefaultInstanceForType() { - return defaultInstance; + private SnapshotRegionManifest() { + version_ = 0; + familyFiles_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private SnapshotRegionManifest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1162,7 +1199,8 @@ public final class SnapshotProtos { familyFiles_ = new java.util.ArrayList<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles>(); mutable_bitField0_ |= 0x00000004; } - familyFiles_.add(input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.PARSER, extensionRegistry)); + familyFiles_.add( + input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.PARSER, extensionRegistry)); break; } } @@ -1171,7 +1209,7 @@ public final class SnapshotProtos { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { familyFiles_ = java.util.Collections.unmodifiableList(familyFiles_); @@ -1185,32 +1223,17 @@ public final class SnapshotProtos { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.class, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder.class); } - public static com.google.protobuf.Parser<SnapshotRegionManifest> PARSER = - new com.google.protobuf.AbstractParser<SnapshotRegionManifest>() { - public SnapshotRegionManifest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotRegionManifest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser<SnapshotRegionManifest> getParserForType() { - return PARSER; - } - - public interface StoreFileOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface StoreFileOrBuilder extends + // @@protoc_insertion_point(interface_extends:hbase.pb.SnapshotRegionManifest.StoreFile) + com.google.protobuf.MessageOrBuilder { - // required string name = 1; /** * <code>required string name = 1;</code> */ @@ -1225,7 +1248,6 @@ public final class SnapshotProtos { com.google.protobuf.ByteString getNameBytes(); - // optional .hbase.pb.Reference reference = 2; /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ @@ -1239,57 +1261,49 @@ public final class SnapshotProtos { */ org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.ReferenceOrBuilder getReferenceOrBuilder(); - // optional uint64 file_size = 3; /** - * <code>optional uint64 file_size = 3;</code> - * * <pre> * TODO: Add checksums or other fields to verify the file * </pre> + * + * <code>optional uint64 file_size = 3;</code> */ boolean hasFileSize(); /** - * <code>optional uint64 file_size = 3;</code> - * * <pre> * TODO: Add checksums or other fields to verify the file * </pre> + * + * <code>optional uint64 file_size = 3;</code> */ long getFileSize(); } /** * Protobuf type {@code hbase.pb.SnapshotRegionManifest.StoreFile} */ - public static final class StoreFile extends - com.google.protobuf.GeneratedMessage - implements StoreFileOrBuilder { + public static final class StoreFile extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:hbase.pb.SnapshotRegionManifest.StoreFile) + StoreFileOrBuilder { // Use StoreFile.newBuilder() to construct. - private StoreFile(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + private StoreFile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private StoreFile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final StoreFile defaultInstance; - public static StoreFile getDefaultInstance() { - return defaultInstance; } - - public StoreFile getDefaultInstanceForType() { - return defaultInstance; + private StoreFile() { + name_ = ""; + fileSize_ = 0L; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private StoreFile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1309,8 +1323,9 @@ public final class SnapshotProtos { break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - name_ = input.readBytes(); + name_ = bs; break; } case 18: { @@ -1337,7 +1352,7 @@ public final class SnapshotProtos { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -1348,32 +1363,16 @@ public final class SnapshotProtos { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.class, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder.class); } - public static com.google.protobuf.Parser<StoreFile> PARSER = - new com.google.protobuf.AbstractParser<StoreFile>() { - public StoreFile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StoreFile(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser<StoreFile> getParserForType() { - return PARSER; - } - private int bitField0_; - // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; + private volatile java.lang.Object name_; /** * <code>required string name = 1;</code> */ @@ -1414,7 +1413,6 @@ public final class SnapshotProtos { } } - // optional .hbase.pb.Reference reference = 2; public static final int REFERENCE_FIELD_NUMBER = 2; private org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference reference_; /** @@ -1427,48 +1425,43 @@ public final class SnapshotProtos { * <code>optional .hbase.pb.Reference reference = 2;</code> */ public org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference getReference() { - return reference_; + return reference_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.getDefaultInstance() : reference_; } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.ReferenceOrBuilder getReferenceOrBuilder() { - return reference_; + return reference_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.getDefaultInstance() : reference_; } - // optional uint64 file_size = 3; public static final int FILE_SIZE_FIELD_NUMBER = 3; private long fileSize_; /** - * <code>optional uint64 file_size = 3;</code> - * * <pre> * TODO: Add checksums or other fields to verify the file * </pre> + * + * <code>optional uint64 file_size = 3;</code> */ public boolean hasFileSize() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * <code>optional uint64 file_size = 3;</code> - * * <pre> * TODO: Add checksums or other fields to verify the file * </pre> + * + * <code>optional uint64 file_size = 3;</code> */ public long getFileSize() { return fileSize_; } - private void initFields() { - name_ = ""; - reference_ = org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.getDefaultInstance(); - fileSize_ = 0L; - } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; @@ -1486,50 +1479,41 @@ public final class SnapshotProtos { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, reference_); + output.writeMessage(2, getReference()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, fileSize_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, reference_); + .computeMessageSize(2, getReference()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, fileSize_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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; @@ -1555,12 +1539,10 @@ public final class SnapshotProtos { result = result && (getFileSize() == other.getFileSize()); } - result = result && - getUnknownFields().equals(other.getUnknownFields()); + result = result && unknownFields.equals(other.unknownFields); return result; } - private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { @@ -1578,9 +1560,10 @@ public final class SnapshotProtos { } if (hasFileSize()) { hash = (37 * hash) + FILE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + hashLong(getFileSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFileSize()); } - hash = (29 * hash) + getUnknownFields().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } @@ -1608,46 +1591,57 @@ public final class SnapshotProtos { } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1655,14 +1649,15 @@ public final class SnapshotProtos { * Protobuf type {@code hbase.pb.SnapshotRegionManifest.StoreFile} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> - implements org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder { + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:hbase.pb.SnapshotRegionManifest.StoreFile) + org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1675,25 +1670,22 @@ public final class SnapshotProtos { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getReferenceFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (referenceBuilder_ == null) { - reference_ = org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.getDefaultInstance(); + reference_ = null; } else { referenceBuilder_.clear(); } @@ -1703,10 +1695,6 @@ public final class SnapshotProtos { return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor; @@ -1749,6 +1737,32 @@ public final class SnapshotProtos { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile) { return mergeFrom((org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile)other); @@ -1771,18 +1785,17 @@ public final class SnapshotProtos { if (other.hasFileSize()) { setFileSize(other.getFileSize()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } public final boolean isInitialized() { if (!hasName()) { - return false; } if (hasReference()) { if (!getReference().isInitialized()) { - return false; } } @@ -1798,7 +1811,7 @@ public final class SnapshotProtos { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1808,7 +1821,6 @@ public final class SnapshotProtos { } private int bitField0_; - // required string name = 1; private java.lang.Object name_ = ""; /** * <code>required string name = 1;</code> @@ -1822,9 +1834,12 @@ public final class SnapshotProtos { public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } return s; } else { return (java.lang.String) ref; @@ -1882,9 +1897,8 @@ public final class SnapshotProtos { return this; } - // optional .hbase.pb.Reference reference = 2; - private org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference reference_ = org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference reference_ = null; + private com.google.protobuf.SingleFieldBuilderV3< org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference, org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.ReferenceOrBuilder> referenceBuilder_; /** * <code>optional .hbase.pb.Reference reference = 2;</code> @@ -1897,7 +1911,7 @@ public final class SnapshotProtos { */ public org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference getReference() { if (referenceBuilder_ == null) { - return reference_; + return reference_ == null ? org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.getDefaultInstance() : reference_; } else { return referenceBuilder_.getMessage(); } @@ -1938,6 +1952,7 @@ public final class SnapshotProtos { public Builder mergeReference(org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference value) { if (referenceBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && + reference_ != null && reference_ != org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.getDefaultInstance()) { reference_ = org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.newBuilder(reference_).mergeFrom(value).buildPartial(); @@ -1956,7 +1971,7 @@ public final class SnapshotProtos { */ public Builder clearReference() { if (referenceBuilder_ == null) { - reference_ = org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.getDefaultInstance(); + reference_ = null; onChanged(); } else { referenceBuilder_.clear(); @@ -1979,19 +1994,20 @@ public final class SnapshotProtos { if (referenceBuilder_ != null) { return referenceBuilder_.getMessageOrBuilder(); } else { - return reference_; + return reference_ == null ? + org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.getDefaultInstance() : reference_; } } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference, org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.ReferenceOrBuilder> getReferenceFieldBuilder() { if (referenceBuilder_ == null) { - referenceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + referenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference, org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.Reference.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.FSProtos.ReferenceOrBuilder>( - reference_, + getReference(), getParentForChildren(), isClean()); reference_ = null; @@ -1999,34 +2015,33 @@ public final class SnapshotProtos { return referenceBuilder_; } - // optional uint64 file_size = 3; private long fileSize_ ; /** - * <code>optional uint64 file_size = 3;</code> - * * <pre> * TODO: Add checksums or other fields to verify the file * </pre> + * + * <code>optional uint64 file_size = 3;</code> */ public boolean hasFileSize() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * <code>optional uint64 file_size = 3;</code> - * * <pre> * TODO: Add checksums or other fields to verify the file * </pre> + * + * <code>optional uint64 file_size = 3;</code> */ public long getFileSize() { return fileSize_; } /** - * <code>optional uint64 file_size = 3;</code> - * * <pre> * TODO: Add checksums or other fields to verify the file * </pre> + * + * <code>optional uint64 file_size = 3;</code> */ public Builder setFileSize(long value) { bitField0_ |= 0x00000004; @@ -2035,11 +2050,11 @@ public final class SnapshotProtos { return this; } /** - * <code>optional uint64 file_size = 3;</code> - * * <pre> * TODO: Add checksums or other fields to verify the file * </pre> + * + * <code>optional uint64 file_size = 3;</code> */ public Builder clearFileSize() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2047,22 +2062,59 @@ public final class SnapshotProtos { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotRegionManifest.StoreFile) } + // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest.StoreFile) + private static final org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile DEFAULT_INSTANCE; static { - defaultInstance = new StoreFile(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile(); + } + + public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser<StoreFile> + PARSER = new com.google.protobuf.AbstractParser<StoreFile>() { + public StoreFile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StoreFile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<StoreFile> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<StoreFile> getParserForType() { + return PARSER; + } + + public org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest.StoreFile) } - public interface FamilyFilesOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface FamilyFilesOrBuilder extends + // @@protoc_insertion_point(interface_extends:hbase.pb.SnapshotRegionManifest.FamilyFiles) + com.google.protobuf.MessageOrBuilder { - // required bytes family_name = 1; /** * <code>required bytes family_name = 1;</code> */ @@ -2072,7 +2124,6 @@ public final class SnapshotProtos { */ com.google.protobuf.ByteString getFamilyName(); - // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2; /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ @@ -2100,36 +2151,29 @@ public final class SnapshotProtos { /** * Protobuf type {@code hbase.pb.SnapshotRegionManifest.FamilyFiles} */ - public static final class FamilyFiles extends - com.google.protobuf.GeneratedMessage - implements FamilyFilesOrBuilder { + public static final class FamilyFiles extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:hbase.pb.SnapshotRegionManifest.FamilyFiles) + FamilyFilesOrBuilder { // Use FamilyFiles.newBuilder() to construct. - private FamilyFiles(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + private FamilyFiles(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private FamilyFiles(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final FamilyFiles defaultInstance; - public static FamilyFiles getDefaultInstance() { - return defaultInstance; - } - - public FamilyFiles getDefaultInstanceForType() { - return defaultInstance; + private FamilyFiles() { + familyName_ = com.google.protobuf.ByteString.EMPTY; + storeFiles_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private FamilyFiles( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -2158,7 +2202,8 @@ public final class SnapshotProtos { storeFiles_ = new java.util.ArrayList<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile>(); mutable_bitField0_ |= 0x00000002; } - storeFiles_.add(input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.PARSER, extensionRegistry)); + storeFiles_.add( + input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.PARSER, extensionRegistry)); break; } } @@ -2167,7 +2212,7 @@ public final class SnapshotProtos { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { storeFiles_ = java.util.Collections.unmodifiableList(storeFiles_); @@ -2181,30 +2226,14 @@ public final class SnapshotProtos { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.class, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder.class); } - public static com.google.protobuf.Parser<FamilyFiles> PARSER = - new com.google.protobuf.AbstractParser<FamilyFiles>() { - public FamilyFiles parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FamilyFiles(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser<FamilyFiles> getParserForType() { - return PARSER; - } - private int bitField0_; - // required bytes family_name = 1; public static final int FAMILY_NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString familyName_; /** @@ -2220,7 +2249,6 @@ public final class SnapshotProtos { return familyName_; } - // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2; public static final int STORE_FILES_FIELD_NUMBER = 2; private java.util.List<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> storeFiles_; /** @@ -2256,14 +2284,11 @@ public final class SnapshotProtos { return storeFiles_.get(index); } - private void initFields() { - familyName_ = com.google.protobuf.ByteString.EMPTY; - storeFiles_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasFamilyName()) { memoizedIsInitialized = 0; @@ -2281,19 +2306,17 @@ public final class SnapshotProtos { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, familyName_); } for (int i = 0; i < storeFiles_.size(); i++) { output.writeMessage(2, storeFiles_.get(i)); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -2305,19 +2328,13 @@ public final class SnapshotProtos { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, storeFiles_.get(i)); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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; @@ -2335,12 +2352,10 @@ public final class SnapshotProtos { } result = result && getStoreFilesList() .equals(other.getStoreFilesList()); - result = result && - getUnknownFields().equals(other.getUnknownFields()); + result = result && unknownFields.equals(other.unknownFields); return result; } - private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { @@ -2356,7 +2371,7 @@ public final class SnapshotProtos { hash = (37 * hash) + STORE_FILES_FIELD_NUMBER; hash = (53 * hash) + getStoreFilesList().hashCode(); } - hash = (29 * hash) + getUnknownFields().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } @@ -2384,46 +2399,57 @@ public final class SnapshotProtos { } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } public static org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -2431,14 +2457,15 @@ public final class SnapshotProtos { * Protobuf type {@code hbase.pb.SnapshotRegionManifest.FamilyFiles} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> - implements org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder { + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:hbase.pb.SnapshotRegionManifest.FamilyFiles) + org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -2451,19 +2478,16 @@ public final class SnapshotProtos { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStoreFilesFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); familyName_ = com.google.protobuf.ByteString.EMPTY; @@ -2477,10 +2501,6 @@ public final class SnapshotProtos { return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor; @@ -2520,6 +2540,32 @@ public final class SnapshotProtos { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles) { return mergeFrom((org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles)other); @@ -2553,25 +2599,24 @@ public final class SnapshotProtos { storeFiles_ = other.storeFiles_; bitField0_ = (bitField0_ & ~0x00000002); storeFilesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStoreFilesFieldBuilder() : null; } else { storeFilesBuilder_.addAllMessages(other.storeFiles_); } } } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } public final boolean isInitialized() { if (!hasFamilyName()) { - return false; } for (int i = 0; i < getStoreFilesCount(); i++) { if (!getStoreFiles(i).isInitialized()) { - return false; } } @@ -2587,7 +2632,7 @@ public final class SnapshotProtos { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -2597,7 +2642,6 @@ public final class SnapshotProtos { } private int bitField0_; - // required bytes family_name = 1; private com.google.protobuf.ByteString familyName_ = com.google.protobuf.ByteString.EMPTY; /** * <code>required bytes family_name = 1;</code> @@ -2633,7 +2677,6 @@ public final class SnapshotProtos { return this; } - // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2; private java.util.List<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> storeFiles_ = java.util.Collections.emptyList(); private void ensureStoreFilesIsMutable() { @@ -2643,7 +2686,7 @@ public final class SnapshotProtos { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder> storeFilesBuilder_; /** @@ -2775,7 +2818,8 @@ public final class SnapshotProtos { java.lang.Iterable<? extends org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> values) { if (storeFilesBuilder_ == null) { ensureStoreFilesIsMutable(); - super.addAll(values, storeFiles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, storeFiles_); onChanged(); } else { storeFilesBuilder_.addAllMessages(values); @@ -2858,11 +2902,11 @@ public final class SnapshotProtos { getStoreFilesBuilderList() { return getStoreFilesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder> getStoreFilesFieldBuilder() { if (storeFilesBuilder_ == null) { - storeFilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + storeFilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder>( storeFiles_, ((bitField0_ & 0x00000002) == 0x00000002), @@ -2872,20 +2916,56 @@ public final class SnapshotProtos { } return storeFilesBuilder_; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotRegionManifest.FamilyFiles) } + // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest.FamilyFiles) + private static final org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles DEFAULT_INSTANCE; static { - defaultInstance = new FamilyFil
<TRUNCATED>