1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: Encryption.proto
3 
4 package org.apache.hadoop.hbase.protobuf.generated;
5 
6 public final class EncryptionProtos {
EncryptionProtos()7   private EncryptionProtos() {}
registerAllExtensions( com.google.protobuf.ExtensionRegistry registry)8   public static void registerAllExtensions(
9       com.google.protobuf.ExtensionRegistry registry) {
10   }
11   public interface WrappedKeyOrBuilder
12       extends com.google.protobuf.MessageOrBuilder {
13 
14     // required string algorithm = 1;
15     /**
16      * <code>required string algorithm = 1;</code>
17      */
hasAlgorithm()18     boolean hasAlgorithm();
19     /**
20      * <code>required string algorithm = 1;</code>
21      */
getAlgorithm()22     java.lang.String getAlgorithm();
23     /**
24      * <code>required string algorithm = 1;</code>
25      */
26     com.google.protobuf.ByteString
getAlgorithmBytes()27         getAlgorithmBytes();
28 
29     // required uint32 length = 2;
30     /**
31      * <code>required uint32 length = 2;</code>
32      */
hasLength()33     boolean hasLength();
34     /**
35      * <code>required uint32 length = 2;</code>
36      */
getLength()37     int getLength();
38 
39     // required bytes data = 3;
40     /**
41      * <code>required bytes data = 3;</code>
42      */
hasData()43     boolean hasData();
44     /**
45      * <code>required bytes data = 3;</code>
46      */
getData()47     com.google.protobuf.ByteString getData();
48 
49     // optional bytes iv = 4;
50     /**
51      * <code>optional bytes iv = 4;</code>
52      */
hasIv()53     boolean hasIv();
54     /**
55      * <code>optional bytes iv = 4;</code>
56      */
getIv()57     com.google.protobuf.ByteString getIv();
58 
59     // optional bytes hash = 5;
60     /**
61      * <code>optional bytes hash = 5;</code>
62      */
hasHash()63     boolean hasHash();
64     /**
65      * <code>optional bytes hash = 5;</code>
66      */
getHash()67     com.google.protobuf.ByteString getHash();
68   }
69   /**
70    * Protobuf type {@code WrappedKey}
71    */
72   public static final class WrappedKey extends
73       com.google.protobuf.GeneratedMessage
74       implements WrappedKeyOrBuilder {
75     // Use WrappedKey.newBuilder() to construct.
WrappedKey(com.google.protobuf.GeneratedMessage.Builder<?> builder)76     private WrappedKey(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
77       super(builder);
78       this.unknownFields = builder.getUnknownFields();
79     }
WrappedKey(boolean noInit)80     private WrappedKey(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
81 
82     private static final WrappedKey defaultInstance;
getDefaultInstance()83     public static WrappedKey getDefaultInstance() {
84       return defaultInstance;
85     }
86 
getDefaultInstanceForType()87     public WrappedKey getDefaultInstanceForType() {
88       return defaultInstance;
89     }
90 
91     private final com.google.protobuf.UnknownFieldSet unknownFields;
92     @java.lang.Override
93     public final com.google.protobuf.UnknownFieldSet
getUnknownFields()94         getUnknownFields() {
95       return this.unknownFields;
96     }
WrappedKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)97     private WrappedKey(
98         com.google.protobuf.CodedInputStream input,
99         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
100         throws com.google.protobuf.InvalidProtocolBufferException {
101       initFields();
102       int mutable_bitField0_ = 0;
103       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
104           com.google.protobuf.UnknownFieldSet.newBuilder();
105       try {
106         boolean done = false;
107         while (!done) {
108           int tag = input.readTag();
109           switch (tag) {
110             case 0:
111               done = true;
112               break;
113             default: {
114               if (!parseUnknownField(input, unknownFields,
115                                      extensionRegistry, tag)) {
116                 done = true;
117               }
118               break;
119             }
120             case 10: {
121               bitField0_ |= 0x00000001;
122               algorithm_ = input.readBytes();
123               break;
124             }
125             case 16: {
126               bitField0_ |= 0x00000002;
127               length_ = input.readUInt32();
128               break;
129             }
130             case 26: {
131               bitField0_ |= 0x00000004;
132               data_ = input.readBytes();
133               break;
134             }
135             case 34: {
136               bitField0_ |= 0x00000008;
137               iv_ = input.readBytes();
138               break;
139             }
140             case 42: {
141               bitField0_ |= 0x00000010;
142               hash_ = input.readBytes();
143               break;
144             }
145           }
146         }
147       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
148         throw e.setUnfinishedMessage(this);
149       } catch (java.io.IOException e) {
150         throw new com.google.protobuf.InvalidProtocolBufferException(
151             e.getMessage()).setUnfinishedMessage(this);
152       } finally {
153         this.unknownFields = unknownFields.build();
154         makeExtensionsImmutable();
155       }
156     }
157     public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor()158         getDescriptor() {
159       return org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.internal_static_WrappedKey_descriptor;
160     }
161 
162     protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()163         internalGetFieldAccessorTable() {
164       return org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.internal_static_WrappedKey_fieldAccessorTable
165           .ensureFieldAccessorsInitialized(
166               org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey.class, org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey.Builder.class);
167     }
168 
169     public static com.google.protobuf.Parser<WrappedKey> PARSER =
170         new com.google.protobuf.AbstractParser<WrappedKey>() {
171       public WrappedKey parsePartialFrom(
172           com.google.protobuf.CodedInputStream input,
173           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
174           throws com.google.protobuf.InvalidProtocolBufferException {
175         return new WrappedKey(input, extensionRegistry);
176       }
177     };
178 
179     @java.lang.Override
getParserForType()180     public com.google.protobuf.Parser<WrappedKey> getParserForType() {
181       return PARSER;
182     }
183 
184     private int bitField0_;
185     // required string algorithm = 1;
186     public static final int ALGORITHM_FIELD_NUMBER = 1;
187     private java.lang.Object algorithm_;
188     /**
189      * <code>required string algorithm = 1;</code>
190      */
hasAlgorithm()191     public boolean hasAlgorithm() {
192       return ((bitField0_ & 0x00000001) == 0x00000001);
193     }
194     /**
195      * <code>required string algorithm = 1;</code>
196      */
getAlgorithm()197     public java.lang.String getAlgorithm() {
198       java.lang.Object ref = algorithm_;
199       if (ref instanceof java.lang.String) {
200         return (java.lang.String) ref;
201       } else {
202         com.google.protobuf.ByteString bs =
203             (com.google.protobuf.ByteString) ref;
204         java.lang.String s = bs.toStringUtf8();
205         if (bs.isValidUtf8()) {
206           algorithm_ = s;
207         }
208         return s;
209       }
210     }
211     /**
212      * <code>required string algorithm = 1;</code>
213      */
214     public com.google.protobuf.ByteString
getAlgorithmBytes()215         getAlgorithmBytes() {
216       java.lang.Object ref = algorithm_;
217       if (ref instanceof java.lang.String) {
218         com.google.protobuf.ByteString b =
219             com.google.protobuf.ByteString.copyFromUtf8(
220                 (java.lang.String) ref);
221         algorithm_ = b;
222         return b;
223       } else {
224         return (com.google.protobuf.ByteString) ref;
225       }
226     }
227 
228     // required uint32 length = 2;
229     public static final int LENGTH_FIELD_NUMBER = 2;
230     private int length_;
231     /**
232      * <code>required uint32 length = 2;</code>
233      */
hasLength()234     public boolean hasLength() {
235       return ((bitField0_ & 0x00000002) == 0x00000002);
236     }
237     /**
238      * <code>required uint32 length = 2;</code>
239      */
getLength()240     public int getLength() {
241       return length_;
242     }
243 
244     // required bytes data = 3;
245     public static final int DATA_FIELD_NUMBER = 3;
246     private com.google.protobuf.ByteString data_;
247     /**
248      * <code>required bytes data = 3;</code>
249      */
hasData()250     public boolean hasData() {
251       return ((bitField0_ & 0x00000004) == 0x00000004);
252     }
253     /**
254      * <code>required bytes data = 3;</code>
255      */
getData()256     public com.google.protobuf.ByteString getData() {
257       return data_;
258     }
259 
260     // optional bytes iv = 4;
261     public static final int IV_FIELD_NUMBER = 4;
262     private com.google.protobuf.ByteString iv_;
263     /**
264      * <code>optional bytes iv = 4;</code>
265      */
hasIv()266     public boolean hasIv() {
267       return ((bitField0_ & 0x00000008) == 0x00000008);
268     }
269     /**
270      * <code>optional bytes iv = 4;</code>
271      */
getIv()272     public com.google.protobuf.ByteString getIv() {
273       return iv_;
274     }
275 
276     // optional bytes hash = 5;
277     public static final int HASH_FIELD_NUMBER = 5;
278     private com.google.protobuf.ByteString hash_;
279     /**
280      * <code>optional bytes hash = 5;</code>
281      */
hasHash()282     public boolean hasHash() {
283       return ((bitField0_ & 0x00000010) == 0x00000010);
284     }
285     /**
286      * <code>optional bytes hash = 5;</code>
287      */
getHash()288     public com.google.protobuf.ByteString getHash() {
289       return hash_;
290     }
291 
initFields()292     private void initFields() {
293       algorithm_ = "";
294       length_ = 0;
295       data_ = com.google.protobuf.ByteString.EMPTY;
296       iv_ = com.google.protobuf.ByteString.EMPTY;
297       hash_ = com.google.protobuf.ByteString.EMPTY;
298     }
299     private byte memoizedIsInitialized = -1;
isInitialized()300     public final boolean isInitialized() {
301       byte isInitialized = memoizedIsInitialized;
302       if (isInitialized != -1) return isInitialized == 1;
303 
304       if (!hasAlgorithm()) {
305         memoizedIsInitialized = 0;
306         return false;
307       }
308       if (!hasLength()) {
309         memoizedIsInitialized = 0;
310         return false;
311       }
312       if (!hasData()) {
313         memoizedIsInitialized = 0;
314         return false;
315       }
316       memoizedIsInitialized = 1;
317       return true;
318     }
319 
writeTo(com.google.protobuf.CodedOutputStream output)320     public void writeTo(com.google.protobuf.CodedOutputStream output)
321                         throws java.io.IOException {
322       getSerializedSize();
323       if (((bitField0_ & 0x00000001) == 0x00000001)) {
324         output.writeBytes(1, getAlgorithmBytes());
325       }
326       if (((bitField0_ & 0x00000002) == 0x00000002)) {
327         output.writeUInt32(2, length_);
328       }
329       if (((bitField0_ & 0x00000004) == 0x00000004)) {
330         output.writeBytes(3, data_);
331       }
332       if (((bitField0_ & 0x00000008) == 0x00000008)) {
333         output.writeBytes(4, iv_);
334       }
335       if (((bitField0_ & 0x00000010) == 0x00000010)) {
336         output.writeBytes(5, hash_);
337       }
338       getUnknownFields().writeTo(output);
339     }
340 
341     private int memoizedSerializedSize = -1;
getSerializedSize()342     public int getSerializedSize() {
343       int size = memoizedSerializedSize;
344       if (size != -1) return size;
345 
346       size = 0;
347       if (((bitField0_ & 0x00000001) == 0x00000001)) {
348         size += com.google.protobuf.CodedOutputStream
349           .computeBytesSize(1, getAlgorithmBytes());
350       }
351       if (((bitField0_ & 0x00000002) == 0x00000002)) {
352         size += com.google.protobuf.CodedOutputStream
353           .computeUInt32Size(2, length_);
354       }
355       if (((bitField0_ & 0x00000004) == 0x00000004)) {
356         size += com.google.protobuf.CodedOutputStream
357           .computeBytesSize(3, data_);
358       }
359       if (((bitField0_ & 0x00000008) == 0x00000008)) {
360         size += com.google.protobuf.CodedOutputStream
361           .computeBytesSize(4, iv_);
362       }
363       if (((bitField0_ & 0x00000010) == 0x00000010)) {
364         size += com.google.protobuf.CodedOutputStream
365           .computeBytesSize(5, hash_);
366       }
367       size += getUnknownFields().getSerializedSize();
368       memoizedSerializedSize = size;
369       return size;
370     }
371 
372     private static final long serialVersionUID = 0L;
373     @java.lang.Override
writeReplace()374     protected java.lang.Object writeReplace()
375         throws java.io.ObjectStreamException {
376       return super.writeReplace();
377     }
378 
379     @java.lang.Override
equals(final java.lang.Object obj)380     public boolean equals(final java.lang.Object obj) {
381       if (obj == this) {
382        return true;
383       }
384       if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey)) {
385         return super.equals(obj);
386       }
387       org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey other = (org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey) obj;
388 
389       boolean result = true;
390       result = result && (hasAlgorithm() == other.hasAlgorithm());
391       if (hasAlgorithm()) {
392         result = result && getAlgorithm()
393             .equals(other.getAlgorithm());
394       }
395       result = result && (hasLength() == other.hasLength());
396       if (hasLength()) {
397         result = result && (getLength()
398             == other.getLength());
399       }
400       result = result && (hasData() == other.hasData());
401       if (hasData()) {
402         result = result && getData()
403             .equals(other.getData());
404       }
405       result = result && (hasIv() == other.hasIv());
406       if (hasIv()) {
407         result = result && getIv()
408             .equals(other.getIv());
409       }
410       result = result && (hasHash() == other.hasHash());
411       if (hasHash()) {
412         result = result && getHash()
413             .equals(other.getHash());
414       }
415       result = result &&
416           getUnknownFields().equals(other.getUnknownFields());
417       return result;
418     }
419 
420     private int memoizedHashCode = 0;
421     @java.lang.Override
hashCode()422     public int hashCode() {
423       if (memoizedHashCode != 0) {
424         return memoizedHashCode;
425       }
426       int hash = 41;
427       hash = (19 * hash) + getDescriptorForType().hashCode();
428       if (hasAlgorithm()) {
429         hash = (37 * hash) + ALGORITHM_FIELD_NUMBER;
430         hash = (53 * hash) + getAlgorithm().hashCode();
431       }
432       if (hasLength()) {
433         hash = (37 * hash) + LENGTH_FIELD_NUMBER;
434         hash = (53 * hash) + getLength();
435       }
436       if (hasData()) {
437         hash = (37 * hash) + DATA_FIELD_NUMBER;
438         hash = (53 * hash) + getData().hashCode();
439       }
440       if (hasIv()) {
441         hash = (37 * hash) + IV_FIELD_NUMBER;
442         hash = (53 * hash) + getIv().hashCode();
443       }
444       if (hasHash()) {
445         hash = (37 * hash) + HASH_FIELD_NUMBER;
446         hash = (53 * hash) + getHash().hashCode();
447       }
448       hash = (29 * hash) + getUnknownFields().hashCode();
449       memoizedHashCode = hash;
450       return hash;
451     }
452 
parseFrom( com.google.protobuf.ByteString data)453     public static org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey parseFrom(
454         com.google.protobuf.ByteString data)
455         throws com.google.protobuf.InvalidProtocolBufferException {
456       return PARSER.parseFrom(data);
457     }
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)458     public static org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey parseFrom(
459         com.google.protobuf.ByteString data,
460         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
461         throws com.google.protobuf.InvalidProtocolBufferException {
462       return PARSER.parseFrom(data, extensionRegistry);
463     }
parseFrom(byte[] data)464     public static org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey parseFrom(byte[] data)
465         throws com.google.protobuf.InvalidProtocolBufferException {
466       return PARSER.parseFrom(data);
467     }
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)468     public static org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey parseFrom(
469         byte[] data,
470         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
471         throws com.google.protobuf.InvalidProtocolBufferException {
472       return PARSER.parseFrom(data, extensionRegistry);
473     }
parseFrom(java.io.InputStream input)474     public static org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey parseFrom(java.io.InputStream input)
475         throws java.io.IOException {
476       return PARSER.parseFrom(input);
477     }
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)478     public static org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey parseFrom(
479         java.io.InputStream input,
480         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
481         throws java.io.IOException {
482       return PARSER.parseFrom(input, extensionRegistry);
483     }
parseDelimitedFrom(java.io.InputStream input)484     public static org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey parseDelimitedFrom(java.io.InputStream input)
485         throws java.io.IOException {
486       return PARSER.parseDelimitedFrom(input);
487     }
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)488     public static org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey parseDelimitedFrom(
489         java.io.InputStream input,
490         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
491         throws java.io.IOException {
492       return PARSER.parseDelimitedFrom(input, extensionRegistry);
493     }
parseFrom( com.google.protobuf.CodedInputStream input)494     public static org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey parseFrom(
495         com.google.protobuf.CodedInputStream input)
496         throws java.io.IOException {
497       return PARSER.parseFrom(input);
498     }
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)499     public static org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey parseFrom(
500         com.google.protobuf.CodedInputStream input,
501         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
502         throws java.io.IOException {
503       return PARSER.parseFrom(input, extensionRegistry);
504     }
505 
newBuilder()506     public static Builder newBuilder() { return Builder.create(); }
newBuilderForType()507     public Builder newBuilderForType() { return newBuilder(); }
newBuilder(org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey prototype)508     public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey prototype) {
509       return newBuilder().mergeFrom(prototype);
510     }
toBuilder()511     public Builder toBuilder() { return newBuilder(this); }
512 
513     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent)514     protected Builder newBuilderForType(
515         com.google.protobuf.GeneratedMessage.BuilderParent parent) {
516       Builder builder = new Builder(parent);
517       return builder;
518     }
519     /**
520      * Protobuf type {@code WrappedKey}
521      */
522     public static final class Builder extends
523         com.google.protobuf.GeneratedMessage.Builder<Builder>
524        implements org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKeyOrBuilder {
525       public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor()526           getDescriptor() {
527         return org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.internal_static_WrappedKey_descriptor;
528       }
529 
530       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()531           internalGetFieldAccessorTable() {
532         return org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.internal_static_WrappedKey_fieldAccessorTable
533             .ensureFieldAccessorsInitialized(
534                 org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey.class, org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey.Builder.class);
535       }
536 
537       // Construct using org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey.newBuilder()
Builder()538       private Builder() {
539         maybeForceBuilderInitialization();
540       }
541 
Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent)542       private Builder(
543           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
544         super(parent);
545         maybeForceBuilderInitialization();
546       }
maybeForceBuilderInitialization()547       private void maybeForceBuilderInitialization() {
548         if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
549         }
550       }
create()551       private static Builder create() {
552         return new Builder();
553       }
554 
clear()555       public Builder clear() {
556         super.clear();
557         algorithm_ = "";
558         bitField0_ = (bitField0_ & ~0x00000001);
559         length_ = 0;
560         bitField0_ = (bitField0_ & ~0x00000002);
561         data_ = com.google.protobuf.ByteString.EMPTY;
562         bitField0_ = (bitField0_ & ~0x00000004);
563         iv_ = com.google.protobuf.ByteString.EMPTY;
564         bitField0_ = (bitField0_ & ~0x00000008);
565         hash_ = com.google.protobuf.ByteString.EMPTY;
566         bitField0_ = (bitField0_ & ~0x00000010);
567         return this;
568       }
569 
clone()570       public Builder clone() {
571         return create().mergeFrom(buildPartial());
572       }
573 
574       public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()575           getDescriptorForType() {
576         return org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.internal_static_WrappedKey_descriptor;
577       }
578 
getDefaultInstanceForType()579       public org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey getDefaultInstanceForType() {
580         return org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey.getDefaultInstance();
581       }
582 
build()583       public org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey build() {
584         org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey result = buildPartial();
585         if (!result.isInitialized()) {
586           throw newUninitializedMessageException(result);
587         }
588         return result;
589       }
590 
buildPartial()591       public org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey buildPartial() {
592         org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey result = new org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey(this);
593         int from_bitField0_ = bitField0_;
594         int to_bitField0_ = 0;
595         if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
596           to_bitField0_ |= 0x00000001;
597         }
598         result.algorithm_ = algorithm_;
599         if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
600           to_bitField0_ |= 0x00000002;
601         }
602         result.length_ = length_;
603         if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
604           to_bitField0_ |= 0x00000004;
605         }
606         result.data_ = data_;
607         if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
608           to_bitField0_ |= 0x00000008;
609         }
610         result.iv_ = iv_;
611         if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
612           to_bitField0_ |= 0x00000010;
613         }
614         result.hash_ = hash_;
615         result.bitField0_ = to_bitField0_;
616         onBuilt();
617         return result;
618       }
619 
mergeFrom(com.google.protobuf.Message other)620       public Builder mergeFrom(com.google.protobuf.Message other) {
621         if (other instanceof org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey) {
622           return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey)other);
623         } else {
624           super.mergeFrom(other);
625           return this;
626         }
627       }
628 
mergeFrom(org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey other)629       public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey other) {
630         if (other == org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey.getDefaultInstance()) return this;
631         if (other.hasAlgorithm()) {
632           bitField0_ |= 0x00000001;
633           algorithm_ = other.algorithm_;
634           onChanged();
635         }
636         if (other.hasLength()) {
637           setLength(other.getLength());
638         }
639         if (other.hasData()) {
640           setData(other.getData());
641         }
642         if (other.hasIv()) {
643           setIv(other.getIv());
644         }
645         if (other.hasHash()) {
646           setHash(other.getHash());
647         }
648         this.mergeUnknownFields(other.getUnknownFields());
649         return this;
650       }
651 
isInitialized()652       public final boolean isInitialized() {
653         if (!hasAlgorithm()) {
654 
655           return false;
656         }
657         if (!hasLength()) {
658 
659           return false;
660         }
661         if (!hasData()) {
662 
663           return false;
664         }
665         return true;
666       }
667 
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)668       public Builder mergeFrom(
669           com.google.protobuf.CodedInputStream input,
670           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
671           throws java.io.IOException {
672         org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey parsedMessage = null;
673         try {
674           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
675         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
676           parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.EncryptionProtos.WrappedKey) e.getUnfinishedMessage();
677           throw e;
678         } finally {
679           if (parsedMessage != null) {
680             mergeFrom(parsedMessage);
681           }
682         }
683         return this;
684       }
685       private int bitField0_;
686 
687       // required string algorithm = 1;
688       private java.lang.Object algorithm_ = "";
689       /**
690        * <code>required string algorithm = 1;</code>
691        */
hasAlgorithm()692       public boolean hasAlgorithm() {
693         return ((bitField0_ & 0x00000001) == 0x00000001);
694       }
695       /**
696        * <code>required string algorithm = 1;</code>
697        */
getAlgorithm()698       public java.lang.String getAlgorithm() {
699         java.lang.Object ref = algorithm_;
700         if (!(ref instanceof java.lang.String)) {
701           java.lang.String s = ((com.google.protobuf.ByteString) ref)
702               .toStringUtf8();
703           algorithm_ = s;
704           return s;
705         } else {
706           return (java.lang.String) ref;
707         }
708       }
709       /**
710        * <code>required string algorithm = 1;</code>
711        */
712       public com.google.protobuf.ByteString
getAlgorithmBytes()713           getAlgorithmBytes() {
714         java.lang.Object ref = algorithm_;
715         if (ref instanceof String) {
716           com.google.protobuf.ByteString b =
717               com.google.protobuf.ByteString.copyFromUtf8(
718                   (java.lang.String) ref);
719           algorithm_ = b;
720           return b;
721         } else {
722           return (com.google.protobuf.ByteString) ref;
723         }
724       }
725       /**
726        * <code>required string algorithm = 1;</code>
727        */
setAlgorithm( java.lang.String value)728       public Builder setAlgorithm(
729           java.lang.String value) {
730         if (value == null) {
731     throw new NullPointerException();
732   }
733   bitField0_ |= 0x00000001;
734         algorithm_ = value;
735         onChanged();
736         return this;
737       }
738       /**
739        * <code>required string algorithm = 1;</code>
740        */
clearAlgorithm()741       public Builder clearAlgorithm() {
742         bitField0_ = (bitField0_ & ~0x00000001);
743         algorithm_ = getDefaultInstance().getAlgorithm();
744         onChanged();
745         return this;
746       }
747       /**
748        * <code>required string algorithm = 1;</code>
749        */
setAlgorithmBytes( com.google.protobuf.ByteString value)750       public Builder setAlgorithmBytes(
751           com.google.protobuf.ByteString value) {
752         if (value == null) {
753     throw new NullPointerException();
754   }
755   bitField0_ |= 0x00000001;
756         algorithm_ = value;
757         onChanged();
758         return this;
759       }
760 
761       // required uint32 length = 2;
762       private int length_ ;
763       /**
764        * <code>required uint32 length = 2;</code>
765        */
hasLength()766       public boolean hasLength() {
767         return ((bitField0_ & 0x00000002) == 0x00000002);
768       }
769       /**
770        * <code>required uint32 length = 2;</code>
771        */
getLength()772       public int getLength() {
773         return length_;
774       }
775       /**
776        * <code>required uint32 length = 2;</code>
777        */
setLength(int value)778       public Builder setLength(int value) {
779         bitField0_ |= 0x00000002;
780         length_ = value;
781         onChanged();
782         return this;
783       }
784       /**
785        * <code>required uint32 length = 2;</code>
786        */
clearLength()787       public Builder clearLength() {
788         bitField0_ = (bitField0_ & ~0x00000002);
789         length_ = 0;
790         onChanged();
791         return this;
792       }
793 
794       // required bytes data = 3;
795       private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
796       /**
797        * <code>required bytes data = 3;</code>
798        */
hasData()799       public boolean hasData() {
800         return ((bitField0_ & 0x00000004) == 0x00000004);
801       }
802       /**
803        * <code>required bytes data = 3;</code>
804        */
getData()805       public com.google.protobuf.ByteString getData() {
806         return data_;
807       }
808       /**
809        * <code>required bytes data = 3;</code>
810        */
setData(com.google.protobuf.ByteString value)811       public Builder setData(com.google.protobuf.ByteString value) {
812         if (value == null) {
813     throw new NullPointerException();
814   }
815   bitField0_ |= 0x00000004;
816         data_ = value;
817         onChanged();
818         return this;
819       }
820       /**
821        * <code>required bytes data = 3;</code>
822        */
clearData()823       public Builder clearData() {
824         bitField0_ = (bitField0_ & ~0x00000004);
825         data_ = getDefaultInstance().getData();
826         onChanged();
827         return this;
828       }
829 
830       // optional bytes iv = 4;
831       private com.google.protobuf.ByteString iv_ = com.google.protobuf.ByteString.EMPTY;
832       /**
833        * <code>optional bytes iv = 4;</code>
834        */
hasIv()835       public boolean hasIv() {
836         return ((bitField0_ & 0x00000008) == 0x00000008);
837       }
838       /**
839        * <code>optional bytes iv = 4;</code>
840        */
getIv()841       public com.google.protobuf.ByteString getIv() {
842         return iv_;
843       }
844       /**
845        * <code>optional bytes iv = 4;</code>
846        */
setIv(com.google.protobuf.ByteString value)847       public Builder setIv(com.google.protobuf.ByteString value) {
848         if (value == null) {
849     throw new NullPointerException();
850   }
851   bitField0_ |= 0x00000008;
852         iv_ = value;
853         onChanged();
854         return this;
855       }
856       /**
857        * <code>optional bytes iv = 4;</code>
858        */
clearIv()859       public Builder clearIv() {
860         bitField0_ = (bitField0_ & ~0x00000008);
861         iv_ = getDefaultInstance().getIv();
862         onChanged();
863         return this;
864       }
865 
866       // optional bytes hash = 5;
867       private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
868       /**
869        * <code>optional bytes hash = 5;</code>
870        */
hasHash()871       public boolean hasHash() {
872         return ((bitField0_ & 0x00000010) == 0x00000010);
873       }
874       /**
875        * <code>optional bytes hash = 5;</code>
876        */
getHash()877       public com.google.protobuf.ByteString getHash() {
878         return hash_;
879       }
880       /**
881        * <code>optional bytes hash = 5;</code>
882        */
setHash(com.google.protobuf.ByteString value)883       public Builder setHash(com.google.protobuf.ByteString value) {
884         if (value == null) {
885     throw new NullPointerException();
886   }
887   bitField0_ |= 0x00000010;
888         hash_ = value;
889         onChanged();
890         return this;
891       }
892       /**
893        * <code>optional bytes hash = 5;</code>
894        */
clearHash()895       public Builder clearHash() {
896         bitField0_ = (bitField0_ & ~0x00000010);
897         hash_ = getDefaultInstance().getHash();
898         onChanged();
899         return this;
900       }
901 
902       // @@protoc_insertion_point(builder_scope:WrappedKey)
903     }
904 
905     static {
906       defaultInstance = new WrappedKey(true);
defaultInstance.initFields()907       defaultInstance.initFields();
908     }
909 
910     // @@protoc_insertion_point(class_scope:WrappedKey)
911   }
912 
913   private static com.google.protobuf.Descriptors.Descriptor
914     internal_static_WrappedKey_descriptor;
915   private static
916     com.google.protobuf.GeneratedMessage.FieldAccessorTable
917       internal_static_WrappedKey_fieldAccessorTable;
918 
919   public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor()920       getDescriptor() {
921     return descriptor;
922   }
923   private static com.google.protobuf.Descriptors.FileDescriptor
924       descriptor;
925   static {
926     java.lang.String[] descriptorData = {
927       "\n\020Encryption.proto\"W\n\nWrappedKey\022\021\n\talgo" +
928       "rithm\030\001 \002(\t\022\016\n\006length\030\002 \002(\r\022\014\n\004data\030\003 \002(" +
929       "\014\022\n\n\002iv\030\004 \001(\014\022\014\n\004hash\030\005 \001(\014BC\n*org.apach" +
930       "e.hadoop.hbase.protobuf.generatedB\020Encry" +
931       "ptionProtosH\001\240\001\001"
932     };
933     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
934       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
935         public com.google.protobuf.ExtensionRegistry assignDescriptors(
936             com.google.protobuf.Descriptors.FileDescriptor root) {
937           descriptor = root;
938           internal_static_WrappedKey_descriptor =
939             getDescriptor().getMessageTypes().get(0);
940           internal_static_WrappedKey_fieldAccessorTable = new
941             com.google.protobuf.GeneratedMessage.FieldAccessorTable(
942               internal_static_WrappedKey_descriptor,
943               new java.lang.String[] { "Algorithm", "Length", "Data", "Iv", "Hash", });
944           return null;
945         }
946       };
947     com.google.protobuf.Descriptors.FileDescriptor
internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner)948       .internalBuildGeneratedFileFrom(descriptorData,
949         new com.google.protobuf.Descriptors.FileDescriptor[] {
950         }, assigner);
951   }
952 
953   // @@protoc_insertion_point(outer_class_scope)
954 }
955