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