// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Snapshot.proto package org.apache.hadoop.hbase.protobuf.generated; public final class SnapshotProtos { private SnapshotProtos() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface SnapshotFileInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .hbase.pb.SnapshotFileInfo.Type type = 1; /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ boolean hasType(); /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type getType(); // optional string hfile = 3; /** * <code>optional string hfile = 3;</code> */ boolean hasHfile(); /** * <code>optional string hfile = 3;</code> */ java.lang.String getHfile(); /** * <code>optional string hfile = 3;</code> */ com.google.protobuf.ByteString getHfileBytes(); // optional string wal_server = 4; /** * <code>optional string wal_server = 4;</code> */ boolean hasWalServer(); /** * <code>optional string wal_server = 4;</code> */ java.lang.String getWalServer(); /** * <code>optional string wal_server = 4;</code> */ com.google.protobuf.ByteString getWalServerBytes(); // optional string wal_name = 5; /** * <code>optional string wal_name = 5;</code> */ boolean hasWalName(); /** * <code>optional string wal_name = 5;</code> */ java.lang.String getWalName(); /** * <code>optional string wal_name = 5;</code> */ com.google.protobuf.ByteString getWalNameBytes(); } /** * Protobuf type {@code hbase.pb.SnapshotFileInfo} */ public static final class SnapshotFileInfo extends com.google.protobuf.GeneratedMessage implements SnapshotFileInfoOrBuilder { // Use SnapshotFileInfo.newBuilder() to construct. private SnapshotFileInfo(com.google.protobuf.GeneratedMessage.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 final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapshotFileInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type value = org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = value; } break; } case 26: { bitField0_ |= 0x00000002; hfile_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000004; walServer_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000008; walName_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.class, org.apache.hadoop.hbase.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} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * <code>HFILE = 1;</code> */ HFILE(0, 1), /** * <code>WAL = 2;</code> */ WAL(1, 2), ; /** * <code>HFILE = 1;</code> */ public static final int HFILE_VALUE = 1; /** * <code>WAL = 2;</code> */ public static final int WAL_VALUE = 2; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 1: return HFILE; case 2: return WAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Type>() { public Type findValueByNumber(int number) { return Type.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Type(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:hbase.pb.SnapshotFileInfo.Type) } private int bitField0_; // required .hbase.pb.SnapshotFileInfo.Type type = 1; public static final int TYPE_FIELD_NUMBER = 1; private org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type type_; /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type getType() { return type_; } // optional string hfile = 3; public static final int HFILE_FIELD_NUMBER = 3; private java.lang.Object hfile_; /** * <code>optional string hfile = 3;</code> */ public boolean hasHfile() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string hfile = 3;</code> */ public java.lang.String getHfile() { java.lang.Object ref = hfile_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { hfile_ = s; } return s; } } /** * <code>optional string hfile = 3;</code> */ public com.google.protobuf.ByteString getHfileBytes() { java.lang.Object ref = hfile_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hfile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string wal_server = 4; public static final int WAL_SERVER_FIELD_NUMBER = 4; private java.lang.Object walServer_; /** * <code>optional string wal_server = 4;</code> */ public boolean hasWalServer() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string wal_server = 4;</code> */ public java.lang.String getWalServer() { java.lang.Object ref = walServer_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { walServer_ = s; } return s; } } /** * <code>optional string wal_server = 4;</code> */ public com.google.protobuf.ByteString getWalServerBytes() { java.lang.Object ref = walServer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); walServer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string wal_name = 5; public static final int WAL_NAME_FIELD_NUMBER = 5; private java.lang.Object walName_; /** * <code>optional string wal_name = 5;</code> */ public boolean hasWalName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string wal_name = 5;</code> */ public java.lang.String getWalName() { java.lang.Object ref = walName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { walName_ = s; } return s; } } /** * <code>optional string wal_name = 5;</code> */ public com.google.protobuf.ByteString getWalNameBytes() { java.lang.Object ref = walName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); walName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { type_ = org.apache.hadoop.hbase.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 (!hasType()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(3, getHfileBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(4, getWalServerBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(5, getWalNameBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getHfileBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getWalServerBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getWalNameBytes()); } 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.SnapshotProtos.SnapshotFileInfo)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo other = (org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && (getType() == other.getType()); } result = result && (hasHfile() == other.hasHfile()); if (hasHfile()) { result = result && getHfile() .equals(other.getHfile()); } result = result && (hasWalServer() == other.hasWalServer()); if (hasWalServer()) { result = result && getWalServer() .equals(other.getWalServer()); } result = result && (hasWalName() == other.hasWalName()); if (hasWalName()) { result = result && getWalName() .equals(other.getWalName()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getType()); } if (hasHfile()) { hash = (37 * hash) + HFILE_FIELD_NUMBER; hash = (53 * hash) + getHfile().hashCode(); } if (hasWalServer()) { hash = (37 * hash) + WAL_SERVER_FIELD_NUMBER; hash = (53 * hash) + getWalServer().hashCode(); } if (hasWalName()) { hash = (37 * hash) + WAL_NAME_FIELD_NUMBER; hash = (53 * hash) + getWalName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code hbase.pb.SnapshotFileInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Builder.class); } // Construct using org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.HFILE; bitField0_ = (bitField0_ & ~0x00000001); hfile_ = ""; bitField0_ = (bitField0_ & ~0x00000002); walServer_ = ""; bitField0_ = (bitField0_ & ~0x00000004); walName_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotFileInfo_descriptor; } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.getDefaultInstance(); } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo build() { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo buildPartial() { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo result = new org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.hfile_ = hfile_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.walServer_ = walServer_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.walName_ = walName_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo other) { if (other == org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasHfile()) { bitField0_ |= 0x00000002; hfile_ = other.hfile_; onChanged(); } if (other.hasWalServer()) { bitField0_ |= 0x00000004; walServer_ = other.walServer_; onChanged(); } if (other.hasWalName()) { bitField0_ |= 0x00000008; walName_ = other.walName_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .hbase.pb.SnapshotFileInfo.Type type = 1; private org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type type_ = org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.HFILE; /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type getType() { return type_; } /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ public Builder setType(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * <code>required .hbase.pb.SnapshotFileInfo.Type type = 1;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotFileInfo.Type.HFILE; onChanged(); return this; } // optional string hfile = 3; private java.lang.Object hfile_ = ""; /** * <code>optional string hfile = 3;</code> */ public boolean hasHfile() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string hfile = 3;</code> */ 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; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string hfile = 3;</code> */ public com.google.protobuf.ByteString getHfileBytes() { java.lang.Object ref = hfile_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hfile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string hfile = 3;</code> */ public Builder setHfile( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; hfile_ = value; onChanged(); return this; } /** * <code>optional string hfile = 3;</code> */ public Builder clearHfile() { bitField0_ = (bitField0_ & ~0x00000002); hfile_ = getDefaultInstance().getHfile(); onChanged(); return this; } /** * <code>optional string hfile = 3;</code> */ public Builder setHfileBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; hfile_ = value; onChanged(); return this; } // optional string wal_server = 4; private java.lang.Object walServer_ = ""; /** * <code>optional string wal_server = 4;</code> */ public boolean hasWalServer() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string wal_server = 4;</code> */ 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; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string wal_server = 4;</code> */ public com.google.protobuf.ByteString getWalServerBytes() { java.lang.Object ref = walServer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); walServer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string wal_server = 4;</code> */ public Builder setWalServer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; walServer_ = value; onChanged(); return this; } /** * <code>optional string wal_server = 4;</code> */ public Builder clearWalServer() { bitField0_ = (bitField0_ & ~0x00000004); walServer_ = getDefaultInstance().getWalServer(); onChanged(); return this; } /** * <code>optional string wal_server = 4;</code> */ public Builder setWalServerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; walServer_ = value; onChanged(); return this; } // optional string wal_name = 5; private java.lang.Object walName_ = ""; /** * <code>optional string wal_name = 5;</code> */ public boolean hasWalName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string wal_name = 5;</code> */ 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; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string wal_name = 5;</code> */ public com.google.protobuf.ByteString getWalNameBytes() { java.lang.Object ref = walName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); walName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string wal_name = 5;</code> */ public Builder setWalName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; walName_ = value; onChanged(); return this; } /** * <code>optional string wal_name = 5;</code> */ public Builder clearWalName() { bitField0_ = (bitField0_ & ~0x00000008); walName_ = getDefaultInstance().getWalName(); onChanged(); return this; } /** * <code>optional string wal_name = 5;</code> */ public Builder setWalNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; walName_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotFileInfo) } static { defaultInstance = new SnapshotFileInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotFileInfo) } public interface SnapshotRegionManifestOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 version = 1; /** * <code>optional int32 version = 1;</code> */ boolean hasVersion(); /** * <code>optional int32 version = 1;</code> */ int getVersion(); // required .hbase.pb.RegionInfo region_info = 2; /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ boolean hasRegionInfo(); /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getRegionInfo(); /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder getRegionInfoOrBuilder(); // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3; /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles> getFamilyFilesList(); /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles getFamilyFiles(int index); /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ int getFamilyFilesCount(); /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder> getFamilyFilesOrBuilderList(); /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder getFamilyFilesOrBuilder( int index); } /** * Protobuf type {@code hbase.pb.SnapshotRegionManifest} */ public static final class SnapshotRegionManifest extends com.google.protobuf.GeneratedMessage implements SnapshotRegionManifestOrBuilder { // Use SnapshotRegionManifest.newBuilder() to construct. private SnapshotRegionManifest(com.google.protobuf.GeneratedMessage.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 final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapshotRegionManifest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; version_ = input.readInt32(); break; } case 18: { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = regionInfo_.toBuilder(); } regionInfo_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionInfo_); regionInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { familyFiles_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles>(); mutable_bitField0_ |= 0x00000004; } familyFiles_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { familyFiles_ = java.util.Collections.unmodifiableList(familyFiles_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.class, org.apache.hadoop.hbase.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 { // required string name = 1; /** * <code>required string name = 1;</code> */ boolean hasName(); /** * <code>required string name = 1;</code> */ java.lang.String getName(); /** * <code>required string name = 1;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional .hbase.pb.Reference reference = 2; /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ boolean hasReference(); /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference getReference(); /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ org.apache.hadoop.hbase.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> */ boolean hasFileSize(); /** * <code>optional uint64 file_size = 3;</code> * * <pre> * TODO: Add checksums or other fields to verify the file * </pre> */ long getFileSize(); } /** * Protobuf type {@code hbase.pb.SnapshotRegionManifest.StoreFile} */ public static final class StoreFile extends com.google.protobuf.GeneratedMessage implements StoreFileOrBuilder { // Use StoreFile.newBuilder() to construct. private StoreFile(com.google.protobuf.GeneratedMessage.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 final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StoreFile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; name_ = input.readBytes(); break; } case 18: { org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = reference_.toBuilder(); } reference_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(reference_); reference_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 24: { bitField0_ |= 0x00000004; fileSize_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.class, org.apache.hadoop.hbase.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_; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * <code>required string name = 1;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .hbase.pb.Reference reference = 2; public static final int REFERENCE_FIELD_NUMBER = 2; private org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference reference_; /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public boolean hasReference() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference getReference() { return reference_; } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.FSProtos.ReferenceOrBuilder getReferenceOrBuilder() { return 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> */ 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> */ public long getFileSize() { return fileSize_; } private void initFields() { name_ = ""; reference_ = org.apache.hadoop.hbase.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 (!hasName()) { memoizedIsInitialized = 0; return false; } if (hasReference()) { if (!getReference().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, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, reference_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, fileSize_); } 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, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, reference_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, fileSize_); } 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.SnapshotProtos.SnapshotRegionManifest.StoreFile)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile other = (org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasReference() == other.hasReference()); if (hasReference()) { result = result && getReference() .equals(other.getReference()); } result = result && (hasFileSize() == other.hasFileSize()); if (hasFileSize()) { result = result && (getFileSize() == other.getFileSize()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasReference()) { hash = (37 * hash) + REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getReference().hashCode(); } if (hasFileSize()) { hash = (37 * hash) + FILE_SIZE_FIELD_NUMBER; hash = (53 * hash) + hashLong(getFileSize()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.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); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code hbase.pb.SnapshotRegionManifest.StoreFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder.class); } // Construct using org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.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.protobuf.generated.FSProtos.Reference.getDefaultInstance(); } else { referenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); fileSize_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor; } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.getDefaultInstance(); } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile build() { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile buildPartial() { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile result = new org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (referenceBuilder_ == null) { result.reference_ = reference_; } else { result.reference_ = referenceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.fileSize_ = fileSize_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile other) { if (other == org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasReference()) { mergeReference(other.getReference()); } if (other.hasFileSize()) { setFileSize(other.getFileSize()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (hasReference()) { if (!getReference().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string name = 1; private java.lang.Object name_ = ""; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; return s; } else { return (java.lang.String) ref; } } /** * <code>required string name = 1;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>required string name = 1;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } // optional .hbase.pb.Reference reference = 2; private org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference reference_ = org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference, org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.Builder, org.apache.hadoop.hbase.protobuf.generated.FSProtos.ReferenceOrBuilder> referenceBuilder_; /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public boolean hasReference() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference getReference() { if (referenceBuilder_ == null) { return reference_; } else { return referenceBuilder_.getMessage(); } } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public Builder setReference(org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reference_ = value; onChanged(); } else { referenceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public Builder setReference( org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.Builder builderForValue) { if (referenceBuilder_ == null) { reference_ = builderForValue.build(); onChanged(); } else { referenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public Builder mergeReference(org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference value) { if (referenceBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && reference_ != org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.getDefaultInstance()) { reference_ = org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.newBuilder(reference_).mergeFrom(value).buildPartial(); } else { reference_ = value; } onChanged(); } else { referenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public Builder clearReference() { if (referenceBuilder_ == null) { reference_ = org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.getDefaultInstance(); onChanged(); } else { referenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.Builder getReferenceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getReferenceFieldBuilder().getBuilder(); } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.FSProtos.ReferenceOrBuilder getReferenceOrBuilder() { if (referenceBuilder_ != null) { return referenceBuilder_.getMessageOrBuilder(); } else { return reference_; } } /** * <code>optional .hbase.pb.Reference reference = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference, org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.Builder, org.apache.hadoop.hbase.protobuf.generated.FSProtos.ReferenceOrBuilder> getReferenceFieldBuilder() { if (referenceBuilder_ == null) { referenceBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference, org.apache.hadoop.hbase.protobuf.generated.FSProtos.Reference.Builder, org.apache.hadoop.hbase.protobuf.generated.FSProtos.ReferenceOrBuilder>( reference_, getParentForChildren(), isClean()); reference_ = null; } 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> */ 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> */ public long getFileSize() { return fileSize_; } /** * <code>optional uint64 file_size = 3;</code> * * <pre> * TODO: Add checksums or other fields to verify the file * </pre> */ public Builder setFileSize(long value) { bitField0_ |= 0x00000004; fileSize_ = value; onChanged(); return this; } /** * <code>optional uint64 file_size = 3;</code> * * <pre> * TODO: Add checksums or other fields to verify the file * </pre> */ public Builder clearFileSize() { bitField0_ = (bitField0_ & ~0x00000004); fileSize_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotRegionManifest.StoreFile) } static { defaultInstance = new StoreFile(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest.StoreFile) } public interface FamilyFilesOrBuilder extends com.google.protobuf.MessageOrBuilder { // required bytes family_name = 1; /** * <code>required bytes family_name = 1;</code> */ boolean hasFamilyName(); /** * <code>required bytes family_name = 1;</code> */ com.google.protobuf.ByteString getFamilyName(); // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2; /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> getStoreFilesList(); /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile getStoreFiles(int index); /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ int getStoreFilesCount(); /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder> getStoreFilesOrBuilderList(); /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder getStoreFilesOrBuilder( int index); } /** * Protobuf type {@code hbase.pb.SnapshotRegionManifest.FamilyFiles} */ public static final class FamilyFiles extends com.google.protobuf.GeneratedMessage implements FamilyFilesOrBuilder { // Use FamilyFiles.newBuilder() to construct. private FamilyFiles(com.google.protobuf.GeneratedMessage.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 final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FamilyFiles( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; familyName_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { storeFiles_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile>(); mutable_bitField0_ |= 0x00000002; } storeFiles_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { storeFiles_ = java.util.Collections.unmodifiableList(storeFiles_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.class, org.apache.hadoop.hbase.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_; /** * <code>required bytes family_name = 1;</code> */ public boolean hasFamilyName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes family_name = 1;</code> */ public com.google.protobuf.ByteString getFamilyName() { 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.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> storeFiles_; /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> getStoreFilesList() { return storeFiles_; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder> getStoreFilesOrBuilderList() { return storeFiles_; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public int getStoreFilesCount() { return storeFiles_.size(); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile getStoreFiles(int index) { return storeFiles_.get(index); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder getStoreFilesOrBuilder( int index) { 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 (!hasFamilyName()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getStoreFilesCount(); i++) { if (!getStoreFiles(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, familyName_); } for (int i = 0; i < storeFiles_.size(); i++) { output.writeMessage(2, storeFiles_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, familyName_); } for (int i = 0; i < storeFiles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, storeFiles_.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.SnapshotProtos.SnapshotRegionManifest.FamilyFiles)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles other = (org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles) obj; boolean result = true; result = result && (hasFamilyName() == other.hasFamilyName()); if (hasFamilyName()) { result = result && getFamilyName() .equals(other.getFamilyName()); } result = result && getStoreFilesList() .equals(other.getStoreFilesList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasFamilyName()) { hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; hash = (53 * hash) + getFamilyName().hashCode(); } if (getStoreFilesCount() > 0) { hash = (37 * hash) + STORE_FILES_FIELD_NUMBER; hash = (53 * hash) + getStoreFilesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.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); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code hbase.pb.SnapshotRegionManifest.FamilyFiles} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder.class); } // Construct using org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getStoreFilesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); familyName_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (storeFilesBuilder_ == null) { storeFiles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { storeFilesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor; } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.getDefaultInstance(); } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles build() { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles buildPartial() { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles result = new org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.familyName_ = familyName_; if (storeFilesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { storeFiles_ = java.util.Collections.unmodifiableList(storeFiles_); bitField0_ = (bitField0_ & ~0x00000002); } result.storeFiles_ = storeFiles_; } else { result.storeFiles_ = storeFilesBuilder_.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.SnapshotProtos.SnapshotRegionManifest.FamilyFiles) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles other) { if (other == org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.getDefaultInstance()) return this; if (other.hasFamilyName()) { setFamilyName(other.getFamilyName()); } if (storeFilesBuilder_ == null) { if (!other.storeFiles_.isEmpty()) { if (storeFiles_.isEmpty()) { storeFiles_ = other.storeFiles_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStoreFilesIsMutable(); storeFiles_.addAll(other.storeFiles_); } onChanged(); } } else { if (!other.storeFiles_.isEmpty()) { if (storeFilesBuilder_.isEmpty()) { storeFilesBuilder_.dispose(); storeFilesBuilder_ = null; storeFiles_ = other.storeFiles_; bitField0_ = (bitField0_ & ~0x00000002); storeFilesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getStoreFilesFieldBuilder() : null; } else { storeFilesBuilder_.addAllMessages(other.storeFiles_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasFamilyName()) { return false; } for (int i = 0; i < getStoreFilesCount(); i++) { if (!getStoreFiles(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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> */ public boolean hasFamilyName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes family_name = 1;</code> */ public com.google.protobuf.ByteString getFamilyName() { return familyName_; } /** * <code>required bytes family_name = 1;</code> */ public Builder setFamilyName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; familyName_ = value; onChanged(); return this; } /** * <code>required bytes family_name = 1;</code> */ public Builder clearFamilyName() { bitField0_ = (bitField0_ & ~0x00000001); familyName_ = getDefaultInstance().getFamilyName(); onChanged(); return this; } // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2; private java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> storeFiles_ = java.util.Collections.emptyList(); private void ensureStoreFilesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { storeFiles_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile>(storeFiles_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder> storeFilesBuilder_; /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> getStoreFilesList() { if (storeFilesBuilder_ == null) { return java.util.Collections.unmodifiableList(storeFiles_); } else { return storeFilesBuilder_.getMessageList(); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public int getStoreFilesCount() { if (storeFilesBuilder_ == null) { return storeFiles_.size(); } else { return storeFilesBuilder_.getCount(); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile getStoreFiles(int index) { if (storeFilesBuilder_ == null) { return storeFiles_.get(index); } else { return storeFilesBuilder_.getMessage(index); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public Builder setStoreFiles( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile value) { if (storeFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoreFilesIsMutable(); storeFiles_.set(index, value); onChanged(); } else { storeFilesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public Builder setStoreFiles( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder builderForValue) { if (storeFilesBuilder_ == null) { ensureStoreFilesIsMutable(); storeFiles_.set(index, builderForValue.build()); onChanged(); } else { storeFilesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public Builder addStoreFiles(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile value) { if (storeFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoreFilesIsMutable(); storeFiles_.add(value); onChanged(); } else { storeFilesBuilder_.addMessage(value); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public Builder addStoreFiles( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile value) { if (storeFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoreFilesIsMutable(); storeFiles_.add(index, value); onChanged(); } else { storeFilesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public Builder addStoreFiles( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder builderForValue) { if (storeFilesBuilder_ == null) { ensureStoreFilesIsMutable(); storeFiles_.add(builderForValue.build()); onChanged(); } else { storeFilesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public Builder addStoreFiles( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder builderForValue) { if (storeFilesBuilder_ == null) { ensureStoreFilesIsMutable(); storeFiles_.add(index, builderForValue.build()); onChanged(); } else { storeFilesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public Builder addAllStoreFiles( java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile> values) { if (storeFilesBuilder_ == null) { ensureStoreFilesIsMutable(); super.addAll(values, storeFiles_); onChanged(); } else { storeFilesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public Builder clearStoreFiles() { if (storeFilesBuilder_ == null) { storeFiles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { storeFilesBuilder_.clear(); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public Builder removeStoreFiles(int index) { if (storeFilesBuilder_ == null) { ensureStoreFilesIsMutable(); storeFiles_.remove(index); onChanged(); } else { storeFilesBuilder_.remove(index); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder getStoreFilesBuilder( int index) { return getStoreFilesFieldBuilder().getBuilder(index); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder getStoreFilesOrBuilder( int index) { if (storeFilesBuilder_ == null) { return storeFiles_.get(index); } else { return storeFilesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder> getStoreFilesOrBuilderList() { if (storeFilesBuilder_ != null) { return storeFilesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(storeFiles_); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder addStoreFilesBuilder() { return getStoreFilesFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.getDefaultInstance()); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder addStoreFilesBuilder( int index) { return getStoreFilesFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.getDefaultInstance()); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2;</code> */ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder> getStoreFilesBuilderList() { return getStoreFilesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder> getStoreFilesFieldBuilder() { if (storeFilesBuilder_ == null) { storeFilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFileOrBuilder>( storeFiles_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); storeFiles_ = null; } return storeFilesBuilder_; } // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotRegionManifest.FamilyFiles) } static { defaultInstance = new FamilyFiles(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest.FamilyFiles) } private int bitField0_; // optional int32 version = 1; public static final int VERSION_FIELD_NUMBER = 1; private int version_; /** * <code>optional int32 version = 1;</code> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 version = 1;</code> */ public int getVersion() { return version_; } // required .hbase.pb.RegionInfo region_info = 2; public static final int REGION_INFO_FIELD_NUMBER = 2; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo regionInfo_; /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ public boolean hasRegionInfo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getRegionInfo() { return regionInfo_; } /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder getRegionInfoOrBuilder() { return regionInfo_; } // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3; public static final int FAMILY_FILES_FIELD_NUMBER = 3; private java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles> familyFiles_; /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles> getFamilyFilesList() { return familyFiles_; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder> getFamilyFilesOrBuilderList() { return familyFiles_; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public int getFamilyFilesCount() { return familyFiles_.size(); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles getFamilyFiles(int index) { return familyFiles_.get(index); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder getFamilyFilesOrBuilder( int index) { return familyFiles_.get(index); } private void initFields() { version_ = 0; regionInfo_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDefaultInstance(); familyFiles_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasRegionInfo()) { memoizedIsInitialized = 0; return false; } if (!getRegionInfo().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getFamilyFilesCount(); i++) { if (!getFamilyFiles(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, version_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, regionInfo_); } for (int i = 0; i < familyFiles_.size(); i++) { output.writeMessage(3, familyFiles_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, version_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, regionInfo_); } for (int i = 0; i < familyFiles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, familyFiles_.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.SnapshotProtos.SnapshotRegionManifest)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest other = (org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest) obj; boolean result = true; result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && (getVersion() == other.getVersion()); } result = result && (hasRegionInfo() == other.hasRegionInfo()); if (hasRegionInfo()) { result = result && getRegionInfo() .equals(other.getRegionInfo()); } result = result && getFamilyFilesList() .equals(other.getFamilyFilesList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); } if (hasRegionInfo()) { hash = (37 * hash) + REGION_INFO_FIELD_NUMBER; hash = (53 * hash) + getRegionInfo().hashCode(); } if (getFamilyFilesCount() > 0) { hash = (37 * hash) + FAMILY_FILES_FIELD_NUMBER; hash = (53 * hash) + getFamilyFilesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code hbase.pb.SnapshotRegionManifest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder.class); } // Construct using org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRegionInfoFieldBuilder(); getFamilyFilesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); version_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (regionInfoBuilder_ == null) { regionInfo_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDefaultInstance(); } else { regionInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (familyFilesBuilder_ == null) { familyFiles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { familyFilesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotRegionManifest_descriptor; } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.getDefaultInstance(); } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest build() { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest buildPartial() { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest result = new org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.version_ = version_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (regionInfoBuilder_ == null) { result.regionInfo_ = regionInfo_; } else { result.regionInfo_ = regionInfoBuilder_.build(); } if (familyFilesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { familyFiles_ = java.util.Collections.unmodifiableList(familyFiles_); bitField0_ = (bitField0_ & ~0x00000004); } result.familyFiles_ = familyFiles_; } else { result.familyFiles_ = familyFilesBuilder_.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.SnapshotProtos.SnapshotRegionManifest) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest other) { if (other == org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.getDefaultInstance()) return this; if (other.hasVersion()) { setVersion(other.getVersion()); } if (other.hasRegionInfo()) { mergeRegionInfo(other.getRegionInfo()); } if (familyFilesBuilder_ == null) { if (!other.familyFiles_.isEmpty()) { if (familyFiles_.isEmpty()) { familyFiles_ = other.familyFiles_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFamilyFilesIsMutable(); familyFiles_.addAll(other.familyFiles_); } onChanged(); } } else { if (!other.familyFiles_.isEmpty()) { if (familyFilesBuilder_.isEmpty()) { familyFilesBuilder_.dispose(); familyFilesBuilder_ = null; familyFiles_ = other.familyFiles_; bitField0_ = (bitField0_ & ~0x00000004); familyFilesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFamilyFilesFieldBuilder() : null; } else { familyFilesBuilder_.addAllMessages(other.familyFiles_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasRegionInfo()) { return false; } if (!getRegionInfo().isInitialized()) { return false; } for (int i = 0; i < getFamilyFilesCount(); i++) { if (!getFamilyFiles(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 version = 1; private int version_ ; /** * <code>optional int32 version = 1;</code> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 version = 1;</code> */ public int getVersion() { return version_; } /** * <code>optional int32 version = 1;</code> */ public Builder setVersion(int value) { bitField0_ |= 0x00000001; version_ = value; onChanged(); return this; } /** * <code>optional int32 version = 1;</code> */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000001); version_ = 0; onChanged(); return this; } // required .hbase.pb.RegionInfo region_info = 2; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo regionInfo_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder> regionInfoBuilder_; /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ public boolean hasRegionInfo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getRegionInfo() { if (regionInfoBuilder_ == null) { return regionInfo_; } else { return regionInfoBuilder_.getMessage(); } } /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ public Builder setRegionInfo(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo value) { if (regionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionInfo_ = value; onChanged(); } else { regionInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ public Builder setRegionInfo( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder builderForValue) { if (regionInfoBuilder_ == null) { regionInfo_ = builderForValue.build(); onChanged(); } else { regionInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ public Builder mergeRegionInfo(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo value) { if (regionInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && regionInfo_ != org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDefaultInstance()) { regionInfo_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.newBuilder(regionInfo_).mergeFrom(value).buildPartial(); } else { regionInfo_ = value; } onChanged(); } else { regionInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ public Builder clearRegionInfo() { if (regionInfoBuilder_ == null) { regionInfo_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDefaultInstance(); onChanged(); } else { regionInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder getRegionInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRegionInfoFieldBuilder().getBuilder(); } /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder getRegionInfoOrBuilder() { if (regionInfoBuilder_ != null) { return regionInfoBuilder_.getMessageOrBuilder(); } else { return regionInfo_; } } /** * <code>required .hbase.pb.RegionInfo region_info = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder> getRegionInfoFieldBuilder() { if (regionInfoBuilder_ == null) { regionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder>( regionInfo_, getParentForChildren(), isClean()); regionInfo_ = null; } return regionInfoBuilder_; } // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3; private java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles> familyFiles_ = java.util.Collections.emptyList(); private void ensureFamilyFilesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { familyFiles_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles>(familyFiles_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder> familyFilesBuilder_; /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles> getFamilyFilesList() { if (familyFilesBuilder_ == null) { return java.util.Collections.unmodifiableList(familyFiles_); } else { return familyFilesBuilder_.getMessageList(); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public int getFamilyFilesCount() { if (familyFilesBuilder_ == null) { return familyFiles_.size(); } else { return familyFilesBuilder_.getCount(); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles getFamilyFiles(int index) { if (familyFilesBuilder_ == null) { return familyFiles_.get(index); } else { return familyFilesBuilder_.getMessage(index); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public Builder setFamilyFiles( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles value) { if (familyFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFamilyFilesIsMutable(); familyFiles_.set(index, value); onChanged(); } else { familyFilesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public Builder setFamilyFiles( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder builderForValue) { if (familyFilesBuilder_ == null) { ensureFamilyFilesIsMutable(); familyFiles_.set(index, builderForValue.build()); onChanged(); } else { familyFilesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public Builder addFamilyFiles(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles value) { if (familyFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFamilyFilesIsMutable(); familyFiles_.add(value); onChanged(); } else { familyFilesBuilder_.addMessage(value); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public Builder addFamilyFiles( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles value) { if (familyFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFamilyFilesIsMutable(); familyFiles_.add(index, value); onChanged(); } else { familyFilesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public Builder addFamilyFiles( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder builderForValue) { if (familyFilesBuilder_ == null) { ensureFamilyFilesIsMutable(); familyFiles_.add(builderForValue.build()); onChanged(); } else { familyFilesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public Builder addFamilyFiles( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder builderForValue) { if (familyFilesBuilder_ == null) { ensureFamilyFilesIsMutable(); familyFiles_.add(index, builderForValue.build()); onChanged(); } else { familyFilesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public Builder addAllFamilyFiles( java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles> values) { if (familyFilesBuilder_ == null) { ensureFamilyFilesIsMutable(); super.addAll(values, familyFiles_); onChanged(); } else { familyFilesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public Builder clearFamilyFiles() { if (familyFilesBuilder_ == null) { familyFiles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { familyFilesBuilder_.clear(); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public Builder removeFamilyFiles(int index) { if (familyFilesBuilder_ == null) { ensureFamilyFilesIsMutable(); familyFiles_.remove(index); onChanged(); } else { familyFilesBuilder_.remove(index); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder getFamilyFilesBuilder( int index) { return getFamilyFilesFieldBuilder().getBuilder(index); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder getFamilyFilesOrBuilder( int index) { if (familyFilesBuilder_ == null) { return familyFiles_.get(index); } else { return familyFilesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder> getFamilyFilesOrBuilderList() { if (familyFilesBuilder_ != null) { return familyFilesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(familyFiles_); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder addFamilyFilesBuilder() { return getFamilyFilesFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.getDefaultInstance()); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder addFamilyFilesBuilder( int index) { return getFamilyFilesFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.getDefaultInstance()); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3;</code> */ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder> getFamilyFilesBuilderList() { return getFamilyFilesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder> getFamilyFilesFieldBuilder() { if (familyFilesBuilder_ == null) { familyFilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFiles.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.FamilyFilesOrBuilder>( familyFiles_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); familyFiles_ = null; } return familyFilesBuilder_; } // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotRegionManifest) } static { defaultInstance = new SnapshotRegionManifest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest) } public interface SnapshotDataManifestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .hbase.pb.TableSchema table_schema = 1; /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ boolean hasTableSchema(); /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema getTableSchema(); /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder getTableSchemaOrBuilder(); // repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2; /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> getRegionManifestsList(); /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest getRegionManifests(int index); /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ int getRegionManifestsCount(); /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder> getRegionManifestsOrBuilderList(); /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder getRegionManifestsOrBuilder( int index); } /** * Protobuf type {@code hbase.pb.SnapshotDataManifest} */ public static final class SnapshotDataManifest extends com.google.protobuf.GeneratedMessage implements SnapshotDataManifestOrBuilder { // Use SnapshotDataManifest.newBuilder() to construct. private SnapshotDataManifest(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SnapshotDataManifest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SnapshotDataManifest defaultInstance; public static SnapshotDataManifest getDefaultInstance() { return defaultInstance; } public SnapshotDataManifest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapshotDataManifest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = tableSchema_.toBuilder(); } tableSchema_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tableSchema_); tableSchema_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { regionManifests_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest>(); mutable_bitField0_ |= 0x00000002; } regionManifests_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { regionManifests_ = java.util.Collections.unmodifiableList(regionManifests_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotDataManifest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotDataManifest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest.Builder.class); } public static com.google.protobuf.Parser<SnapshotDataManifest> PARSER = new com.google.protobuf.AbstractParser<SnapshotDataManifest>() { public SnapshotDataManifest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SnapshotDataManifest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<SnapshotDataManifest> getParserForType() { return PARSER; } private int bitField0_; // required .hbase.pb.TableSchema table_schema = 1; public static final int TABLE_SCHEMA_FIELD_NUMBER = 1; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema tableSchema_; /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ public boolean hasTableSchema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema getTableSchema() { return tableSchema_; } /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder getTableSchemaOrBuilder() { return tableSchema_; } // repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2; public static final int REGION_MANIFESTS_FIELD_NUMBER = 2; private java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> regionManifests_; /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> getRegionManifestsList() { return regionManifests_; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder> getRegionManifestsOrBuilderList() { return regionManifests_; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public int getRegionManifestsCount() { return regionManifests_.size(); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest getRegionManifests(int index) { return regionManifests_.get(index); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder getRegionManifestsOrBuilder( int index) { return regionManifests_.get(index); } private void initFields() { tableSchema_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance(); regionManifests_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTableSchema()) { memoizedIsInitialized = 0; return false; } if (!getTableSchema().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getRegionManifestsCount(); i++) { if (!getRegionManifests(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, tableSchema_); } for (int i = 0; i < regionManifests_.size(); i++) { output.writeMessage(2, regionManifests_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, tableSchema_); } for (int i = 0; i < regionManifests_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, regionManifests_.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.SnapshotProtos.SnapshotDataManifest)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest other = (org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest) obj; boolean result = true; result = result && (hasTableSchema() == other.hasTableSchema()); if (hasTableSchema()) { result = result && getTableSchema() .equals(other.getTableSchema()); } result = result && getRegionManifestsList() .equals(other.getRegionManifestsList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTableSchema()) { hash = (37 * hash) + TABLE_SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getTableSchema().hashCode(); } if (getRegionManifestsCount() > 0) { hash = (37 * hash) + REGION_MANIFESTS_FIELD_NUMBER; hash = (53 * hash) + getRegionManifestsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code hbase.pb.SnapshotDataManifest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotDataManifest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotDataManifest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest.class, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest.Builder.class); } // Construct using org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTableSchemaFieldBuilder(); getRegionManifestsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (tableSchemaBuilder_ == null) { tableSchema_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance(); } else { tableSchemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (regionManifestsBuilder_ == null) { regionManifests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { regionManifestsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.internal_static_hbase_pb_SnapshotDataManifest_descriptor; } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest.getDefaultInstance(); } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest build() { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest buildPartial() { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest result = new org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (tableSchemaBuilder_ == null) { result.tableSchema_ = tableSchema_; } else { result.tableSchema_ = tableSchemaBuilder_.build(); } if (regionManifestsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { regionManifests_ = java.util.Collections.unmodifiableList(regionManifests_); bitField0_ = (bitField0_ & ~0x00000002); } result.regionManifests_ = regionManifests_; } else { result.regionManifests_ = regionManifestsBuilder_.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.SnapshotProtos.SnapshotDataManifest) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest other) { if (other == org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest.getDefaultInstance()) return this; if (other.hasTableSchema()) { mergeTableSchema(other.getTableSchema()); } if (regionManifestsBuilder_ == null) { if (!other.regionManifests_.isEmpty()) { if (regionManifests_.isEmpty()) { regionManifests_ = other.regionManifests_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRegionManifestsIsMutable(); regionManifests_.addAll(other.regionManifests_); } onChanged(); } } else { if (!other.regionManifests_.isEmpty()) { if (regionManifestsBuilder_.isEmpty()) { regionManifestsBuilder_.dispose(); regionManifestsBuilder_ = null; regionManifests_ = other.regionManifests_; bitField0_ = (bitField0_ & ~0x00000002); regionManifestsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRegionManifestsFieldBuilder() : null; } else { regionManifestsBuilder_.addAllMessages(other.regionManifests_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTableSchema()) { return false; } if (!getTableSchema().isInitialized()) { return false; } for (int i = 0; i < getRegionManifestsCount(); i++) { if (!getRegionManifests(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotDataManifest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .hbase.pb.TableSchema table_schema = 1; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema tableSchema_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder> tableSchemaBuilder_; /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ public boolean hasTableSchema() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema getTableSchema() { if (tableSchemaBuilder_ == null) { return tableSchema_; } else { return tableSchemaBuilder_.getMessage(); } } /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ public Builder setTableSchema(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema value) { if (tableSchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tableSchema_ = value; onChanged(); } else { tableSchemaBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ public Builder setTableSchema( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder builderForValue) { if (tableSchemaBuilder_ == null) { tableSchema_ = builderForValue.build(); onChanged(); } else { tableSchemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ public Builder mergeTableSchema(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema value) { if (tableSchemaBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && tableSchema_ != org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance()) { tableSchema_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.newBuilder(tableSchema_).mergeFrom(value).buildPartial(); } else { tableSchema_ = value; } onChanged(); } else { tableSchemaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ public Builder clearTableSchema() { if (tableSchemaBuilder_ == null) { tableSchema_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance(); onChanged(); } else { tableSchemaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder getTableSchemaBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTableSchemaFieldBuilder().getBuilder(); } /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder getTableSchemaOrBuilder() { if (tableSchemaBuilder_ != null) { return tableSchemaBuilder_.getMessageOrBuilder(); } else { return tableSchema_; } } /** * <code>required .hbase.pb.TableSchema table_schema = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder> getTableSchemaFieldBuilder() { if (tableSchemaBuilder_ == null) { tableSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder>( tableSchema_, getParentForChildren(), isClean()); tableSchema_ = null; } return tableSchemaBuilder_; } // repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2; private java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> regionManifests_ = java.util.Collections.emptyList(); private void ensureRegionManifestsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { regionManifests_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest>(regionManifests_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder> regionManifestsBuilder_; /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> getRegionManifestsList() { if (regionManifestsBuilder_ == null) { return java.util.Collections.unmodifiableList(regionManifests_); } else { return regionManifestsBuilder_.getMessageList(); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public int getRegionManifestsCount() { if (regionManifestsBuilder_ == null) { return regionManifests_.size(); } else { return regionManifestsBuilder_.getCount(); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest getRegionManifests(int index) { if (regionManifestsBuilder_ == null) { return regionManifests_.get(index); } else { return regionManifestsBuilder_.getMessage(index); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public Builder setRegionManifests( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest value) { if (regionManifestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionManifestsIsMutable(); regionManifests_.set(index, value); onChanged(); } else { regionManifestsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public Builder setRegionManifests( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder builderForValue) { if (regionManifestsBuilder_ == null) { ensureRegionManifestsIsMutable(); regionManifests_.set(index, builderForValue.build()); onChanged(); } else { regionManifestsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public Builder addRegionManifests(org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest value) { if (regionManifestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionManifestsIsMutable(); regionManifests_.add(value); onChanged(); } else { regionManifestsBuilder_.addMessage(value); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public Builder addRegionManifests( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest value) { if (regionManifestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionManifestsIsMutable(); regionManifests_.add(index, value); onChanged(); } else { regionManifestsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public Builder addRegionManifests( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder builderForValue) { if (regionManifestsBuilder_ == null) { ensureRegionManifestsIsMutable(); regionManifests_.add(builderForValue.build()); onChanged(); } else { regionManifestsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public Builder addRegionManifests( int index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder builderForValue) { if (regionManifestsBuilder_ == null) { ensureRegionManifestsIsMutable(); regionManifests_.add(index, builderForValue.build()); onChanged(); } else { regionManifestsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public Builder addAllRegionManifests( java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> values) { if (regionManifestsBuilder_ == null) { ensureRegionManifestsIsMutable(); super.addAll(values, regionManifests_); onChanged(); } else { regionManifestsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public Builder clearRegionManifests() { if (regionManifestsBuilder_ == null) { regionManifests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { regionManifestsBuilder_.clear(); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public Builder removeRegionManifests(int index) { if (regionManifestsBuilder_ == null) { ensureRegionManifestsIsMutable(); regionManifests_.remove(index); onChanged(); } else { regionManifestsBuilder_.remove(index); } return this; } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder getRegionManifestsBuilder( int index) { return getRegionManifestsFieldBuilder().getBuilder(index); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder getRegionManifestsOrBuilder( int index) { if (regionManifestsBuilder_ == null) { return regionManifests_.get(index); } else { return regionManifestsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder> getRegionManifestsOrBuilderList() { if (regionManifestsBuilder_ != null) { return regionManifestsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regionManifests_); } } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder addRegionManifestsBuilder() { return getRegionManifestsFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.getDefaultInstance()); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder addRegionManifestsBuilder( int index) { return getRegionManifestsFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.getDefaultInstance()); } /** * <code>repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2;</code> */ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder> getRegionManifestsBuilderList() { return getRegionManifestsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder> getRegionManifestsFieldBuilder() { if (regionManifestsBuilder_ == null) { regionManifestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.Builder, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifestOrBuilder>( regionManifests_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); regionManifests_ = null; } return regionManifestsBuilder_; } // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotDataManifest) } static { defaultInstance = new SnapshotDataManifest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotDataManifest) } private static com.google.protobuf.Descriptors.Descriptor internal_static_hbase_pb_SnapshotFileInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hbase_pb_SnapshotFileInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hbase_pb_SnapshotRegionManifest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hbase_pb_SnapshotRegionManifest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hbase_pb_SnapshotDataManifest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hbase_pb_SnapshotDataManifest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\016Snapshot.proto\022\010hbase.pb\032\010FS.proto\032\013HB" + "ase.proto\"\222\001\n\020SnapshotFileInfo\022-\n\004type\030\001" + " \002(\0162\037.hbase.pb.SnapshotFileInfo.Type\022\r\n" + "\005hfile\030\003 \001(\t\022\022\n\nwal_server\030\004 \001(\t\022\020\n\010wal_" + "name\030\005 \001(\t\"\032\n\004Type\022\t\n\005HFILE\020\001\022\007\n\003WAL\020\002\"\323" + "\002\n\026SnapshotRegionManifest\022\017\n\007version\030\001 \001" + "(\005\022)\n\013region_info\030\002 \002(\0132\024.hbase.pb.Regio" + "nInfo\022B\n\014family_files\030\003 \003(\0132,.hbase.pb.S" + "napshotRegionManifest.FamilyFiles\032T\n\tSto" + "reFile\022\014\n\004name\030\001 \002(\t\022&\n\treference\030\002 \001(\0132", "\023.hbase.pb.Reference\022\021\n\tfile_size\030\003 \001(\004\032" + "c\n\013FamilyFiles\022\023\n\013family_name\030\001 \002(\014\022?\n\013s" + "tore_files\030\002 \003(\0132*.hbase.pb.SnapshotRegi" + "onManifest.StoreFile\"\177\n\024SnapshotDataMani" + "fest\022+\n\014table_schema\030\001 \002(\0132\025.hbase.pb.Ta" + "bleSchema\022:\n\020region_manifests\030\002 \003(\0132 .hb" + "ase.pb.SnapshotRegionManifestBD\n*org.apa" + "che.hadoop.hbase.protobuf.generatedB\016Sna" + "pshotProtosH\001\210\001\001\240\001\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_hbase_pb_SnapshotFileInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_hbase_pb_SnapshotFileInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hbase_pb_SnapshotFileInfo_descriptor, new java.lang.String[] { "Type", "Hfile", "WalServer", "WalName", }); internal_static_hbase_pb_SnapshotRegionManifest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_hbase_pb_SnapshotRegionManifest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hbase_pb_SnapshotRegionManifest_descriptor, new java.lang.String[] { "Version", "RegionInfo", "FamilyFiles", }); internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor = internal_static_hbase_pb_SnapshotRegionManifest_descriptor.getNestedTypes().get(0); internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hbase_pb_SnapshotRegionManifest_StoreFile_descriptor, new java.lang.String[] { "Name", "Reference", "FileSize", }); internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor = internal_static_hbase_pb_SnapshotRegionManifest_descriptor.getNestedTypes().get(1); internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hbase_pb_SnapshotRegionManifest_FamilyFiles_descriptor, new java.lang.String[] { "FamilyName", "StoreFiles", }); internal_static_hbase_pb_SnapshotDataManifest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_hbase_pb_SnapshotDataManifest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hbase_pb_SnapshotDataManifest_descriptor, new java.lang.String[] { "TableSchema", "RegionManifests", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.apache.hadoop.hbase.protobuf.generated.FSProtos.getDescriptor(), org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.getDescriptor(), }, assigner); } // @@protoc_insertion_point(outer_class_scope) }