1
2
3
4 package org.apache.hadoop.hbase.protobuf.generated;
5
6 public final class AuthenticationProtos {
7 private AuthenticationProtos() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
10 }
11 public interface AuthenticationKeyOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
13
14
15 boolean hasId();
16 int getId();
17
18
19 boolean hasExpirationDate();
20 long getExpirationDate();
21
22
23 boolean hasKey();
24 com.google.protobuf.ByteString getKey();
25 }
26 public static final class AuthenticationKey extends
27 com.google.protobuf.GeneratedMessage
28 implements AuthenticationKeyOrBuilder {
29
30 private AuthenticationKey(Builder builder) {
31 super(builder);
32 }
33 private AuthenticationKey(boolean noInit) {}
34
35 private static final AuthenticationKey defaultInstance;
36 public static AuthenticationKey getDefaultInstance() {
37 return defaultInstance;
38 }
39
40 public AuthenticationKey getDefaultInstanceForType() {
41 return defaultInstance;
42 }
43
44 public static final com.google.protobuf.Descriptors.Descriptor
45 getDescriptor() {
46 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_AuthenticationKey_descriptor;
47 }
48
49 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
50 internalGetFieldAccessorTable() {
51 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_AuthenticationKey_fieldAccessorTable;
52 }
53
54 private int bitField0_;
55
56 public static final int ID_FIELD_NUMBER = 1;
57 private int id_;
58 public boolean hasId() {
59 return ((bitField0_ & 0x00000001) == 0x00000001);
60 }
61 public int getId() {
62 return id_;
63 }
64
65
66 public static final int EXPIRATIONDATE_FIELD_NUMBER = 2;
67 private long expirationDate_;
68 public boolean hasExpirationDate() {
69 return ((bitField0_ & 0x00000002) == 0x00000002);
70 }
71 public long getExpirationDate() {
72 return expirationDate_;
73 }
74
75
76 public static final int KEY_FIELD_NUMBER = 3;
77 private com.google.protobuf.ByteString key_;
78 public boolean hasKey() {
79 return ((bitField0_ & 0x00000004) == 0x00000004);
80 }
81 public com.google.protobuf.ByteString getKey() {
82 return key_;
83 }
84
85 private void initFields() {
86 id_ = 0;
87 expirationDate_ = 0L;
88 key_ = com.google.protobuf.ByteString.EMPTY;
89 }
90 private byte memoizedIsInitialized = -1;
91 public final boolean isInitialized() {
92 byte isInitialized = memoizedIsInitialized;
93 if (isInitialized != -1) return isInitialized == 1;
94
95 if (!hasId()) {
96 memoizedIsInitialized = 0;
97 return false;
98 }
99 if (!hasExpirationDate()) {
100 memoizedIsInitialized = 0;
101 return false;
102 }
103 if (!hasKey()) {
104 memoizedIsInitialized = 0;
105 return false;
106 }
107 memoizedIsInitialized = 1;
108 return true;
109 }
110
111 public void writeTo(com.google.protobuf.CodedOutputStream output)
112 throws java.io.IOException {
113 getSerializedSize();
114 if (((bitField0_ & 0x00000001) == 0x00000001)) {
115 output.writeInt32(1, id_);
116 }
117 if (((bitField0_ & 0x00000002) == 0x00000002)) {
118 output.writeInt64(2, expirationDate_);
119 }
120 if (((bitField0_ & 0x00000004) == 0x00000004)) {
121 output.writeBytes(3, key_);
122 }
123 getUnknownFields().writeTo(output);
124 }
125
126 private int memoizedSerializedSize = -1;
127 public int getSerializedSize() {
128 int size = memoizedSerializedSize;
129 if (size != -1) return size;
130
131 size = 0;
132 if (((bitField0_ & 0x00000001) == 0x00000001)) {
133 size += com.google.protobuf.CodedOutputStream
134 .computeInt32Size(1, id_);
135 }
136 if (((bitField0_ & 0x00000002) == 0x00000002)) {
137 size += com.google.protobuf.CodedOutputStream
138 .computeInt64Size(2, expirationDate_);
139 }
140 if (((bitField0_ & 0x00000004) == 0x00000004)) {
141 size += com.google.protobuf.CodedOutputStream
142 .computeBytesSize(3, key_);
143 }
144 size += getUnknownFields().getSerializedSize();
145 memoizedSerializedSize = size;
146 return size;
147 }
148
149 private static final long serialVersionUID = 0L;
150 @java.lang.Override
151 protected java.lang.Object writeReplace()
152 throws java.io.ObjectStreamException {
153 return super.writeReplace();
154 }
155
156 @java.lang.Override
157 public boolean equals(final java.lang.Object obj) {
158 if (obj == this) {
159 return true;
160 }
161 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey)) {
162 return super.equals(obj);
163 }
164 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey other = (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey) obj;
165
166 boolean result = true;
167 result = result && (hasId() == other.hasId());
168 if (hasId()) {
169 result = result && (getId()
170 == other.getId());
171 }
172 result = result && (hasExpirationDate() == other.hasExpirationDate());
173 if (hasExpirationDate()) {
174 result = result && (getExpirationDate()
175 == other.getExpirationDate());
176 }
177 result = result && (hasKey() == other.hasKey());
178 if (hasKey()) {
179 result = result && getKey()
180 .equals(other.getKey());
181 }
182 result = result &&
183 getUnknownFields().equals(other.getUnknownFields());
184 return result;
185 }
186
187 @java.lang.Override
188 public int hashCode() {
189 int hash = 41;
190 hash = (19 * hash) + getDescriptorForType().hashCode();
191 if (hasId()) {
192 hash = (37 * hash) + ID_FIELD_NUMBER;
193 hash = (53 * hash) + getId();
194 }
195 if (hasExpirationDate()) {
196 hash = (37 * hash) + EXPIRATIONDATE_FIELD_NUMBER;
197 hash = (53 * hash) + hashLong(getExpirationDate());
198 }
199 if (hasKey()) {
200 hash = (37 * hash) + KEY_FIELD_NUMBER;
201 hash = (53 * hash) + getKey().hashCode();
202 }
203 hash = (29 * hash) + getUnknownFields().hashCode();
204 return hash;
205 }
206
207 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey parseFrom(
208 com.google.protobuf.ByteString data)
209 throws com.google.protobuf.InvalidProtocolBufferException {
210 return newBuilder().mergeFrom(data).buildParsed();
211 }
212 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey parseFrom(
213 com.google.protobuf.ByteString data,
214 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
215 throws com.google.protobuf.InvalidProtocolBufferException {
216 return newBuilder().mergeFrom(data, extensionRegistry)
217 .buildParsed();
218 }
219 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey parseFrom(byte[] data)
220 throws com.google.protobuf.InvalidProtocolBufferException {
221 return newBuilder().mergeFrom(data).buildParsed();
222 }
223 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey parseFrom(
224 byte[] data,
225 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
226 throws com.google.protobuf.InvalidProtocolBufferException {
227 return newBuilder().mergeFrom(data, extensionRegistry)
228 .buildParsed();
229 }
230 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey parseFrom(java.io.InputStream input)
231 throws java.io.IOException {
232 return newBuilder().mergeFrom(input).buildParsed();
233 }
234 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey parseFrom(
235 java.io.InputStream input,
236 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
237 throws java.io.IOException {
238 return newBuilder().mergeFrom(input, extensionRegistry)
239 .buildParsed();
240 }
241 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey parseDelimitedFrom(java.io.InputStream input)
242 throws java.io.IOException {
243 Builder builder = newBuilder();
244 if (builder.mergeDelimitedFrom(input)) {
245 return builder.buildParsed();
246 } else {
247 return null;
248 }
249 }
250 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey parseDelimitedFrom(
251 java.io.InputStream input,
252 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
253 throws java.io.IOException {
254 Builder builder = newBuilder();
255 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
256 return builder.buildParsed();
257 } else {
258 return null;
259 }
260 }
261 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey parseFrom(
262 com.google.protobuf.CodedInputStream input)
263 throws java.io.IOException {
264 return newBuilder().mergeFrom(input).buildParsed();
265 }
266 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey parseFrom(
267 com.google.protobuf.CodedInputStream input,
268 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
269 throws java.io.IOException {
270 return newBuilder().mergeFrom(input, extensionRegistry)
271 .buildParsed();
272 }
273
274 public static Builder newBuilder() { return Builder.create(); }
275 public Builder newBuilderForType() { return newBuilder(); }
276 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey prototype) {
277 return newBuilder().mergeFrom(prototype);
278 }
279 public Builder toBuilder() { return newBuilder(this); }
280
281 @java.lang.Override
282 protected Builder newBuilderForType(
283 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
284 Builder builder = new Builder(parent);
285 return builder;
286 }
287 public static final class Builder extends
288 com.google.protobuf.GeneratedMessage.Builder<Builder>
289 implements org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKeyOrBuilder {
290 public static final com.google.protobuf.Descriptors.Descriptor
291 getDescriptor() {
292 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_AuthenticationKey_descriptor;
293 }
294
295 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
296 internalGetFieldAccessorTable() {
297 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_AuthenticationKey_fieldAccessorTable;
298 }
299
300
301 private Builder() {
302 maybeForceBuilderInitialization();
303 }
304
305 private Builder(BuilderParent parent) {
306 super(parent);
307 maybeForceBuilderInitialization();
308 }
309 private void maybeForceBuilderInitialization() {
310 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
311 }
312 }
313 private static Builder create() {
314 return new Builder();
315 }
316
317 public Builder clear() {
318 super.clear();
319 id_ = 0;
320 bitField0_ = (bitField0_ & ~0x00000001);
321 expirationDate_ = 0L;
322 bitField0_ = (bitField0_ & ~0x00000002);
323 key_ = com.google.protobuf.ByteString.EMPTY;
324 bitField0_ = (bitField0_ & ~0x00000004);
325 return this;
326 }
327
328 public Builder clone() {
329 return create().mergeFrom(buildPartial());
330 }
331
332 public com.google.protobuf.Descriptors.Descriptor
333 getDescriptorForType() {
334 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey.getDescriptor();
335 }
336
337 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey getDefaultInstanceForType() {
338 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey.getDefaultInstance();
339 }
340
341 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey build() {
342 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey result = buildPartial();
343 if (!result.isInitialized()) {
344 throw newUninitializedMessageException(result);
345 }
346 return result;
347 }
348
349 private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey buildParsed()
350 throws com.google.protobuf.InvalidProtocolBufferException {
351 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey result = buildPartial();
352 if (!result.isInitialized()) {
353 throw newUninitializedMessageException(
354 result).asInvalidProtocolBufferException();
355 }
356 return result;
357 }
358
359 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey buildPartial() {
360 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey result = new org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey(this);
361 int from_bitField0_ = bitField0_;
362 int to_bitField0_ = 0;
363 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
364 to_bitField0_ |= 0x00000001;
365 }
366 result.id_ = id_;
367 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
368 to_bitField0_ |= 0x00000002;
369 }
370 result.expirationDate_ = expirationDate_;
371 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
372 to_bitField0_ |= 0x00000004;
373 }
374 result.key_ = key_;
375 result.bitField0_ = to_bitField0_;
376 onBuilt();
377 return result;
378 }
379
380 public Builder mergeFrom(com.google.protobuf.Message other) {
381 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey) {
382 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey)other);
383 } else {
384 super.mergeFrom(other);
385 return this;
386 }
387 }
388
389 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey other) {
390 if (other == org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey.getDefaultInstance()) return this;
391 if (other.hasId()) {
392 setId(other.getId());
393 }
394 if (other.hasExpirationDate()) {
395 setExpirationDate(other.getExpirationDate());
396 }
397 if (other.hasKey()) {
398 setKey(other.getKey());
399 }
400 this.mergeUnknownFields(other.getUnknownFields());
401 return this;
402 }
403
404 public final boolean isInitialized() {
405 if (!hasId()) {
406
407 return false;
408 }
409 if (!hasExpirationDate()) {
410
411 return false;
412 }
413 if (!hasKey()) {
414
415 return false;
416 }
417 return true;
418 }
419
420 public Builder mergeFrom(
421 com.google.protobuf.CodedInputStream input,
422 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
423 throws java.io.IOException {
424 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
425 com.google.protobuf.UnknownFieldSet.newBuilder(
426 this.getUnknownFields());
427 while (true) {
428 int tag = input.readTag();
429 switch (tag) {
430 case 0:
431 this.setUnknownFields(unknownFields.build());
432 onChanged();
433 return this;
434 default: {
435 if (!parseUnknownField(input, unknownFields,
436 extensionRegistry, tag)) {
437 this.setUnknownFields(unknownFields.build());
438 onChanged();
439 return this;
440 }
441 break;
442 }
443 case 8: {
444 bitField0_ |= 0x00000001;
445 id_ = input.readInt32();
446 break;
447 }
448 case 16: {
449 bitField0_ |= 0x00000002;
450 expirationDate_ = input.readInt64();
451 break;
452 }
453 case 26: {
454 bitField0_ |= 0x00000004;
455 key_ = input.readBytes();
456 break;
457 }
458 }
459 }
460 }
461
462 private int bitField0_;
463
464
465 private int id_ ;
466 public boolean hasId() {
467 return ((bitField0_ & 0x00000001) == 0x00000001);
468 }
469 public int getId() {
470 return id_;
471 }
472 public Builder setId(int value) {
473 bitField0_ |= 0x00000001;
474 id_ = value;
475 onChanged();
476 return this;
477 }
478 public Builder clearId() {
479 bitField0_ = (bitField0_ & ~0x00000001);
480 id_ = 0;
481 onChanged();
482 return this;
483 }
484
485
486 private long expirationDate_ ;
487 public boolean hasExpirationDate() {
488 return ((bitField0_ & 0x00000002) == 0x00000002);
489 }
490 public long getExpirationDate() {
491 return expirationDate_;
492 }
493 public Builder setExpirationDate(long value) {
494 bitField0_ |= 0x00000002;
495 expirationDate_ = value;
496 onChanged();
497 return this;
498 }
499 public Builder clearExpirationDate() {
500 bitField0_ = (bitField0_ & ~0x00000002);
501 expirationDate_ = 0L;
502 onChanged();
503 return this;
504 }
505
506
507 private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
508 public boolean hasKey() {
509 return ((bitField0_ & 0x00000004) == 0x00000004);
510 }
511 public com.google.protobuf.ByteString getKey() {
512 return key_;
513 }
514 public Builder setKey(com.google.protobuf.ByteString value) {
515 if (value == null) {
516 throw new NullPointerException();
517 }
518 bitField0_ |= 0x00000004;
519 key_ = value;
520 onChanged();
521 return this;
522 }
523 public Builder clearKey() {
524 bitField0_ = (bitField0_ & ~0x00000004);
525 key_ = getDefaultInstance().getKey();
526 onChanged();
527 return this;
528 }
529
530
531 }
532
533 static {
534 defaultInstance = new AuthenticationKey(true);
535 defaultInstance.initFields();
536 }
537
538
539 }
540
541 public interface TokenIdentifierOrBuilder
542 extends com.google.protobuf.MessageOrBuilder {
543
544
545 boolean hasKind();
546 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind getKind();
547
548
549 boolean hasUsername();
550 com.google.protobuf.ByteString getUsername();
551
552
553 boolean hasKeyId();
554 int getKeyId();
555
556
557 boolean hasIssueDate();
558 long getIssueDate();
559
560
561 boolean hasExpirationDate();
562 long getExpirationDate();
563
564
565 boolean hasSequenceNumber();
566 long getSequenceNumber();
567 }
568 public static final class TokenIdentifier extends
569 com.google.protobuf.GeneratedMessage
570 implements TokenIdentifierOrBuilder {
571
572 private TokenIdentifier(Builder builder) {
573 super(builder);
574 }
575 private TokenIdentifier(boolean noInit) {}
576
577 private static final TokenIdentifier defaultInstance;
578 public static TokenIdentifier getDefaultInstance() {
579 return defaultInstance;
580 }
581
582 public TokenIdentifier getDefaultInstanceForType() {
583 return defaultInstance;
584 }
585
586 public static final com.google.protobuf.Descriptors.Descriptor
587 getDescriptor() {
588 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenIdentifier_descriptor;
589 }
590
591 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
592 internalGetFieldAccessorTable() {
593 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenIdentifier_fieldAccessorTable;
594 }
595
596 public enum Kind
597 implements com.google.protobuf.ProtocolMessageEnum {
598 HBASE_AUTH_TOKEN(0, 0),
599 ;
600
601 public static final int HBASE_AUTH_TOKEN_VALUE = 0;
602
603
604 public final int getNumber() { return value; }
605
606 public static Kind valueOf(int value) {
607 switch (value) {
608 case 0: return HBASE_AUTH_TOKEN;
609 default: return null;
610 }
611 }
612
613 public static com.google.protobuf.Internal.EnumLiteMap<Kind>
614 internalGetValueMap() {
615 return internalValueMap;
616 }
617 private static com.google.protobuf.Internal.EnumLiteMap<Kind>
618 internalValueMap =
619 new com.google.protobuf.Internal.EnumLiteMap<Kind>() {
620 public Kind findValueByNumber(int number) {
621 return Kind.valueOf(number);
622 }
623 };
624
625 public final com.google.protobuf.Descriptors.EnumValueDescriptor
626 getValueDescriptor() {
627 return getDescriptor().getValues().get(index);
628 }
629 public final com.google.protobuf.Descriptors.EnumDescriptor
630 getDescriptorForType() {
631 return getDescriptor();
632 }
633 public static final com.google.protobuf.Descriptors.EnumDescriptor
634 getDescriptor() {
635 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.getDescriptor().getEnumTypes().get(0);
636 }
637
638 private static final Kind[] VALUES = {
639 HBASE_AUTH_TOKEN,
640 };
641
642 public static Kind valueOf(
643 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
644 if (desc.getType() != getDescriptor()) {
645 throw new java.lang.IllegalArgumentException(
646 "EnumValueDescriptor is not for this type.");
647 }
648 return VALUES[desc.getIndex()];
649 }
650
651 private final int index;
652 private final int value;
653
654 private Kind(int index, int value) {
655 this.index = index;
656 this.value = value;
657 }
658
659
660 }
661
662 private int bitField0_;
663
664 public static final int KIND_FIELD_NUMBER = 1;
665 private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind kind_;
666 public boolean hasKind() {
667 return ((bitField0_ & 0x00000001) == 0x00000001);
668 }
669 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind getKind() {
670 return kind_;
671 }
672
673
674 public static final int USERNAME_FIELD_NUMBER = 2;
675 private com.google.protobuf.ByteString username_;
676 public boolean hasUsername() {
677 return ((bitField0_ & 0x00000002) == 0x00000002);
678 }
679 public com.google.protobuf.ByteString getUsername() {
680 return username_;
681 }
682
683
684 public static final int KEYID_FIELD_NUMBER = 3;
685 private int keyId_;
686 public boolean hasKeyId() {
687 return ((bitField0_ & 0x00000004) == 0x00000004);
688 }
689 public int getKeyId() {
690 return keyId_;
691 }
692
693
694 public static final int ISSUEDATE_FIELD_NUMBER = 4;
695 private long issueDate_;
696 public boolean hasIssueDate() {
697 return ((bitField0_ & 0x00000008) == 0x00000008);
698 }
699 public long getIssueDate() {
700 return issueDate_;
701 }
702
703
704 public static final int EXPIRATIONDATE_FIELD_NUMBER = 5;
705 private long expirationDate_;
706 public boolean hasExpirationDate() {
707 return ((bitField0_ & 0x00000010) == 0x00000010);
708 }
709 public long getExpirationDate() {
710 return expirationDate_;
711 }
712
713
714 public static final int SEQUENCENUMBER_FIELD_NUMBER = 6;
715 private long sequenceNumber_;
716 public boolean hasSequenceNumber() {
717 return ((bitField0_ & 0x00000020) == 0x00000020);
718 }
719 public long getSequenceNumber() {
720 return sequenceNumber_;
721 }
722
723 private void initFields() {
724 kind_ = org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind.HBASE_AUTH_TOKEN;
725 username_ = com.google.protobuf.ByteString.EMPTY;
726 keyId_ = 0;
727 issueDate_ = 0L;
728 expirationDate_ = 0L;
729 sequenceNumber_ = 0L;
730 }
731 private byte memoizedIsInitialized = -1;
732 public final boolean isInitialized() {
733 byte isInitialized = memoizedIsInitialized;
734 if (isInitialized != -1) return isInitialized == 1;
735
736 if (!hasKind()) {
737 memoizedIsInitialized = 0;
738 return false;
739 }
740 if (!hasUsername()) {
741 memoizedIsInitialized = 0;
742 return false;
743 }
744 if (!hasKeyId()) {
745 memoizedIsInitialized = 0;
746 return false;
747 }
748 memoizedIsInitialized = 1;
749 return true;
750 }
751
752 public void writeTo(com.google.protobuf.CodedOutputStream output)
753 throws java.io.IOException {
754 getSerializedSize();
755 if (((bitField0_ & 0x00000001) == 0x00000001)) {
756 output.writeEnum(1, kind_.getNumber());
757 }
758 if (((bitField0_ & 0x00000002) == 0x00000002)) {
759 output.writeBytes(2, username_);
760 }
761 if (((bitField0_ & 0x00000004) == 0x00000004)) {
762 output.writeInt32(3, keyId_);
763 }
764 if (((bitField0_ & 0x00000008) == 0x00000008)) {
765 output.writeInt64(4, issueDate_);
766 }
767 if (((bitField0_ & 0x00000010) == 0x00000010)) {
768 output.writeInt64(5, expirationDate_);
769 }
770 if (((bitField0_ & 0x00000020) == 0x00000020)) {
771 output.writeInt64(6, sequenceNumber_);
772 }
773 getUnknownFields().writeTo(output);
774 }
775
776 private int memoizedSerializedSize = -1;
777 public int getSerializedSize() {
778 int size = memoizedSerializedSize;
779 if (size != -1) return size;
780
781 size = 0;
782 if (((bitField0_ & 0x00000001) == 0x00000001)) {
783 size += com.google.protobuf.CodedOutputStream
784 .computeEnumSize(1, kind_.getNumber());
785 }
786 if (((bitField0_ & 0x00000002) == 0x00000002)) {
787 size += com.google.protobuf.CodedOutputStream
788 .computeBytesSize(2, username_);
789 }
790 if (((bitField0_ & 0x00000004) == 0x00000004)) {
791 size += com.google.protobuf.CodedOutputStream
792 .computeInt32Size(3, keyId_);
793 }
794 if (((bitField0_ & 0x00000008) == 0x00000008)) {
795 size += com.google.protobuf.CodedOutputStream
796 .computeInt64Size(4, issueDate_);
797 }
798 if (((bitField0_ & 0x00000010) == 0x00000010)) {
799 size += com.google.protobuf.CodedOutputStream
800 .computeInt64Size(5, expirationDate_);
801 }
802 if (((bitField0_ & 0x00000020) == 0x00000020)) {
803 size += com.google.protobuf.CodedOutputStream
804 .computeInt64Size(6, sequenceNumber_);
805 }
806 size += getUnknownFields().getSerializedSize();
807 memoizedSerializedSize = size;
808 return size;
809 }
810
811 private static final long serialVersionUID = 0L;
812 @java.lang.Override
813 protected java.lang.Object writeReplace()
814 throws java.io.ObjectStreamException {
815 return super.writeReplace();
816 }
817
818 @java.lang.Override
819 public boolean equals(final java.lang.Object obj) {
820 if (obj == this) {
821 return true;
822 }
823 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier)) {
824 return super.equals(obj);
825 }
826 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier other = (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier) obj;
827
828 boolean result = true;
829 result = result && (hasKind() == other.hasKind());
830 if (hasKind()) {
831 result = result &&
832 (getKind() == other.getKind());
833 }
834 result = result && (hasUsername() == other.hasUsername());
835 if (hasUsername()) {
836 result = result && getUsername()
837 .equals(other.getUsername());
838 }
839 result = result && (hasKeyId() == other.hasKeyId());
840 if (hasKeyId()) {
841 result = result && (getKeyId()
842 == other.getKeyId());
843 }
844 result = result && (hasIssueDate() == other.hasIssueDate());
845 if (hasIssueDate()) {
846 result = result && (getIssueDate()
847 == other.getIssueDate());
848 }
849 result = result && (hasExpirationDate() == other.hasExpirationDate());
850 if (hasExpirationDate()) {
851 result = result && (getExpirationDate()
852 == other.getExpirationDate());
853 }
854 result = result && (hasSequenceNumber() == other.hasSequenceNumber());
855 if (hasSequenceNumber()) {
856 result = result && (getSequenceNumber()
857 == other.getSequenceNumber());
858 }
859 result = result &&
860 getUnknownFields().equals(other.getUnknownFields());
861 return result;
862 }
863
864 @java.lang.Override
865 public int hashCode() {
866 int hash = 41;
867 hash = (19 * hash) + getDescriptorForType().hashCode();
868 if (hasKind()) {
869 hash = (37 * hash) + KIND_FIELD_NUMBER;
870 hash = (53 * hash) + hashEnum(getKind());
871 }
872 if (hasUsername()) {
873 hash = (37 * hash) + USERNAME_FIELD_NUMBER;
874 hash = (53 * hash) + getUsername().hashCode();
875 }
876 if (hasKeyId()) {
877 hash = (37 * hash) + KEYID_FIELD_NUMBER;
878 hash = (53 * hash) + getKeyId();
879 }
880 if (hasIssueDate()) {
881 hash = (37 * hash) + ISSUEDATE_FIELD_NUMBER;
882 hash = (53 * hash) + hashLong(getIssueDate());
883 }
884 if (hasExpirationDate()) {
885 hash = (37 * hash) + EXPIRATIONDATE_FIELD_NUMBER;
886 hash = (53 * hash) + hashLong(getExpirationDate());
887 }
888 if (hasSequenceNumber()) {
889 hash = (37 * hash) + SEQUENCENUMBER_FIELD_NUMBER;
890 hash = (53 * hash) + hashLong(getSequenceNumber());
891 }
892 hash = (29 * hash) + getUnknownFields().hashCode();
893 return hash;
894 }
895
896 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier parseFrom(
897 com.google.protobuf.ByteString data)
898 throws com.google.protobuf.InvalidProtocolBufferException {
899 return newBuilder().mergeFrom(data).buildParsed();
900 }
901 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier parseFrom(
902 com.google.protobuf.ByteString data,
903 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
904 throws com.google.protobuf.InvalidProtocolBufferException {
905 return newBuilder().mergeFrom(data, extensionRegistry)
906 .buildParsed();
907 }
908 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier parseFrom(byte[] data)
909 throws com.google.protobuf.InvalidProtocolBufferException {
910 return newBuilder().mergeFrom(data).buildParsed();
911 }
912 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier parseFrom(
913 byte[] data,
914 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
915 throws com.google.protobuf.InvalidProtocolBufferException {
916 return newBuilder().mergeFrom(data, extensionRegistry)
917 .buildParsed();
918 }
919 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier parseFrom(java.io.InputStream input)
920 throws java.io.IOException {
921 return newBuilder().mergeFrom(input).buildParsed();
922 }
923 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier parseFrom(
924 java.io.InputStream input,
925 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
926 throws java.io.IOException {
927 return newBuilder().mergeFrom(input, extensionRegistry)
928 .buildParsed();
929 }
930 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier parseDelimitedFrom(java.io.InputStream input)
931 throws java.io.IOException {
932 Builder builder = newBuilder();
933 if (builder.mergeDelimitedFrom(input)) {
934 return builder.buildParsed();
935 } else {
936 return null;
937 }
938 }
939 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier parseDelimitedFrom(
940 java.io.InputStream input,
941 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
942 throws java.io.IOException {
943 Builder builder = newBuilder();
944 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
945 return builder.buildParsed();
946 } else {
947 return null;
948 }
949 }
950 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier parseFrom(
951 com.google.protobuf.CodedInputStream input)
952 throws java.io.IOException {
953 return newBuilder().mergeFrom(input).buildParsed();
954 }
955 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier parseFrom(
956 com.google.protobuf.CodedInputStream input,
957 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
958 throws java.io.IOException {
959 return newBuilder().mergeFrom(input, extensionRegistry)
960 .buildParsed();
961 }
962
963 public static Builder newBuilder() { return Builder.create(); }
964 public Builder newBuilderForType() { return newBuilder(); }
965 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier prototype) {
966 return newBuilder().mergeFrom(prototype);
967 }
968 public Builder toBuilder() { return newBuilder(this); }
969
970 @java.lang.Override
971 protected Builder newBuilderForType(
972 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
973 Builder builder = new Builder(parent);
974 return builder;
975 }
976 public static final class Builder extends
977 com.google.protobuf.GeneratedMessage.Builder<Builder>
978 implements org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifierOrBuilder {
979 public static final com.google.protobuf.Descriptors.Descriptor
980 getDescriptor() {
981 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenIdentifier_descriptor;
982 }
983
984 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
985 internalGetFieldAccessorTable() {
986 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenIdentifier_fieldAccessorTable;
987 }
988
989
990 private Builder() {
991 maybeForceBuilderInitialization();
992 }
993
994 private Builder(BuilderParent parent) {
995 super(parent);
996 maybeForceBuilderInitialization();
997 }
998 private void maybeForceBuilderInitialization() {
999 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1000 }
1001 }
1002 private static Builder create() {
1003 return new Builder();
1004 }
1005
1006 public Builder clear() {
1007 super.clear();
1008 kind_ = org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind.HBASE_AUTH_TOKEN;
1009 bitField0_ = (bitField0_ & ~0x00000001);
1010 username_ = com.google.protobuf.ByteString.EMPTY;
1011 bitField0_ = (bitField0_ & ~0x00000002);
1012 keyId_ = 0;
1013 bitField0_ = (bitField0_ & ~0x00000004);
1014 issueDate_ = 0L;
1015 bitField0_ = (bitField0_ & ~0x00000008);
1016 expirationDate_ = 0L;
1017 bitField0_ = (bitField0_ & ~0x00000010);
1018 sequenceNumber_ = 0L;
1019 bitField0_ = (bitField0_ & ~0x00000020);
1020 return this;
1021 }
1022
1023 public Builder clone() {
1024 return create().mergeFrom(buildPartial());
1025 }
1026
1027 public com.google.protobuf.Descriptors.Descriptor
1028 getDescriptorForType() {
1029 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.getDescriptor();
1030 }
1031
1032 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier getDefaultInstanceForType() {
1033 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.getDefaultInstance();
1034 }
1035
1036 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier build() {
1037 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier result = buildPartial();
1038 if (!result.isInitialized()) {
1039 throw newUninitializedMessageException(result);
1040 }
1041 return result;
1042 }
1043
1044 private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier buildParsed()
1045 throws com.google.protobuf.InvalidProtocolBufferException {
1046 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier result = buildPartial();
1047 if (!result.isInitialized()) {
1048 throw newUninitializedMessageException(
1049 result).asInvalidProtocolBufferException();
1050 }
1051 return result;
1052 }
1053
1054 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier buildPartial() {
1055 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier result = new org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier(this);
1056 int from_bitField0_ = bitField0_;
1057 int to_bitField0_ = 0;
1058 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1059 to_bitField0_ |= 0x00000001;
1060 }
1061 result.kind_ = kind_;
1062 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1063 to_bitField0_ |= 0x00000002;
1064 }
1065 result.username_ = username_;
1066 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1067 to_bitField0_ |= 0x00000004;
1068 }
1069 result.keyId_ = keyId_;
1070 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
1071 to_bitField0_ |= 0x00000008;
1072 }
1073 result.issueDate_ = issueDate_;
1074 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
1075 to_bitField0_ |= 0x00000010;
1076 }
1077 result.expirationDate_ = expirationDate_;
1078 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
1079 to_bitField0_ |= 0x00000020;
1080 }
1081 result.sequenceNumber_ = sequenceNumber_;
1082 result.bitField0_ = to_bitField0_;
1083 onBuilt();
1084 return result;
1085 }
1086
1087 public Builder mergeFrom(com.google.protobuf.Message other) {
1088 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier) {
1089 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier)other);
1090 } else {
1091 super.mergeFrom(other);
1092 return this;
1093 }
1094 }
1095
1096 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier other) {
1097 if (other == org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.getDefaultInstance()) return this;
1098 if (other.hasKind()) {
1099 setKind(other.getKind());
1100 }
1101 if (other.hasUsername()) {
1102 setUsername(other.getUsername());
1103 }
1104 if (other.hasKeyId()) {
1105 setKeyId(other.getKeyId());
1106 }
1107 if (other.hasIssueDate()) {
1108 setIssueDate(other.getIssueDate());
1109 }
1110 if (other.hasExpirationDate()) {
1111 setExpirationDate(other.getExpirationDate());
1112 }
1113 if (other.hasSequenceNumber()) {
1114 setSequenceNumber(other.getSequenceNumber());
1115 }
1116 this.mergeUnknownFields(other.getUnknownFields());
1117 return this;
1118 }
1119
1120 public final boolean isInitialized() {
1121 if (!hasKind()) {
1122
1123 return false;
1124 }
1125 if (!hasUsername()) {
1126
1127 return false;
1128 }
1129 if (!hasKeyId()) {
1130
1131 return false;
1132 }
1133 return true;
1134 }
1135
1136 public Builder mergeFrom(
1137 com.google.protobuf.CodedInputStream input,
1138 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1139 throws java.io.IOException {
1140 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1141 com.google.protobuf.UnknownFieldSet.newBuilder(
1142 this.getUnknownFields());
1143 while (true) {
1144 int tag = input.readTag();
1145 switch (tag) {
1146 case 0:
1147 this.setUnknownFields(unknownFields.build());
1148 onChanged();
1149 return this;
1150 default: {
1151 if (!parseUnknownField(input, unknownFields,
1152 extensionRegistry, tag)) {
1153 this.setUnknownFields(unknownFields.build());
1154 onChanged();
1155 return this;
1156 }
1157 break;
1158 }
1159 case 8: {
1160 int rawValue = input.readEnum();
1161 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind value = org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind.valueOf(rawValue);
1162 if (value == null) {
1163 unknownFields.mergeVarintField(1, rawValue);
1164 } else {
1165 bitField0_ |= 0x00000001;
1166 kind_ = value;
1167 }
1168 break;
1169 }
1170 case 18: {
1171 bitField0_ |= 0x00000002;
1172 username_ = input.readBytes();
1173 break;
1174 }
1175 case 24: {
1176 bitField0_ |= 0x00000004;
1177 keyId_ = input.readInt32();
1178 break;
1179 }
1180 case 32: {
1181 bitField0_ |= 0x00000008;
1182 issueDate_ = input.readInt64();
1183 break;
1184 }
1185 case 40: {
1186 bitField0_ |= 0x00000010;
1187 expirationDate_ = input.readInt64();
1188 break;
1189 }
1190 case 48: {
1191 bitField0_ |= 0x00000020;
1192 sequenceNumber_ = input.readInt64();
1193 break;
1194 }
1195 }
1196 }
1197 }
1198
1199 private int bitField0_;
1200
1201
1202 private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind kind_ = org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind.HBASE_AUTH_TOKEN;
1203 public boolean hasKind() {
1204 return ((bitField0_ & 0x00000001) == 0x00000001);
1205 }
1206 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind getKind() {
1207 return kind_;
1208 }
1209 public Builder setKind(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind value) {
1210 if (value == null) {
1211 throw new NullPointerException();
1212 }
1213 bitField0_ |= 0x00000001;
1214 kind_ = value;
1215 onChanged();
1216 return this;
1217 }
1218 public Builder clearKind() {
1219 bitField0_ = (bitField0_ & ~0x00000001);
1220 kind_ = org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind.HBASE_AUTH_TOKEN;
1221 onChanged();
1222 return this;
1223 }
1224
1225
1226 private com.google.protobuf.ByteString username_ = com.google.protobuf.ByteString.EMPTY;
1227 public boolean hasUsername() {
1228 return ((bitField0_ & 0x00000002) == 0x00000002);
1229 }
1230 public com.google.protobuf.ByteString getUsername() {
1231 return username_;
1232 }
1233 public Builder setUsername(com.google.protobuf.ByteString value) {
1234 if (value == null) {
1235 throw new NullPointerException();
1236 }
1237 bitField0_ |= 0x00000002;
1238 username_ = value;
1239 onChanged();
1240 return this;
1241 }
1242 public Builder clearUsername() {
1243 bitField0_ = (bitField0_ & ~0x00000002);
1244 username_ = getDefaultInstance().getUsername();
1245 onChanged();
1246 return this;
1247 }
1248
1249
1250 private int keyId_ ;
1251 public boolean hasKeyId() {
1252 return ((bitField0_ & 0x00000004) == 0x00000004);
1253 }
1254 public int getKeyId() {
1255 return keyId_;
1256 }
1257 public Builder setKeyId(int value) {
1258 bitField0_ |= 0x00000004;
1259 keyId_ = value;
1260 onChanged();
1261 return this;
1262 }
1263 public Builder clearKeyId() {
1264 bitField0_ = (bitField0_ & ~0x00000004);
1265 keyId_ = 0;
1266 onChanged();
1267 return this;
1268 }
1269
1270
1271 private long issueDate_ ;
1272 public boolean hasIssueDate() {
1273 return ((bitField0_ & 0x00000008) == 0x00000008);
1274 }
1275 public long getIssueDate() {
1276 return issueDate_;
1277 }
1278 public Builder setIssueDate(long value) {
1279 bitField0_ |= 0x00000008;
1280 issueDate_ = value;
1281 onChanged();
1282 return this;
1283 }
1284 public Builder clearIssueDate() {
1285 bitField0_ = (bitField0_ & ~0x00000008);
1286 issueDate_ = 0L;
1287 onChanged();
1288 return this;
1289 }
1290
1291
1292 private long expirationDate_ ;
1293 public boolean hasExpirationDate() {
1294 return ((bitField0_ & 0x00000010) == 0x00000010);
1295 }
1296 public long getExpirationDate() {
1297 return expirationDate_;
1298 }
1299 public Builder setExpirationDate(long value) {
1300 bitField0_ |= 0x00000010;
1301 expirationDate_ = value;
1302 onChanged();
1303 return this;
1304 }
1305 public Builder clearExpirationDate() {
1306 bitField0_ = (bitField0_ & ~0x00000010);
1307 expirationDate_ = 0L;
1308 onChanged();
1309 return this;
1310 }
1311
1312
1313 private long sequenceNumber_ ;
1314 public boolean hasSequenceNumber() {
1315 return ((bitField0_ & 0x00000020) == 0x00000020);
1316 }
1317 public long getSequenceNumber() {
1318 return sequenceNumber_;
1319 }
1320 public Builder setSequenceNumber(long value) {
1321 bitField0_ |= 0x00000020;
1322 sequenceNumber_ = value;
1323 onChanged();
1324 return this;
1325 }
1326 public Builder clearSequenceNumber() {
1327 bitField0_ = (bitField0_ & ~0x00000020);
1328 sequenceNumber_ = 0L;
1329 onChanged();
1330 return this;
1331 }
1332
1333
1334 }
1335
1336 static {
1337 defaultInstance = new TokenIdentifier(true);
1338 defaultInstance.initFields();
1339 }
1340
1341
1342 }
1343
1344 public interface TokenOrBuilder
1345 extends com.google.protobuf.MessageOrBuilder {
1346
1347
1348 boolean hasIdentifier();
1349 com.google.protobuf.ByteString getIdentifier();
1350
1351
1352 boolean hasPassword();
1353 com.google.protobuf.ByteString getPassword();
1354
1355
1356 boolean hasService();
1357 com.google.protobuf.ByteString getService();
1358 }
1359 public static final class Token extends
1360 com.google.protobuf.GeneratedMessage
1361 implements TokenOrBuilder {
1362
1363 private Token(Builder builder) {
1364 super(builder);
1365 }
1366 private Token(boolean noInit) {}
1367
1368 private static final Token defaultInstance;
1369 public static Token getDefaultInstance() {
1370 return defaultInstance;
1371 }
1372
1373 public Token getDefaultInstanceForType() {
1374 return defaultInstance;
1375 }
1376
1377 public static final com.google.protobuf.Descriptors.Descriptor
1378 getDescriptor() {
1379 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_Token_descriptor;
1380 }
1381
1382 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1383 internalGetFieldAccessorTable() {
1384 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_Token_fieldAccessorTable;
1385 }
1386
1387 private int bitField0_;
1388
1389 public static final int IDENTIFIER_FIELD_NUMBER = 1;
1390 private com.google.protobuf.ByteString identifier_;
1391 public boolean hasIdentifier() {
1392 return ((bitField0_ & 0x00000001) == 0x00000001);
1393 }
1394 public com.google.protobuf.ByteString getIdentifier() {
1395 return identifier_;
1396 }
1397
1398
1399 public static final int PASSWORD_FIELD_NUMBER = 2;
1400 private com.google.protobuf.ByteString password_;
1401 public boolean hasPassword() {
1402 return ((bitField0_ & 0x00000002) == 0x00000002);
1403 }
1404 public com.google.protobuf.ByteString getPassword() {
1405 return password_;
1406 }
1407
1408
1409 public static final int SERVICE_FIELD_NUMBER = 3;
1410 private com.google.protobuf.ByteString service_;
1411 public boolean hasService() {
1412 return ((bitField0_ & 0x00000004) == 0x00000004);
1413 }
1414 public com.google.protobuf.ByteString getService() {
1415 return service_;
1416 }
1417
1418 private void initFields() {
1419 identifier_ = com.google.protobuf.ByteString.EMPTY;
1420 password_ = com.google.protobuf.ByteString.EMPTY;
1421 service_ = com.google.protobuf.ByteString.EMPTY;
1422 }
1423 private byte memoizedIsInitialized = -1;
1424 public final boolean isInitialized() {
1425 byte isInitialized = memoizedIsInitialized;
1426 if (isInitialized != -1) return isInitialized == 1;
1427
1428 memoizedIsInitialized = 1;
1429 return true;
1430 }
1431
1432 public void writeTo(com.google.protobuf.CodedOutputStream output)
1433 throws java.io.IOException {
1434 getSerializedSize();
1435 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1436 output.writeBytes(1, identifier_);
1437 }
1438 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1439 output.writeBytes(2, password_);
1440 }
1441 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1442 output.writeBytes(3, service_);
1443 }
1444 getUnknownFields().writeTo(output);
1445 }
1446
1447 private int memoizedSerializedSize = -1;
1448 public int getSerializedSize() {
1449 int size = memoizedSerializedSize;
1450 if (size != -1) return size;
1451
1452 size = 0;
1453 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1454 size += com.google.protobuf.CodedOutputStream
1455 .computeBytesSize(1, identifier_);
1456 }
1457 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1458 size += com.google.protobuf.CodedOutputStream
1459 .computeBytesSize(2, password_);
1460 }
1461 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1462 size += com.google.protobuf.CodedOutputStream
1463 .computeBytesSize(3, service_);
1464 }
1465 size += getUnknownFields().getSerializedSize();
1466 memoizedSerializedSize = size;
1467 return size;
1468 }
1469
1470 private static final long serialVersionUID = 0L;
1471 @java.lang.Override
1472 protected java.lang.Object writeReplace()
1473 throws java.io.ObjectStreamException {
1474 return super.writeReplace();
1475 }
1476
1477 @java.lang.Override
1478 public boolean equals(final java.lang.Object obj) {
1479 if (obj == this) {
1480 return true;
1481 }
1482 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token)) {
1483 return super.equals(obj);
1484 }
1485 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token other = (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token) obj;
1486
1487 boolean result = true;
1488 result = result && (hasIdentifier() == other.hasIdentifier());
1489 if (hasIdentifier()) {
1490 result = result && getIdentifier()
1491 .equals(other.getIdentifier());
1492 }
1493 result = result && (hasPassword() == other.hasPassword());
1494 if (hasPassword()) {
1495 result = result && getPassword()
1496 .equals(other.getPassword());
1497 }
1498 result = result && (hasService() == other.hasService());
1499 if (hasService()) {
1500 result = result && getService()
1501 .equals(other.getService());
1502 }
1503 result = result &&
1504 getUnknownFields().equals(other.getUnknownFields());
1505 return result;
1506 }
1507
1508 @java.lang.Override
1509 public int hashCode() {
1510 int hash = 41;
1511 hash = (19 * hash) + getDescriptorForType().hashCode();
1512 if (hasIdentifier()) {
1513 hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER;
1514 hash = (53 * hash) + getIdentifier().hashCode();
1515 }
1516 if (hasPassword()) {
1517 hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
1518 hash = (53 * hash) + getPassword().hashCode();
1519 }
1520 if (hasService()) {
1521 hash = (37 * hash) + SERVICE_FIELD_NUMBER;
1522 hash = (53 * hash) + getService().hashCode();
1523 }
1524 hash = (29 * hash) + getUnknownFields().hashCode();
1525 return hash;
1526 }
1527
1528 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token parseFrom(
1529 com.google.protobuf.ByteString data)
1530 throws com.google.protobuf.InvalidProtocolBufferException {
1531 return newBuilder().mergeFrom(data).buildParsed();
1532 }
1533 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token parseFrom(
1534 com.google.protobuf.ByteString data,
1535 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1536 throws com.google.protobuf.InvalidProtocolBufferException {
1537 return newBuilder().mergeFrom(data, extensionRegistry)
1538 .buildParsed();
1539 }
1540 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token parseFrom(byte[] data)
1541 throws com.google.protobuf.InvalidProtocolBufferException {
1542 return newBuilder().mergeFrom(data).buildParsed();
1543 }
1544 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token parseFrom(
1545 byte[] data,
1546 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1547 throws com.google.protobuf.InvalidProtocolBufferException {
1548 return newBuilder().mergeFrom(data, extensionRegistry)
1549 .buildParsed();
1550 }
1551 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token parseFrom(java.io.InputStream input)
1552 throws java.io.IOException {
1553 return newBuilder().mergeFrom(input).buildParsed();
1554 }
1555 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token parseFrom(
1556 java.io.InputStream input,
1557 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1558 throws java.io.IOException {
1559 return newBuilder().mergeFrom(input, extensionRegistry)
1560 .buildParsed();
1561 }
1562 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token parseDelimitedFrom(java.io.InputStream input)
1563 throws java.io.IOException {
1564 Builder builder = newBuilder();
1565 if (builder.mergeDelimitedFrom(input)) {
1566 return builder.buildParsed();
1567 } else {
1568 return null;
1569 }
1570 }
1571 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token parseDelimitedFrom(
1572 java.io.InputStream input,
1573 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1574 throws java.io.IOException {
1575 Builder builder = newBuilder();
1576 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
1577 return builder.buildParsed();
1578 } else {
1579 return null;
1580 }
1581 }
1582 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token parseFrom(
1583 com.google.protobuf.CodedInputStream input)
1584 throws java.io.IOException {
1585 return newBuilder().mergeFrom(input).buildParsed();
1586 }
1587 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token parseFrom(
1588 com.google.protobuf.CodedInputStream input,
1589 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1590 throws java.io.IOException {
1591 return newBuilder().mergeFrom(input, extensionRegistry)
1592 .buildParsed();
1593 }
1594
1595 public static Builder newBuilder() { return Builder.create(); }
1596 public Builder newBuilderForType() { return newBuilder(); }
1597 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token prototype) {
1598 return newBuilder().mergeFrom(prototype);
1599 }
1600 public Builder toBuilder() { return newBuilder(this); }
1601
1602 @java.lang.Override
1603 protected Builder newBuilderForType(
1604 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1605 Builder builder = new Builder(parent);
1606 return builder;
1607 }
1608 public static final class Builder extends
1609 com.google.protobuf.GeneratedMessage.Builder<Builder>
1610 implements org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenOrBuilder {
1611 public static final com.google.protobuf.Descriptors.Descriptor
1612 getDescriptor() {
1613 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_Token_descriptor;
1614 }
1615
1616 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1617 internalGetFieldAccessorTable() {
1618 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_Token_fieldAccessorTable;
1619 }
1620
1621
1622 private Builder() {
1623 maybeForceBuilderInitialization();
1624 }
1625
1626 private Builder(BuilderParent parent) {
1627 super(parent);
1628 maybeForceBuilderInitialization();
1629 }
1630 private void maybeForceBuilderInitialization() {
1631 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1632 }
1633 }
1634 private static Builder create() {
1635 return new Builder();
1636 }
1637
1638 public Builder clear() {
1639 super.clear();
1640 identifier_ = com.google.protobuf.ByteString.EMPTY;
1641 bitField0_ = (bitField0_ & ~0x00000001);
1642 password_ = com.google.protobuf.ByteString.EMPTY;
1643 bitField0_ = (bitField0_ & ~0x00000002);
1644 service_ = com.google.protobuf.ByteString.EMPTY;
1645 bitField0_ = (bitField0_ & ~0x00000004);
1646 return this;
1647 }
1648
1649 public Builder clone() {
1650 return create().mergeFrom(buildPartial());
1651 }
1652
1653 public com.google.protobuf.Descriptors.Descriptor
1654 getDescriptorForType() {
1655 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.getDescriptor();
1656 }
1657
1658 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token getDefaultInstanceForType() {
1659 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.getDefaultInstance();
1660 }
1661
1662 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token build() {
1663 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token result = buildPartial();
1664 if (!result.isInitialized()) {
1665 throw newUninitializedMessageException(result);
1666 }
1667 return result;
1668 }
1669
1670 private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token buildParsed()
1671 throws com.google.protobuf.InvalidProtocolBufferException {
1672 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token result = buildPartial();
1673 if (!result.isInitialized()) {
1674 throw newUninitializedMessageException(
1675 result).asInvalidProtocolBufferException();
1676 }
1677 return result;
1678 }
1679
1680 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token buildPartial() {
1681 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token result = new org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token(this);
1682 int from_bitField0_ = bitField0_;
1683 int to_bitField0_ = 0;
1684 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1685 to_bitField0_ |= 0x00000001;
1686 }
1687 result.identifier_ = identifier_;
1688 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1689 to_bitField0_ |= 0x00000002;
1690 }
1691 result.password_ = password_;
1692 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1693 to_bitField0_ |= 0x00000004;
1694 }
1695 result.service_ = service_;
1696 result.bitField0_ = to_bitField0_;
1697 onBuilt();
1698 return result;
1699 }
1700
1701 public Builder mergeFrom(com.google.protobuf.Message other) {
1702 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token) {
1703 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token)other);
1704 } else {
1705 super.mergeFrom(other);
1706 return this;
1707 }
1708 }
1709
1710 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token other) {
1711 if (other == org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.getDefaultInstance()) return this;
1712 if (other.hasIdentifier()) {
1713 setIdentifier(other.getIdentifier());
1714 }
1715 if (other.hasPassword()) {
1716 setPassword(other.getPassword());
1717 }
1718 if (other.hasService()) {
1719 setService(other.getService());
1720 }
1721 this.mergeUnknownFields(other.getUnknownFields());
1722 return this;
1723 }
1724
1725 public final boolean isInitialized() {
1726 return true;
1727 }
1728
1729 public Builder mergeFrom(
1730 com.google.protobuf.CodedInputStream input,
1731 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1732 throws java.io.IOException {
1733 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1734 com.google.protobuf.UnknownFieldSet.newBuilder(
1735 this.getUnknownFields());
1736 while (true) {
1737 int tag = input.readTag();
1738 switch (tag) {
1739 case 0:
1740 this.setUnknownFields(unknownFields.build());
1741 onChanged();
1742 return this;
1743 default: {
1744 if (!parseUnknownField(input, unknownFields,
1745 extensionRegistry, tag)) {
1746 this.setUnknownFields(unknownFields.build());
1747 onChanged();
1748 return this;
1749 }
1750 break;
1751 }
1752 case 10: {
1753 bitField0_ |= 0x00000001;
1754 identifier_ = input.readBytes();
1755 break;
1756 }
1757 case 18: {
1758 bitField0_ |= 0x00000002;
1759 password_ = input.readBytes();
1760 break;
1761 }
1762 case 26: {
1763 bitField0_ |= 0x00000004;
1764 service_ = input.readBytes();
1765 break;
1766 }
1767 }
1768 }
1769 }
1770
1771 private int bitField0_;
1772
1773
1774 private com.google.protobuf.ByteString identifier_ = com.google.protobuf.ByteString.EMPTY;
1775 public boolean hasIdentifier() {
1776 return ((bitField0_ & 0x00000001) == 0x00000001);
1777 }
1778 public com.google.protobuf.ByteString getIdentifier() {
1779 return identifier_;
1780 }
1781 public Builder setIdentifier(com.google.protobuf.ByteString value) {
1782 if (value == null) {
1783 throw new NullPointerException();
1784 }
1785 bitField0_ |= 0x00000001;
1786 identifier_ = value;
1787 onChanged();
1788 return this;
1789 }
1790 public Builder clearIdentifier() {
1791 bitField0_ = (bitField0_ & ~0x00000001);
1792 identifier_ = getDefaultInstance().getIdentifier();
1793 onChanged();
1794 return this;
1795 }
1796
1797
1798 private com.google.protobuf.ByteString password_ = com.google.protobuf.ByteString.EMPTY;
1799 public boolean hasPassword() {
1800 return ((bitField0_ & 0x00000002) == 0x00000002);
1801 }
1802 public com.google.protobuf.ByteString getPassword() {
1803 return password_;
1804 }
1805 public Builder setPassword(com.google.protobuf.ByteString value) {
1806 if (value == null) {
1807 throw new NullPointerException();
1808 }
1809 bitField0_ |= 0x00000002;
1810 password_ = value;
1811 onChanged();
1812 return this;
1813 }
1814 public Builder clearPassword() {
1815 bitField0_ = (bitField0_ & ~0x00000002);
1816 password_ = getDefaultInstance().getPassword();
1817 onChanged();
1818 return this;
1819 }
1820
1821
1822 private com.google.protobuf.ByteString service_ = com.google.protobuf.ByteString.EMPTY;
1823 public boolean hasService() {
1824 return ((bitField0_ & 0x00000004) == 0x00000004);
1825 }
1826 public com.google.protobuf.ByteString getService() {
1827 return service_;
1828 }
1829 public Builder setService(com.google.protobuf.ByteString value) {
1830 if (value == null) {
1831 throw new NullPointerException();
1832 }
1833 bitField0_ |= 0x00000004;
1834 service_ = value;
1835 onChanged();
1836 return this;
1837 }
1838 public Builder clearService() {
1839 bitField0_ = (bitField0_ & ~0x00000004);
1840 service_ = getDefaultInstance().getService();
1841 onChanged();
1842 return this;
1843 }
1844
1845
1846 }
1847
1848 static {
1849 defaultInstance = new Token(true);
1850 defaultInstance.initFields();
1851 }
1852
1853
1854 }
1855
1856 public interface TokenRequestOrBuilder
1857 extends com.google.protobuf.MessageOrBuilder {
1858 }
1859 public static final class TokenRequest extends
1860 com.google.protobuf.GeneratedMessage
1861 implements TokenRequestOrBuilder {
1862
1863 private TokenRequest(Builder builder) {
1864 super(builder);
1865 }
1866 private TokenRequest(boolean noInit) {}
1867
1868 private static final TokenRequest defaultInstance;
1869 public static TokenRequest getDefaultInstance() {
1870 return defaultInstance;
1871 }
1872
1873 public TokenRequest getDefaultInstanceForType() {
1874 return defaultInstance;
1875 }
1876
1877 public static final com.google.protobuf.Descriptors.Descriptor
1878 getDescriptor() {
1879 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenRequest_descriptor;
1880 }
1881
1882 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1883 internalGetFieldAccessorTable() {
1884 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenRequest_fieldAccessorTable;
1885 }
1886
1887 private void initFields() {
1888 }
1889 private byte memoizedIsInitialized = -1;
1890 public final boolean isInitialized() {
1891 byte isInitialized = memoizedIsInitialized;
1892 if (isInitialized != -1) return isInitialized == 1;
1893
1894 memoizedIsInitialized = 1;
1895 return true;
1896 }
1897
1898 public void writeTo(com.google.protobuf.CodedOutputStream output)
1899 throws java.io.IOException {
1900 getSerializedSize();
1901 getUnknownFields().writeTo(output);
1902 }
1903
1904 private int memoizedSerializedSize = -1;
1905 public int getSerializedSize() {
1906 int size = memoizedSerializedSize;
1907 if (size != -1) return size;
1908
1909 size = 0;
1910 size += getUnknownFields().getSerializedSize();
1911 memoizedSerializedSize = size;
1912 return size;
1913 }
1914
1915 private static final long serialVersionUID = 0L;
1916 @java.lang.Override
1917 protected java.lang.Object writeReplace()
1918 throws java.io.ObjectStreamException {
1919 return super.writeReplace();
1920 }
1921
1922 @java.lang.Override
1923 public boolean equals(final java.lang.Object obj) {
1924 if (obj == this) {
1925 return true;
1926 }
1927 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest)) {
1928 return super.equals(obj);
1929 }
1930 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest other = (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest) obj;
1931
1932 boolean result = true;
1933 result = result &&
1934 getUnknownFields().equals(other.getUnknownFields());
1935 return result;
1936 }
1937
1938 @java.lang.Override
1939 public int hashCode() {
1940 int hash = 41;
1941 hash = (19 * hash) + getDescriptorForType().hashCode();
1942 hash = (29 * hash) + getUnknownFields().hashCode();
1943 return hash;
1944 }
1945
1946 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest parseFrom(
1947 com.google.protobuf.ByteString data)
1948 throws com.google.protobuf.InvalidProtocolBufferException {
1949 return newBuilder().mergeFrom(data).buildParsed();
1950 }
1951 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest parseFrom(
1952 com.google.protobuf.ByteString data,
1953 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1954 throws com.google.protobuf.InvalidProtocolBufferException {
1955 return newBuilder().mergeFrom(data, extensionRegistry)
1956 .buildParsed();
1957 }
1958 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest parseFrom(byte[] data)
1959 throws com.google.protobuf.InvalidProtocolBufferException {
1960 return newBuilder().mergeFrom(data).buildParsed();
1961 }
1962 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest parseFrom(
1963 byte[] data,
1964 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1965 throws com.google.protobuf.InvalidProtocolBufferException {
1966 return newBuilder().mergeFrom(data, extensionRegistry)
1967 .buildParsed();
1968 }
1969 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest parseFrom(java.io.InputStream input)
1970 throws java.io.IOException {
1971 return newBuilder().mergeFrom(input).buildParsed();
1972 }
1973 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest parseFrom(
1974 java.io.InputStream input,
1975 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1976 throws java.io.IOException {
1977 return newBuilder().mergeFrom(input, extensionRegistry)
1978 .buildParsed();
1979 }
1980 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest parseDelimitedFrom(java.io.InputStream input)
1981 throws java.io.IOException {
1982 Builder builder = newBuilder();
1983 if (builder.mergeDelimitedFrom(input)) {
1984 return builder.buildParsed();
1985 } else {
1986 return null;
1987 }
1988 }
1989 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest parseDelimitedFrom(
1990 java.io.InputStream input,
1991 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1992 throws java.io.IOException {
1993 Builder builder = newBuilder();
1994 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
1995 return builder.buildParsed();
1996 } else {
1997 return null;
1998 }
1999 }
2000 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest parseFrom(
2001 com.google.protobuf.CodedInputStream input)
2002 throws java.io.IOException {
2003 return newBuilder().mergeFrom(input).buildParsed();
2004 }
2005 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest parseFrom(
2006 com.google.protobuf.CodedInputStream input,
2007 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2008 throws java.io.IOException {
2009 return newBuilder().mergeFrom(input, extensionRegistry)
2010 .buildParsed();
2011 }
2012
2013 public static Builder newBuilder() { return Builder.create(); }
2014 public Builder newBuilderForType() { return newBuilder(); }
2015 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest prototype) {
2016 return newBuilder().mergeFrom(prototype);
2017 }
2018 public Builder toBuilder() { return newBuilder(this); }
2019
2020 @java.lang.Override
2021 protected Builder newBuilderForType(
2022 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2023 Builder builder = new Builder(parent);
2024 return builder;
2025 }
2026 public static final class Builder extends
2027 com.google.protobuf.GeneratedMessage.Builder<Builder>
2028 implements org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequestOrBuilder {
2029 public static final com.google.protobuf.Descriptors.Descriptor
2030 getDescriptor() {
2031 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenRequest_descriptor;
2032 }
2033
2034 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2035 internalGetFieldAccessorTable() {
2036 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenRequest_fieldAccessorTable;
2037 }
2038
2039
2040 private Builder() {
2041 maybeForceBuilderInitialization();
2042 }
2043
2044 private Builder(BuilderParent parent) {
2045 super(parent);
2046 maybeForceBuilderInitialization();
2047 }
2048 private void maybeForceBuilderInitialization() {
2049 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2050 }
2051 }
2052 private static Builder create() {
2053 return new Builder();
2054 }
2055
2056 public Builder clear() {
2057 super.clear();
2058 return this;
2059 }
2060
2061 public Builder clone() {
2062 return create().mergeFrom(buildPartial());
2063 }
2064
2065 public com.google.protobuf.Descriptors.Descriptor
2066 getDescriptorForType() {
2067 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest.getDescriptor();
2068 }
2069
2070 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest getDefaultInstanceForType() {
2071 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest.getDefaultInstance();
2072 }
2073
2074 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest build() {
2075 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest result = buildPartial();
2076 if (!result.isInitialized()) {
2077 throw newUninitializedMessageException(result);
2078 }
2079 return result;
2080 }
2081
2082 private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest buildParsed()
2083 throws com.google.protobuf.InvalidProtocolBufferException {
2084 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest result = buildPartial();
2085 if (!result.isInitialized()) {
2086 throw newUninitializedMessageException(
2087 result).asInvalidProtocolBufferException();
2088 }
2089 return result;
2090 }
2091
2092 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest buildPartial() {
2093 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest result = new org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest(this);
2094 onBuilt();
2095 return result;
2096 }
2097
2098 public Builder mergeFrom(com.google.protobuf.Message other) {
2099 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest) {
2100 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest)other);
2101 } else {
2102 super.mergeFrom(other);
2103 return this;
2104 }
2105 }
2106
2107 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest other) {
2108 if (other == org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest.getDefaultInstance()) return this;
2109 this.mergeUnknownFields(other.getUnknownFields());
2110 return this;
2111 }
2112
2113 public final boolean isInitialized() {
2114 return true;
2115 }
2116
2117 public Builder mergeFrom(
2118 com.google.protobuf.CodedInputStream input,
2119 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2120 throws java.io.IOException {
2121 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2122 com.google.protobuf.UnknownFieldSet.newBuilder(
2123 this.getUnknownFields());
2124 while (true) {
2125 int tag = input.readTag();
2126 switch (tag) {
2127 case 0:
2128 this.setUnknownFields(unknownFields.build());
2129 onChanged();
2130 return this;
2131 default: {
2132 if (!parseUnknownField(input, unknownFields,
2133 extensionRegistry, tag)) {
2134 this.setUnknownFields(unknownFields.build());
2135 onChanged();
2136 return this;
2137 }
2138 break;
2139 }
2140 }
2141 }
2142 }
2143
2144
2145
2146 }
2147
2148 static {
2149 defaultInstance = new TokenRequest(true);
2150 defaultInstance.initFields();
2151 }
2152
2153
2154 }
2155
2156 public interface TokenResponseOrBuilder
2157 extends com.google.protobuf.MessageOrBuilder {
2158
2159
2160 boolean hasToken();
2161 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token getToken();
2162 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenOrBuilder getTokenOrBuilder();
2163 }
2164 public static final class TokenResponse extends
2165 com.google.protobuf.GeneratedMessage
2166 implements TokenResponseOrBuilder {
2167
2168 private TokenResponse(Builder builder) {
2169 super(builder);
2170 }
2171 private TokenResponse(boolean noInit) {}
2172
2173 private static final TokenResponse defaultInstance;
2174 public static TokenResponse getDefaultInstance() {
2175 return defaultInstance;
2176 }
2177
2178 public TokenResponse getDefaultInstanceForType() {
2179 return defaultInstance;
2180 }
2181
2182 public static final com.google.protobuf.Descriptors.Descriptor
2183 getDescriptor() {
2184 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenResponse_descriptor;
2185 }
2186
2187 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2188 internalGetFieldAccessorTable() {
2189 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenResponse_fieldAccessorTable;
2190 }
2191
2192 private int bitField0_;
2193
2194 public static final int TOKEN_FIELD_NUMBER = 1;
2195 private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token token_;
2196 public boolean hasToken() {
2197 return ((bitField0_ & 0x00000001) == 0x00000001);
2198 }
2199 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token getToken() {
2200 return token_;
2201 }
2202 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenOrBuilder getTokenOrBuilder() {
2203 return token_;
2204 }
2205
2206 private void initFields() {
2207 token_ = org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.getDefaultInstance();
2208 }
2209 private byte memoizedIsInitialized = -1;
2210 public final boolean isInitialized() {
2211 byte isInitialized = memoizedIsInitialized;
2212 if (isInitialized != -1) return isInitialized == 1;
2213
2214 memoizedIsInitialized = 1;
2215 return true;
2216 }
2217
2218 public void writeTo(com.google.protobuf.CodedOutputStream output)
2219 throws java.io.IOException {
2220 getSerializedSize();
2221 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2222 output.writeMessage(1, token_);
2223 }
2224 getUnknownFields().writeTo(output);
2225 }
2226
2227 private int memoizedSerializedSize = -1;
2228 public int getSerializedSize() {
2229 int size = memoizedSerializedSize;
2230 if (size != -1) return size;
2231
2232 size = 0;
2233 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2234 size += com.google.protobuf.CodedOutputStream
2235 .computeMessageSize(1, token_);
2236 }
2237 size += getUnknownFields().getSerializedSize();
2238 memoizedSerializedSize = size;
2239 return size;
2240 }
2241
2242 private static final long serialVersionUID = 0L;
2243 @java.lang.Override
2244 protected java.lang.Object writeReplace()
2245 throws java.io.ObjectStreamException {
2246 return super.writeReplace();
2247 }
2248
2249 @java.lang.Override
2250 public boolean equals(final java.lang.Object obj) {
2251 if (obj == this) {
2252 return true;
2253 }
2254 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse)) {
2255 return super.equals(obj);
2256 }
2257 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse other = (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse) obj;
2258
2259 boolean result = true;
2260 result = result && (hasToken() == other.hasToken());
2261 if (hasToken()) {
2262 result = result && getToken()
2263 .equals(other.getToken());
2264 }
2265 result = result &&
2266 getUnknownFields().equals(other.getUnknownFields());
2267 return result;
2268 }
2269
2270 @java.lang.Override
2271 public int hashCode() {
2272 int hash = 41;
2273 hash = (19 * hash) + getDescriptorForType().hashCode();
2274 if (hasToken()) {
2275 hash = (37 * hash) + TOKEN_FIELD_NUMBER;
2276 hash = (53 * hash) + getToken().hashCode();
2277 }
2278 hash = (29 * hash) + getUnknownFields().hashCode();
2279 return hash;
2280 }
2281
2282 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse parseFrom(
2283 com.google.protobuf.ByteString data)
2284 throws com.google.protobuf.InvalidProtocolBufferException {
2285 return newBuilder().mergeFrom(data).buildParsed();
2286 }
2287 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse parseFrom(
2288 com.google.protobuf.ByteString data,
2289 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2290 throws com.google.protobuf.InvalidProtocolBufferException {
2291 return newBuilder().mergeFrom(data, extensionRegistry)
2292 .buildParsed();
2293 }
2294 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse parseFrom(byte[] data)
2295 throws com.google.protobuf.InvalidProtocolBufferException {
2296 return newBuilder().mergeFrom(data).buildParsed();
2297 }
2298 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse parseFrom(
2299 byte[] data,
2300 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2301 throws com.google.protobuf.InvalidProtocolBufferException {
2302 return newBuilder().mergeFrom(data, extensionRegistry)
2303 .buildParsed();
2304 }
2305 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse parseFrom(java.io.InputStream input)
2306 throws java.io.IOException {
2307 return newBuilder().mergeFrom(input).buildParsed();
2308 }
2309 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse parseFrom(
2310 java.io.InputStream input,
2311 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2312 throws java.io.IOException {
2313 return newBuilder().mergeFrom(input, extensionRegistry)
2314 .buildParsed();
2315 }
2316 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse parseDelimitedFrom(java.io.InputStream input)
2317 throws java.io.IOException {
2318 Builder builder = newBuilder();
2319 if (builder.mergeDelimitedFrom(input)) {
2320 return builder.buildParsed();
2321 } else {
2322 return null;
2323 }
2324 }
2325 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse parseDelimitedFrom(
2326 java.io.InputStream input,
2327 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2328 throws java.io.IOException {
2329 Builder builder = newBuilder();
2330 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
2331 return builder.buildParsed();
2332 } else {
2333 return null;
2334 }
2335 }
2336 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse parseFrom(
2337 com.google.protobuf.CodedInputStream input)
2338 throws java.io.IOException {
2339 return newBuilder().mergeFrom(input).buildParsed();
2340 }
2341 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse parseFrom(
2342 com.google.protobuf.CodedInputStream input,
2343 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2344 throws java.io.IOException {
2345 return newBuilder().mergeFrom(input, extensionRegistry)
2346 .buildParsed();
2347 }
2348
2349 public static Builder newBuilder() { return Builder.create(); }
2350 public Builder newBuilderForType() { return newBuilder(); }
2351 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse prototype) {
2352 return newBuilder().mergeFrom(prototype);
2353 }
2354 public Builder toBuilder() { return newBuilder(this); }
2355
2356 @java.lang.Override
2357 protected Builder newBuilderForType(
2358 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2359 Builder builder = new Builder(parent);
2360 return builder;
2361 }
2362 public static final class Builder extends
2363 com.google.protobuf.GeneratedMessage.Builder<Builder>
2364 implements org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponseOrBuilder {
2365 public static final com.google.protobuf.Descriptors.Descriptor
2366 getDescriptor() {
2367 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenResponse_descriptor;
2368 }
2369
2370 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2371 internalGetFieldAccessorTable() {
2372 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_TokenResponse_fieldAccessorTable;
2373 }
2374
2375
2376 private Builder() {
2377 maybeForceBuilderInitialization();
2378 }
2379
2380 private Builder(BuilderParent parent) {
2381 super(parent);
2382 maybeForceBuilderInitialization();
2383 }
2384 private void maybeForceBuilderInitialization() {
2385 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2386 getTokenFieldBuilder();
2387 }
2388 }
2389 private static Builder create() {
2390 return new Builder();
2391 }
2392
2393 public Builder clear() {
2394 super.clear();
2395 if (tokenBuilder_ == null) {
2396 token_ = org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.getDefaultInstance();
2397 } else {
2398 tokenBuilder_.clear();
2399 }
2400 bitField0_ = (bitField0_ & ~0x00000001);
2401 return this;
2402 }
2403
2404 public Builder clone() {
2405 return create().mergeFrom(buildPartial());
2406 }
2407
2408 public com.google.protobuf.Descriptors.Descriptor
2409 getDescriptorForType() {
2410 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse.getDescriptor();
2411 }
2412
2413 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse getDefaultInstanceForType() {
2414 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse.getDefaultInstance();
2415 }
2416
2417 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse build() {
2418 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse result = buildPartial();
2419 if (!result.isInitialized()) {
2420 throw newUninitializedMessageException(result);
2421 }
2422 return result;
2423 }
2424
2425 private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse buildParsed()
2426 throws com.google.protobuf.InvalidProtocolBufferException {
2427 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse result = buildPartial();
2428 if (!result.isInitialized()) {
2429 throw newUninitializedMessageException(
2430 result).asInvalidProtocolBufferException();
2431 }
2432 return result;
2433 }
2434
2435 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse buildPartial() {
2436 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse result = new org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse(this);
2437 int from_bitField0_ = bitField0_;
2438 int to_bitField0_ = 0;
2439 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2440 to_bitField0_ |= 0x00000001;
2441 }
2442 if (tokenBuilder_ == null) {
2443 result.token_ = token_;
2444 } else {
2445 result.token_ = tokenBuilder_.build();
2446 }
2447 result.bitField0_ = to_bitField0_;
2448 onBuilt();
2449 return result;
2450 }
2451
2452 public Builder mergeFrom(com.google.protobuf.Message other) {
2453 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse) {
2454 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse)other);
2455 } else {
2456 super.mergeFrom(other);
2457 return this;
2458 }
2459 }
2460
2461 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse other) {
2462 if (other == org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse.getDefaultInstance()) return this;
2463 if (other.hasToken()) {
2464 mergeToken(other.getToken());
2465 }
2466 this.mergeUnknownFields(other.getUnknownFields());
2467 return this;
2468 }
2469
2470 public final boolean isInitialized() {
2471 return true;
2472 }
2473
2474 public Builder mergeFrom(
2475 com.google.protobuf.CodedInputStream input,
2476 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2477 throws java.io.IOException {
2478 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2479 com.google.protobuf.UnknownFieldSet.newBuilder(
2480 this.getUnknownFields());
2481 while (true) {
2482 int tag = input.readTag();
2483 switch (tag) {
2484 case 0:
2485 this.setUnknownFields(unknownFields.build());
2486 onChanged();
2487 return this;
2488 default: {
2489 if (!parseUnknownField(input, unknownFields,
2490 extensionRegistry, tag)) {
2491 this.setUnknownFields(unknownFields.build());
2492 onChanged();
2493 return this;
2494 }
2495 break;
2496 }
2497 case 10: {
2498 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.newBuilder();
2499 if (hasToken()) {
2500 subBuilder.mergeFrom(getToken());
2501 }
2502 input.readMessage(subBuilder, extensionRegistry);
2503 setToken(subBuilder.buildPartial());
2504 break;
2505 }
2506 }
2507 }
2508 }
2509
2510 private int bitField0_;
2511
2512
2513 private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token token_ = org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.getDefaultInstance();
2514 private com.google.protobuf.SingleFieldBuilder<
2515 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.Builder, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenOrBuilder> tokenBuilder_;
2516 public boolean hasToken() {
2517 return ((bitField0_ & 0x00000001) == 0x00000001);
2518 }
2519 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token getToken() {
2520 if (tokenBuilder_ == null) {
2521 return token_;
2522 } else {
2523 return tokenBuilder_.getMessage();
2524 }
2525 }
2526 public Builder setToken(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token value) {
2527 if (tokenBuilder_ == null) {
2528 if (value == null) {
2529 throw new NullPointerException();
2530 }
2531 token_ = value;
2532 onChanged();
2533 } else {
2534 tokenBuilder_.setMessage(value);
2535 }
2536 bitField0_ |= 0x00000001;
2537 return this;
2538 }
2539 public Builder setToken(
2540 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.Builder builderForValue) {
2541 if (tokenBuilder_ == null) {
2542 token_ = builderForValue.build();
2543 onChanged();
2544 } else {
2545 tokenBuilder_.setMessage(builderForValue.build());
2546 }
2547 bitField0_ |= 0x00000001;
2548 return this;
2549 }
2550 public Builder mergeToken(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token value) {
2551 if (tokenBuilder_ == null) {
2552 if (((bitField0_ & 0x00000001) == 0x00000001) &&
2553 token_ != org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.getDefaultInstance()) {
2554 token_ =
2555 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.newBuilder(token_).mergeFrom(value).buildPartial();
2556 } else {
2557 token_ = value;
2558 }
2559 onChanged();
2560 } else {
2561 tokenBuilder_.mergeFrom(value);
2562 }
2563 bitField0_ |= 0x00000001;
2564 return this;
2565 }
2566 public Builder clearToken() {
2567 if (tokenBuilder_ == null) {
2568 token_ = org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.getDefaultInstance();
2569 onChanged();
2570 } else {
2571 tokenBuilder_.clear();
2572 }
2573 bitField0_ = (bitField0_ & ~0x00000001);
2574 return this;
2575 }
2576 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.Builder getTokenBuilder() {
2577 bitField0_ |= 0x00000001;
2578 onChanged();
2579 return getTokenFieldBuilder().getBuilder();
2580 }
2581 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenOrBuilder getTokenOrBuilder() {
2582 if (tokenBuilder_ != null) {
2583 return tokenBuilder_.getMessageOrBuilder();
2584 } else {
2585 return token_;
2586 }
2587 }
2588 private com.google.protobuf.SingleFieldBuilder<
2589 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.Builder, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenOrBuilder>
2590 getTokenFieldBuilder() {
2591 if (tokenBuilder_ == null) {
2592 tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2593 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.Builder, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenOrBuilder>(
2594 token_,
2595 getParentForChildren(),
2596 isClean());
2597 token_ = null;
2598 }
2599 return tokenBuilder_;
2600 }
2601
2602
2603 }
2604
2605 static {
2606 defaultInstance = new TokenResponse(true);
2607 defaultInstance.initFields();
2608 }
2609
2610
2611 }
2612
2613 public interface WhoAmIRequestOrBuilder
2614 extends com.google.protobuf.MessageOrBuilder {
2615 }
2616 public static final class WhoAmIRequest extends
2617 com.google.protobuf.GeneratedMessage
2618 implements WhoAmIRequestOrBuilder {
2619
2620 private WhoAmIRequest(Builder builder) {
2621 super(builder);
2622 }
2623 private WhoAmIRequest(boolean noInit) {}
2624
2625 private static final WhoAmIRequest defaultInstance;
2626 public static WhoAmIRequest getDefaultInstance() {
2627 return defaultInstance;
2628 }
2629
2630 public WhoAmIRequest getDefaultInstanceForType() {
2631 return defaultInstance;
2632 }
2633
2634 public static final com.google.protobuf.Descriptors.Descriptor
2635 getDescriptor() {
2636 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_WhoAmIRequest_descriptor;
2637 }
2638
2639 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2640 internalGetFieldAccessorTable() {
2641 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_WhoAmIRequest_fieldAccessorTable;
2642 }
2643
2644 private void initFields() {
2645 }
2646 private byte memoizedIsInitialized = -1;
2647 public final boolean isInitialized() {
2648 byte isInitialized = memoizedIsInitialized;
2649 if (isInitialized != -1) return isInitialized == 1;
2650
2651 memoizedIsInitialized = 1;
2652 return true;
2653 }
2654
2655 public void writeTo(com.google.protobuf.CodedOutputStream output)
2656 throws java.io.IOException {
2657 getSerializedSize();
2658 getUnknownFields().writeTo(output);
2659 }
2660
2661 private int memoizedSerializedSize = -1;
2662 public int getSerializedSize() {
2663 int size = memoizedSerializedSize;
2664 if (size != -1) return size;
2665
2666 size = 0;
2667 size += getUnknownFields().getSerializedSize();
2668 memoizedSerializedSize = size;
2669 return size;
2670 }
2671
2672 private static final long serialVersionUID = 0L;
2673 @java.lang.Override
2674 protected java.lang.Object writeReplace()
2675 throws java.io.ObjectStreamException {
2676 return super.writeReplace();
2677 }
2678
2679 @java.lang.Override
2680 public boolean equals(final java.lang.Object obj) {
2681 if (obj == this) {
2682 return true;
2683 }
2684 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest)) {
2685 return super.equals(obj);
2686 }
2687 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest other = (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest) obj;
2688
2689 boolean result = true;
2690 result = result &&
2691 getUnknownFields().equals(other.getUnknownFields());
2692 return result;
2693 }
2694
2695 @java.lang.Override
2696 public int hashCode() {
2697 int hash = 41;
2698 hash = (19 * hash) + getDescriptorForType().hashCode();
2699 hash = (29 * hash) + getUnknownFields().hashCode();
2700 return hash;
2701 }
2702
2703 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest parseFrom(
2704 com.google.protobuf.ByteString data)
2705 throws com.google.protobuf.InvalidProtocolBufferException {
2706 return newBuilder().mergeFrom(data).buildParsed();
2707 }
2708 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest parseFrom(
2709 com.google.protobuf.ByteString data,
2710 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2711 throws com.google.protobuf.InvalidProtocolBufferException {
2712 return newBuilder().mergeFrom(data, extensionRegistry)
2713 .buildParsed();
2714 }
2715 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest parseFrom(byte[] data)
2716 throws com.google.protobuf.InvalidProtocolBufferException {
2717 return newBuilder().mergeFrom(data).buildParsed();
2718 }
2719 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest parseFrom(
2720 byte[] data,
2721 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2722 throws com.google.protobuf.InvalidProtocolBufferException {
2723 return newBuilder().mergeFrom(data, extensionRegistry)
2724 .buildParsed();
2725 }
2726 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest parseFrom(java.io.InputStream input)
2727 throws java.io.IOException {
2728 return newBuilder().mergeFrom(input).buildParsed();
2729 }
2730 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest parseFrom(
2731 java.io.InputStream input,
2732 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2733 throws java.io.IOException {
2734 return newBuilder().mergeFrom(input, extensionRegistry)
2735 .buildParsed();
2736 }
2737 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest parseDelimitedFrom(java.io.InputStream input)
2738 throws java.io.IOException {
2739 Builder builder = newBuilder();
2740 if (builder.mergeDelimitedFrom(input)) {
2741 return builder.buildParsed();
2742 } else {
2743 return null;
2744 }
2745 }
2746 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest parseDelimitedFrom(
2747 java.io.InputStream input,
2748 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2749 throws java.io.IOException {
2750 Builder builder = newBuilder();
2751 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
2752 return builder.buildParsed();
2753 } else {
2754 return null;
2755 }
2756 }
2757 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest parseFrom(
2758 com.google.protobuf.CodedInputStream input)
2759 throws java.io.IOException {
2760 return newBuilder().mergeFrom(input).buildParsed();
2761 }
2762 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest parseFrom(
2763 com.google.protobuf.CodedInputStream input,
2764 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2765 throws java.io.IOException {
2766 return newBuilder().mergeFrom(input, extensionRegistry)
2767 .buildParsed();
2768 }
2769
2770 public static Builder newBuilder() { return Builder.create(); }
2771 public Builder newBuilderForType() { return newBuilder(); }
2772 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest prototype) {
2773 return newBuilder().mergeFrom(prototype);
2774 }
2775 public Builder toBuilder() { return newBuilder(this); }
2776
2777 @java.lang.Override
2778 protected Builder newBuilderForType(
2779 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2780 Builder builder = new Builder(parent);
2781 return builder;
2782 }
2783 public static final class Builder extends
2784 com.google.protobuf.GeneratedMessage.Builder<Builder>
2785 implements org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequestOrBuilder {
2786 public static final com.google.protobuf.Descriptors.Descriptor
2787 getDescriptor() {
2788 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_WhoAmIRequest_descriptor;
2789 }
2790
2791 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2792 internalGetFieldAccessorTable() {
2793 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_WhoAmIRequest_fieldAccessorTable;
2794 }
2795
2796
2797 private Builder() {
2798 maybeForceBuilderInitialization();
2799 }
2800
2801 private Builder(BuilderParent parent) {
2802 super(parent);
2803 maybeForceBuilderInitialization();
2804 }
2805 private void maybeForceBuilderInitialization() {
2806 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2807 }
2808 }
2809 private static Builder create() {
2810 return new Builder();
2811 }
2812
2813 public Builder clear() {
2814 super.clear();
2815 return this;
2816 }
2817
2818 public Builder clone() {
2819 return create().mergeFrom(buildPartial());
2820 }
2821
2822 public com.google.protobuf.Descriptors.Descriptor
2823 getDescriptorForType() {
2824 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest.getDescriptor();
2825 }
2826
2827 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest getDefaultInstanceForType() {
2828 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest.getDefaultInstance();
2829 }
2830
2831 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest build() {
2832 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest result = buildPartial();
2833 if (!result.isInitialized()) {
2834 throw newUninitializedMessageException(result);
2835 }
2836 return result;
2837 }
2838
2839 private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest buildParsed()
2840 throws com.google.protobuf.InvalidProtocolBufferException {
2841 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest result = buildPartial();
2842 if (!result.isInitialized()) {
2843 throw newUninitializedMessageException(
2844 result).asInvalidProtocolBufferException();
2845 }
2846 return result;
2847 }
2848
2849 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest buildPartial() {
2850 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest result = new org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest(this);
2851 onBuilt();
2852 return result;
2853 }
2854
2855 public Builder mergeFrom(com.google.protobuf.Message other) {
2856 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest) {
2857 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest)other);
2858 } else {
2859 super.mergeFrom(other);
2860 return this;
2861 }
2862 }
2863
2864 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest other) {
2865 if (other == org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest.getDefaultInstance()) return this;
2866 this.mergeUnknownFields(other.getUnknownFields());
2867 return this;
2868 }
2869
2870 public final boolean isInitialized() {
2871 return true;
2872 }
2873
2874 public Builder mergeFrom(
2875 com.google.protobuf.CodedInputStream input,
2876 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2877 throws java.io.IOException {
2878 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2879 com.google.protobuf.UnknownFieldSet.newBuilder(
2880 this.getUnknownFields());
2881 while (true) {
2882 int tag = input.readTag();
2883 switch (tag) {
2884 case 0:
2885 this.setUnknownFields(unknownFields.build());
2886 onChanged();
2887 return this;
2888 default: {
2889 if (!parseUnknownField(input, unknownFields,
2890 extensionRegistry, tag)) {
2891 this.setUnknownFields(unknownFields.build());
2892 onChanged();
2893 return this;
2894 }
2895 break;
2896 }
2897 }
2898 }
2899 }
2900
2901
2902
2903 }
2904
2905 static {
2906 defaultInstance = new WhoAmIRequest(true);
2907 defaultInstance.initFields();
2908 }
2909
2910
2911 }
2912
2913 public interface WhoAmIResponseOrBuilder
2914 extends com.google.protobuf.MessageOrBuilder {
2915
2916
2917 boolean hasUsername();
2918 String getUsername();
2919
2920
2921 boolean hasAuthMethod();
2922 String getAuthMethod();
2923 }
2924 public static final class WhoAmIResponse extends
2925 com.google.protobuf.GeneratedMessage
2926 implements WhoAmIResponseOrBuilder {
2927
2928 private WhoAmIResponse(Builder builder) {
2929 super(builder);
2930 }
2931 private WhoAmIResponse(boolean noInit) {}
2932
2933 private static final WhoAmIResponse defaultInstance;
2934 public static WhoAmIResponse getDefaultInstance() {
2935 return defaultInstance;
2936 }
2937
2938 public WhoAmIResponse getDefaultInstanceForType() {
2939 return defaultInstance;
2940 }
2941
2942 public static final com.google.protobuf.Descriptors.Descriptor
2943 getDescriptor() {
2944 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_WhoAmIResponse_descriptor;
2945 }
2946
2947 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2948 internalGetFieldAccessorTable() {
2949 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_WhoAmIResponse_fieldAccessorTable;
2950 }
2951
2952 private int bitField0_;
2953
2954 public static final int USERNAME_FIELD_NUMBER = 1;
2955 private java.lang.Object username_;
2956 public boolean hasUsername() {
2957 return ((bitField0_ & 0x00000001) == 0x00000001);
2958 }
2959 public String getUsername() {
2960 java.lang.Object ref = username_;
2961 if (ref instanceof String) {
2962 return (String) ref;
2963 } else {
2964 com.google.protobuf.ByteString bs =
2965 (com.google.protobuf.ByteString) ref;
2966 String s = bs.toStringUtf8();
2967 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
2968 username_ = s;
2969 }
2970 return s;
2971 }
2972 }
2973 private com.google.protobuf.ByteString getUsernameBytes() {
2974 java.lang.Object ref = username_;
2975 if (ref instanceof String) {
2976 com.google.protobuf.ByteString b =
2977 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
2978 username_ = b;
2979 return b;
2980 } else {
2981 return (com.google.protobuf.ByteString) ref;
2982 }
2983 }
2984
2985
2986 public static final int AUTHMETHOD_FIELD_NUMBER = 2;
2987 private java.lang.Object authMethod_;
2988 public boolean hasAuthMethod() {
2989 return ((bitField0_ & 0x00000002) == 0x00000002);
2990 }
2991 public String getAuthMethod() {
2992 java.lang.Object ref = authMethod_;
2993 if (ref instanceof String) {
2994 return (String) ref;
2995 } else {
2996 com.google.protobuf.ByteString bs =
2997 (com.google.protobuf.ByteString) ref;
2998 String s = bs.toStringUtf8();
2999 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
3000 authMethod_ = s;
3001 }
3002 return s;
3003 }
3004 }
3005 private com.google.protobuf.ByteString getAuthMethodBytes() {
3006 java.lang.Object ref = authMethod_;
3007 if (ref instanceof String) {
3008 com.google.protobuf.ByteString b =
3009 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
3010 authMethod_ = b;
3011 return b;
3012 } else {
3013 return (com.google.protobuf.ByteString) ref;
3014 }
3015 }
3016
3017 private void initFields() {
3018 username_ = "";
3019 authMethod_ = "";
3020 }
3021 private byte memoizedIsInitialized = -1;
3022 public final boolean isInitialized() {
3023 byte isInitialized = memoizedIsInitialized;
3024 if (isInitialized != -1) return isInitialized == 1;
3025
3026 memoizedIsInitialized = 1;
3027 return true;
3028 }
3029
3030 public void writeTo(com.google.protobuf.CodedOutputStream output)
3031 throws java.io.IOException {
3032 getSerializedSize();
3033 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3034 output.writeBytes(1, getUsernameBytes());
3035 }
3036 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3037 output.writeBytes(2, getAuthMethodBytes());
3038 }
3039 getUnknownFields().writeTo(output);
3040 }
3041
3042 private int memoizedSerializedSize = -1;
3043 public int getSerializedSize() {
3044 int size = memoizedSerializedSize;
3045 if (size != -1) return size;
3046
3047 size = 0;
3048 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3049 size += com.google.protobuf.CodedOutputStream
3050 .computeBytesSize(1, getUsernameBytes());
3051 }
3052 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3053 size += com.google.protobuf.CodedOutputStream
3054 .computeBytesSize(2, getAuthMethodBytes());
3055 }
3056 size += getUnknownFields().getSerializedSize();
3057 memoizedSerializedSize = size;
3058 return size;
3059 }
3060
3061 private static final long serialVersionUID = 0L;
3062 @java.lang.Override
3063 protected java.lang.Object writeReplace()
3064 throws java.io.ObjectStreamException {
3065 return super.writeReplace();
3066 }
3067
3068 @java.lang.Override
3069 public boolean equals(final java.lang.Object obj) {
3070 if (obj == this) {
3071 return true;
3072 }
3073 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse)) {
3074 return super.equals(obj);
3075 }
3076 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse other = (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse) obj;
3077
3078 boolean result = true;
3079 result = result && (hasUsername() == other.hasUsername());
3080 if (hasUsername()) {
3081 result = result && getUsername()
3082 .equals(other.getUsername());
3083 }
3084 result = result && (hasAuthMethod() == other.hasAuthMethod());
3085 if (hasAuthMethod()) {
3086 result = result && getAuthMethod()
3087 .equals(other.getAuthMethod());
3088 }
3089 result = result &&
3090 getUnknownFields().equals(other.getUnknownFields());
3091 return result;
3092 }
3093
3094 @java.lang.Override
3095 public int hashCode() {
3096 int hash = 41;
3097 hash = (19 * hash) + getDescriptorForType().hashCode();
3098 if (hasUsername()) {
3099 hash = (37 * hash) + USERNAME_FIELD_NUMBER;
3100 hash = (53 * hash) + getUsername().hashCode();
3101 }
3102 if (hasAuthMethod()) {
3103 hash = (37 * hash) + AUTHMETHOD_FIELD_NUMBER;
3104 hash = (53 * hash) + getAuthMethod().hashCode();
3105 }
3106 hash = (29 * hash) + getUnknownFields().hashCode();
3107 return hash;
3108 }
3109
3110 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse parseFrom(
3111 com.google.protobuf.ByteString data)
3112 throws com.google.protobuf.InvalidProtocolBufferException {
3113 return newBuilder().mergeFrom(data).buildParsed();
3114 }
3115 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse parseFrom(
3116 com.google.protobuf.ByteString data,
3117 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3118 throws com.google.protobuf.InvalidProtocolBufferException {
3119 return newBuilder().mergeFrom(data, extensionRegistry)
3120 .buildParsed();
3121 }
3122 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse parseFrom(byte[] data)
3123 throws com.google.protobuf.InvalidProtocolBufferException {
3124 return newBuilder().mergeFrom(data).buildParsed();
3125 }
3126 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse parseFrom(
3127 byte[] data,
3128 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3129 throws com.google.protobuf.InvalidProtocolBufferException {
3130 return newBuilder().mergeFrom(data, extensionRegistry)
3131 .buildParsed();
3132 }
3133 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse parseFrom(java.io.InputStream input)
3134 throws java.io.IOException {
3135 return newBuilder().mergeFrom(input).buildParsed();
3136 }
3137 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse parseFrom(
3138 java.io.InputStream input,
3139 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3140 throws java.io.IOException {
3141 return newBuilder().mergeFrom(input, extensionRegistry)
3142 .buildParsed();
3143 }
3144 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse parseDelimitedFrom(java.io.InputStream input)
3145 throws java.io.IOException {
3146 Builder builder = newBuilder();
3147 if (builder.mergeDelimitedFrom(input)) {
3148 return builder.buildParsed();
3149 } else {
3150 return null;
3151 }
3152 }
3153 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse parseDelimitedFrom(
3154 java.io.InputStream input,
3155 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3156 throws java.io.IOException {
3157 Builder builder = newBuilder();
3158 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
3159 return builder.buildParsed();
3160 } else {
3161 return null;
3162 }
3163 }
3164 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse parseFrom(
3165 com.google.protobuf.CodedInputStream input)
3166 throws java.io.IOException {
3167 return newBuilder().mergeFrom(input).buildParsed();
3168 }
3169 public static org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse parseFrom(
3170 com.google.protobuf.CodedInputStream input,
3171 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3172 throws java.io.IOException {
3173 return newBuilder().mergeFrom(input, extensionRegistry)
3174 .buildParsed();
3175 }
3176
3177 public static Builder newBuilder() { return Builder.create(); }
3178 public Builder newBuilderForType() { return newBuilder(); }
3179 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse prototype) {
3180 return newBuilder().mergeFrom(prototype);
3181 }
3182 public Builder toBuilder() { return newBuilder(this); }
3183
3184 @java.lang.Override
3185 protected Builder newBuilderForType(
3186 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3187 Builder builder = new Builder(parent);
3188 return builder;
3189 }
3190 public static final class Builder extends
3191 com.google.protobuf.GeneratedMessage.Builder<Builder>
3192 implements org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponseOrBuilder {
3193 public static final com.google.protobuf.Descriptors.Descriptor
3194 getDescriptor() {
3195 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_WhoAmIResponse_descriptor;
3196 }
3197
3198 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3199 internalGetFieldAccessorTable() {
3200 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.internal_static_WhoAmIResponse_fieldAccessorTable;
3201 }
3202
3203
3204 private Builder() {
3205 maybeForceBuilderInitialization();
3206 }
3207
3208 private Builder(BuilderParent parent) {
3209 super(parent);
3210 maybeForceBuilderInitialization();
3211 }
3212 private void maybeForceBuilderInitialization() {
3213 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3214 }
3215 }
3216 private static Builder create() {
3217 return new Builder();
3218 }
3219
3220 public Builder clear() {
3221 super.clear();
3222 username_ = "";
3223 bitField0_ = (bitField0_ & ~0x00000001);
3224 authMethod_ = "";
3225 bitField0_ = (bitField0_ & ~0x00000002);
3226 return this;
3227 }
3228
3229 public Builder clone() {
3230 return create().mergeFrom(buildPartial());
3231 }
3232
3233 public com.google.protobuf.Descriptors.Descriptor
3234 getDescriptorForType() {
3235 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse.getDescriptor();
3236 }
3237
3238 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse getDefaultInstanceForType() {
3239 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse.getDefaultInstance();
3240 }
3241
3242 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse build() {
3243 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse result = buildPartial();
3244 if (!result.isInitialized()) {
3245 throw newUninitializedMessageException(result);
3246 }
3247 return result;
3248 }
3249
3250 private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse buildParsed()
3251 throws com.google.protobuf.InvalidProtocolBufferException {
3252 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse result = buildPartial();
3253 if (!result.isInitialized()) {
3254 throw newUninitializedMessageException(
3255 result).asInvalidProtocolBufferException();
3256 }
3257 return result;
3258 }
3259
3260 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse buildPartial() {
3261 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse result = new org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse(this);
3262 int from_bitField0_ = bitField0_;
3263 int to_bitField0_ = 0;
3264 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
3265 to_bitField0_ |= 0x00000001;
3266 }
3267 result.username_ = username_;
3268 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
3269 to_bitField0_ |= 0x00000002;
3270 }
3271 result.authMethod_ = authMethod_;
3272 result.bitField0_ = to_bitField0_;
3273 onBuilt();
3274 return result;
3275 }
3276
3277 public Builder mergeFrom(com.google.protobuf.Message other) {
3278 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse) {
3279 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse)other);
3280 } else {
3281 super.mergeFrom(other);
3282 return this;
3283 }
3284 }
3285
3286 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse other) {
3287 if (other == org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse.getDefaultInstance()) return this;
3288 if (other.hasUsername()) {
3289 setUsername(other.getUsername());
3290 }
3291 if (other.hasAuthMethod()) {
3292 setAuthMethod(other.getAuthMethod());
3293 }
3294 this.mergeUnknownFields(other.getUnknownFields());
3295 return this;
3296 }
3297
3298 public final boolean isInitialized() {
3299 return true;
3300 }
3301
3302 public Builder mergeFrom(
3303 com.google.protobuf.CodedInputStream input,
3304 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3305 throws java.io.IOException {
3306 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3307 com.google.protobuf.UnknownFieldSet.newBuilder(
3308 this.getUnknownFields());
3309 while (true) {
3310 int tag = input.readTag();
3311 switch (tag) {
3312 case 0:
3313 this.setUnknownFields(unknownFields.build());
3314 onChanged();
3315 return this;
3316 default: {
3317 if (!parseUnknownField(input, unknownFields,
3318 extensionRegistry, tag)) {
3319 this.setUnknownFields(unknownFields.build());
3320 onChanged();
3321 return this;
3322 }
3323 break;
3324 }
3325 case 10: {
3326 bitField0_ |= 0x00000001;
3327 username_ = input.readBytes();
3328 break;
3329 }
3330 case 18: {
3331 bitField0_ |= 0x00000002;
3332 authMethod_ = input.readBytes();
3333 break;
3334 }
3335 }
3336 }
3337 }
3338
3339 private int bitField0_;
3340
3341
3342 private java.lang.Object username_ = "";
3343 public boolean hasUsername() {
3344 return ((bitField0_ & 0x00000001) == 0x00000001);
3345 }
3346 public String getUsername() {
3347 java.lang.Object ref = username_;
3348 if (!(ref instanceof String)) {
3349 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
3350 username_ = s;
3351 return s;
3352 } else {
3353 return (String) ref;
3354 }
3355 }
3356 public Builder setUsername(String value) {
3357 if (value == null) {
3358 throw new NullPointerException();
3359 }
3360 bitField0_ |= 0x00000001;
3361 username_ = value;
3362 onChanged();
3363 return this;
3364 }
3365 public Builder clearUsername() {
3366 bitField0_ = (bitField0_ & ~0x00000001);
3367 username_ = getDefaultInstance().getUsername();
3368 onChanged();
3369 return this;
3370 }
3371 void setUsername(com.google.protobuf.ByteString value) {
3372 bitField0_ |= 0x00000001;
3373 username_ = value;
3374 onChanged();
3375 }
3376
3377
3378 private java.lang.Object authMethod_ = "";
3379 public boolean hasAuthMethod() {
3380 return ((bitField0_ & 0x00000002) == 0x00000002);
3381 }
3382 public String getAuthMethod() {
3383 java.lang.Object ref = authMethod_;
3384 if (!(ref instanceof String)) {
3385 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
3386 authMethod_ = s;
3387 return s;
3388 } else {
3389 return (String) ref;
3390 }
3391 }
3392 public Builder setAuthMethod(String value) {
3393 if (value == null) {
3394 throw new NullPointerException();
3395 }
3396 bitField0_ |= 0x00000002;
3397 authMethod_ = value;
3398 onChanged();
3399 return this;
3400 }
3401 public Builder clearAuthMethod() {
3402 bitField0_ = (bitField0_ & ~0x00000002);
3403 authMethod_ = getDefaultInstance().getAuthMethod();
3404 onChanged();
3405 return this;
3406 }
3407 void setAuthMethod(com.google.protobuf.ByteString value) {
3408 bitField0_ |= 0x00000002;
3409 authMethod_ = value;
3410 onChanged();
3411 }
3412
3413
3414 }
3415
3416 static {
3417 defaultInstance = new WhoAmIResponse(true);
3418 defaultInstance.initFields();
3419 }
3420
3421
3422 }
3423
3424 public static abstract class AuthenticationService
3425 implements com.google.protobuf.Service {
3426 protected AuthenticationService() {}
3427
3428 public interface Interface {
3429 public abstract void getAuthenticationToken(
3430 com.google.protobuf.RpcController controller,
3431 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest request,
3432 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse> done);
3433
3434 public abstract void whoami(
3435 com.google.protobuf.RpcController controller,
3436 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest request,
3437 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse> done);
3438
3439 }
3440
3441 public static com.google.protobuf.Service newReflectiveService(
3442 final Interface impl) {
3443 return new AuthenticationService() {
3444 @java.lang.Override
3445 public void getAuthenticationToken(
3446 com.google.protobuf.RpcController controller,
3447 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest request,
3448 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse> done) {
3449 impl.getAuthenticationToken(controller, request, done);
3450 }
3451
3452 @java.lang.Override
3453 public void whoami(
3454 com.google.protobuf.RpcController controller,
3455 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest request,
3456 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse> done) {
3457 impl.whoami(controller, request, done);
3458 }
3459
3460 };
3461 }
3462
3463 public static com.google.protobuf.BlockingService
3464 newReflectiveBlockingService(final BlockingInterface impl) {
3465 return new com.google.protobuf.BlockingService() {
3466 public final com.google.protobuf.Descriptors.ServiceDescriptor
3467 getDescriptorForType() {
3468 return getDescriptor();
3469 }
3470
3471 public final com.google.protobuf.Message callBlockingMethod(
3472 com.google.protobuf.Descriptors.MethodDescriptor method,
3473 com.google.protobuf.RpcController controller,
3474 com.google.protobuf.Message request)
3475 throws com.google.protobuf.ServiceException {
3476 if (method.getService() != getDescriptor()) {
3477 throw new java.lang.IllegalArgumentException(
3478 "Service.callBlockingMethod() given method descriptor for " +
3479 "wrong service type.");
3480 }
3481 switch(method.getIndex()) {
3482 case 0:
3483 return impl.getAuthenticationToken(controller, (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest)request);
3484 case 1:
3485 return impl.whoami(controller, (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest)request);
3486 default:
3487 throw new java.lang.AssertionError("Can't get here.");
3488 }
3489 }
3490
3491 public final com.google.protobuf.Message
3492 getRequestPrototype(
3493 com.google.protobuf.Descriptors.MethodDescriptor method) {
3494 if (method.getService() != getDescriptor()) {
3495 throw new java.lang.IllegalArgumentException(
3496 "Service.getRequestPrototype() given method " +
3497 "descriptor for wrong service type.");
3498 }
3499 switch(method.getIndex()) {
3500 case 0:
3501 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest.getDefaultInstance();
3502 case 1:
3503 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest.getDefaultInstance();
3504 default:
3505 throw new java.lang.AssertionError("Can't get here.");
3506 }
3507 }
3508
3509 public final com.google.protobuf.Message
3510 getResponsePrototype(
3511 com.google.protobuf.Descriptors.MethodDescriptor method) {
3512 if (method.getService() != getDescriptor()) {
3513 throw new java.lang.IllegalArgumentException(
3514 "Service.getResponsePrototype() given method " +
3515 "descriptor for wrong service type.");
3516 }
3517 switch(method.getIndex()) {
3518 case 0:
3519 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse.getDefaultInstance();
3520 case 1:
3521 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse.getDefaultInstance();
3522 default:
3523 throw new java.lang.AssertionError("Can't get here.");
3524 }
3525 }
3526
3527 };
3528 }
3529
3530 public abstract void getAuthenticationToken(
3531 com.google.protobuf.RpcController controller,
3532 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest request,
3533 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse> done);
3534
3535 public abstract void whoami(
3536 com.google.protobuf.RpcController controller,
3537 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest request,
3538 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse> done);
3539
3540 public static final
3541 com.google.protobuf.Descriptors.ServiceDescriptor
3542 getDescriptor() {
3543 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.getDescriptor().getServices().get(0);
3544 }
3545 public final com.google.protobuf.Descriptors.ServiceDescriptor
3546 getDescriptorForType() {
3547 return getDescriptor();
3548 }
3549
3550 public final void callMethod(
3551 com.google.protobuf.Descriptors.MethodDescriptor method,
3552 com.google.protobuf.RpcController controller,
3553 com.google.protobuf.Message request,
3554 com.google.protobuf.RpcCallback<
3555 com.google.protobuf.Message> done) {
3556 if (method.getService() != getDescriptor()) {
3557 throw new java.lang.IllegalArgumentException(
3558 "Service.callMethod() given method descriptor for wrong " +
3559 "service type.");
3560 }
3561 switch(method.getIndex()) {
3562 case 0:
3563 this.getAuthenticationToken(controller, (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest)request,
3564 com.google.protobuf.RpcUtil.<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse>specializeCallback(
3565 done));
3566 return;
3567 case 1:
3568 this.whoami(controller, (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest)request,
3569 com.google.protobuf.RpcUtil.<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse>specializeCallback(
3570 done));
3571 return;
3572 default:
3573 throw new java.lang.AssertionError("Can't get here.");
3574 }
3575 }
3576
3577 public final com.google.protobuf.Message
3578 getRequestPrototype(
3579 com.google.protobuf.Descriptors.MethodDescriptor method) {
3580 if (method.getService() != getDescriptor()) {
3581 throw new java.lang.IllegalArgumentException(
3582 "Service.getRequestPrototype() given method " +
3583 "descriptor for wrong service type.");
3584 }
3585 switch(method.getIndex()) {
3586 case 0:
3587 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest.getDefaultInstance();
3588 case 1:
3589 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest.getDefaultInstance();
3590 default:
3591 throw new java.lang.AssertionError("Can't get here.");
3592 }
3593 }
3594
3595 public final com.google.protobuf.Message
3596 getResponsePrototype(
3597 com.google.protobuf.Descriptors.MethodDescriptor method) {
3598 if (method.getService() != getDescriptor()) {
3599 throw new java.lang.IllegalArgumentException(
3600 "Service.getResponsePrototype() given method " +
3601 "descriptor for wrong service type.");
3602 }
3603 switch(method.getIndex()) {
3604 case 0:
3605 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse.getDefaultInstance();
3606 case 1:
3607 return org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse.getDefaultInstance();
3608 default:
3609 throw new java.lang.AssertionError("Can't get here.");
3610 }
3611 }
3612
3613 public static Stub newStub(
3614 com.google.protobuf.RpcChannel channel) {
3615 return new Stub(channel);
3616 }
3617
3618 public static final class Stub extends org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationService implements Interface {
3619 private Stub(com.google.protobuf.RpcChannel channel) {
3620 this.channel = channel;
3621 }
3622
3623 private final com.google.protobuf.RpcChannel channel;
3624
3625 public com.google.protobuf.RpcChannel getChannel() {
3626 return channel;
3627 }
3628
3629 public void getAuthenticationToken(
3630 com.google.protobuf.RpcController controller,
3631 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest request,
3632 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse> done) {
3633 channel.callMethod(
3634 getDescriptor().getMethods().get(0),
3635 controller,
3636 request,
3637 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse.getDefaultInstance(),
3638 com.google.protobuf.RpcUtil.generalizeCallback(
3639 done,
3640 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse.class,
3641 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse.getDefaultInstance()));
3642 }
3643
3644 public void whoami(
3645 com.google.protobuf.RpcController controller,
3646 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest request,
3647 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse> done) {
3648 channel.callMethod(
3649 getDescriptor().getMethods().get(1),
3650 controller,
3651 request,
3652 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse.getDefaultInstance(),
3653 com.google.protobuf.RpcUtil.generalizeCallback(
3654 done,
3655 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse.class,
3656 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse.getDefaultInstance()));
3657 }
3658 }
3659
3660 public static BlockingInterface newBlockingStub(
3661 com.google.protobuf.BlockingRpcChannel channel) {
3662 return new BlockingStub(channel);
3663 }
3664
3665 public interface BlockingInterface {
3666 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse getAuthenticationToken(
3667 com.google.protobuf.RpcController controller,
3668 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest request)
3669 throws com.google.protobuf.ServiceException;
3670
3671 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse whoami(
3672 com.google.protobuf.RpcController controller,
3673 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest request)
3674 throws com.google.protobuf.ServiceException;
3675 }
3676
3677 private static final class BlockingStub implements BlockingInterface {
3678 private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
3679 this.channel = channel;
3680 }
3681
3682 private final com.google.protobuf.BlockingRpcChannel channel;
3683
3684 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse getAuthenticationToken(
3685 com.google.protobuf.RpcController controller,
3686 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest request)
3687 throws com.google.protobuf.ServiceException {
3688 return (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse) channel.callBlockingMethod(
3689 getDescriptor().getMethods().get(0),
3690 controller,
3691 request,
3692 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse.getDefaultInstance());
3693 }
3694
3695
3696 public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse whoami(
3697 com.google.protobuf.RpcController controller,
3698 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest request)
3699 throws com.google.protobuf.ServiceException {
3700 return (org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse) channel.callBlockingMethod(
3701 getDescriptor().getMethods().get(1),
3702 controller,
3703 request,
3704 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse.getDefaultInstance());
3705 }
3706
3707 }
3708 }
3709
3710 private static com.google.protobuf.Descriptors.Descriptor
3711 internal_static_AuthenticationKey_descriptor;
3712 private static
3713 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3714 internal_static_AuthenticationKey_fieldAccessorTable;
3715 private static com.google.protobuf.Descriptors.Descriptor
3716 internal_static_TokenIdentifier_descriptor;
3717 private static
3718 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3719 internal_static_TokenIdentifier_fieldAccessorTable;
3720 private static com.google.protobuf.Descriptors.Descriptor
3721 internal_static_Token_descriptor;
3722 private static
3723 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3724 internal_static_Token_fieldAccessorTable;
3725 private static com.google.protobuf.Descriptors.Descriptor
3726 internal_static_TokenRequest_descriptor;
3727 private static
3728 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3729 internal_static_TokenRequest_fieldAccessorTable;
3730 private static com.google.protobuf.Descriptors.Descriptor
3731 internal_static_TokenResponse_descriptor;
3732 private static
3733 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3734 internal_static_TokenResponse_fieldAccessorTable;
3735 private static com.google.protobuf.Descriptors.Descriptor
3736 internal_static_WhoAmIRequest_descriptor;
3737 private static
3738 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3739 internal_static_WhoAmIRequest_fieldAccessorTable;
3740 private static com.google.protobuf.Descriptors.Descriptor
3741 internal_static_WhoAmIResponse_descriptor;
3742 private static
3743 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3744 internal_static_WhoAmIResponse_fieldAccessorTable;
3745
3746 public static com.google.protobuf.Descriptors.FileDescriptor
3747 getDescriptor() {
3748 return descriptor;
3749 }
3750 private static com.google.protobuf.Descriptors.FileDescriptor
3751 descriptor;
3752 static {
3753 java.lang.String[] descriptorData = {
3754 "\n\024Authentication.proto\"D\n\021Authentication" +
3755 "Key\022\n\n\002id\030\001 \002(\005\022\026\n\016expirationDate\030\002 \002(\003\022" +
3756 "\013\n\003key\030\003 \002(\014\"\270\001\n\017TokenIdentifier\022#\n\004kind" +
3757 "\030\001 \002(\0162\025.TokenIdentifier.Kind\022\020\n\010usernam" +
3758 "e\030\002 \002(\014\022\r\n\005keyId\030\003 \002(\005\022\021\n\tissueDate\030\004 \001(" +
3759 "\003\022\026\n\016expirationDate\030\005 \001(\003\022\026\n\016sequenceNum" +
3760 "ber\030\006 \001(\003\"\034\n\004Kind\022\024\n\020HBASE_AUTH_TOKEN\020\000\"" +
3761 ">\n\005Token\022\022\n\nidentifier\030\001 \001(\014\022\020\n\010password" +
3762 "\030\002 \001(\014\022\017\n\007service\030\003 \001(\014\"\016\n\014TokenRequest\"" +
3763 "&\n\rTokenResponse\022\025\n\005token\030\001 \001(\0132\006.Token\"",
3764 "\017\n\rWhoAmIRequest\"6\n\016WhoAmIResponse\022\020\n\010us" +
3765 "ername\030\001 \001(\t\022\022\n\nauthMethod\030\002 \001(\t2{\n\025Auth" +
3766 "enticationService\0227\n\026getAuthenticationTo" +
3767 "ken\022\r.TokenRequest\032\016.TokenResponse\022)\n\006wh" +
3768 "oami\022\016.WhoAmIRequest\032\017.WhoAmIResponseBJ\n" +
3769 "*org.apache.hadoop.hbase.protobuf.genera" +
3770 "tedB\024AuthenticationProtosH\001\210\001\001\240\001\001"
3771 };
3772 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
3773 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
3774 public com.google.protobuf.ExtensionRegistry assignDescriptors(
3775 com.google.protobuf.Descriptors.FileDescriptor root) {
3776 descriptor = root;
3777 internal_static_AuthenticationKey_descriptor =
3778 getDescriptor().getMessageTypes().get(0);
3779 internal_static_AuthenticationKey_fieldAccessorTable = new
3780 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3781 internal_static_AuthenticationKey_descriptor,
3782 new java.lang.String[] { "Id", "ExpirationDate", "Key", },
3783 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey.class,
3784 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationKey.Builder.class);
3785 internal_static_TokenIdentifier_descriptor =
3786 getDescriptor().getMessageTypes().get(1);
3787 internal_static_TokenIdentifier_fieldAccessorTable = new
3788 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3789 internal_static_TokenIdentifier_descriptor,
3790 new java.lang.String[] { "Kind", "Username", "KeyId", "IssueDate", "ExpirationDate", "SequenceNumber", },
3791 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.class,
3792 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Builder.class);
3793 internal_static_Token_descriptor =
3794 getDescriptor().getMessageTypes().get(2);
3795 internal_static_Token_fieldAccessorTable = new
3796 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3797 internal_static_Token_descriptor,
3798 new java.lang.String[] { "Identifier", "Password", "Service", },
3799 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.class,
3800 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.Token.Builder.class);
3801 internal_static_TokenRequest_descriptor =
3802 getDescriptor().getMessageTypes().get(3);
3803 internal_static_TokenRequest_fieldAccessorTable = new
3804 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3805 internal_static_TokenRequest_descriptor,
3806 new java.lang.String[] { },
3807 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest.class,
3808 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenRequest.Builder.class);
3809 internal_static_TokenResponse_descriptor =
3810 getDescriptor().getMessageTypes().get(4);
3811 internal_static_TokenResponse_fieldAccessorTable = new
3812 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3813 internal_static_TokenResponse_descriptor,
3814 new java.lang.String[] { "Token", },
3815 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse.class,
3816 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenResponse.Builder.class);
3817 internal_static_WhoAmIRequest_descriptor =
3818 getDescriptor().getMessageTypes().get(5);
3819 internal_static_WhoAmIRequest_fieldAccessorTable = new
3820 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3821 internal_static_WhoAmIRequest_descriptor,
3822 new java.lang.String[] { },
3823 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest.class,
3824 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest.Builder.class);
3825 internal_static_WhoAmIResponse_descriptor =
3826 getDescriptor().getMessageTypes().get(6);
3827 internal_static_WhoAmIResponse_fieldAccessorTable = new
3828 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3829 internal_static_WhoAmIResponse_descriptor,
3830 new java.lang.String[] { "Username", "AuthMethod", },
3831 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse.class,
3832 org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse.Builder.class);
3833 return null;
3834 }
3835 };
3836 com.google.protobuf.Descriptors.FileDescriptor
3837 .internalBuildGeneratedFileFrom(descriptorData,
3838 new com.google.protobuf.Descriptors.FileDescriptor[] {
3839 }, assigner);
3840 }
3841
3842
3843 }