001 // Generated by the protocol buffer compiler. DO NOT EDIT!
002 // source: Security.proto
003
004 package org.apache.hadoop.security.proto;
005
006 public final class SecurityProtos {
007 private SecurityProtos() {}
008 public static void registerAllExtensions(
009 com.google.protobuf.ExtensionRegistry registry) {
010 }
011 public interface TokenProtoOrBuilder
012 extends com.google.protobuf.MessageOrBuilder {
013
014 // required bytes identifier = 1;
015 boolean hasIdentifier();
016 com.google.protobuf.ByteString getIdentifier();
017
018 // required bytes password = 2;
019 boolean hasPassword();
020 com.google.protobuf.ByteString getPassword();
021
022 // required string kind = 3;
023 boolean hasKind();
024 String getKind();
025
026 // required string service = 4;
027 boolean hasService();
028 String getService();
029 }
030 public static final class TokenProto extends
031 com.google.protobuf.GeneratedMessage
032 implements TokenProtoOrBuilder {
033 // Use TokenProto.newBuilder() to construct.
034 private TokenProto(Builder builder) {
035 super(builder);
036 }
037 private TokenProto(boolean noInit) {}
038
039 private static final TokenProto defaultInstance;
040 public static TokenProto getDefaultInstance() {
041 return defaultInstance;
042 }
043
044 public TokenProto getDefaultInstanceForType() {
045 return defaultInstance;
046 }
047
048 public static final com.google.protobuf.Descriptors.Descriptor
049 getDescriptor() {
050 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_TokenProto_descriptor;
051 }
052
053 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
054 internalGetFieldAccessorTable() {
055 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_TokenProto_fieldAccessorTable;
056 }
057
058 private int bitField0_;
059 // required bytes identifier = 1;
060 public static final int IDENTIFIER_FIELD_NUMBER = 1;
061 private com.google.protobuf.ByteString identifier_;
062 public boolean hasIdentifier() {
063 return ((bitField0_ & 0x00000001) == 0x00000001);
064 }
065 public com.google.protobuf.ByteString getIdentifier() {
066 return identifier_;
067 }
068
069 // required bytes password = 2;
070 public static final int PASSWORD_FIELD_NUMBER = 2;
071 private com.google.protobuf.ByteString password_;
072 public boolean hasPassword() {
073 return ((bitField0_ & 0x00000002) == 0x00000002);
074 }
075 public com.google.protobuf.ByteString getPassword() {
076 return password_;
077 }
078
079 // required string kind = 3;
080 public static final int KIND_FIELD_NUMBER = 3;
081 private java.lang.Object kind_;
082 public boolean hasKind() {
083 return ((bitField0_ & 0x00000004) == 0x00000004);
084 }
085 public String getKind() {
086 java.lang.Object ref = kind_;
087 if (ref instanceof String) {
088 return (String) ref;
089 } else {
090 com.google.protobuf.ByteString bs =
091 (com.google.protobuf.ByteString) ref;
092 String s = bs.toStringUtf8();
093 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
094 kind_ = s;
095 }
096 return s;
097 }
098 }
099 private com.google.protobuf.ByteString getKindBytes() {
100 java.lang.Object ref = kind_;
101 if (ref instanceof String) {
102 com.google.protobuf.ByteString b =
103 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
104 kind_ = b;
105 return b;
106 } else {
107 return (com.google.protobuf.ByteString) ref;
108 }
109 }
110
111 // required string service = 4;
112 public static final int SERVICE_FIELD_NUMBER = 4;
113 private java.lang.Object service_;
114 public boolean hasService() {
115 return ((bitField0_ & 0x00000008) == 0x00000008);
116 }
117 public String getService() {
118 java.lang.Object ref = service_;
119 if (ref instanceof String) {
120 return (String) ref;
121 } else {
122 com.google.protobuf.ByteString bs =
123 (com.google.protobuf.ByteString) ref;
124 String s = bs.toStringUtf8();
125 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
126 service_ = s;
127 }
128 return s;
129 }
130 }
131 private com.google.protobuf.ByteString getServiceBytes() {
132 java.lang.Object ref = service_;
133 if (ref instanceof String) {
134 com.google.protobuf.ByteString b =
135 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
136 service_ = b;
137 return b;
138 } else {
139 return (com.google.protobuf.ByteString) ref;
140 }
141 }
142
143 private void initFields() {
144 identifier_ = com.google.protobuf.ByteString.EMPTY;
145 password_ = com.google.protobuf.ByteString.EMPTY;
146 kind_ = "";
147 service_ = "";
148 }
149 private byte memoizedIsInitialized = -1;
150 public final boolean isInitialized() {
151 byte isInitialized = memoizedIsInitialized;
152 if (isInitialized != -1) return isInitialized == 1;
153
154 if (!hasIdentifier()) {
155 memoizedIsInitialized = 0;
156 return false;
157 }
158 if (!hasPassword()) {
159 memoizedIsInitialized = 0;
160 return false;
161 }
162 if (!hasKind()) {
163 memoizedIsInitialized = 0;
164 return false;
165 }
166 if (!hasService()) {
167 memoizedIsInitialized = 0;
168 return false;
169 }
170 memoizedIsInitialized = 1;
171 return true;
172 }
173
174 public void writeTo(com.google.protobuf.CodedOutputStream output)
175 throws java.io.IOException {
176 getSerializedSize();
177 if (((bitField0_ & 0x00000001) == 0x00000001)) {
178 output.writeBytes(1, identifier_);
179 }
180 if (((bitField0_ & 0x00000002) == 0x00000002)) {
181 output.writeBytes(2, password_);
182 }
183 if (((bitField0_ & 0x00000004) == 0x00000004)) {
184 output.writeBytes(3, getKindBytes());
185 }
186 if (((bitField0_ & 0x00000008) == 0x00000008)) {
187 output.writeBytes(4, getServiceBytes());
188 }
189 getUnknownFields().writeTo(output);
190 }
191
192 private int memoizedSerializedSize = -1;
193 public int getSerializedSize() {
194 int size = memoizedSerializedSize;
195 if (size != -1) return size;
196
197 size = 0;
198 if (((bitField0_ & 0x00000001) == 0x00000001)) {
199 size += com.google.protobuf.CodedOutputStream
200 .computeBytesSize(1, identifier_);
201 }
202 if (((bitField0_ & 0x00000002) == 0x00000002)) {
203 size += com.google.protobuf.CodedOutputStream
204 .computeBytesSize(2, password_);
205 }
206 if (((bitField0_ & 0x00000004) == 0x00000004)) {
207 size += com.google.protobuf.CodedOutputStream
208 .computeBytesSize(3, getKindBytes());
209 }
210 if (((bitField0_ & 0x00000008) == 0x00000008)) {
211 size += com.google.protobuf.CodedOutputStream
212 .computeBytesSize(4, getServiceBytes());
213 }
214 size += getUnknownFields().getSerializedSize();
215 memoizedSerializedSize = size;
216 return size;
217 }
218
219 private static final long serialVersionUID = 0L;
220 @java.lang.Override
221 protected java.lang.Object writeReplace()
222 throws java.io.ObjectStreamException {
223 return super.writeReplace();
224 }
225
226 @java.lang.Override
227 public boolean equals(final java.lang.Object obj) {
228 if (obj == this) {
229 return true;
230 }
231 if (!(obj instanceof org.apache.hadoop.security.proto.SecurityProtos.TokenProto)) {
232 return super.equals(obj);
233 }
234 org.apache.hadoop.security.proto.SecurityProtos.TokenProto other = (org.apache.hadoop.security.proto.SecurityProtos.TokenProto) obj;
235
236 boolean result = true;
237 result = result && (hasIdentifier() == other.hasIdentifier());
238 if (hasIdentifier()) {
239 result = result && getIdentifier()
240 .equals(other.getIdentifier());
241 }
242 result = result && (hasPassword() == other.hasPassword());
243 if (hasPassword()) {
244 result = result && getPassword()
245 .equals(other.getPassword());
246 }
247 result = result && (hasKind() == other.hasKind());
248 if (hasKind()) {
249 result = result && getKind()
250 .equals(other.getKind());
251 }
252 result = result && (hasService() == other.hasService());
253 if (hasService()) {
254 result = result && getService()
255 .equals(other.getService());
256 }
257 result = result &&
258 getUnknownFields().equals(other.getUnknownFields());
259 return result;
260 }
261
262 @java.lang.Override
263 public int hashCode() {
264 int hash = 41;
265 hash = (19 * hash) + getDescriptorForType().hashCode();
266 if (hasIdentifier()) {
267 hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER;
268 hash = (53 * hash) + getIdentifier().hashCode();
269 }
270 if (hasPassword()) {
271 hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
272 hash = (53 * hash) + getPassword().hashCode();
273 }
274 if (hasKind()) {
275 hash = (37 * hash) + KIND_FIELD_NUMBER;
276 hash = (53 * hash) + getKind().hashCode();
277 }
278 if (hasService()) {
279 hash = (37 * hash) + SERVICE_FIELD_NUMBER;
280 hash = (53 * hash) + getService().hashCode();
281 }
282 hash = (29 * hash) + getUnknownFields().hashCode();
283 return hash;
284 }
285
286 public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto parseFrom(
287 com.google.protobuf.ByteString data)
288 throws com.google.protobuf.InvalidProtocolBufferException {
289 return newBuilder().mergeFrom(data).buildParsed();
290 }
291 public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto parseFrom(
292 com.google.protobuf.ByteString data,
293 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
294 throws com.google.protobuf.InvalidProtocolBufferException {
295 return newBuilder().mergeFrom(data, extensionRegistry)
296 .buildParsed();
297 }
298 public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto parseFrom(byte[] data)
299 throws com.google.protobuf.InvalidProtocolBufferException {
300 return newBuilder().mergeFrom(data).buildParsed();
301 }
302 public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto parseFrom(
303 byte[] data,
304 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
305 throws com.google.protobuf.InvalidProtocolBufferException {
306 return newBuilder().mergeFrom(data, extensionRegistry)
307 .buildParsed();
308 }
309 public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto parseFrom(java.io.InputStream input)
310 throws java.io.IOException {
311 return newBuilder().mergeFrom(input).buildParsed();
312 }
313 public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto parseFrom(
314 java.io.InputStream input,
315 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
316 throws java.io.IOException {
317 return newBuilder().mergeFrom(input, extensionRegistry)
318 .buildParsed();
319 }
320 public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto parseDelimitedFrom(java.io.InputStream input)
321 throws java.io.IOException {
322 Builder builder = newBuilder();
323 if (builder.mergeDelimitedFrom(input)) {
324 return builder.buildParsed();
325 } else {
326 return null;
327 }
328 }
329 public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto parseDelimitedFrom(
330 java.io.InputStream input,
331 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
332 throws java.io.IOException {
333 Builder builder = newBuilder();
334 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
335 return builder.buildParsed();
336 } else {
337 return null;
338 }
339 }
340 public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto parseFrom(
341 com.google.protobuf.CodedInputStream input)
342 throws java.io.IOException {
343 return newBuilder().mergeFrom(input).buildParsed();
344 }
345 public static org.apache.hadoop.security.proto.SecurityProtos.TokenProto parseFrom(
346 com.google.protobuf.CodedInputStream input,
347 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
348 throws java.io.IOException {
349 return newBuilder().mergeFrom(input, extensionRegistry)
350 .buildParsed();
351 }
352
353 public static Builder newBuilder() { return Builder.create(); }
354 public Builder newBuilderForType() { return newBuilder(); }
355 public static Builder newBuilder(org.apache.hadoop.security.proto.SecurityProtos.TokenProto prototype) {
356 return newBuilder().mergeFrom(prototype);
357 }
358 public Builder toBuilder() { return newBuilder(this); }
359
360 @java.lang.Override
361 protected Builder newBuilderForType(
362 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
363 Builder builder = new Builder(parent);
364 return builder;
365 }
366 public static final class Builder extends
367 com.google.protobuf.GeneratedMessage.Builder<Builder>
368 implements org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder {
369 public static final com.google.protobuf.Descriptors.Descriptor
370 getDescriptor() {
371 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_TokenProto_descriptor;
372 }
373
374 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
375 internalGetFieldAccessorTable() {
376 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_TokenProto_fieldAccessorTable;
377 }
378
379 // Construct using org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder()
380 private Builder() {
381 maybeForceBuilderInitialization();
382 }
383
384 private Builder(BuilderParent parent) {
385 super(parent);
386 maybeForceBuilderInitialization();
387 }
388 private void maybeForceBuilderInitialization() {
389 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
390 }
391 }
392 private static Builder create() {
393 return new Builder();
394 }
395
396 public Builder clear() {
397 super.clear();
398 identifier_ = com.google.protobuf.ByteString.EMPTY;
399 bitField0_ = (bitField0_ & ~0x00000001);
400 password_ = com.google.protobuf.ByteString.EMPTY;
401 bitField0_ = (bitField0_ & ~0x00000002);
402 kind_ = "";
403 bitField0_ = (bitField0_ & ~0x00000004);
404 service_ = "";
405 bitField0_ = (bitField0_ & ~0x00000008);
406 return this;
407 }
408
409 public Builder clone() {
410 return create().mergeFrom(buildPartial());
411 }
412
413 public com.google.protobuf.Descriptors.Descriptor
414 getDescriptorForType() {
415 return org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDescriptor();
416 }
417
418 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getDefaultInstanceForType() {
419 return org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
420 }
421
422 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto build() {
423 org.apache.hadoop.security.proto.SecurityProtos.TokenProto result = buildPartial();
424 if (!result.isInitialized()) {
425 throw newUninitializedMessageException(result);
426 }
427 return result;
428 }
429
430 private org.apache.hadoop.security.proto.SecurityProtos.TokenProto buildParsed()
431 throws com.google.protobuf.InvalidProtocolBufferException {
432 org.apache.hadoop.security.proto.SecurityProtos.TokenProto result = buildPartial();
433 if (!result.isInitialized()) {
434 throw newUninitializedMessageException(
435 result).asInvalidProtocolBufferException();
436 }
437 return result;
438 }
439
440 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto buildPartial() {
441 org.apache.hadoop.security.proto.SecurityProtos.TokenProto result = new org.apache.hadoop.security.proto.SecurityProtos.TokenProto(this);
442 int from_bitField0_ = bitField0_;
443 int to_bitField0_ = 0;
444 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
445 to_bitField0_ |= 0x00000001;
446 }
447 result.identifier_ = identifier_;
448 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
449 to_bitField0_ |= 0x00000002;
450 }
451 result.password_ = password_;
452 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
453 to_bitField0_ |= 0x00000004;
454 }
455 result.kind_ = kind_;
456 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
457 to_bitField0_ |= 0x00000008;
458 }
459 result.service_ = service_;
460 result.bitField0_ = to_bitField0_;
461 onBuilt();
462 return result;
463 }
464
465 public Builder mergeFrom(com.google.protobuf.Message other) {
466 if (other instanceof org.apache.hadoop.security.proto.SecurityProtos.TokenProto) {
467 return mergeFrom((org.apache.hadoop.security.proto.SecurityProtos.TokenProto)other);
468 } else {
469 super.mergeFrom(other);
470 return this;
471 }
472 }
473
474 public Builder mergeFrom(org.apache.hadoop.security.proto.SecurityProtos.TokenProto other) {
475 if (other == org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance()) return this;
476 if (other.hasIdentifier()) {
477 setIdentifier(other.getIdentifier());
478 }
479 if (other.hasPassword()) {
480 setPassword(other.getPassword());
481 }
482 if (other.hasKind()) {
483 setKind(other.getKind());
484 }
485 if (other.hasService()) {
486 setService(other.getService());
487 }
488 this.mergeUnknownFields(other.getUnknownFields());
489 return this;
490 }
491
492 public final boolean isInitialized() {
493 if (!hasIdentifier()) {
494
495 return false;
496 }
497 if (!hasPassword()) {
498
499 return false;
500 }
501 if (!hasKind()) {
502
503 return false;
504 }
505 if (!hasService()) {
506
507 return false;
508 }
509 return true;
510 }
511
512 public Builder mergeFrom(
513 com.google.protobuf.CodedInputStream input,
514 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
515 throws java.io.IOException {
516 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
517 com.google.protobuf.UnknownFieldSet.newBuilder(
518 this.getUnknownFields());
519 while (true) {
520 int tag = input.readTag();
521 switch (tag) {
522 case 0:
523 this.setUnknownFields(unknownFields.build());
524 onChanged();
525 return this;
526 default: {
527 if (!parseUnknownField(input, unknownFields,
528 extensionRegistry, tag)) {
529 this.setUnknownFields(unknownFields.build());
530 onChanged();
531 return this;
532 }
533 break;
534 }
535 case 10: {
536 bitField0_ |= 0x00000001;
537 identifier_ = input.readBytes();
538 break;
539 }
540 case 18: {
541 bitField0_ |= 0x00000002;
542 password_ = input.readBytes();
543 break;
544 }
545 case 26: {
546 bitField0_ |= 0x00000004;
547 kind_ = input.readBytes();
548 break;
549 }
550 case 34: {
551 bitField0_ |= 0x00000008;
552 service_ = input.readBytes();
553 break;
554 }
555 }
556 }
557 }
558
559 private int bitField0_;
560
561 // required bytes identifier = 1;
562 private com.google.protobuf.ByteString identifier_ = com.google.protobuf.ByteString.EMPTY;
563 public boolean hasIdentifier() {
564 return ((bitField0_ & 0x00000001) == 0x00000001);
565 }
566 public com.google.protobuf.ByteString getIdentifier() {
567 return identifier_;
568 }
569 public Builder setIdentifier(com.google.protobuf.ByteString value) {
570 if (value == null) {
571 throw new NullPointerException();
572 }
573 bitField0_ |= 0x00000001;
574 identifier_ = value;
575 onChanged();
576 return this;
577 }
578 public Builder clearIdentifier() {
579 bitField0_ = (bitField0_ & ~0x00000001);
580 identifier_ = getDefaultInstance().getIdentifier();
581 onChanged();
582 return this;
583 }
584
585 // required bytes password = 2;
586 private com.google.protobuf.ByteString password_ = com.google.protobuf.ByteString.EMPTY;
587 public boolean hasPassword() {
588 return ((bitField0_ & 0x00000002) == 0x00000002);
589 }
590 public com.google.protobuf.ByteString getPassword() {
591 return password_;
592 }
593 public Builder setPassword(com.google.protobuf.ByteString value) {
594 if (value == null) {
595 throw new NullPointerException();
596 }
597 bitField0_ |= 0x00000002;
598 password_ = value;
599 onChanged();
600 return this;
601 }
602 public Builder clearPassword() {
603 bitField0_ = (bitField0_ & ~0x00000002);
604 password_ = getDefaultInstance().getPassword();
605 onChanged();
606 return this;
607 }
608
609 // required string kind = 3;
610 private java.lang.Object kind_ = "";
611 public boolean hasKind() {
612 return ((bitField0_ & 0x00000004) == 0x00000004);
613 }
614 public String getKind() {
615 java.lang.Object ref = kind_;
616 if (!(ref instanceof String)) {
617 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
618 kind_ = s;
619 return s;
620 } else {
621 return (String) ref;
622 }
623 }
624 public Builder setKind(String value) {
625 if (value == null) {
626 throw new NullPointerException();
627 }
628 bitField0_ |= 0x00000004;
629 kind_ = value;
630 onChanged();
631 return this;
632 }
633 public Builder clearKind() {
634 bitField0_ = (bitField0_ & ~0x00000004);
635 kind_ = getDefaultInstance().getKind();
636 onChanged();
637 return this;
638 }
639 void setKind(com.google.protobuf.ByteString value) {
640 bitField0_ |= 0x00000004;
641 kind_ = value;
642 onChanged();
643 }
644
645 // required string service = 4;
646 private java.lang.Object service_ = "";
647 public boolean hasService() {
648 return ((bitField0_ & 0x00000008) == 0x00000008);
649 }
650 public String getService() {
651 java.lang.Object ref = service_;
652 if (!(ref instanceof String)) {
653 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
654 service_ = s;
655 return s;
656 } else {
657 return (String) ref;
658 }
659 }
660 public Builder setService(String value) {
661 if (value == null) {
662 throw new NullPointerException();
663 }
664 bitField0_ |= 0x00000008;
665 service_ = value;
666 onChanged();
667 return this;
668 }
669 public Builder clearService() {
670 bitField0_ = (bitField0_ & ~0x00000008);
671 service_ = getDefaultInstance().getService();
672 onChanged();
673 return this;
674 }
675 void setService(com.google.protobuf.ByteString value) {
676 bitField0_ |= 0x00000008;
677 service_ = value;
678 onChanged();
679 }
680
681 // @@protoc_insertion_point(builder_scope:hadoop.common.TokenProto)
682 }
683
684 static {
685 defaultInstance = new TokenProto(true);
686 defaultInstance.initFields();
687 }
688
689 // @@protoc_insertion_point(class_scope:hadoop.common.TokenProto)
690 }
691
692 public interface GetDelegationTokenRequestProtoOrBuilder
693 extends com.google.protobuf.MessageOrBuilder {
694
695 // required string renewer = 1;
696 boolean hasRenewer();
697 String getRenewer();
698 }
699 public static final class GetDelegationTokenRequestProto extends
700 com.google.protobuf.GeneratedMessage
701 implements GetDelegationTokenRequestProtoOrBuilder {
702 // Use GetDelegationTokenRequestProto.newBuilder() to construct.
703 private GetDelegationTokenRequestProto(Builder builder) {
704 super(builder);
705 }
706 private GetDelegationTokenRequestProto(boolean noInit) {}
707
708 private static final GetDelegationTokenRequestProto defaultInstance;
709 public static GetDelegationTokenRequestProto getDefaultInstance() {
710 return defaultInstance;
711 }
712
713 public GetDelegationTokenRequestProto getDefaultInstanceForType() {
714 return defaultInstance;
715 }
716
717 public static final com.google.protobuf.Descriptors.Descriptor
718 getDescriptor() {
719 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_GetDelegationTokenRequestProto_descriptor;
720 }
721
722 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
723 internalGetFieldAccessorTable() {
724 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_GetDelegationTokenRequestProto_fieldAccessorTable;
725 }
726
727 private int bitField0_;
728 // required string renewer = 1;
729 public static final int RENEWER_FIELD_NUMBER = 1;
730 private java.lang.Object renewer_;
731 public boolean hasRenewer() {
732 return ((bitField0_ & 0x00000001) == 0x00000001);
733 }
734 public String getRenewer() {
735 java.lang.Object ref = renewer_;
736 if (ref instanceof String) {
737 return (String) ref;
738 } else {
739 com.google.protobuf.ByteString bs =
740 (com.google.protobuf.ByteString) ref;
741 String s = bs.toStringUtf8();
742 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
743 renewer_ = s;
744 }
745 return s;
746 }
747 }
748 private com.google.protobuf.ByteString getRenewerBytes() {
749 java.lang.Object ref = renewer_;
750 if (ref instanceof String) {
751 com.google.protobuf.ByteString b =
752 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
753 renewer_ = b;
754 return b;
755 } else {
756 return (com.google.protobuf.ByteString) ref;
757 }
758 }
759
760 private void initFields() {
761 renewer_ = "";
762 }
763 private byte memoizedIsInitialized = -1;
764 public final boolean isInitialized() {
765 byte isInitialized = memoizedIsInitialized;
766 if (isInitialized != -1) return isInitialized == 1;
767
768 if (!hasRenewer()) {
769 memoizedIsInitialized = 0;
770 return false;
771 }
772 memoizedIsInitialized = 1;
773 return true;
774 }
775
776 public void writeTo(com.google.protobuf.CodedOutputStream output)
777 throws java.io.IOException {
778 getSerializedSize();
779 if (((bitField0_ & 0x00000001) == 0x00000001)) {
780 output.writeBytes(1, getRenewerBytes());
781 }
782 getUnknownFields().writeTo(output);
783 }
784
785 private int memoizedSerializedSize = -1;
786 public int getSerializedSize() {
787 int size = memoizedSerializedSize;
788 if (size != -1) return size;
789
790 size = 0;
791 if (((bitField0_ & 0x00000001) == 0x00000001)) {
792 size += com.google.protobuf.CodedOutputStream
793 .computeBytesSize(1, getRenewerBytes());
794 }
795 size += getUnknownFields().getSerializedSize();
796 memoizedSerializedSize = size;
797 return size;
798 }
799
800 private static final long serialVersionUID = 0L;
801 @java.lang.Override
802 protected java.lang.Object writeReplace()
803 throws java.io.ObjectStreamException {
804 return super.writeReplace();
805 }
806
807 @java.lang.Override
808 public boolean equals(final java.lang.Object obj) {
809 if (obj == this) {
810 return true;
811 }
812 if (!(obj instanceof org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto)) {
813 return super.equals(obj);
814 }
815 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto other = (org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto) obj;
816
817 boolean result = true;
818 result = result && (hasRenewer() == other.hasRenewer());
819 if (hasRenewer()) {
820 result = result && getRenewer()
821 .equals(other.getRenewer());
822 }
823 result = result &&
824 getUnknownFields().equals(other.getUnknownFields());
825 return result;
826 }
827
828 @java.lang.Override
829 public int hashCode() {
830 int hash = 41;
831 hash = (19 * hash) + getDescriptorForType().hashCode();
832 if (hasRenewer()) {
833 hash = (37 * hash) + RENEWER_FIELD_NUMBER;
834 hash = (53 * hash) + getRenewer().hashCode();
835 }
836 hash = (29 * hash) + getUnknownFields().hashCode();
837 return hash;
838 }
839
840 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto parseFrom(
841 com.google.protobuf.ByteString data)
842 throws com.google.protobuf.InvalidProtocolBufferException {
843 return newBuilder().mergeFrom(data).buildParsed();
844 }
845 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto parseFrom(
846 com.google.protobuf.ByteString data,
847 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
848 throws com.google.protobuf.InvalidProtocolBufferException {
849 return newBuilder().mergeFrom(data, extensionRegistry)
850 .buildParsed();
851 }
852 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto parseFrom(byte[] data)
853 throws com.google.protobuf.InvalidProtocolBufferException {
854 return newBuilder().mergeFrom(data).buildParsed();
855 }
856 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto parseFrom(
857 byte[] data,
858 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
859 throws com.google.protobuf.InvalidProtocolBufferException {
860 return newBuilder().mergeFrom(data, extensionRegistry)
861 .buildParsed();
862 }
863 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto parseFrom(java.io.InputStream input)
864 throws java.io.IOException {
865 return newBuilder().mergeFrom(input).buildParsed();
866 }
867 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto parseFrom(
868 java.io.InputStream input,
869 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
870 throws java.io.IOException {
871 return newBuilder().mergeFrom(input, extensionRegistry)
872 .buildParsed();
873 }
874 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto parseDelimitedFrom(java.io.InputStream input)
875 throws java.io.IOException {
876 Builder builder = newBuilder();
877 if (builder.mergeDelimitedFrom(input)) {
878 return builder.buildParsed();
879 } else {
880 return null;
881 }
882 }
883 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto parseDelimitedFrom(
884 java.io.InputStream input,
885 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
886 throws java.io.IOException {
887 Builder builder = newBuilder();
888 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
889 return builder.buildParsed();
890 } else {
891 return null;
892 }
893 }
894 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto parseFrom(
895 com.google.protobuf.CodedInputStream input)
896 throws java.io.IOException {
897 return newBuilder().mergeFrom(input).buildParsed();
898 }
899 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto parseFrom(
900 com.google.protobuf.CodedInputStream input,
901 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
902 throws java.io.IOException {
903 return newBuilder().mergeFrom(input, extensionRegistry)
904 .buildParsed();
905 }
906
907 public static Builder newBuilder() { return Builder.create(); }
908 public Builder newBuilderForType() { return newBuilder(); }
909 public static Builder newBuilder(org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto prototype) {
910 return newBuilder().mergeFrom(prototype);
911 }
912 public Builder toBuilder() { return newBuilder(this); }
913
914 @java.lang.Override
915 protected Builder newBuilderForType(
916 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
917 Builder builder = new Builder(parent);
918 return builder;
919 }
920 public static final class Builder extends
921 com.google.protobuf.GeneratedMessage.Builder<Builder>
922 implements org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProtoOrBuilder {
923 public static final com.google.protobuf.Descriptors.Descriptor
924 getDescriptor() {
925 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_GetDelegationTokenRequestProto_descriptor;
926 }
927
928 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
929 internalGetFieldAccessorTable() {
930 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_GetDelegationTokenRequestProto_fieldAccessorTable;
931 }
932
933 // Construct using org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto.newBuilder()
934 private Builder() {
935 maybeForceBuilderInitialization();
936 }
937
938 private Builder(BuilderParent parent) {
939 super(parent);
940 maybeForceBuilderInitialization();
941 }
942 private void maybeForceBuilderInitialization() {
943 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
944 }
945 }
946 private static Builder create() {
947 return new Builder();
948 }
949
950 public Builder clear() {
951 super.clear();
952 renewer_ = "";
953 bitField0_ = (bitField0_ & ~0x00000001);
954 return this;
955 }
956
957 public Builder clone() {
958 return create().mergeFrom(buildPartial());
959 }
960
961 public com.google.protobuf.Descriptors.Descriptor
962 getDescriptorForType() {
963 return org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto.getDescriptor();
964 }
965
966 public org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto getDefaultInstanceForType() {
967 return org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto.getDefaultInstance();
968 }
969
970 public org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto build() {
971 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto result = buildPartial();
972 if (!result.isInitialized()) {
973 throw newUninitializedMessageException(result);
974 }
975 return result;
976 }
977
978 private org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto buildParsed()
979 throws com.google.protobuf.InvalidProtocolBufferException {
980 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto result = buildPartial();
981 if (!result.isInitialized()) {
982 throw newUninitializedMessageException(
983 result).asInvalidProtocolBufferException();
984 }
985 return result;
986 }
987
988 public org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto buildPartial() {
989 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto result = new org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto(this);
990 int from_bitField0_ = bitField0_;
991 int to_bitField0_ = 0;
992 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
993 to_bitField0_ |= 0x00000001;
994 }
995 result.renewer_ = renewer_;
996 result.bitField0_ = to_bitField0_;
997 onBuilt();
998 return result;
999 }
1000
1001 public Builder mergeFrom(com.google.protobuf.Message other) {
1002 if (other instanceof org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto) {
1003 return mergeFrom((org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto)other);
1004 } else {
1005 super.mergeFrom(other);
1006 return this;
1007 }
1008 }
1009
1010 public Builder mergeFrom(org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto other) {
1011 if (other == org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto.getDefaultInstance()) return this;
1012 if (other.hasRenewer()) {
1013 setRenewer(other.getRenewer());
1014 }
1015 this.mergeUnknownFields(other.getUnknownFields());
1016 return this;
1017 }
1018
1019 public final boolean isInitialized() {
1020 if (!hasRenewer()) {
1021
1022 return false;
1023 }
1024 return true;
1025 }
1026
1027 public Builder mergeFrom(
1028 com.google.protobuf.CodedInputStream input,
1029 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1030 throws java.io.IOException {
1031 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1032 com.google.protobuf.UnknownFieldSet.newBuilder(
1033 this.getUnknownFields());
1034 while (true) {
1035 int tag = input.readTag();
1036 switch (tag) {
1037 case 0:
1038 this.setUnknownFields(unknownFields.build());
1039 onChanged();
1040 return this;
1041 default: {
1042 if (!parseUnknownField(input, unknownFields,
1043 extensionRegistry, tag)) {
1044 this.setUnknownFields(unknownFields.build());
1045 onChanged();
1046 return this;
1047 }
1048 break;
1049 }
1050 case 10: {
1051 bitField0_ |= 0x00000001;
1052 renewer_ = input.readBytes();
1053 break;
1054 }
1055 }
1056 }
1057 }
1058
1059 private int bitField0_;
1060
1061 // required string renewer = 1;
1062 private java.lang.Object renewer_ = "";
1063 public boolean hasRenewer() {
1064 return ((bitField0_ & 0x00000001) == 0x00000001);
1065 }
1066 public String getRenewer() {
1067 java.lang.Object ref = renewer_;
1068 if (!(ref instanceof String)) {
1069 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
1070 renewer_ = s;
1071 return s;
1072 } else {
1073 return (String) ref;
1074 }
1075 }
1076 public Builder setRenewer(String value) {
1077 if (value == null) {
1078 throw new NullPointerException();
1079 }
1080 bitField0_ |= 0x00000001;
1081 renewer_ = value;
1082 onChanged();
1083 return this;
1084 }
1085 public Builder clearRenewer() {
1086 bitField0_ = (bitField0_ & ~0x00000001);
1087 renewer_ = getDefaultInstance().getRenewer();
1088 onChanged();
1089 return this;
1090 }
1091 void setRenewer(com.google.protobuf.ByteString value) {
1092 bitField0_ |= 0x00000001;
1093 renewer_ = value;
1094 onChanged();
1095 }
1096
1097 // @@protoc_insertion_point(builder_scope:hadoop.common.GetDelegationTokenRequestProto)
1098 }
1099
1100 static {
1101 defaultInstance = new GetDelegationTokenRequestProto(true);
1102 defaultInstance.initFields();
1103 }
1104
1105 // @@protoc_insertion_point(class_scope:hadoop.common.GetDelegationTokenRequestProto)
1106 }
1107
1108 public interface GetDelegationTokenResponseProtoOrBuilder
1109 extends com.google.protobuf.MessageOrBuilder {
1110
1111 // optional .hadoop.common.TokenProto token = 1;
1112 boolean hasToken();
1113 org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken();
1114 org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder();
1115 }
1116 public static final class GetDelegationTokenResponseProto extends
1117 com.google.protobuf.GeneratedMessage
1118 implements GetDelegationTokenResponseProtoOrBuilder {
1119 // Use GetDelegationTokenResponseProto.newBuilder() to construct.
1120 private GetDelegationTokenResponseProto(Builder builder) {
1121 super(builder);
1122 }
1123 private GetDelegationTokenResponseProto(boolean noInit) {}
1124
1125 private static final GetDelegationTokenResponseProto defaultInstance;
1126 public static GetDelegationTokenResponseProto getDefaultInstance() {
1127 return defaultInstance;
1128 }
1129
1130 public GetDelegationTokenResponseProto getDefaultInstanceForType() {
1131 return defaultInstance;
1132 }
1133
1134 public static final com.google.protobuf.Descriptors.Descriptor
1135 getDescriptor() {
1136 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_GetDelegationTokenResponseProto_descriptor;
1137 }
1138
1139 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1140 internalGetFieldAccessorTable() {
1141 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_GetDelegationTokenResponseProto_fieldAccessorTable;
1142 }
1143
1144 private int bitField0_;
1145 // optional .hadoop.common.TokenProto token = 1;
1146 public static final int TOKEN_FIELD_NUMBER = 1;
1147 private org.apache.hadoop.security.proto.SecurityProtos.TokenProto token_;
1148 public boolean hasToken() {
1149 return ((bitField0_ & 0x00000001) == 0x00000001);
1150 }
1151 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken() {
1152 return token_;
1153 }
1154 public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder() {
1155 return token_;
1156 }
1157
1158 private void initFields() {
1159 token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
1160 }
1161 private byte memoizedIsInitialized = -1;
1162 public final boolean isInitialized() {
1163 byte isInitialized = memoizedIsInitialized;
1164 if (isInitialized != -1) return isInitialized == 1;
1165
1166 if (hasToken()) {
1167 if (!getToken().isInitialized()) {
1168 memoizedIsInitialized = 0;
1169 return false;
1170 }
1171 }
1172 memoizedIsInitialized = 1;
1173 return true;
1174 }
1175
1176 public void writeTo(com.google.protobuf.CodedOutputStream output)
1177 throws java.io.IOException {
1178 getSerializedSize();
1179 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1180 output.writeMessage(1, token_);
1181 }
1182 getUnknownFields().writeTo(output);
1183 }
1184
1185 private int memoizedSerializedSize = -1;
1186 public int getSerializedSize() {
1187 int size = memoizedSerializedSize;
1188 if (size != -1) return size;
1189
1190 size = 0;
1191 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1192 size += com.google.protobuf.CodedOutputStream
1193 .computeMessageSize(1, token_);
1194 }
1195 size += getUnknownFields().getSerializedSize();
1196 memoizedSerializedSize = size;
1197 return size;
1198 }
1199
1200 private static final long serialVersionUID = 0L;
1201 @java.lang.Override
1202 protected java.lang.Object writeReplace()
1203 throws java.io.ObjectStreamException {
1204 return super.writeReplace();
1205 }
1206
1207 @java.lang.Override
1208 public boolean equals(final java.lang.Object obj) {
1209 if (obj == this) {
1210 return true;
1211 }
1212 if (!(obj instanceof org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto)) {
1213 return super.equals(obj);
1214 }
1215 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto other = (org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto) obj;
1216
1217 boolean result = true;
1218 result = result && (hasToken() == other.hasToken());
1219 if (hasToken()) {
1220 result = result && getToken()
1221 .equals(other.getToken());
1222 }
1223 result = result &&
1224 getUnknownFields().equals(other.getUnknownFields());
1225 return result;
1226 }
1227
1228 @java.lang.Override
1229 public int hashCode() {
1230 int hash = 41;
1231 hash = (19 * hash) + getDescriptorForType().hashCode();
1232 if (hasToken()) {
1233 hash = (37 * hash) + TOKEN_FIELD_NUMBER;
1234 hash = (53 * hash) + getToken().hashCode();
1235 }
1236 hash = (29 * hash) + getUnknownFields().hashCode();
1237 return hash;
1238 }
1239
1240 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto parseFrom(
1241 com.google.protobuf.ByteString data)
1242 throws com.google.protobuf.InvalidProtocolBufferException {
1243 return newBuilder().mergeFrom(data).buildParsed();
1244 }
1245 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto parseFrom(
1246 com.google.protobuf.ByteString data,
1247 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1248 throws com.google.protobuf.InvalidProtocolBufferException {
1249 return newBuilder().mergeFrom(data, extensionRegistry)
1250 .buildParsed();
1251 }
1252 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto parseFrom(byte[] data)
1253 throws com.google.protobuf.InvalidProtocolBufferException {
1254 return newBuilder().mergeFrom(data).buildParsed();
1255 }
1256 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto parseFrom(
1257 byte[] data,
1258 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1259 throws com.google.protobuf.InvalidProtocolBufferException {
1260 return newBuilder().mergeFrom(data, extensionRegistry)
1261 .buildParsed();
1262 }
1263 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto parseFrom(java.io.InputStream input)
1264 throws java.io.IOException {
1265 return newBuilder().mergeFrom(input).buildParsed();
1266 }
1267 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto parseFrom(
1268 java.io.InputStream input,
1269 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1270 throws java.io.IOException {
1271 return newBuilder().mergeFrom(input, extensionRegistry)
1272 .buildParsed();
1273 }
1274 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto parseDelimitedFrom(java.io.InputStream input)
1275 throws java.io.IOException {
1276 Builder builder = newBuilder();
1277 if (builder.mergeDelimitedFrom(input)) {
1278 return builder.buildParsed();
1279 } else {
1280 return null;
1281 }
1282 }
1283 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto parseDelimitedFrom(
1284 java.io.InputStream input,
1285 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1286 throws java.io.IOException {
1287 Builder builder = newBuilder();
1288 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
1289 return builder.buildParsed();
1290 } else {
1291 return null;
1292 }
1293 }
1294 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto parseFrom(
1295 com.google.protobuf.CodedInputStream input)
1296 throws java.io.IOException {
1297 return newBuilder().mergeFrom(input).buildParsed();
1298 }
1299 public static org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto parseFrom(
1300 com.google.protobuf.CodedInputStream input,
1301 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1302 throws java.io.IOException {
1303 return newBuilder().mergeFrom(input, extensionRegistry)
1304 .buildParsed();
1305 }
1306
1307 public static Builder newBuilder() { return Builder.create(); }
1308 public Builder newBuilderForType() { return newBuilder(); }
1309 public static Builder newBuilder(org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto prototype) {
1310 return newBuilder().mergeFrom(prototype);
1311 }
1312 public Builder toBuilder() { return newBuilder(this); }
1313
1314 @java.lang.Override
1315 protected Builder newBuilderForType(
1316 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1317 Builder builder = new Builder(parent);
1318 return builder;
1319 }
1320 public static final class Builder extends
1321 com.google.protobuf.GeneratedMessage.Builder<Builder>
1322 implements org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProtoOrBuilder {
1323 public static final com.google.protobuf.Descriptors.Descriptor
1324 getDescriptor() {
1325 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_GetDelegationTokenResponseProto_descriptor;
1326 }
1327
1328 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1329 internalGetFieldAccessorTable() {
1330 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_GetDelegationTokenResponseProto_fieldAccessorTable;
1331 }
1332
1333 // Construct using org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.newBuilder()
1334 private Builder() {
1335 maybeForceBuilderInitialization();
1336 }
1337
1338 private Builder(BuilderParent parent) {
1339 super(parent);
1340 maybeForceBuilderInitialization();
1341 }
1342 private void maybeForceBuilderInitialization() {
1343 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1344 getTokenFieldBuilder();
1345 }
1346 }
1347 private static Builder create() {
1348 return new Builder();
1349 }
1350
1351 public Builder clear() {
1352 super.clear();
1353 if (tokenBuilder_ == null) {
1354 token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
1355 } else {
1356 tokenBuilder_.clear();
1357 }
1358 bitField0_ = (bitField0_ & ~0x00000001);
1359 return this;
1360 }
1361
1362 public Builder clone() {
1363 return create().mergeFrom(buildPartial());
1364 }
1365
1366 public com.google.protobuf.Descriptors.Descriptor
1367 getDescriptorForType() {
1368 return org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.getDescriptor();
1369 }
1370
1371 public org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto getDefaultInstanceForType() {
1372 return org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.getDefaultInstance();
1373 }
1374
1375 public org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto build() {
1376 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto result = buildPartial();
1377 if (!result.isInitialized()) {
1378 throw newUninitializedMessageException(result);
1379 }
1380 return result;
1381 }
1382
1383 private org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto buildParsed()
1384 throws com.google.protobuf.InvalidProtocolBufferException {
1385 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto result = buildPartial();
1386 if (!result.isInitialized()) {
1387 throw newUninitializedMessageException(
1388 result).asInvalidProtocolBufferException();
1389 }
1390 return result;
1391 }
1392
1393 public org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto buildPartial() {
1394 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto result = new org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto(this);
1395 int from_bitField0_ = bitField0_;
1396 int to_bitField0_ = 0;
1397 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1398 to_bitField0_ |= 0x00000001;
1399 }
1400 if (tokenBuilder_ == null) {
1401 result.token_ = token_;
1402 } else {
1403 result.token_ = tokenBuilder_.build();
1404 }
1405 result.bitField0_ = to_bitField0_;
1406 onBuilt();
1407 return result;
1408 }
1409
1410 public Builder mergeFrom(com.google.protobuf.Message other) {
1411 if (other instanceof org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto) {
1412 return mergeFrom((org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto)other);
1413 } else {
1414 super.mergeFrom(other);
1415 return this;
1416 }
1417 }
1418
1419 public Builder mergeFrom(org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto other) {
1420 if (other == org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.getDefaultInstance()) return this;
1421 if (other.hasToken()) {
1422 mergeToken(other.getToken());
1423 }
1424 this.mergeUnknownFields(other.getUnknownFields());
1425 return this;
1426 }
1427
1428 public final boolean isInitialized() {
1429 if (hasToken()) {
1430 if (!getToken().isInitialized()) {
1431
1432 return false;
1433 }
1434 }
1435 return true;
1436 }
1437
1438 public Builder mergeFrom(
1439 com.google.protobuf.CodedInputStream input,
1440 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1441 throws java.io.IOException {
1442 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1443 com.google.protobuf.UnknownFieldSet.newBuilder(
1444 this.getUnknownFields());
1445 while (true) {
1446 int tag = input.readTag();
1447 switch (tag) {
1448 case 0:
1449 this.setUnknownFields(unknownFields.build());
1450 onChanged();
1451 return this;
1452 default: {
1453 if (!parseUnknownField(input, unknownFields,
1454 extensionRegistry, tag)) {
1455 this.setUnknownFields(unknownFields.build());
1456 onChanged();
1457 return this;
1458 }
1459 break;
1460 }
1461 case 10: {
1462 org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder();
1463 if (hasToken()) {
1464 subBuilder.mergeFrom(getToken());
1465 }
1466 input.readMessage(subBuilder, extensionRegistry);
1467 setToken(subBuilder.buildPartial());
1468 break;
1469 }
1470 }
1471 }
1472 }
1473
1474 private int bitField0_;
1475
1476 // optional .hadoop.common.TokenProto token = 1;
1477 private org.apache.hadoop.security.proto.SecurityProtos.TokenProto token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
1478 private com.google.protobuf.SingleFieldBuilder<
1479 org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> tokenBuilder_;
1480 public boolean hasToken() {
1481 return ((bitField0_ & 0x00000001) == 0x00000001);
1482 }
1483 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken() {
1484 if (tokenBuilder_ == null) {
1485 return token_;
1486 } else {
1487 return tokenBuilder_.getMessage();
1488 }
1489 }
1490 public Builder setToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
1491 if (tokenBuilder_ == null) {
1492 if (value == null) {
1493 throw new NullPointerException();
1494 }
1495 token_ = value;
1496 onChanged();
1497 } else {
1498 tokenBuilder_.setMessage(value);
1499 }
1500 bitField0_ |= 0x00000001;
1501 return this;
1502 }
1503 public Builder setToken(
1504 org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder builderForValue) {
1505 if (tokenBuilder_ == null) {
1506 token_ = builderForValue.build();
1507 onChanged();
1508 } else {
1509 tokenBuilder_.setMessage(builderForValue.build());
1510 }
1511 bitField0_ |= 0x00000001;
1512 return this;
1513 }
1514 public Builder mergeToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
1515 if (tokenBuilder_ == null) {
1516 if (((bitField0_ & 0x00000001) == 0x00000001) &&
1517 token_ != org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance()) {
1518 token_ =
1519 org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder(token_).mergeFrom(value).buildPartial();
1520 } else {
1521 token_ = value;
1522 }
1523 onChanged();
1524 } else {
1525 tokenBuilder_.mergeFrom(value);
1526 }
1527 bitField0_ |= 0x00000001;
1528 return this;
1529 }
1530 public Builder clearToken() {
1531 if (tokenBuilder_ == null) {
1532 token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
1533 onChanged();
1534 } else {
1535 tokenBuilder_.clear();
1536 }
1537 bitField0_ = (bitField0_ & ~0x00000001);
1538 return this;
1539 }
1540 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder getTokenBuilder() {
1541 bitField0_ |= 0x00000001;
1542 onChanged();
1543 return getTokenFieldBuilder().getBuilder();
1544 }
1545 public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder() {
1546 if (tokenBuilder_ != null) {
1547 return tokenBuilder_.getMessageOrBuilder();
1548 } else {
1549 return token_;
1550 }
1551 }
1552 private com.google.protobuf.SingleFieldBuilder<
1553 org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>
1554 getTokenFieldBuilder() {
1555 if (tokenBuilder_ == null) {
1556 tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1557 org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>(
1558 token_,
1559 getParentForChildren(),
1560 isClean());
1561 token_ = null;
1562 }
1563 return tokenBuilder_;
1564 }
1565
1566 // @@protoc_insertion_point(builder_scope:hadoop.common.GetDelegationTokenResponseProto)
1567 }
1568
1569 static {
1570 defaultInstance = new GetDelegationTokenResponseProto(true);
1571 defaultInstance.initFields();
1572 }
1573
1574 // @@protoc_insertion_point(class_scope:hadoop.common.GetDelegationTokenResponseProto)
1575 }
1576
1577 public interface RenewDelegationTokenRequestProtoOrBuilder
1578 extends com.google.protobuf.MessageOrBuilder {
1579
1580 // required .hadoop.common.TokenProto token = 1;
1581 boolean hasToken();
1582 org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken();
1583 org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder();
1584 }
1585 public static final class RenewDelegationTokenRequestProto extends
1586 com.google.protobuf.GeneratedMessage
1587 implements RenewDelegationTokenRequestProtoOrBuilder {
1588 // Use RenewDelegationTokenRequestProto.newBuilder() to construct.
1589 private RenewDelegationTokenRequestProto(Builder builder) {
1590 super(builder);
1591 }
1592 private RenewDelegationTokenRequestProto(boolean noInit) {}
1593
1594 private static final RenewDelegationTokenRequestProto defaultInstance;
1595 public static RenewDelegationTokenRequestProto getDefaultInstance() {
1596 return defaultInstance;
1597 }
1598
1599 public RenewDelegationTokenRequestProto getDefaultInstanceForType() {
1600 return defaultInstance;
1601 }
1602
1603 public static final com.google.protobuf.Descriptors.Descriptor
1604 getDescriptor() {
1605 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_RenewDelegationTokenRequestProto_descriptor;
1606 }
1607
1608 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1609 internalGetFieldAccessorTable() {
1610 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_RenewDelegationTokenRequestProto_fieldAccessorTable;
1611 }
1612
1613 private int bitField0_;
1614 // required .hadoop.common.TokenProto token = 1;
1615 public static final int TOKEN_FIELD_NUMBER = 1;
1616 private org.apache.hadoop.security.proto.SecurityProtos.TokenProto token_;
1617 public boolean hasToken() {
1618 return ((bitField0_ & 0x00000001) == 0x00000001);
1619 }
1620 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken() {
1621 return token_;
1622 }
1623 public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder() {
1624 return token_;
1625 }
1626
1627 private void initFields() {
1628 token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
1629 }
1630 private byte memoizedIsInitialized = -1;
1631 public final boolean isInitialized() {
1632 byte isInitialized = memoizedIsInitialized;
1633 if (isInitialized != -1) return isInitialized == 1;
1634
1635 if (!hasToken()) {
1636 memoizedIsInitialized = 0;
1637 return false;
1638 }
1639 if (!getToken().isInitialized()) {
1640 memoizedIsInitialized = 0;
1641 return false;
1642 }
1643 memoizedIsInitialized = 1;
1644 return true;
1645 }
1646
1647 public void writeTo(com.google.protobuf.CodedOutputStream output)
1648 throws java.io.IOException {
1649 getSerializedSize();
1650 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1651 output.writeMessage(1, token_);
1652 }
1653 getUnknownFields().writeTo(output);
1654 }
1655
1656 private int memoizedSerializedSize = -1;
1657 public int getSerializedSize() {
1658 int size = memoizedSerializedSize;
1659 if (size != -1) return size;
1660
1661 size = 0;
1662 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1663 size += com.google.protobuf.CodedOutputStream
1664 .computeMessageSize(1, token_);
1665 }
1666 size += getUnknownFields().getSerializedSize();
1667 memoizedSerializedSize = size;
1668 return size;
1669 }
1670
1671 private static final long serialVersionUID = 0L;
1672 @java.lang.Override
1673 protected java.lang.Object writeReplace()
1674 throws java.io.ObjectStreamException {
1675 return super.writeReplace();
1676 }
1677
1678 @java.lang.Override
1679 public boolean equals(final java.lang.Object obj) {
1680 if (obj == this) {
1681 return true;
1682 }
1683 if (!(obj instanceof org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto)) {
1684 return super.equals(obj);
1685 }
1686 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto other = (org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto) obj;
1687
1688 boolean result = true;
1689 result = result && (hasToken() == other.hasToken());
1690 if (hasToken()) {
1691 result = result && getToken()
1692 .equals(other.getToken());
1693 }
1694 result = result &&
1695 getUnknownFields().equals(other.getUnknownFields());
1696 return result;
1697 }
1698
1699 @java.lang.Override
1700 public int hashCode() {
1701 int hash = 41;
1702 hash = (19 * hash) + getDescriptorForType().hashCode();
1703 if (hasToken()) {
1704 hash = (37 * hash) + TOKEN_FIELD_NUMBER;
1705 hash = (53 * hash) + getToken().hashCode();
1706 }
1707 hash = (29 * hash) + getUnknownFields().hashCode();
1708 return hash;
1709 }
1710
1711 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto parseFrom(
1712 com.google.protobuf.ByteString data)
1713 throws com.google.protobuf.InvalidProtocolBufferException {
1714 return newBuilder().mergeFrom(data).buildParsed();
1715 }
1716 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto parseFrom(
1717 com.google.protobuf.ByteString data,
1718 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1719 throws com.google.protobuf.InvalidProtocolBufferException {
1720 return newBuilder().mergeFrom(data, extensionRegistry)
1721 .buildParsed();
1722 }
1723 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto parseFrom(byte[] data)
1724 throws com.google.protobuf.InvalidProtocolBufferException {
1725 return newBuilder().mergeFrom(data).buildParsed();
1726 }
1727 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto parseFrom(
1728 byte[] data,
1729 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1730 throws com.google.protobuf.InvalidProtocolBufferException {
1731 return newBuilder().mergeFrom(data, extensionRegistry)
1732 .buildParsed();
1733 }
1734 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto parseFrom(java.io.InputStream input)
1735 throws java.io.IOException {
1736 return newBuilder().mergeFrom(input).buildParsed();
1737 }
1738 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto parseFrom(
1739 java.io.InputStream input,
1740 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1741 throws java.io.IOException {
1742 return newBuilder().mergeFrom(input, extensionRegistry)
1743 .buildParsed();
1744 }
1745 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto parseDelimitedFrom(java.io.InputStream input)
1746 throws java.io.IOException {
1747 Builder builder = newBuilder();
1748 if (builder.mergeDelimitedFrom(input)) {
1749 return builder.buildParsed();
1750 } else {
1751 return null;
1752 }
1753 }
1754 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto parseDelimitedFrom(
1755 java.io.InputStream input,
1756 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1757 throws java.io.IOException {
1758 Builder builder = newBuilder();
1759 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
1760 return builder.buildParsed();
1761 } else {
1762 return null;
1763 }
1764 }
1765 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto parseFrom(
1766 com.google.protobuf.CodedInputStream input)
1767 throws java.io.IOException {
1768 return newBuilder().mergeFrom(input).buildParsed();
1769 }
1770 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto parseFrom(
1771 com.google.protobuf.CodedInputStream input,
1772 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1773 throws java.io.IOException {
1774 return newBuilder().mergeFrom(input, extensionRegistry)
1775 .buildParsed();
1776 }
1777
1778 public static Builder newBuilder() { return Builder.create(); }
1779 public Builder newBuilderForType() { return newBuilder(); }
1780 public static Builder newBuilder(org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto prototype) {
1781 return newBuilder().mergeFrom(prototype);
1782 }
1783 public Builder toBuilder() { return newBuilder(this); }
1784
1785 @java.lang.Override
1786 protected Builder newBuilderForType(
1787 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1788 Builder builder = new Builder(parent);
1789 return builder;
1790 }
1791 public static final class Builder extends
1792 com.google.protobuf.GeneratedMessage.Builder<Builder>
1793 implements org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProtoOrBuilder {
1794 public static final com.google.protobuf.Descriptors.Descriptor
1795 getDescriptor() {
1796 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_RenewDelegationTokenRequestProto_descriptor;
1797 }
1798
1799 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1800 internalGetFieldAccessorTable() {
1801 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_RenewDelegationTokenRequestProto_fieldAccessorTable;
1802 }
1803
1804 // Construct using org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto.newBuilder()
1805 private Builder() {
1806 maybeForceBuilderInitialization();
1807 }
1808
1809 private Builder(BuilderParent parent) {
1810 super(parent);
1811 maybeForceBuilderInitialization();
1812 }
1813 private void maybeForceBuilderInitialization() {
1814 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1815 getTokenFieldBuilder();
1816 }
1817 }
1818 private static Builder create() {
1819 return new Builder();
1820 }
1821
1822 public Builder clear() {
1823 super.clear();
1824 if (tokenBuilder_ == null) {
1825 token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
1826 } else {
1827 tokenBuilder_.clear();
1828 }
1829 bitField0_ = (bitField0_ & ~0x00000001);
1830 return this;
1831 }
1832
1833 public Builder clone() {
1834 return create().mergeFrom(buildPartial());
1835 }
1836
1837 public com.google.protobuf.Descriptors.Descriptor
1838 getDescriptorForType() {
1839 return org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto.getDescriptor();
1840 }
1841
1842 public org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto getDefaultInstanceForType() {
1843 return org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto.getDefaultInstance();
1844 }
1845
1846 public org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto build() {
1847 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto result = buildPartial();
1848 if (!result.isInitialized()) {
1849 throw newUninitializedMessageException(result);
1850 }
1851 return result;
1852 }
1853
1854 private org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto buildParsed()
1855 throws com.google.protobuf.InvalidProtocolBufferException {
1856 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto result = buildPartial();
1857 if (!result.isInitialized()) {
1858 throw newUninitializedMessageException(
1859 result).asInvalidProtocolBufferException();
1860 }
1861 return result;
1862 }
1863
1864 public org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto buildPartial() {
1865 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto result = new org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto(this);
1866 int from_bitField0_ = bitField0_;
1867 int to_bitField0_ = 0;
1868 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1869 to_bitField0_ |= 0x00000001;
1870 }
1871 if (tokenBuilder_ == null) {
1872 result.token_ = token_;
1873 } else {
1874 result.token_ = tokenBuilder_.build();
1875 }
1876 result.bitField0_ = to_bitField0_;
1877 onBuilt();
1878 return result;
1879 }
1880
1881 public Builder mergeFrom(com.google.protobuf.Message other) {
1882 if (other instanceof org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto) {
1883 return mergeFrom((org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto)other);
1884 } else {
1885 super.mergeFrom(other);
1886 return this;
1887 }
1888 }
1889
1890 public Builder mergeFrom(org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto other) {
1891 if (other == org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto.getDefaultInstance()) return this;
1892 if (other.hasToken()) {
1893 mergeToken(other.getToken());
1894 }
1895 this.mergeUnknownFields(other.getUnknownFields());
1896 return this;
1897 }
1898
1899 public final boolean isInitialized() {
1900 if (!hasToken()) {
1901
1902 return false;
1903 }
1904 if (!getToken().isInitialized()) {
1905
1906 return false;
1907 }
1908 return true;
1909 }
1910
1911 public Builder mergeFrom(
1912 com.google.protobuf.CodedInputStream input,
1913 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1914 throws java.io.IOException {
1915 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1916 com.google.protobuf.UnknownFieldSet.newBuilder(
1917 this.getUnknownFields());
1918 while (true) {
1919 int tag = input.readTag();
1920 switch (tag) {
1921 case 0:
1922 this.setUnknownFields(unknownFields.build());
1923 onChanged();
1924 return this;
1925 default: {
1926 if (!parseUnknownField(input, unknownFields,
1927 extensionRegistry, tag)) {
1928 this.setUnknownFields(unknownFields.build());
1929 onChanged();
1930 return this;
1931 }
1932 break;
1933 }
1934 case 10: {
1935 org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder();
1936 if (hasToken()) {
1937 subBuilder.mergeFrom(getToken());
1938 }
1939 input.readMessage(subBuilder, extensionRegistry);
1940 setToken(subBuilder.buildPartial());
1941 break;
1942 }
1943 }
1944 }
1945 }
1946
1947 private int bitField0_;
1948
1949 // required .hadoop.common.TokenProto token = 1;
1950 private org.apache.hadoop.security.proto.SecurityProtos.TokenProto token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
1951 private com.google.protobuf.SingleFieldBuilder<
1952 org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> tokenBuilder_;
1953 public boolean hasToken() {
1954 return ((bitField0_ & 0x00000001) == 0x00000001);
1955 }
1956 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken() {
1957 if (tokenBuilder_ == null) {
1958 return token_;
1959 } else {
1960 return tokenBuilder_.getMessage();
1961 }
1962 }
1963 public Builder setToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
1964 if (tokenBuilder_ == null) {
1965 if (value == null) {
1966 throw new NullPointerException();
1967 }
1968 token_ = value;
1969 onChanged();
1970 } else {
1971 tokenBuilder_.setMessage(value);
1972 }
1973 bitField0_ |= 0x00000001;
1974 return this;
1975 }
1976 public Builder setToken(
1977 org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder builderForValue) {
1978 if (tokenBuilder_ == null) {
1979 token_ = builderForValue.build();
1980 onChanged();
1981 } else {
1982 tokenBuilder_.setMessage(builderForValue.build());
1983 }
1984 bitField0_ |= 0x00000001;
1985 return this;
1986 }
1987 public Builder mergeToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
1988 if (tokenBuilder_ == null) {
1989 if (((bitField0_ & 0x00000001) == 0x00000001) &&
1990 token_ != org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance()) {
1991 token_ =
1992 org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder(token_).mergeFrom(value).buildPartial();
1993 } else {
1994 token_ = value;
1995 }
1996 onChanged();
1997 } else {
1998 tokenBuilder_.mergeFrom(value);
1999 }
2000 bitField0_ |= 0x00000001;
2001 return this;
2002 }
2003 public Builder clearToken() {
2004 if (tokenBuilder_ == null) {
2005 token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
2006 onChanged();
2007 } else {
2008 tokenBuilder_.clear();
2009 }
2010 bitField0_ = (bitField0_ & ~0x00000001);
2011 return this;
2012 }
2013 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder getTokenBuilder() {
2014 bitField0_ |= 0x00000001;
2015 onChanged();
2016 return getTokenFieldBuilder().getBuilder();
2017 }
2018 public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder() {
2019 if (tokenBuilder_ != null) {
2020 return tokenBuilder_.getMessageOrBuilder();
2021 } else {
2022 return token_;
2023 }
2024 }
2025 private com.google.protobuf.SingleFieldBuilder<
2026 org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>
2027 getTokenFieldBuilder() {
2028 if (tokenBuilder_ == null) {
2029 tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2030 org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>(
2031 token_,
2032 getParentForChildren(),
2033 isClean());
2034 token_ = null;
2035 }
2036 return tokenBuilder_;
2037 }
2038
2039 // @@protoc_insertion_point(builder_scope:hadoop.common.RenewDelegationTokenRequestProto)
2040 }
2041
2042 static {
2043 defaultInstance = new RenewDelegationTokenRequestProto(true);
2044 defaultInstance.initFields();
2045 }
2046
2047 // @@protoc_insertion_point(class_scope:hadoop.common.RenewDelegationTokenRequestProto)
2048 }
2049
2050 public interface RenewDelegationTokenResponseProtoOrBuilder
2051 extends com.google.protobuf.MessageOrBuilder {
2052
2053 // required uint64 newExpiryTime = 1;
2054 boolean hasNewExpiryTime();
2055 long getNewExpiryTime();
2056 }
2057 public static final class RenewDelegationTokenResponseProto extends
2058 com.google.protobuf.GeneratedMessage
2059 implements RenewDelegationTokenResponseProtoOrBuilder {
2060 // Use RenewDelegationTokenResponseProto.newBuilder() to construct.
2061 private RenewDelegationTokenResponseProto(Builder builder) {
2062 super(builder);
2063 }
2064 private RenewDelegationTokenResponseProto(boolean noInit) {}
2065
2066 private static final RenewDelegationTokenResponseProto defaultInstance;
2067 public static RenewDelegationTokenResponseProto getDefaultInstance() {
2068 return defaultInstance;
2069 }
2070
2071 public RenewDelegationTokenResponseProto getDefaultInstanceForType() {
2072 return defaultInstance;
2073 }
2074
2075 public static final com.google.protobuf.Descriptors.Descriptor
2076 getDescriptor() {
2077 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_RenewDelegationTokenResponseProto_descriptor;
2078 }
2079
2080 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2081 internalGetFieldAccessorTable() {
2082 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_RenewDelegationTokenResponseProto_fieldAccessorTable;
2083 }
2084
2085 private int bitField0_;
2086 // required uint64 newExpiryTime = 1;
2087 public static final int NEWEXPIRYTIME_FIELD_NUMBER = 1;
2088 private long newExpiryTime_;
2089 public boolean hasNewExpiryTime() {
2090 return ((bitField0_ & 0x00000001) == 0x00000001);
2091 }
2092 public long getNewExpiryTime() {
2093 return newExpiryTime_;
2094 }
2095
2096 private void initFields() {
2097 newExpiryTime_ = 0L;
2098 }
2099 private byte memoizedIsInitialized = -1;
2100 public final boolean isInitialized() {
2101 byte isInitialized = memoizedIsInitialized;
2102 if (isInitialized != -1) return isInitialized == 1;
2103
2104 if (!hasNewExpiryTime()) {
2105 memoizedIsInitialized = 0;
2106 return false;
2107 }
2108 memoizedIsInitialized = 1;
2109 return true;
2110 }
2111
2112 public void writeTo(com.google.protobuf.CodedOutputStream output)
2113 throws java.io.IOException {
2114 getSerializedSize();
2115 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2116 output.writeUInt64(1, newExpiryTime_);
2117 }
2118 getUnknownFields().writeTo(output);
2119 }
2120
2121 private int memoizedSerializedSize = -1;
2122 public int getSerializedSize() {
2123 int size = memoizedSerializedSize;
2124 if (size != -1) return size;
2125
2126 size = 0;
2127 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2128 size += com.google.protobuf.CodedOutputStream
2129 .computeUInt64Size(1, newExpiryTime_);
2130 }
2131 size += getUnknownFields().getSerializedSize();
2132 memoizedSerializedSize = size;
2133 return size;
2134 }
2135
2136 private static final long serialVersionUID = 0L;
2137 @java.lang.Override
2138 protected java.lang.Object writeReplace()
2139 throws java.io.ObjectStreamException {
2140 return super.writeReplace();
2141 }
2142
2143 @java.lang.Override
2144 public boolean equals(final java.lang.Object obj) {
2145 if (obj == this) {
2146 return true;
2147 }
2148 if (!(obj instanceof org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto)) {
2149 return super.equals(obj);
2150 }
2151 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto other = (org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto) obj;
2152
2153 boolean result = true;
2154 result = result && (hasNewExpiryTime() == other.hasNewExpiryTime());
2155 if (hasNewExpiryTime()) {
2156 result = result && (getNewExpiryTime()
2157 == other.getNewExpiryTime());
2158 }
2159 result = result &&
2160 getUnknownFields().equals(other.getUnknownFields());
2161 return result;
2162 }
2163
2164 @java.lang.Override
2165 public int hashCode() {
2166 int hash = 41;
2167 hash = (19 * hash) + getDescriptorForType().hashCode();
2168 if (hasNewExpiryTime()) {
2169 hash = (37 * hash) + NEWEXPIRYTIME_FIELD_NUMBER;
2170 hash = (53 * hash) + hashLong(getNewExpiryTime());
2171 }
2172 hash = (29 * hash) + getUnknownFields().hashCode();
2173 return hash;
2174 }
2175
2176 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto parseFrom(
2177 com.google.protobuf.ByteString data)
2178 throws com.google.protobuf.InvalidProtocolBufferException {
2179 return newBuilder().mergeFrom(data).buildParsed();
2180 }
2181 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto parseFrom(
2182 com.google.protobuf.ByteString data,
2183 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2184 throws com.google.protobuf.InvalidProtocolBufferException {
2185 return newBuilder().mergeFrom(data, extensionRegistry)
2186 .buildParsed();
2187 }
2188 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto parseFrom(byte[] data)
2189 throws com.google.protobuf.InvalidProtocolBufferException {
2190 return newBuilder().mergeFrom(data).buildParsed();
2191 }
2192 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto parseFrom(
2193 byte[] data,
2194 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2195 throws com.google.protobuf.InvalidProtocolBufferException {
2196 return newBuilder().mergeFrom(data, extensionRegistry)
2197 .buildParsed();
2198 }
2199 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto parseFrom(java.io.InputStream input)
2200 throws java.io.IOException {
2201 return newBuilder().mergeFrom(input).buildParsed();
2202 }
2203 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto parseFrom(
2204 java.io.InputStream input,
2205 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2206 throws java.io.IOException {
2207 return newBuilder().mergeFrom(input, extensionRegistry)
2208 .buildParsed();
2209 }
2210 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto parseDelimitedFrom(java.io.InputStream input)
2211 throws java.io.IOException {
2212 Builder builder = newBuilder();
2213 if (builder.mergeDelimitedFrom(input)) {
2214 return builder.buildParsed();
2215 } else {
2216 return null;
2217 }
2218 }
2219 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto parseDelimitedFrom(
2220 java.io.InputStream input,
2221 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2222 throws java.io.IOException {
2223 Builder builder = newBuilder();
2224 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
2225 return builder.buildParsed();
2226 } else {
2227 return null;
2228 }
2229 }
2230 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto parseFrom(
2231 com.google.protobuf.CodedInputStream input)
2232 throws java.io.IOException {
2233 return newBuilder().mergeFrom(input).buildParsed();
2234 }
2235 public static org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto parseFrom(
2236 com.google.protobuf.CodedInputStream input,
2237 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2238 throws java.io.IOException {
2239 return newBuilder().mergeFrom(input, extensionRegistry)
2240 .buildParsed();
2241 }
2242
2243 public static Builder newBuilder() { return Builder.create(); }
2244 public Builder newBuilderForType() { return newBuilder(); }
2245 public static Builder newBuilder(org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto prototype) {
2246 return newBuilder().mergeFrom(prototype);
2247 }
2248 public Builder toBuilder() { return newBuilder(this); }
2249
2250 @java.lang.Override
2251 protected Builder newBuilderForType(
2252 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2253 Builder builder = new Builder(parent);
2254 return builder;
2255 }
2256 public static final class Builder extends
2257 com.google.protobuf.GeneratedMessage.Builder<Builder>
2258 implements org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProtoOrBuilder {
2259 public static final com.google.protobuf.Descriptors.Descriptor
2260 getDescriptor() {
2261 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_RenewDelegationTokenResponseProto_descriptor;
2262 }
2263
2264 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2265 internalGetFieldAccessorTable() {
2266 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_RenewDelegationTokenResponseProto_fieldAccessorTable;
2267 }
2268
2269 // Construct using org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.newBuilder()
2270 private Builder() {
2271 maybeForceBuilderInitialization();
2272 }
2273
2274 private Builder(BuilderParent parent) {
2275 super(parent);
2276 maybeForceBuilderInitialization();
2277 }
2278 private void maybeForceBuilderInitialization() {
2279 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2280 }
2281 }
2282 private static Builder create() {
2283 return new Builder();
2284 }
2285
2286 public Builder clear() {
2287 super.clear();
2288 newExpiryTime_ = 0L;
2289 bitField0_ = (bitField0_ & ~0x00000001);
2290 return this;
2291 }
2292
2293 public Builder clone() {
2294 return create().mergeFrom(buildPartial());
2295 }
2296
2297 public com.google.protobuf.Descriptors.Descriptor
2298 getDescriptorForType() {
2299 return org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.getDescriptor();
2300 }
2301
2302 public org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto getDefaultInstanceForType() {
2303 return org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.getDefaultInstance();
2304 }
2305
2306 public org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto build() {
2307 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto result = buildPartial();
2308 if (!result.isInitialized()) {
2309 throw newUninitializedMessageException(result);
2310 }
2311 return result;
2312 }
2313
2314 private org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto buildParsed()
2315 throws com.google.protobuf.InvalidProtocolBufferException {
2316 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto result = buildPartial();
2317 if (!result.isInitialized()) {
2318 throw newUninitializedMessageException(
2319 result).asInvalidProtocolBufferException();
2320 }
2321 return result;
2322 }
2323
2324 public org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto buildPartial() {
2325 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto result = new org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto(this);
2326 int from_bitField0_ = bitField0_;
2327 int to_bitField0_ = 0;
2328 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2329 to_bitField0_ |= 0x00000001;
2330 }
2331 result.newExpiryTime_ = newExpiryTime_;
2332 result.bitField0_ = to_bitField0_;
2333 onBuilt();
2334 return result;
2335 }
2336
2337 public Builder mergeFrom(com.google.protobuf.Message other) {
2338 if (other instanceof org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto) {
2339 return mergeFrom((org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto)other);
2340 } else {
2341 super.mergeFrom(other);
2342 return this;
2343 }
2344 }
2345
2346 public Builder mergeFrom(org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto other) {
2347 if (other == org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.getDefaultInstance()) return this;
2348 if (other.hasNewExpiryTime()) {
2349 setNewExpiryTime(other.getNewExpiryTime());
2350 }
2351 this.mergeUnknownFields(other.getUnknownFields());
2352 return this;
2353 }
2354
2355 public final boolean isInitialized() {
2356 if (!hasNewExpiryTime()) {
2357
2358 return false;
2359 }
2360 return true;
2361 }
2362
2363 public Builder mergeFrom(
2364 com.google.protobuf.CodedInputStream input,
2365 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2366 throws java.io.IOException {
2367 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2368 com.google.protobuf.UnknownFieldSet.newBuilder(
2369 this.getUnknownFields());
2370 while (true) {
2371 int tag = input.readTag();
2372 switch (tag) {
2373 case 0:
2374 this.setUnknownFields(unknownFields.build());
2375 onChanged();
2376 return this;
2377 default: {
2378 if (!parseUnknownField(input, unknownFields,
2379 extensionRegistry, tag)) {
2380 this.setUnknownFields(unknownFields.build());
2381 onChanged();
2382 return this;
2383 }
2384 break;
2385 }
2386 case 8: {
2387 bitField0_ |= 0x00000001;
2388 newExpiryTime_ = input.readUInt64();
2389 break;
2390 }
2391 }
2392 }
2393 }
2394
2395 private int bitField0_;
2396
2397 // required uint64 newExpiryTime = 1;
2398 private long newExpiryTime_ ;
2399 public boolean hasNewExpiryTime() {
2400 return ((bitField0_ & 0x00000001) == 0x00000001);
2401 }
2402 public long getNewExpiryTime() {
2403 return newExpiryTime_;
2404 }
2405 public Builder setNewExpiryTime(long value) {
2406 bitField0_ |= 0x00000001;
2407 newExpiryTime_ = value;
2408 onChanged();
2409 return this;
2410 }
2411 public Builder clearNewExpiryTime() {
2412 bitField0_ = (bitField0_ & ~0x00000001);
2413 newExpiryTime_ = 0L;
2414 onChanged();
2415 return this;
2416 }
2417
2418 // @@protoc_insertion_point(builder_scope:hadoop.common.RenewDelegationTokenResponseProto)
2419 }
2420
2421 static {
2422 defaultInstance = new RenewDelegationTokenResponseProto(true);
2423 defaultInstance.initFields();
2424 }
2425
2426 // @@protoc_insertion_point(class_scope:hadoop.common.RenewDelegationTokenResponseProto)
2427 }
2428
2429 public interface CancelDelegationTokenRequestProtoOrBuilder
2430 extends com.google.protobuf.MessageOrBuilder {
2431
2432 // required .hadoop.common.TokenProto token = 1;
2433 boolean hasToken();
2434 org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken();
2435 org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder();
2436 }
2437 public static final class CancelDelegationTokenRequestProto extends
2438 com.google.protobuf.GeneratedMessage
2439 implements CancelDelegationTokenRequestProtoOrBuilder {
2440 // Use CancelDelegationTokenRequestProto.newBuilder() to construct.
2441 private CancelDelegationTokenRequestProto(Builder builder) {
2442 super(builder);
2443 }
2444 private CancelDelegationTokenRequestProto(boolean noInit) {}
2445
2446 private static final CancelDelegationTokenRequestProto defaultInstance;
2447 public static CancelDelegationTokenRequestProto getDefaultInstance() {
2448 return defaultInstance;
2449 }
2450
2451 public CancelDelegationTokenRequestProto getDefaultInstanceForType() {
2452 return defaultInstance;
2453 }
2454
2455 public static final com.google.protobuf.Descriptors.Descriptor
2456 getDescriptor() {
2457 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_CancelDelegationTokenRequestProto_descriptor;
2458 }
2459
2460 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2461 internalGetFieldAccessorTable() {
2462 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_CancelDelegationTokenRequestProto_fieldAccessorTable;
2463 }
2464
2465 private int bitField0_;
2466 // required .hadoop.common.TokenProto token = 1;
2467 public static final int TOKEN_FIELD_NUMBER = 1;
2468 private org.apache.hadoop.security.proto.SecurityProtos.TokenProto token_;
2469 public boolean hasToken() {
2470 return ((bitField0_ & 0x00000001) == 0x00000001);
2471 }
2472 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken() {
2473 return token_;
2474 }
2475 public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder() {
2476 return token_;
2477 }
2478
2479 private void initFields() {
2480 token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
2481 }
2482 private byte memoizedIsInitialized = -1;
2483 public final boolean isInitialized() {
2484 byte isInitialized = memoizedIsInitialized;
2485 if (isInitialized != -1) return isInitialized == 1;
2486
2487 if (!hasToken()) {
2488 memoizedIsInitialized = 0;
2489 return false;
2490 }
2491 if (!getToken().isInitialized()) {
2492 memoizedIsInitialized = 0;
2493 return false;
2494 }
2495 memoizedIsInitialized = 1;
2496 return true;
2497 }
2498
2499 public void writeTo(com.google.protobuf.CodedOutputStream output)
2500 throws java.io.IOException {
2501 getSerializedSize();
2502 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2503 output.writeMessage(1, token_);
2504 }
2505 getUnknownFields().writeTo(output);
2506 }
2507
2508 private int memoizedSerializedSize = -1;
2509 public int getSerializedSize() {
2510 int size = memoizedSerializedSize;
2511 if (size != -1) return size;
2512
2513 size = 0;
2514 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2515 size += com.google.protobuf.CodedOutputStream
2516 .computeMessageSize(1, token_);
2517 }
2518 size += getUnknownFields().getSerializedSize();
2519 memoizedSerializedSize = size;
2520 return size;
2521 }
2522
2523 private static final long serialVersionUID = 0L;
2524 @java.lang.Override
2525 protected java.lang.Object writeReplace()
2526 throws java.io.ObjectStreamException {
2527 return super.writeReplace();
2528 }
2529
2530 @java.lang.Override
2531 public boolean equals(final java.lang.Object obj) {
2532 if (obj == this) {
2533 return true;
2534 }
2535 if (!(obj instanceof org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto)) {
2536 return super.equals(obj);
2537 }
2538 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto other = (org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto) obj;
2539
2540 boolean result = true;
2541 result = result && (hasToken() == other.hasToken());
2542 if (hasToken()) {
2543 result = result && getToken()
2544 .equals(other.getToken());
2545 }
2546 result = result &&
2547 getUnknownFields().equals(other.getUnknownFields());
2548 return result;
2549 }
2550
2551 @java.lang.Override
2552 public int hashCode() {
2553 int hash = 41;
2554 hash = (19 * hash) + getDescriptorForType().hashCode();
2555 if (hasToken()) {
2556 hash = (37 * hash) + TOKEN_FIELD_NUMBER;
2557 hash = (53 * hash) + getToken().hashCode();
2558 }
2559 hash = (29 * hash) + getUnknownFields().hashCode();
2560 return hash;
2561 }
2562
2563 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto parseFrom(
2564 com.google.protobuf.ByteString data)
2565 throws com.google.protobuf.InvalidProtocolBufferException {
2566 return newBuilder().mergeFrom(data).buildParsed();
2567 }
2568 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto parseFrom(
2569 com.google.protobuf.ByteString data,
2570 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2571 throws com.google.protobuf.InvalidProtocolBufferException {
2572 return newBuilder().mergeFrom(data, extensionRegistry)
2573 .buildParsed();
2574 }
2575 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto parseFrom(byte[] data)
2576 throws com.google.protobuf.InvalidProtocolBufferException {
2577 return newBuilder().mergeFrom(data).buildParsed();
2578 }
2579 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto parseFrom(
2580 byte[] data,
2581 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2582 throws com.google.protobuf.InvalidProtocolBufferException {
2583 return newBuilder().mergeFrom(data, extensionRegistry)
2584 .buildParsed();
2585 }
2586 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto parseFrom(java.io.InputStream input)
2587 throws java.io.IOException {
2588 return newBuilder().mergeFrom(input).buildParsed();
2589 }
2590 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto parseFrom(
2591 java.io.InputStream input,
2592 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2593 throws java.io.IOException {
2594 return newBuilder().mergeFrom(input, extensionRegistry)
2595 .buildParsed();
2596 }
2597 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto parseDelimitedFrom(java.io.InputStream input)
2598 throws java.io.IOException {
2599 Builder builder = newBuilder();
2600 if (builder.mergeDelimitedFrom(input)) {
2601 return builder.buildParsed();
2602 } else {
2603 return null;
2604 }
2605 }
2606 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto parseDelimitedFrom(
2607 java.io.InputStream input,
2608 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2609 throws java.io.IOException {
2610 Builder builder = newBuilder();
2611 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
2612 return builder.buildParsed();
2613 } else {
2614 return null;
2615 }
2616 }
2617 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto parseFrom(
2618 com.google.protobuf.CodedInputStream input)
2619 throws java.io.IOException {
2620 return newBuilder().mergeFrom(input).buildParsed();
2621 }
2622 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto parseFrom(
2623 com.google.protobuf.CodedInputStream input,
2624 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2625 throws java.io.IOException {
2626 return newBuilder().mergeFrom(input, extensionRegistry)
2627 .buildParsed();
2628 }
2629
2630 public static Builder newBuilder() { return Builder.create(); }
2631 public Builder newBuilderForType() { return newBuilder(); }
2632 public static Builder newBuilder(org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto prototype) {
2633 return newBuilder().mergeFrom(prototype);
2634 }
2635 public Builder toBuilder() { return newBuilder(this); }
2636
2637 @java.lang.Override
2638 protected Builder newBuilderForType(
2639 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2640 Builder builder = new Builder(parent);
2641 return builder;
2642 }
2643 public static final class Builder extends
2644 com.google.protobuf.GeneratedMessage.Builder<Builder>
2645 implements org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProtoOrBuilder {
2646 public static final com.google.protobuf.Descriptors.Descriptor
2647 getDescriptor() {
2648 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_CancelDelegationTokenRequestProto_descriptor;
2649 }
2650
2651 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2652 internalGetFieldAccessorTable() {
2653 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_CancelDelegationTokenRequestProto_fieldAccessorTable;
2654 }
2655
2656 // Construct using org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto.newBuilder()
2657 private Builder() {
2658 maybeForceBuilderInitialization();
2659 }
2660
2661 private Builder(BuilderParent parent) {
2662 super(parent);
2663 maybeForceBuilderInitialization();
2664 }
2665 private void maybeForceBuilderInitialization() {
2666 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2667 getTokenFieldBuilder();
2668 }
2669 }
2670 private static Builder create() {
2671 return new Builder();
2672 }
2673
2674 public Builder clear() {
2675 super.clear();
2676 if (tokenBuilder_ == null) {
2677 token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
2678 } else {
2679 tokenBuilder_.clear();
2680 }
2681 bitField0_ = (bitField0_ & ~0x00000001);
2682 return this;
2683 }
2684
2685 public Builder clone() {
2686 return create().mergeFrom(buildPartial());
2687 }
2688
2689 public com.google.protobuf.Descriptors.Descriptor
2690 getDescriptorForType() {
2691 return org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto.getDescriptor();
2692 }
2693
2694 public org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto getDefaultInstanceForType() {
2695 return org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto.getDefaultInstance();
2696 }
2697
2698 public org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto build() {
2699 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto result = buildPartial();
2700 if (!result.isInitialized()) {
2701 throw newUninitializedMessageException(result);
2702 }
2703 return result;
2704 }
2705
2706 private org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto buildParsed()
2707 throws com.google.protobuf.InvalidProtocolBufferException {
2708 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto result = buildPartial();
2709 if (!result.isInitialized()) {
2710 throw newUninitializedMessageException(
2711 result).asInvalidProtocolBufferException();
2712 }
2713 return result;
2714 }
2715
2716 public org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto buildPartial() {
2717 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto result = new org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto(this);
2718 int from_bitField0_ = bitField0_;
2719 int to_bitField0_ = 0;
2720 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2721 to_bitField0_ |= 0x00000001;
2722 }
2723 if (tokenBuilder_ == null) {
2724 result.token_ = token_;
2725 } else {
2726 result.token_ = tokenBuilder_.build();
2727 }
2728 result.bitField0_ = to_bitField0_;
2729 onBuilt();
2730 return result;
2731 }
2732
2733 public Builder mergeFrom(com.google.protobuf.Message other) {
2734 if (other instanceof org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto) {
2735 return mergeFrom((org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto)other);
2736 } else {
2737 super.mergeFrom(other);
2738 return this;
2739 }
2740 }
2741
2742 public Builder mergeFrom(org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto other) {
2743 if (other == org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto.getDefaultInstance()) return this;
2744 if (other.hasToken()) {
2745 mergeToken(other.getToken());
2746 }
2747 this.mergeUnknownFields(other.getUnknownFields());
2748 return this;
2749 }
2750
2751 public final boolean isInitialized() {
2752 if (!hasToken()) {
2753
2754 return false;
2755 }
2756 if (!getToken().isInitialized()) {
2757
2758 return false;
2759 }
2760 return true;
2761 }
2762
2763 public Builder mergeFrom(
2764 com.google.protobuf.CodedInputStream input,
2765 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2766 throws java.io.IOException {
2767 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2768 com.google.protobuf.UnknownFieldSet.newBuilder(
2769 this.getUnknownFields());
2770 while (true) {
2771 int tag = input.readTag();
2772 switch (tag) {
2773 case 0:
2774 this.setUnknownFields(unknownFields.build());
2775 onChanged();
2776 return this;
2777 default: {
2778 if (!parseUnknownField(input, unknownFields,
2779 extensionRegistry, tag)) {
2780 this.setUnknownFields(unknownFields.build());
2781 onChanged();
2782 return this;
2783 }
2784 break;
2785 }
2786 case 10: {
2787 org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder();
2788 if (hasToken()) {
2789 subBuilder.mergeFrom(getToken());
2790 }
2791 input.readMessage(subBuilder, extensionRegistry);
2792 setToken(subBuilder.buildPartial());
2793 break;
2794 }
2795 }
2796 }
2797 }
2798
2799 private int bitField0_;
2800
2801 // required .hadoop.common.TokenProto token = 1;
2802 private org.apache.hadoop.security.proto.SecurityProtos.TokenProto token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
2803 private com.google.protobuf.SingleFieldBuilder<
2804 org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> tokenBuilder_;
2805 public boolean hasToken() {
2806 return ((bitField0_ & 0x00000001) == 0x00000001);
2807 }
2808 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken() {
2809 if (tokenBuilder_ == null) {
2810 return token_;
2811 } else {
2812 return tokenBuilder_.getMessage();
2813 }
2814 }
2815 public Builder setToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
2816 if (tokenBuilder_ == null) {
2817 if (value == null) {
2818 throw new NullPointerException();
2819 }
2820 token_ = value;
2821 onChanged();
2822 } else {
2823 tokenBuilder_.setMessage(value);
2824 }
2825 bitField0_ |= 0x00000001;
2826 return this;
2827 }
2828 public Builder setToken(
2829 org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder builderForValue) {
2830 if (tokenBuilder_ == null) {
2831 token_ = builderForValue.build();
2832 onChanged();
2833 } else {
2834 tokenBuilder_.setMessage(builderForValue.build());
2835 }
2836 bitField0_ |= 0x00000001;
2837 return this;
2838 }
2839 public Builder mergeToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
2840 if (tokenBuilder_ == null) {
2841 if (((bitField0_ & 0x00000001) == 0x00000001) &&
2842 token_ != org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance()) {
2843 token_ =
2844 org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder(token_).mergeFrom(value).buildPartial();
2845 } else {
2846 token_ = value;
2847 }
2848 onChanged();
2849 } else {
2850 tokenBuilder_.mergeFrom(value);
2851 }
2852 bitField0_ |= 0x00000001;
2853 return this;
2854 }
2855 public Builder clearToken() {
2856 if (tokenBuilder_ == null) {
2857 token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
2858 onChanged();
2859 } else {
2860 tokenBuilder_.clear();
2861 }
2862 bitField0_ = (bitField0_ & ~0x00000001);
2863 return this;
2864 }
2865 public org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder getTokenBuilder() {
2866 bitField0_ |= 0x00000001;
2867 onChanged();
2868 return getTokenFieldBuilder().getBuilder();
2869 }
2870 public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder() {
2871 if (tokenBuilder_ != null) {
2872 return tokenBuilder_.getMessageOrBuilder();
2873 } else {
2874 return token_;
2875 }
2876 }
2877 private com.google.protobuf.SingleFieldBuilder<
2878 org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>
2879 getTokenFieldBuilder() {
2880 if (tokenBuilder_ == null) {
2881 tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2882 org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>(
2883 token_,
2884 getParentForChildren(),
2885 isClean());
2886 token_ = null;
2887 }
2888 return tokenBuilder_;
2889 }
2890
2891 // @@protoc_insertion_point(builder_scope:hadoop.common.CancelDelegationTokenRequestProto)
2892 }
2893
2894 static {
2895 defaultInstance = new CancelDelegationTokenRequestProto(true);
2896 defaultInstance.initFields();
2897 }
2898
2899 // @@protoc_insertion_point(class_scope:hadoop.common.CancelDelegationTokenRequestProto)
2900 }
2901
2902 public interface CancelDelegationTokenResponseProtoOrBuilder
2903 extends com.google.protobuf.MessageOrBuilder {
2904 }
2905 public static final class CancelDelegationTokenResponseProto extends
2906 com.google.protobuf.GeneratedMessage
2907 implements CancelDelegationTokenResponseProtoOrBuilder {
2908 // Use CancelDelegationTokenResponseProto.newBuilder() to construct.
2909 private CancelDelegationTokenResponseProto(Builder builder) {
2910 super(builder);
2911 }
2912 private CancelDelegationTokenResponseProto(boolean noInit) {}
2913
2914 private static final CancelDelegationTokenResponseProto defaultInstance;
2915 public static CancelDelegationTokenResponseProto getDefaultInstance() {
2916 return defaultInstance;
2917 }
2918
2919 public CancelDelegationTokenResponseProto getDefaultInstanceForType() {
2920 return defaultInstance;
2921 }
2922
2923 public static final com.google.protobuf.Descriptors.Descriptor
2924 getDescriptor() {
2925 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_CancelDelegationTokenResponseProto_descriptor;
2926 }
2927
2928 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2929 internalGetFieldAccessorTable() {
2930 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_CancelDelegationTokenResponseProto_fieldAccessorTable;
2931 }
2932
2933 private void initFields() {
2934 }
2935 private byte memoizedIsInitialized = -1;
2936 public final boolean isInitialized() {
2937 byte isInitialized = memoizedIsInitialized;
2938 if (isInitialized != -1) return isInitialized == 1;
2939
2940 memoizedIsInitialized = 1;
2941 return true;
2942 }
2943
2944 public void writeTo(com.google.protobuf.CodedOutputStream output)
2945 throws java.io.IOException {
2946 getSerializedSize();
2947 getUnknownFields().writeTo(output);
2948 }
2949
2950 private int memoizedSerializedSize = -1;
2951 public int getSerializedSize() {
2952 int size = memoizedSerializedSize;
2953 if (size != -1) return size;
2954
2955 size = 0;
2956 size += getUnknownFields().getSerializedSize();
2957 memoizedSerializedSize = size;
2958 return size;
2959 }
2960
2961 private static final long serialVersionUID = 0L;
2962 @java.lang.Override
2963 protected java.lang.Object writeReplace()
2964 throws java.io.ObjectStreamException {
2965 return super.writeReplace();
2966 }
2967
2968 @java.lang.Override
2969 public boolean equals(final java.lang.Object obj) {
2970 if (obj == this) {
2971 return true;
2972 }
2973 if (!(obj instanceof org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto)) {
2974 return super.equals(obj);
2975 }
2976 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto other = (org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto) obj;
2977
2978 boolean result = true;
2979 result = result &&
2980 getUnknownFields().equals(other.getUnknownFields());
2981 return result;
2982 }
2983
2984 @java.lang.Override
2985 public int hashCode() {
2986 int hash = 41;
2987 hash = (19 * hash) + getDescriptorForType().hashCode();
2988 hash = (29 * hash) + getUnknownFields().hashCode();
2989 return hash;
2990 }
2991
2992 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto parseFrom(
2993 com.google.protobuf.ByteString data)
2994 throws com.google.protobuf.InvalidProtocolBufferException {
2995 return newBuilder().mergeFrom(data).buildParsed();
2996 }
2997 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto parseFrom(
2998 com.google.protobuf.ByteString data,
2999 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3000 throws com.google.protobuf.InvalidProtocolBufferException {
3001 return newBuilder().mergeFrom(data, extensionRegistry)
3002 .buildParsed();
3003 }
3004 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto parseFrom(byte[] data)
3005 throws com.google.protobuf.InvalidProtocolBufferException {
3006 return newBuilder().mergeFrom(data).buildParsed();
3007 }
3008 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto parseFrom(
3009 byte[] data,
3010 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3011 throws com.google.protobuf.InvalidProtocolBufferException {
3012 return newBuilder().mergeFrom(data, extensionRegistry)
3013 .buildParsed();
3014 }
3015 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto parseFrom(java.io.InputStream input)
3016 throws java.io.IOException {
3017 return newBuilder().mergeFrom(input).buildParsed();
3018 }
3019 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto parseFrom(
3020 java.io.InputStream input,
3021 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3022 throws java.io.IOException {
3023 return newBuilder().mergeFrom(input, extensionRegistry)
3024 .buildParsed();
3025 }
3026 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto parseDelimitedFrom(java.io.InputStream input)
3027 throws java.io.IOException {
3028 Builder builder = newBuilder();
3029 if (builder.mergeDelimitedFrom(input)) {
3030 return builder.buildParsed();
3031 } else {
3032 return null;
3033 }
3034 }
3035 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto parseDelimitedFrom(
3036 java.io.InputStream input,
3037 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3038 throws java.io.IOException {
3039 Builder builder = newBuilder();
3040 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
3041 return builder.buildParsed();
3042 } else {
3043 return null;
3044 }
3045 }
3046 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto parseFrom(
3047 com.google.protobuf.CodedInputStream input)
3048 throws java.io.IOException {
3049 return newBuilder().mergeFrom(input).buildParsed();
3050 }
3051 public static org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto parseFrom(
3052 com.google.protobuf.CodedInputStream input,
3053 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3054 throws java.io.IOException {
3055 return newBuilder().mergeFrom(input, extensionRegistry)
3056 .buildParsed();
3057 }
3058
3059 public static Builder newBuilder() { return Builder.create(); }
3060 public Builder newBuilderForType() { return newBuilder(); }
3061 public static Builder newBuilder(org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto prototype) {
3062 return newBuilder().mergeFrom(prototype);
3063 }
3064 public Builder toBuilder() { return newBuilder(this); }
3065
3066 @java.lang.Override
3067 protected Builder newBuilderForType(
3068 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3069 Builder builder = new Builder(parent);
3070 return builder;
3071 }
3072 public static final class Builder extends
3073 com.google.protobuf.GeneratedMessage.Builder<Builder>
3074 implements org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProtoOrBuilder {
3075 public static final com.google.protobuf.Descriptors.Descriptor
3076 getDescriptor() {
3077 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_CancelDelegationTokenResponseProto_descriptor;
3078 }
3079
3080 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3081 internalGetFieldAccessorTable() {
3082 return org.apache.hadoop.security.proto.SecurityProtos.internal_static_hadoop_common_CancelDelegationTokenResponseProto_fieldAccessorTable;
3083 }
3084
3085 // Construct using org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.newBuilder()
3086 private Builder() {
3087 maybeForceBuilderInitialization();
3088 }
3089
3090 private Builder(BuilderParent parent) {
3091 super(parent);
3092 maybeForceBuilderInitialization();
3093 }
3094 private void maybeForceBuilderInitialization() {
3095 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3096 }
3097 }
3098 private static Builder create() {
3099 return new Builder();
3100 }
3101
3102 public Builder clear() {
3103 super.clear();
3104 return this;
3105 }
3106
3107 public Builder clone() {
3108 return create().mergeFrom(buildPartial());
3109 }
3110
3111 public com.google.protobuf.Descriptors.Descriptor
3112 getDescriptorForType() {
3113 return org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.getDescriptor();
3114 }
3115
3116 public org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto getDefaultInstanceForType() {
3117 return org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.getDefaultInstance();
3118 }
3119
3120 public org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto build() {
3121 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto result = buildPartial();
3122 if (!result.isInitialized()) {
3123 throw newUninitializedMessageException(result);
3124 }
3125 return result;
3126 }
3127
3128 private org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto buildParsed()
3129 throws com.google.protobuf.InvalidProtocolBufferException {
3130 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto result = buildPartial();
3131 if (!result.isInitialized()) {
3132 throw newUninitializedMessageException(
3133 result).asInvalidProtocolBufferException();
3134 }
3135 return result;
3136 }
3137
3138 public org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto buildPartial() {
3139 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto result = new org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto(this);
3140 onBuilt();
3141 return result;
3142 }
3143
3144 public Builder mergeFrom(com.google.protobuf.Message other) {
3145 if (other instanceof org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto) {
3146 return mergeFrom((org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto)other);
3147 } else {
3148 super.mergeFrom(other);
3149 return this;
3150 }
3151 }
3152
3153 public Builder mergeFrom(org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto other) {
3154 if (other == org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.getDefaultInstance()) return this;
3155 this.mergeUnknownFields(other.getUnknownFields());
3156 return this;
3157 }
3158
3159 public final boolean isInitialized() {
3160 return true;
3161 }
3162
3163 public Builder mergeFrom(
3164 com.google.protobuf.CodedInputStream input,
3165 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3166 throws java.io.IOException {
3167 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3168 com.google.protobuf.UnknownFieldSet.newBuilder(
3169 this.getUnknownFields());
3170 while (true) {
3171 int tag = input.readTag();
3172 switch (tag) {
3173 case 0:
3174 this.setUnknownFields(unknownFields.build());
3175 onChanged();
3176 return this;
3177 default: {
3178 if (!parseUnknownField(input, unknownFields,
3179 extensionRegistry, tag)) {
3180 this.setUnknownFields(unknownFields.build());
3181 onChanged();
3182 return this;
3183 }
3184 break;
3185 }
3186 }
3187 }
3188 }
3189
3190
3191 // @@protoc_insertion_point(builder_scope:hadoop.common.CancelDelegationTokenResponseProto)
3192 }
3193
3194 static {
3195 defaultInstance = new CancelDelegationTokenResponseProto(true);
3196 defaultInstance.initFields();
3197 }
3198
3199 // @@protoc_insertion_point(class_scope:hadoop.common.CancelDelegationTokenResponseProto)
3200 }
3201
3202 private static com.google.protobuf.Descriptors.Descriptor
3203 internal_static_hadoop_common_TokenProto_descriptor;
3204 private static
3205 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3206 internal_static_hadoop_common_TokenProto_fieldAccessorTable;
3207 private static com.google.protobuf.Descriptors.Descriptor
3208 internal_static_hadoop_common_GetDelegationTokenRequestProto_descriptor;
3209 private static
3210 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3211 internal_static_hadoop_common_GetDelegationTokenRequestProto_fieldAccessorTable;
3212 private static com.google.protobuf.Descriptors.Descriptor
3213 internal_static_hadoop_common_GetDelegationTokenResponseProto_descriptor;
3214 private static
3215 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3216 internal_static_hadoop_common_GetDelegationTokenResponseProto_fieldAccessorTable;
3217 private static com.google.protobuf.Descriptors.Descriptor
3218 internal_static_hadoop_common_RenewDelegationTokenRequestProto_descriptor;
3219 private static
3220 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3221 internal_static_hadoop_common_RenewDelegationTokenRequestProto_fieldAccessorTable;
3222 private static com.google.protobuf.Descriptors.Descriptor
3223 internal_static_hadoop_common_RenewDelegationTokenResponseProto_descriptor;
3224 private static
3225 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3226 internal_static_hadoop_common_RenewDelegationTokenResponseProto_fieldAccessorTable;
3227 private static com.google.protobuf.Descriptors.Descriptor
3228 internal_static_hadoop_common_CancelDelegationTokenRequestProto_descriptor;
3229 private static
3230 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3231 internal_static_hadoop_common_CancelDelegationTokenRequestProto_fieldAccessorTable;
3232 private static com.google.protobuf.Descriptors.Descriptor
3233 internal_static_hadoop_common_CancelDelegationTokenResponseProto_descriptor;
3234 private static
3235 com.google.protobuf.GeneratedMessage.FieldAccessorTable
3236 internal_static_hadoop_common_CancelDelegationTokenResponseProto_fieldAccessorTable;
3237
3238 public static com.google.protobuf.Descriptors.FileDescriptor
3239 getDescriptor() {
3240 return descriptor;
3241 }
3242 private static com.google.protobuf.Descriptors.FileDescriptor
3243 descriptor;
3244 static {
3245 java.lang.String[] descriptorData = {
3246 "\n\016Security.proto\022\rhadoop.common\"Q\n\nToken" +
3247 "Proto\022\022\n\nidentifier\030\001 \002(\014\022\020\n\010password\030\002 " +
3248 "\002(\014\022\014\n\004kind\030\003 \002(\t\022\017\n\007service\030\004 \002(\t\"1\n\036Ge" +
3249 "tDelegationTokenRequestProto\022\017\n\007renewer\030" +
3250 "\001 \002(\t\"K\n\037GetDelegationTokenResponseProto" +
3251 "\022(\n\005token\030\001 \001(\0132\031.hadoop.common.TokenPro" +
3252 "to\"L\n RenewDelegationTokenRequestProto\022(" +
3253 "\n\005token\030\001 \002(\0132\031.hadoop.common.TokenProto" +
3254 "\":\n!RenewDelegationTokenResponseProto\022\025\n" +
3255 "\rnewExpiryTime\030\001 \002(\004\"M\n!CancelDelegation",
3256 "TokenRequestProto\022(\n\005token\030\001 \002(\0132\031.hadoo" +
3257 "p.common.TokenProto\"$\n\"CancelDelegationT" +
3258 "okenResponseProtoB8\n org.apache.hadoop.s" +
3259 "ecurity.protoB\016SecurityProtos\210\001\001\240\001\001"
3260 };
3261 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
3262 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
3263 public com.google.protobuf.ExtensionRegistry assignDescriptors(
3264 com.google.protobuf.Descriptors.FileDescriptor root) {
3265 descriptor = root;
3266 internal_static_hadoop_common_TokenProto_descriptor =
3267 getDescriptor().getMessageTypes().get(0);
3268 internal_static_hadoop_common_TokenProto_fieldAccessorTable = new
3269 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3270 internal_static_hadoop_common_TokenProto_descriptor,
3271 new java.lang.String[] { "Identifier", "Password", "Kind", "Service", },
3272 org.apache.hadoop.security.proto.SecurityProtos.TokenProto.class,
3273 org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder.class);
3274 internal_static_hadoop_common_GetDelegationTokenRequestProto_descriptor =
3275 getDescriptor().getMessageTypes().get(1);
3276 internal_static_hadoop_common_GetDelegationTokenRequestProto_fieldAccessorTable = new
3277 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3278 internal_static_hadoop_common_GetDelegationTokenRequestProto_descriptor,
3279 new java.lang.String[] { "Renewer", },
3280 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto.class,
3281 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto.Builder.class);
3282 internal_static_hadoop_common_GetDelegationTokenResponseProto_descriptor =
3283 getDescriptor().getMessageTypes().get(2);
3284 internal_static_hadoop_common_GetDelegationTokenResponseProto_fieldAccessorTable = new
3285 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3286 internal_static_hadoop_common_GetDelegationTokenResponseProto_descriptor,
3287 new java.lang.String[] { "Token", },
3288 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.class,
3289 org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto.Builder.class);
3290 internal_static_hadoop_common_RenewDelegationTokenRequestProto_descriptor =
3291 getDescriptor().getMessageTypes().get(3);
3292 internal_static_hadoop_common_RenewDelegationTokenRequestProto_fieldAccessorTable = new
3293 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3294 internal_static_hadoop_common_RenewDelegationTokenRequestProto_descriptor,
3295 new java.lang.String[] { "Token", },
3296 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto.class,
3297 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto.Builder.class);
3298 internal_static_hadoop_common_RenewDelegationTokenResponseProto_descriptor =
3299 getDescriptor().getMessageTypes().get(4);
3300 internal_static_hadoop_common_RenewDelegationTokenResponseProto_fieldAccessorTable = new
3301 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3302 internal_static_hadoop_common_RenewDelegationTokenResponseProto_descriptor,
3303 new java.lang.String[] { "NewExpiryTime", },
3304 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.class,
3305 org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto.Builder.class);
3306 internal_static_hadoop_common_CancelDelegationTokenRequestProto_descriptor =
3307 getDescriptor().getMessageTypes().get(5);
3308 internal_static_hadoop_common_CancelDelegationTokenRequestProto_fieldAccessorTable = new
3309 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3310 internal_static_hadoop_common_CancelDelegationTokenRequestProto_descriptor,
3311 new java.lang.String[] { "Token", },
3312 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto.class,
3313 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto.Builder.class);
3314 internal_static_hadoop_common_CancelDelegationTokenResponseProto_descriptor =
3315 getDescriptor().getMessageTypes().get(6);
3316 internal_static_hadoop_common_CancelDelegationTokenResponseProto_fieldAccessorTable = new
3317 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
3318 internal_static_hadoop_common_CancelDelegationTokenResponseProto_descriptor,
3319 new java.lang.String[] { },
3320 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.class,
3321 org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto.Builder.class);
3322 return null;
3323 }
3324 };
3325 com.google.protobuf.Descriptors.FileDescriptor
3326 .internalBuildGeneratedFileFrom(descriptorData,
3327 new com.google.protobuf.Descriptors.FileDescriptor[] {
3328 }, assigner);
3329 }
3330
3331 // @@protoc_insertion_point(outer_class_scope)
3332 }