001// Generated by the protocol buffer compiler.  DO NOT EDIT!
002// source: GenericRefreshProtocol.proto
003
004package org.apache.hadoop.ipc.proto;
005
006public final class GenericRefreshProtocolProtos {
007  private GenericRefreshProtocolProtos() {}
008  public static void registerAllExtensions(
009      com.google.protobuf.ExtensionRegistry registry) {
010  }
011  public interface GenericRefreshRequestProtoOrBuilder
012      extends com.google.protobuf.MessageOrBuilder {
013
014    // optional string identifier = 1;
015    /**
016     * <code>optional string identifier = 1;</code>
017     */
018    boolean hasIdentifier();
019    /**
020     * <code>optional string identifier = 1;</code>
021     */
022    java.lang.String getIdentifier();
023    /**
024     * <code>optional string identifier = 1;</code>
025     */
026    com.google.protobuf.ByteString
027        getIdentifierBytes();
028
029    // repeated string args = 2;
030    /**
031     * <code>repeated string args = 2;</code>
032     */
033    java.util.List<java.lang.String>
034    getArgsList();
035    /**
036     * <code>repeated string args = 2;</code>
037     */
038    int getArgsCount();
039    /**
040     * <code>repeated string args = 2;</code>
041     */
042    java.lang.String getArgs(int index);
043    /**
044     * <code>repeated string args = 2;</code>
045     */
046    com.google.protobuf.ByteString
047        getArgsBytes(int index);
048  }
049  /**
050   * Protobuf type {@code hadoop.common.GenericRefreshRequestProto}
051   *
052   * <pre>
053   **
054   *  Refresh request.
055   * </pre>
056   */
057  public static final class GenericRefreshRequestProto extends
058      com.google.protobuf.GeneratedMessage
059      implements GenericRefreshRequestProtoOrBuilder {
060    // Use GenericRefreshRequestProto.newBuilder() to construct.
061    private GenericRefreshRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
062      super(builder);
063      this.unknownFields = builder.getUnknownFields();
064    }
065    private GenericRefreshRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
066
067    private static final GenericRefreshRequestProto defaultInstance;
068    public static GenericRefreshRequestProto getDefaultInstance() {
069      return defaultInstance;
070    }
071
072    public GenericRefreshRequestProto getDefaultInstanceForType() {
073      return defaultInstance;
074    }
075
076    private final com.google.protobuf.UnknownFieldSet unknownFields;
077    @java.lang.Override
078    public final com.google.protobuf.UnknownFieldSet
079        getUnknownFields() {
080      return this.unknownFields;
081    }
082    private GenericRefreshRequestProto(
083        com.google.protobuf.CodedInputStream input,
084        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
085        throws com.google.protobuf.InvalidProtocolBufferException {
086      initFields();
087      int mutable_bitField0_ = 0;
088      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
089          com.google.protobuf.UnknownFieldSet.newBuilder();
090      try {
091        boolean done = false;
092        while (!done) {
093          int tag = input.readTag();
094          switch (tag) {
095            case 0:
096              done = true;
097              break;
098            default: {
099              if (!parseUnknownField(input, unknownFields,
100                                     extensionRegistry, tag)) {
101                done = true;
102              }
103              break;
104            }
105            case 10: {
106              bitField0_ |= 0x00000001;
107              identifier_ = input.readBytes();
108              break;
109            }
110            case 18: {
111              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
112                args_ = new com.google.protobuf.LazyStringArrayList();
113                mutable_bitField0_ |= 0x00000002;
114              }
115              args_.add(input.readBytes());
116              break;
117            }
118          }
119        }
120      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
121        throw e.setUnfinishedMessage(this);
122      } catch (java.io.IOException e) {
123        throw new com.google.protobuf.InvalidProtocolBufferException(
124            e.getMessage()).setUnfinishedMessage(this);
125      } finally {
126        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
127          args_ = new com.google.protobuf.UnmodifiableLazyStringList(args_);
128        }
129        this.unknownFields = unknownFields.build();
130        makeExtensionsImmutable();
131      }
132    }
133    public static final com.google.protobuf.Descriptors.Descriptor
134        getDescriptor() {
135      return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshRequestProto_descriptor;
136    }
137
138    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
139        internalGetFieldAccessorTable() {
140      return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshRequestProto_fieldAccessorTable
141          .ensureFieldAccessorsInitialized(
142              org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.Builder.class);
143    }
144
145    public static com.google.protobuf.Parser<GenericRefreshRequestProto> PARSER =
146        new com.google.protobuf.AbstractParser<GenericRefreshRequestProto>() {
147      public GenericRefreshRequestProto parsePartialFrom(
148          com.google.protobuf.CodedInputStream input,
149          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
150          throws com.google.protobuf.InvalidProtocolBufferException {
151        return new GenericRefreshRequestProto(input, extensionRegistry);
152      }
153    };
154
155    @java.lang.Override
156    public com.google.protobuf.Parser<GenericRefreshRequestProto> getParserForType() {
157      return PARSER;
158    }
159
160    private int bitField0_;
161    // optional string identifier = 1;
162    public static final int IDENTIFIER_FIELD_NUMBER = 1;
163    private java.lang.Object identifier_;
164    /**
165     * <code>optional string identifier = 1;</code>
166     */
167    public boolean hasIdentifier() {
168      return ((bitField0_ & 0x00000001) == 0x00000001);
169    }
170    /**
171     * <code>optional string identifier = 1;</code>
172     */
173    public java.lang.String getIdentifier() {
174      java.lang.Object ref = identifier_;
175      if (ref instanceof java.lang.String) {
176        return (java.lang.String) ref;
177      } else {
178        com.google.protobuf.ByteString bs = 
179            (com.google.protobuf.ByteString) ref;
180        java.lang.String s = bs.toStringUtf8();
181        if (bs.isValidUtf8()) {
182          identifier_ = s;
183        }
184        return s;
185      }
186    }
187    /**
188     * <code>optional string identifier = 1;</code>
189     */
190    public com.google.protobuf.ByteString
191        getIdentifierBytes() {
192      java.lang.Object ref = identifier_;
193      if (ref instanceof java.lang.String) {
194        com.google.protobuf.ByteString b = 
195            com.google.protobuf.ByteString.copyFromUtf8(
196                (java.lang.String) ref);
197        identifier_ = b;
198        return b;
199      } else {
200        return (com.google.protobuf.ByteString) ref;
201      }
202    }
203
204    // repeated string args = 2;
205    public static final int ARGS_FIELD_NUMBER = 2;
206    private com.google.protobuf.LazyStringList args_;
207    /**
208     * <code>repeated string args = 2;</code>
209     */
210    public java.util.List<java.lang.String>
211        getArgsList() {
212      return args_;
213    }
214    /**
215     * <code>repeated string args = 2;</code>
216     */
217    public int getArgsCount() {
218      return args_.size();
219    }
220    /**
221     * <code>repeated string args = 2;</code>
222     */
223    public java.lang.String getArgs(int index) {
224      return args_.get(index);
225    }
226    /**
227     * <code>repeated string args = 2;</code>
228     */
229    public com.google.protobuf.ByteString
230        getArgsBytes(int index) {
231      return args_.getByteString(index);
232    }
233
234    private void initFields() {
235      identifier_ = "";
236      args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
237    }
238    private byte memoizedIsInitialized = -1;
239    public final boolean isInitialized() {
240      byte isInitialized = memoizedIsInitialized;
241      if (isInitialized != -1) return isInitialized == 1;
242
243      memoizedIsInitialized = 1;
244      return true;
245    }
246
247    public void writeTo(com.google.protobuf.CodedOutputStream output)
248                        throws java.io.IOException {
249      getSerializedSize();
250      if (((bitField0_ & 0x00000001) == 0x00000001)) {
251        output.writeBytes(1, getIdentifierBytes());
252      }
253      for (int i = 0; i < args_.size(); i++) {
254        output.writeBytes(2, args_.getByteString(i));
255      }
256      getUnknownFields().writeTo(output);
257    }
258
259    private int memoizedSerializedSize = -1;
260    public int getSerializedSize() {
261      int size = memoizedSerializedSize;
262      if (size != -1) return size;
263
264      size = 0;
265      if (((bitField0_ & 0x00000001) == 0x00000001)) {
266        size += com.google.protobuf.CodedOutputStream
267          .computeBytesSize(1, getIdentifierBytes());
268      }
269      {
270        int dataSize = 0;
271        for (int i = 0; i < args_.size(); i++) {
272          dataSize += com.google.protobuf.CodedOutputStream
273            .computeBytesSizeNoTag(args_.getByteString(i));
274        }
275        size += dataSize;
276        size += 1 * getArgsList().size();
277      }
278      size += getUnknownFields().getSerializedSize();
279      memoizedSerializedSize = size;
280      return size;
281    }
282
283    private static final long serialVersionUID = 0L;
284    @java.lang.Override
285    protected java.lang.Object writeReplace()
286        throws java.io.ObjectStreamException {
287      return super.writeReplace();
288    }
289
290    @java.lang.Override
291    public boolean equals(final java.lang.Object obj) {
292      if (obj == this) {
293       return true;
294      }
295      if (!(obj instanceof org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto)) {
296        return super.equals(obj);
297      }
298      org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto other = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto) obj;
299
300      boolean result = true;
301      result = result && (hasIdentifier() == other.hasIdentifier());
302      if (hasIdentifier()) {
303        result = result && getIdentifier()
304            .equals(other.getIdentifier());
305      }
306      result = result && getArgsList()
307          .equals(other.getArgsList());
308      result = result &&
309          getUnknownFields().equals(other.getUnknownFields());
310      return result;
311    }
312
313    private int memoizedHashCode = 0;
314    @java.lang.Override
315    public int hashCode() {
316      if (memoizedHashCode != 0) {
317        return memoizedHashCode;
318      }
319      int hash = 41;
320      hash = (19 * hash) + getDescriptorForType().hashCode();
321      if (hasIdentifier()) {
322        hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER;
323        hash = (53 * hash) + getIdentifier().hashCode();
324      }
325      if (getArgsCount() > 0) {
326        hash = (37 * hash) + ARGS_FIELD_NUMBER;
327        hash = (53 * hash) + getArgsList().hashCode();
328      }
329      hash = (29 * hash) + getUnknownFields().hashCode();
330      memoizedHashCode = hash;
331      return hash;
332    }
333
334    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom(
335        com.google.protobuf.ByteString data)
336        throws com.google.protobuf.InvalidProtocolBufferException {
337      return PARSER.parseFrom(data);
338    }
339    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom(
340        com.google.protobuf.ByteString data,
341        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
342        throws com.google.protobuf.InvalidProtocolBufferException {
343      return PARSER.parseFrom(data, extensionRegistry);
344    }
345    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom(byte[] data)
346        throws com.google.protobuf.InvalidProtocolBufferException {
347      return PARSER.parseFrom(data);
348    }
349    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom(
350        byte[] data,
351        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
352        throws com.google.protobuf.InvalidProtocolBufferException {
353      return PARSER.parseFrom(data, extensionRegistry);
354    }
355    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom(java.io.InputStream input)
356        throws java.io.IOException {
357      return PARSER.parseFrom(input);
358    }
359    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom(
360        java.io.InputStream input,
361        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
362        throws java.io.IOException {
363      return PARSER.parseFrom(input, extensionRegistry);
364    }
365    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseDelimitedFrom(java.io.InputStream input)
366        throws java.io.IOException {
367      return PARSER.parseDelimitedFrom(input);
368    }
369    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseDelimitedFrom(
370        java.io.InputStream input,
371        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
372        throws java.io.IOException {
373      return PARSER.parseDelimitedFrom(input, extensionRegistry);
374    }
375    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom(
376        com.google.protobuf.CodedInputStream input)
377        throws java.io.IOException {
378      return PARSER.parseFrom(input);
379    }
380    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom(
381        com.google.protobuf.CodedInputStream input,
382        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
383        throws java.io.IOException {
384      return PARSER.parseFrom(input, extensionRegistry);
385    }
386
387    public static Builder newBuilder() { return Builder.create(); }
388    public Builder newBuilderForType() { return newBuilder(); }
389    public static Builder newBuilder(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto prototype) {
390      return newBuilder().mergeFrom(prototype);
391    }
392    public Builder toBuilder() { return newBuilder(this); }
393
394    @java.lang.Override
395    protected Builder newBuilderForType(
396        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
397      Builder builder = new Builder(parent);
398      return builder;
399    }
400    /**
401     * Protobuf type {@code hadoop.common.GenericRefreshRequestProto}
402     *
403     * <pre>
404     **
405     *  Refresh request.
406     * </pre>
407     */
408    public static final class Builder extends
409        com.google.protobuf.GeneratedMessage.Builder<Builder>
410       implements org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProtoOrBuilder {
411      public static final com.google.protobuf.Descriptors.Descriptor
412          getDescriptor() {
413        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshRequestProto_descriptor;
414      }
415
416      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
417          internalGetFieldAccessorTable() {
418        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshRequestProto_fieldAccessorTable
419            .ensureFieldAccessorsInitialized(
420                org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.Builder.class);
421      }
422
423      // Construct using org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.newBuilder()
424      private Builder() {
425        maybeForceBuilderInitialization();
426      }
427
428      private Builder(
429          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
430        super(parent);
431        maybeForceBuilderInitialization();
432      }
433      private void maybeForceBuilderInitialization() {
434        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
435        }
436      }
437      private static Builder create() {
438        return new Builder();
439      }
440
441      public Builder clear() {
442        super.clear();
443        identifier_ = "";
444        bitField0_ = (bitField0_ & ~0x00000001);
445        args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
446        bitField0_ = (bitField0_ & ~0x00000002);
447        return this;
448      }
449
450      public Builder clone() {
451        return create().mergeFrom(buildPartial());
452      }
453
454      public com.google.protobuf.Descriptors.Descriptor
455          getDescriptorForType() {
456        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshRequestProto_descriptor;
457      }
458
459      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto getDefaultInstanceForType() {
460        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.getDefaultInstance();
461      }
462
463      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto build() {
464        org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto result = buildPartial();
465        if (!result.isInitialized()) {
466          throw newUninitializedMessageException(result);
467        }
468        return result;
469      }
470
471      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto buildPartial() {
472        org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto result = new org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto(this);
473        int from_bitField0_ = bitField0_;
474        int to_bitField0_ = 0;
475        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
476          to_bitField0_ |= 0x00000001;
477        }
478        result.identifier_ = identifier_;
479        if (((bitField0_ & 0x00000002) == 0x00000002)) {
480          args_ = new com.google.protobuf.UnmodifiableLazyStringList(
481              args_);
482          bitField0_ = (bitField0_ & ~0x00000002);
483        }
484        result.args_ = args_;
485        result.bitField0_ = to_bitField0_;
486        onBuilt();
487        return result;
488      }
489
490      public Builder mergeFrom(com.google.protobuf.Message other) {
491        if (other instanceof org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto) {
492          return mergeFrom((org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto)other);
493        } else {
494          super.mergeFrom(other);
495          return this;
496        }
497      }
498
499      public Builder mergeFrom(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto other) {
500        if (other == org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.getDefaultInstance()) return this;
501        if (other.hasIdentifier()) {
502          bitField0_ |= 0x00000001;
503          identifier_ = other.identifier_;
504          onChanged();
505        }
506        if (!other.args_.isEmpty()) {
507          if (args_.isEmpty()) {
508            args_ = other.args_;
509            bitField0_ = (bitField0_ & ~0x00000002);
510          } else {
511            ensureArgsIsMutable();
512            args_.addAll(other.args_);
513          }
514          onChanged();
515        }
516        this.mergeUnknownFields(other.getUnknownFields());
517        return this;
518      }
519
520      public final boolean isInitialized() {
521        return true;
522      }
523
524      public Builder mergeFrom(
525          com.google.protobuf.CodedInputStream input,
526          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
527          throws java.io.IOException {
528        org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parsedMessage = null;
529        try {
530          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
531        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
532          parsedMessage = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto) e.getUnfinishedMessage();
533          throw e;
534        } finally {
535          if (parsedMessage != null) {
536            mergeFrom(parsedMessage);
537          }
538        }
539        return this;
540      }
541      private int bitField0_;
542
543      // optional string identifier = 1;
544      private java.lang.Object identifier_ = "";
545      /**
546       * <code>optional string identifier = 1;</code>
547       */
548      public boolean hasIdentifier() {
549        return ((bitField0_ & 0x00000001) == 0x00000001);
550      }
551      /**
552       * <code>optional string identifier = 1;</code>
553       */
554      public java.lang.String getIdentifier() {
555        java.lang.Object ref = identifier_;
556        if (!(ref instanceof java.lang.String)) {
557          java.lang.String s = ((com.google.protobuf.ByteString) ref)
558              .toStringUtf8();
559          identifier_ = s;
560          return s;
561        } else {
562          return (java.lang.String) ref;
563        }
564      }
565      /**
566       * <code>optional string identifier = 1;</code>
567       */
568      public com.google.protobuf.ByteString
569          getIdentifierBytes() {
570        java.lang.Object ref = identifier_;
571        if (ref instanceof String) {
572          com.google.protobuf.ByteString b = 
573              com.google.protobuf.ByteString.copyFromUtf8(
574                  (java.lang.String) ref);
575          identifier_ = b;
576          return b;
577        } else {
578          return (com.google.protobuf.ByteString) ref;
579        }
580      }
581      /**
582       * <code>optional string identifier = 1;</code>
583       */
584      public Builder setIdentifier(
585          java.lang.String value) {
586        if (value == null) {
587    throw new NullPointerException();
588  }
589  bitField0_ |= 0x00000001;
590        identifier_ = value;
591        onChanged();
592        return this;
593      }
594      /**
595       * <code>optional string identifier = 1;</code>
596       */
597      public Builder clearIdentifier() {
598        bitField0_ = (bitField0_ & ~0x00000001);
599        identifier_ = getDefaultInstance().getIdentifier();
600        onChanged();
601        return this;
602      }
603      /**
604       * <code>optional string identifier = 1;</code>
605       */
606      public Builder setIdentifierBytes(
607          com.google.protobuf.ByteString value) {
608        if (value == null) {
609    throw new NullPointerException();
610  }
611  bitField0_ |= 0x00000001;
612        identifier_ = value;
613        onChanged();
614        return this;
615      }
616
617      // repeated string args = 2;
618      private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
619      private void ensureArgsIsMutable() {
620        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
621          args_ = new com.google.protobuf.LazyStringArrayList(args_);
622          bitField0_ |= 0x00000002;
623         }
624      }
625      /**
626       * <code>repeated string args = 2;</code>
627       */
628      public java.util.List<java.lang.String>
629          getArgsList() {
630        return java.util.Collections.unmodifiableList(args_);
631      }
632      /**
633       * <code>repeated string args = 2;</code>
634       */
635      public int getArgsCount() {
636        return args_.size();
637      }
638      /**
639       * <code>repeated string args = 2;</code>
640       */
641      public java.lang.String getArgs(int index) {
642        return args_.get(index);
643      }
644      /**
645       * <code>repeated string args = 2;</code>
646       */
647      public com.google.protobuf.ByteString
648          getArgsBytes(int index) {
649        return args_.getByteString(index);
650      }
651      /**
652       * <code>repeated string args = 2;</code>
653       */
654      public Builder setArgs(
655          int index, java.lang.String value) {
656        if (value == null) {
657    throw new NullPointerException();
658  }
659  ensureArgsIsMutable();
660        args_.set(index, value);
661        onChanged();
662        return this;
663      }
664      /**
665       * <code>repeated string args = 2;</code>
666       */
667      public Builder addArgs(
668          java.lang.String value) {
669        if (value == null) {
670    throw new NullPointerException();
671  }
672  ensureArgsIsMutable();
673        args_.add(value);
674        onChanged();
675        return this;
676      }
677      /**
678       * <code>repeated string args = 2;</code>
679       */
680      public Builder addAllArgs(
681          java.lang.Iterable<java.lang.String> values) {
682        ensureArgsIsMutable();
683        super.addAll(values, args_);
684        onChanged();
685        return this;
686      }
687      /**
688       * <code>repeated string args = 2;</code>
689       */
690      public Builder clearArgs() {
691        args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
692        bitField0_ = (bitField0_ & ~0x00000002);
693        onChanged();
694        return this;
695      }
696      /**
697       * <code>repeated string args = 2;</code>
698       */
699      public Builder addArgsBytes(
700          com.google.protobuf.ByteString value) {
701        if (value == null) {
702    throw new NullPointerException();
703  }
704  ensureArgsIsMutable();
705        args_.add(value);
706        onChanged();
707        return this;
708      }
709
710      // @@protoc_insertion_point(builder_scope:hadoop.common.GenericRefreshRequestProto)
711    }
712
713    static {
714      defaultInstance = new GenericRefreshRequestProto(true);
715      defaultInstance.initFields();
716    }
717
718    // @@protoc_insertion_point(class_scope:hadoop.common.GenericRefreshRequestProto)
719  }
720
721  public interface GenericRefreshResponseProtoOrBuilder
722      extends com.google.protobuf.MessageOrBuilder {
723
724    // optional int32 exitStatus = 1;
725    /**
726     * <code>optional int32 exitStatus = 1;</code>
727     *
728     * <pre>
729     * unix exit status to return
730     * </pre>
731     */
732    boolean hasExitStatus();
733    /**
734     * <code>optional int32 exitStatus = 1;</code>
735     *
736     * <pre>
737     * unix exit status to return
738     * </pre>
739     */
740    int getExitStatus();
741
742    // optional string userMessage = 2;
743    /**
744     * <code>optional string userMessage = 2;</code>
745     *
746     * <pre>
747     * to be displayed to the user
748     * </pre>
749     */
750    boolean hasUserMessage();
751    /**
752     * <code>optional string userMessage = 2;</code>
753     *
754     * <pre>
755     * to be displayed to the user
756     * </pre>
757     */
758    java.lang.String getUserMessage();
759    /**
760     * <code>optional string userMessage = 2;</code>
761     *
762     * <pre>
763     * to be displayed to the user
764     * </pre>
765     */
766    com.google.protobuf.ByteString
767        getUserMessageBytes();
768
769    // optional string senderName = 3;
770    /**
771     * <code>optional string senderName = 3;</code>
772     *
773     * <pre>
774     * which handler sent this message
775     * </pre>
776     */
777    boolean hasSenderName();
778    /**
779     * <code>optional string senderName = 3;</code>
780     *
781     * <pre>
782     * which handler sent this message
783     * </pre>
784     */
785    java.lang.String getSenderName();
786    /**
787     * <code>optional string senderName = 3;</code>
788     *
789     * <pre>
790     * which handler sent this message
791     * </pre>
792     */
793    com.google.protobuf.ByteString
794        getSenderNameBytes();
795  }
796  /**
797   * Protobuf type {@code hadoop.common.GenericRefreshResponseProto}
798   *
799   * <pre>
800   **
801   * A single response from a refresh handler.
802   * </pre>
803   */
804  public static final class GenericRefreshResponseProto extends
805      com.google.protobuf.GeneratedMessage
806      implements GenericRefreshResponseProtoOrBuilder {
807    // Use GenericRefreshResponseProto.newBuilder() to construct.
808    private GenericRefreshResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
809      super(builder);
810      this.unknownFields = builder.getUnknownFields();
811    }
812    private GenericRefreshResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
813
814    private static final GenericRefreshResponseProto defaultInstance;
815    public static GenericRefreshResponseProto getDefaultInstance() {
816      return defaultInstance;
817    }
818
819    public GenericRefreshResponseProto getDefaultInstanceForType() {
820      return defaultInstance;
821    }
822
823    private final com.google.protobuf.UnknownFieldSet unknownFields;
824    @java.lang.Override
825    public final com.google.protobuf.UnknownFieldSet
826        getUnknownFields() {
827      return this.unknownFields;
828    }
829    private GenericRefreshResponseProto(
830        com.google.protobuf.CodedInputStream input,
831        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
832        throws com.google.protobuf.InvalidProtocolBufferException {
833      initFields();
834      int mutable_bitField0_ = 0;
835      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
836          com.google.protobuf.UnknownFieldSet.newBuilder();
837      try {
838        boolean done = false;
839        while (!done) {
840          int tag = input.readTag();
841          switch (tag) {
842            case 0:
843              done = true;
844              break;
845            default: {
846              if (!parseUnknownField(input, unknownFields,
847                                     extensionRegistry, tag)) {
848                done = true;
849              }
850              break;
851            }
852            case 8: {
853              bitField0_ |= 0x00000001;
854              exitStatus_ = input.readInt32();
855              break;
856            }
857            case 18: {
858              bitField0_ |= 0x00000002;
859              userMessage_ = input.readBytes();
860              break;
861            }
862            case 26: {
863              bitField0_ |= 0x00000004;
864              senderName_ = input.readBytes();
865              break;
866            }
867          }
868        }
869      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
870        throw e.setUnfinishedMessage(this);
871      } catch (java.io.IOException e) {
872        throw new com.google.protobuf.InvalidProtocolBufferException(
873            e.getMessage()).setUnfinishedMessage(this);
874      } finally {
875        this.unknownFields = unknownFields.build();
876        makeExtensionsImmutable();
877      }
878    }
879    public static final com.google.protobuf.Descriptors.Descriptor
880        getDescriptor() {
881      return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseProto_descriptor;
882    }
883
884    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
885        internalGetFieldAccessorTable() {
886      return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseProto_fieldAccessorTable
887          .ensureFieldAccessorsInitialized(
888              org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder.class);
889    }
890
891    public static com.google.protobuf.Parser<GenericRefreshResponseProto> PARSER =
892        new com.google.protobuf.AbstractParser<GenericRefreshResponseProto>() {
893      public GenericRefreshResponseProto parsePartialFrom(
894          com.google.protobuf.CodedInputStream input,
895          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
896          throws com.google.protobuf.InvalidProtocolBufferException {
897        return new GenericRefreshResponseProto(input, extensionRegistry);
898      }
899    };
900
901    @java.lang.Override
902    public com.google.protobuf.Parser<GenericRefreshResponseProto> getParserForType() {
903      return PARSER;
904    }
905
906    private int bitField0_;
907    // optional int32 exitStatus = 1;
908    public static final int EXITSTATUS_FIELD_NUMBER = 1;
909    private int exitStatus_;
910    /**
911     * <code>optional int32 exitStatus = 1;</code>
912     *
913     * <pre>
914     * unix exit status to return
915     * </pre>
916     */
917    public boolean hasExitStatus() {
918      return ((bitField0_ & 0x00000001) == 0x00000001);
919    }
920    /**
921     * <code>optional int32 exitStatus = 1;</code>
922     *
923     * <pre>
924     * unix exit status to return
925     * </pre>
926     */
927    public int getExitStatus() {
928      return exitStatus_;
929    }
930
931    // optional string userMessage = 2;
932    public static final int USERMESSAGE_FIELD_NUMBER = 2;
933    private java.lang.Object userMessage_;
934    /**
935     * <code>optional string userMessage = 2;</code>
936     *
937     * <pre>
938     * to be displayed to the user
939     * </pre>
940     */
941    public boolean hasUserMessage() {
942      return ((bitField0_ & 0x00000002) == 0x00000002);
943    }
944    /**
945     * <code>optional string userMessage = 2;</code>
946     *
947     * <pre>
948     * to be displayed to the user
949     * </pre>
950     */
951    public java.lang.String getUserMessage() {
952      java.lang.Object ref = userMessage_;
953      if (ref instanceof java.lang.String) {
954        return (java.lang.String) ref;
955      } else {
956        com.google.protobuf.ByteString bs = 
957            (com.google.protobuf.ByteString) ref;
958        java.lang.String s = bs.toStringUtf8();
959        if (bs.isValidUtf8()) {
960          userMessage_ = s;
961        }
962        return s;
963      }
964    }
965    /**
966     * <code>optional string userMessage = 2;</code>
967     *
968     * <pre>
969     * to be displayed to the user
970     * </pre>
971     */
972    public com.google.protobuf.ByteString
973        getUserMessageBytes() {
974      java.lang.Object ref = userMessage_;
975      if (ref instanceof java.lang.String) {
976        com.google.protobuf.ByteString b = 
977            com.google.protobuf.ByteString.copyFromUtf8(
978                (java.lang.String) ref);
979        userMessage_ = b;
980        return b;
981      } else {
982        return (com.google.protobuf.ByteString) ref;
983      }
984    }
985
986    // optional string senderName = 3;
987    public static final int SENDERNAME_FIELD_NUMBER = 3;
988    private java.lang.Object senderName_;
989    /**
990     * <code>optional string senderName = 3;</code>
991     *
992     * <pre>
993     * which handler sent this message
994     * </pre>
995     */
996    public boolean hasSenderName() {
997      return ((bitField0_ & 0x00000004) == 0x00000004);
998    }
999    /**
1000     * <code>optional string senderName = 3;</code>
1001     *
1002     * <pre>
1003     * which handler sent this message
1004     * </pre>
1005     */
1006    public java.lang.String getSenderName() {
1007      java.lang.Object ref = senderName_;
1008      if (ref instanceof java.lang.String) {
1009        return (java.lang.String) ref;
1010      } else {
1011        com.google.protobuf.ByteString bs = 
1012            (com.google.protobuf.ByteString) ref;
1013        java.lang.String s = bs.toStringUtf8();
1014        if (bs.isValidUtf8()) {
1015          senderName_ = s;
1016        }
1017        return s;
1018      }
1019    }
1020    /**
1021     * <code>optional string senderName = 3;</code>
1022     *
1023     * <pre>
1024     * which handler sent this message
1025     * </pre>
1026     */
1027    public com.google.protobuf.ByteString
1028        getSenderNameBytes() {
1029      java.lang.Object ref = senderName_;
1030      if (ref instanceof java.lang.String) {
1031        com.google.protobuf.ByteString b = 
1032            com.google.protobuf.ByteString.copyFromUtf8(
1033                (java.lang.String) ref);
1034        senderName_ = b;
1035        return b;
1036      } else {
1037        return (com.google.protobuf.ByteString) ref;
1038      }
1039    }
1040
1041    private void initFields() {
1042      exitStatus_ = 0;
1043      userMessage_ = "";
1044      senderName_ = "";
1045    }
1046    private byte memoizedIsInitialized = -1;
1047    public final boolean isInitialized() {
1048      byte isInitialized = memoizedIsInitialized;
1049      if (isInitialized != -1) return isInitialized == 1;
1050
1051      memoizedIsInitialized = 1;
1052      return true;
1053    }
1054
1055    public void writeTo(com.google.protobuf.CodedOutputStream output)
1056                        throws java.io.IOException {
1057      getSerializedSize();
1058      if (((bitField0_ & 0x00000001) == 0x00000001)) {
1059        output.writeInt32(1, exitStatus_);
1060      }
1061      if (((bitField0_ & 0x00000002) == 0x00000002)) {
1062        output.writeBytes(2, getUserMessageBytes());
1063      }
1064      if (((bitField0_ & 0x00000004) == 0x00000004)) {
1065        output.writeBytes(3, getSenderNameBytes());
1066      }
1067      getUnknownFields().writeTo(output);
1068    }
1069
1070    private int memoizedSerializedSize = -1;
1071    public int getSerializedSize() {
1072      int size = memoizedSerializedSize;
1073      if (size != -1) return size;
1074
1075      size = 0;
1076      if (((bitField0_ & 0x00000001) == 0x00000001)) {
1077        size += com.google.protobuf.CodedOutputStream
1078          .computeInt32Size(1, exitStatus_);
1079      }
1080      if (((bitField0_ & 0x00000002) == 0x00000002)) {
1081        size += com.google.protobuf.CodedOutputStream
1082          .computeBytesSize(2, getUserMessageBytes());
1083      }
1084      if (((bitField0_ & 0x00000004) == 0x00000004)) {
1085        size += com.google.protobuf.CodedOutputStream
1086          .computeBytesSize(3, getSenderNameBytes());
1087      }
1088      size += getUnknownFields().getSerializedSize();
1089      memoizedSerializedSize = size;
1090      return size;
1091    }
1092
1093    private static final long serialVersionUID = 0L;
1094    @java.lang.Override
1095    protected java.lang.Object writeReplace()
1096        throws java.io.ObjectStreamException {
1097      return super.writeReplace();
1098    }
1099
1100    @java.lang.Override
1101    public boolean equals(final java.lang.Object obj) {
1102      if (obj == this) {
1103       return true;
1104      }
1105      if (!(obj instanceof org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto)) {
1106        return super.equals(obj);
1107      }
1108      org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto other = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto) obj;
1109
1110      boolean result = true;
1111      result = result && (hasExitStatus() == other.hasExitStatus());
1112      if (hasExitStatus()) {
1113        result = result && (getExitStatus()
1114            == other.getExitStatus());
1115      }
1116      result = result && (hasUserMessage() == other.hasUserMessage());
1117      if (hasUserMessage()) {
1118        result = result && getUserMessage()
1119            .equals(other.getUserMessage());
1120      }
1121      result = result && (hasSenderName() == other.hasSenderName());
1122      if (hasSenderName()) {
1123        result = result && getSenderName()
1124            .equals(other.getSenderName());
1125      }
1126      result = result &&
1127          getUnknownFields().equals(other.getUnknownFields());
1128      return result;
1129    }
1130
1131    private int memoizedHashCode = 0;
1132    @java.lang.Override
1133    public int hashCode() {
1134      if (memoizedHashCode != 0) {
1135        return memoizedHashCode;
1136      }
1137      int hash = 41;
1138      hash = (19 * hash) + getDescriptorForType().hashCode();
1139      if (hasExitStatus()) {
1140        hash = (37 * hash) + EXITSTATUS_FIELD_NUMBER;
1141        hash = (53 * hash) + getExitStatus();
1142      }
1143      if (hasUserMessage()) {
1144        hash = (37 * hash) + USERMESSAGE_FIELD_NUMBER;
1145        hash = (53 * hash) + getUserMessage().hashCode();
1146      }
1147      if (hasSenderName()) {
1148        hash = (37 * hash) + SENDERNAME_FIELD_NUMBER;
1149        hash = (53 * hash) + getSenderName().hashCode();
1150      }
1151      hash = (29 * hash) + getUnknownFields().hashCode();
1152      memoizedHashCode = hash;
1153      return hash;
1154    }
1155
1156    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom(
1157        com.google.protobuf.ByteString data)
1158        throws com.google.protobuf.InvalidProtocolBufferException {
1159      return PARSER.parseFrom(data);
1160    }
1161    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom(
1162        com.google.protobuf.ByteString data,
1163        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1164        throws com.google.protobuf.InvalidProtocolBufferException {
1165      return PARSER.parseFrom(data, extensionRegistry);
1166    }
1167    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom(byte[] data)
1168        throws com.google.protobuf.InvalidProtocolBufferException {
1169      return PARSER.parseFrom(data);
1170    }
1171    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom(
1172        byte[] data,
1173        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1174        throws com.google.protobuf.InvalidProtocolBufferException {
1175      return PARSER.parseFrom(data, extensionRegistry);
1176    }
1177    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom(java.io.InputStream input)
1178        throws java.io.IOException {
1179      return PARSER.parseFrom(input);
1180    }
1181    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom(
1182        java.io.InputStream input,
1183        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1184        throws java.io.IOException {
1185      return PARSER.parseFrom(input, extensionRegistry);
1186    }
1187    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseDelimitedFrom(java.io.InputStream input)
1188        throws java.io.IOException {
1189      return PARSER.parseDelimitedFrom(input);
1190    }
1191    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseDelimitedFrom(
1192        java.io.InputStream input,
1193        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1194        throws java.io.IOException {
1195      return PARSER.parseDelimitedFrom(input, extensionRegistry);
1196    }
1197    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom(
1198        com.google.protobuf.CodedInputStream input)
1199        throws java.io.IOException {
1200      return PARSER.parseFrom(input);
1201    }
1202    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom(
1203        com.google.protobuf.CodedInputStream input,
1204        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1205        throws java.io.IOException {
1206      return PARSER.parseFrom(input, extensionRegistry);
1207    }
1208
1209    public static Builder newBuilder() { return Builder.create(); }
1210    public Builder newBuilderForType() { return newBuilder(); }
1211    public static Builder newBuilder(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto prototype) {
1212      return newBuilder().mergeFrom(prototype);
1213    }
1214    public Builder toBuilder() { return newBuilder(this); }
1215
1216    @java.lang.Override
1217    protected Builder newBuilderForType(
1218        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1219      Builder builder = new Builder(parent);
1220      return builder;
1221    }
1222    /**
1223     * Protobuf type {@code hadoop.common.GenericRefreshResponseProto}
1224     *
1225     * <pre>
1226     **
1227     * A single response from a refresh handler.
1228     * </pre>
1229     */
1230    public static final class Builder extends
1231        com.google.protobuf.GeneratedMessage.Builder<Builder>
1232       implements org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder {
1233      public static final com.google.protobuf.Descriptors.Descriptor
1234          getDescriptor() {
1235        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseProto_descriptor;
1236      }
1237
1238      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1239          internalGetFieldAccessorTable() {
1240        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseProto_fieldAccessorTable
1241            .ensureFieldAccessorsInitialized(
1242                org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder.class);
1243      }
1244
1245      // Construct using org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.newBuilder()
1246      private Builder() {
1247        maybeForceBuilderInitialization();
1248      }
1249
1250      private Builder(
1251          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1252        super(parent);
1253        maybeForceBuilderInitialization();
1254      }
1255      private void maybeForceBuilderInitialization() {
1256        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1257        }
1258      }
1259      private static Builder create() {
1260        return new Builder();
1261      }
1262
1263      public Builder clear() {
1264        super.clear();
1265        exitStatus_ = 0;
1266        bitField0_ = (bitField0_ & ~0x00000001);
1267        userMessage_ = "";
1268        bitField0_ = (bitField0_ & ~0x00000002);
1269        senderName_ = "";
1270        bitField0_ = (bitField0_ & ~0x00000004);
1271        return this;
1272      }
1273
1274      public Builder clone() {
1275        return create().mergeFrom(buildPartial());
1276      }
1277
1278      public com.google.protobuf.Descriptors.Descriptor
1279          getDescriptorForType() {
1280        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseProto_descriptor;
1281      }
1282
1283      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getDefaultInstanceForType() {
1284        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.getDefaultInstance();
1285      }
1286
1287      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto build() {
1288        org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto result = buildPartial();
1289        if (!result.isInitialized()) {
1290          throw newUninitializedMessageException(result);
1291        }
1292        return result;
1293      }
1294
1295      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto buildPartial() {
1296        org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto result = new org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto(this);
1297        int from_bitField0_ = bitField0_;
1298        int to_bitField0_ = 0;
1299        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1300          to_bitField0_ |= 0x00000001;
1301        }
1302        result.exitStatus_ = exitStatus_;
1303        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1304          to_bitField0_ |= 0x00000002;
1305        }
1306        result.userMessage_ = userMessage_;
1307        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1308          to_bitField0_ |= 0x00000004;
1309        }
1310        result.senderName_ = senderName_;
1311        result.bitField0_ = to_bitField0_;
1312        onBuilt();
1313        return result;
1314      }
1315
1316      public Builder mergeFrom(com.google.protobuf.Message other) {
1317        if (other instanceof org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto) {
1318          return mergeFrom((org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto)other);
1319        } else {
1320          super.mergeFrom(other);
1321          return this;
1322        }
1323      }
1324
1325      public Builder mergeFrom(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto other) {
1326        if (other == org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.getDefaultInstance()) return this;
1327        if (other.hasExitStatus()) {
1328          setExitStatus(other.getExitStatus());
1329        }
1330        if (other.hasUserMessage()) {
1331          bitField0_ |= 0x00000002;
1332          userMessage_ = other.userMessage_;
1333          onChanged();
1334        }
1335        if (other.hasSenderName()) {
1336          bitField0_ |= 0x00000004;
1337          senderName_ = other.senderName_;
1338          onChanged();
1339        }
1340        this.mergeUnknownFields(other.getUnknownFields());
1341        return this;
1342      }
1343
1344      public final boolean isInitialized() {
1345        return true;
1346      }
1347
1348      public Builder mergeFrom(
1349          com.google.protobuf.CodedInputStream input,
1350          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1351          throws java.io.IOException {
1352        org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parsedMessage = null;
1353        try {
1354          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1355        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1356          parsedMessage = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto) e.getUnfinishedMessage();
1357          throw e;
1358        } finally {
1359          if (parsedMessage != null) {
1360            mergeFrom(parsedMessage);
1361          }
1362        }
1363        return this;
1364      }
1365      private int bitField0_;
1366
1367      // optional int32 exitStatus = 1;
1368      private int exitStatus_ ;
1369      /**
1370       * <code>optional int32 exitStatus = 1;</code>
1371       *
1372       * <pre>
1373       * unix exit status to return
1374       * </pre>
1375       */
1376      public boolean hasExitStatus() {
1377        return ((bitField0_ & 0x00000001) == 0x00000001);
1378      }
1379      /**
1380       * <code>optional int32 exitStatus = 1;</code>
1381       *
1382       * <pre>
1383       * unix exit status to return
1384       * </pre>
1385       */
1386      public int getExitStatus() {
1387        return exitStatus_;
1388      }
1389      /**
1390       * <code>optional int32 exitStatus = 1;</code>
1391       *
1392       * <pre>
1393       * unix exit status to return
1394       * </pre>
1395       */
1396      public Builder setExitStatus(int value) {
1397        bitField0_ |= 0x00000001;
1398        exitStatus_ = value;
1399        onChanged();
1400        return this;
1401      }
1402      /**
1403       * <code>optional int32 exitStatus = 1;</code>
1404       *
1405       * <pre>
1406       * unix exit status to return
1407       * </pre>
1408       */
1409      public Builder clearExitStatus() {
1410        bitField0_ = (bitField0_ & ~0x00000001);
1411        exitStatus_ = 0;
1412        onChanged();
1413        return this;
1414      }
1415
1416      // optional string userMessage = 2;
1417      private java.lang.Object userMessage_ = "";
1418      /**
1419       * <code>optional string userMessage = 2;</code>
1420       *
1421       * <pre>
1422       * to be displayed to the user
1423       * </pre>
1424       */
1425      public boolean hasUserMessage() {
1426        return ((bitField0_ & 0x00000002) == 0x00000002);
1427      }
1428      /**
1429       * <code>optional string userMessage = 2;</code>
1430       *
1431       * <pre>
1432       * to be displayed to the user
1433       * </pre>
1434       */
1435      public java.lang.String getUserMessage() {
1436        java.lang.Object ref = userMessage_;
1437        if (!(ref instanceof java.lang.String)) {
1438          java.lang.String s = ((com.google.protobuf.ByteString) ref)
1439              .toStringUtf8();
1440          userMessage_ = s;
1441          return s;
1442        } else {
1443          return (java.lang.String) ref;
1444        }
1445      }
1446      /**
1447       * <code>optional string userMessage = 2;</code>
1448       *
1449       * <pre>
1450       * to be displayed to the user
1451       * </pre>
1452       */
1453      public com.google.protobuf.ByteString
1454          getUserMessageBytes() {
1455        java.lang.Object ref = userMessage_;
1456        if (ref instanceof String) {
1457          com.google.protobuf.ByteString b = 
1458              com.google.protobuf.ByteString.copyFromUtf8(
1459                  (java.lang.String) ref);
1460          userMessage_ = b;
1461          return b;
1462        } else {
1463          return (com.google.protobuf.ByteString) ref;
1464        }
1465      }
1466      /**
1467       * <code>optional string userMessage = 2;</code>
1468       *
1469       * <pre>
1470       * to be displayed to the user
1471       * </pre>
1472       */
1473      public Builder setUserMessage(
1474          java.lang.String value) {
1475        if (value == null) {
1476    throw new NullPointerException();
1477  }
1478  bitField0_ |= 0x00000002;
1479        userMessage_ = value;
1480        onChanged();
1481        return this;
1482      }
1483      /**
1484       * <code>optional string userMessage = 2;</code>
1485       *
1486       * <pre>
1487       * to be displayed to the user
1488       * </pre>
1489       */
1490      public Builder clearUserMessage() {
1491        bitField0_ = (bitField0_ & ~0x00000002);
1492        userMessage_ = getDefaultInstance().getUserMessage();
1493        onChanged();
1494        return this;
1495      }
1496      /**
1497       * <code>optional string userMessage = 2;</code>
1498       *
1499       * <pre>
1500       * to be displayed to the user
1501       * </pre>
1502       */
1503      public Builder setUserMessageBytes(
1504          com.google.protobuf.ByteString value) {
1505        if (value == null) {
1506    throw new NullPointerException();
1507  }
1508  bitField0_ |= 0x00000002;
1509        userMessage_ = value;
1510        onChanged();
1511        return this;
1512      }
1513
1514      // optional string senderName = 3;
1515      private java.lang.Object senderName_ = "";
1516      /**
1517       * <code>optional string senderName = 3;</code>
1518       *
1519       * <pre>
1520       * which handler sent this message
1521       * </pre>
1522       */
1523      public boolean hasSenderName() {
1524        return ((bitField0_ & 0x00000004) == 0x00000004);
1525      }
1526      /**
1527       * <code>optional string senderName = 3;</code>
1528       *
1529       * <pre>
1530       * which handler sent this message
1531       * </pre>
1532       */
1533      public java.lang.String getSenderName() {
1534        java.lang.Object ref = senderName_;
1535        if (!(ref instanceof java.lang.String)) {
1536          java.lang.String s = ((com.google.protobuf.ByteString) ref)
1537              .toStringUtf8();
1538          senderName_ = s;
1539          return s;
1540        } else {
1541          return (java.lang.String) ref;
1542        }
1543      }
1544      /**
1545       * <code>optional string senderName = 3;</code>
1546       *
1547       * <pre>
1548       * which handler sent this message
1549       * </pre>
1550       */
1551      public com.google.protobuf.ByteString
1552          getSenderNameBytes() {
1553        java.lang.Object ref = senderName_;
1554        if (ref instanceof String) {
1555          com.google.protobuf.ByteString b = 
1556              com.google.protobuf.ByteString.copyFromUtf8(
1557                  (java.lang.String) ref);
1558          senderName_ = b;
1559          return b;
1560        } else {
1561          return (com.google.protobuf.ByteString) ref;
1562        }
1563      }
1564      /**
1565       * <code>optional string senderName = 3;</code>
1566       *
1567       * <pre>
1568       * which handler sent this message
1569       * </pre>
1570       */
1571      public Builder setSenderName(
1572          java.lang.String value) {
1573        if (value == null) {
1574    throw new NullPointerException();
1575  }
1576  bitField0_ |= 0x00000004;
1577        senderName_ = value;
1578        onChanged();
1579        return this;
1580      }
1581      /**
1582       * <code>optional string senderName = 3;</code>
1583       *
1584       * <pre>
1585       * which handler sent this message
1586       * </pre>
1587       */
1588      public Builder clearSenderName() {
1589        bitField0_ = (bitField0_ & ~0x00000004);
1590        senderName_ = getDefaultInstance().getSenderName();
1591        onChanged();
1592        return this;
1593      }
1594      /**
1595       * <code>optional string senderName = 3;</code>
1596       *
1597       * <pre>
1598       * which handler sent this message
1599       * </pre>
1600       */
1601      public Builder setSenderNameBytes(
1602          com.google.protobuf.ByteString value) {
1603        if (value == null) {
1604    throw new NullPointerException();
1605  }
1606  bitField0_ |= 0x00000004;
1607        senderName_ = value;
1608        onChanged();
1609        return this;
1610      }
1611
1612      // @@protoc_insertion_point(builder_scope:hadoop.common.GenericRefreshResponseProto)
1613    }
1614
1615    static {
1616      defaultInstance = new GenericRefreshResponseProto(true);
1617      defaultInstance.initFields();
1618    }
1619
1620    // @@protoc_insertion_point(class_scope:hadoop.common.GenericRefreshResponseProto)
1621  }
1622
1623  public interface GenericRefreshResponseCollectionProtoOrBuilder
1624      extends com.google.protobuf.MessageOrBuilder {
1625
1626    // repeated .hadoop.common.GenericRefreshResponseProto responses = 1;
1627    /**
1628     * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
1629     */
1630    java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> 
1631        getResponsesList();
1632    /**
1633     * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
1634     */
1635    org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getResponses(int index);
1636    /**
1637     * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
1638     */
1639    int getResponsesCount();
1640    /**
1641     * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
1642     */
1643    java.util.List<? extends org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder> 
1644        getResponsesOrBuilderList();
1645    /**
1646     * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
1647     */
1648    org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder getResponsesOrBuilder(
1649        int index);
1650  }
1651  /**
1652   * Protobuf type {@code hadoop.common.GenericRefreshResponseCollectionProto}
1653   *
1654   * <pre>
1655   **
1656   * Collection of responses from zero or more handlers.
1657   * </pre>
1658   */
1659  public static final class GenericRefreshResponseCollectionProto extends
1660      com.google.protobuf.GeneratedMessage
1661      implements GenericRefreshResponseCollectionProtoOrBuilder {
1662    // Use GenericRefreshResponseCollectionProto.newBuilder() to construct.
1663    private GenericRefreshResponseCollectionProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1664      super(builder);
1665      this.unknownFields = builder.getUnknownFields();
1666    }
1667    private GenericRefreshResponseCollectionProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1668
1669    private static final GenericRefreshResponseCollectionProto defaultInstance;
1670    public static GenericRefreshResponseCollectionProto getDefaultInstance() {
1671      return defaultInstance;
1672    }
1673
1674    public GenericRefreshResponseCollectionProto getDefaultInstanceForType() {
1675      return defaultInstance;
1676    }
1677
1678    private final com.google.protobuf.UnknownFieldSet unknownFields;
1679    @java.lang.Override
1680    public final com.google.protobuf.UnknownFieldSet
1681        getUnknownFields() {
1682      return this.unknownFields;
1683    }
1684    private GenericRefreshResponseCollectionProto(
1685        com.google.protobuf.CodedInputStream input,
1686        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1687        throws com.google.protobuf.InvalidProtocolBufferException {
1688      initFields();
1689      int mutable_bitField0_ = 0;
1690      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1691          com.google.protobuf.UnknownFieldSet.newBuilder();
1692      try {
1693        boolean done = false;
1694        while (!done) {
1695          int tag = input.readTag();
1696          switch (tag) {
1697            case 0:
1698              done = true;
1699              break;
1700            default: {
1701              if (!parseUnknownField(input, unknownFields,
1702                                     extensionRegistry, tag)) {
1703                done = true;
1704              }
1705              break;
1706            }
1707            case 10: {
1708              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
1709                responses_ = new java.util.ArrayList<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto>();
1710                mutable_bitField0_ |= 0x00000001;
1711              }
1712              responses_.add(input.readMessage(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.PARSER, extensionRegistry));
1713              break;
1714            }
1715          }
1716        }
1717      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1718        throw e.setUnfinishedMessage(this);
1719      } catch (java.io.IOException e) {
1720        throw new com.google.protobuf.InvalidProtocolBufferException(
1721            e.getMessage()).setUnfinishedMessage(this);
1722      } finally {
1723        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
1724          responses_ = java.util.Collections.unmodifiableList(responses_);
1725        }
1726        this.unknownFields = unknownFields.build();
1727        makeExtensionsImmutable();
1728      }
1729    }
1730    public static final com.google.protobuf.Descriptors.Descriptor
1731        getDescriptor() {
1732      return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor;
1733    }
1734
1735    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1736        internalGetFieldAccessorTable() {
1737      return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseCollectionProto_fieldAccessorTable
1738          .ensureFieldAccessorsInitialized(
1739              org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.Builder.class);
1740    }
1741
1742    public static com.google.protobuf.Parser<GenericRefreshResponseCollectionProto> PARSER =
1743        new com.google.protobuf.AbstractParser<GenericRefreshResponseCollectionProto>() {
1744      public GenericRefreshResponseCollectionProto parsePartialFrom(
1745          com.google.protobuf.CodedInputStream input,
1746          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1747          throws com.google.protobuf.InvalidProtocolBufferException {
1748        return new GenericRefreshResponseCollectionProto(input, extensionRegistry);
1749      }
1750    };
1751
1752    @java.lang.Override
1753    public com.google.protobuf.Parser<GenericRefreshResponseCollectionProto> getParserForType() {
1754      return PARSER;
1755    }
1756
1757    // repeated .hadoop.common.GenericRefreshResponseProto responses = 1;
1758    public static final int RESPONSES_FIELD_NUMBER = 1;
1759    private java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> responses_;
1760    /**
1761     * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
1762     */
1763    public java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> getResponsesList() {
1764      return responses_;
1765    }
1766    /**
1767     * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
1768     */
1769    public java.util.List<? extends org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder> 
1770        getResponsesOrBuilderList() {
1771      return responses_;
1772    }
1773    /**
1774     * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
1775     */
1776    public int getResponsesCount() {
1777      return responses_.size();
1778    }
1779    /**
1780     * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
1781     */
1782    public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getResponses(int index) {
1783      return responses_.get(index);
1784    }
1785    /**
1786     * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
1787     */
1788    public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder getResponsesOrBuilder(
1789        int index) {
1790      return responses_.get(index);
1791    }
1792
1793    private void initFields() {
1794      responses_ = java.util.Collections.emptyList();
1795    }
1796    private byte memoizedIsInitialized = -1;
1797    public final boolean isInitialized() {
1798      byte isInitialized = memoizedIsInitialized;
1799      if (isInitialized != -1) return isInitialized == 1;
1800
1801      memoizedIsInitialized = 1;
1802      return true;
1803    }
1804
1805    public void writeTo(com.google.protobuf.CodedOutputStream output)
1806                        throws java.io.IOException {
1807      getSerializedSize();
1808      for (int i = 0; i < responses_.size(); i++) {
1809        output.writeMessage(1, responses_.get(i));
1810      }
1811      getUnknownFields().writeTo(output);
1812    }
1813
1814    private int memoizedSerializedSize = -1;
1815    public int getSerializedSize() {
1816      int size = memoizedSerializedSize;
1817      if (size != -1) return size;
1818
1819      size = 0;
1820      for (int i = 0; i < responses_.size(); i++) {
1821        size += com.google.protobuf.CodedOutputStream
1822          .computeMessageSize(1, responses_.get(i));
1823      }
1824      size += getUnknownFields().getSerializedSize();
1825      memoizedSerializedSize = size;
1826      return size;
1827    }
1828
1829    private static final long serialVersionUID = 0L;
1830    @java.lang.Override
1831    protected java.lang.Object writeReplace()
1832        throws java.io.ObjectStreamException {
1833      return super.writeReplace();
1834    }
1835
1836    @java.lang.Override
1837    public boolean equals(final java.lang.Object obj) {
1838      if (obj == this) {
1839       return true;
1840      }
1841      if (!(obj instanceof org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto)) {
1842        return super.equals(obj);
1843      }
1844      org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto other = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto) obj;
1845
1846      boolean result = true;
1847      result = result && getResponsesList()
1848          .equals(other.getResponsesList());
1849      result = result &&
1850          getUnknownFields().equals(other.getUnknownFields());
1851      return result;
1852    }
1853
1854    private int memoizedHashCode = 0;
1855    @java.lang.Override
1856    public int hashCode() {
1857      if (memoizedHashCode != 0) {
1858        return memoizedHashCode;
1859      }
1860      int hash = 41;
1861      hash = (19 * hash) + getDescriptorForType().hashCode();
1862      if (getResponsesCount() > 0) {
1863        hash = (37 * hash) + RESPONSES_FIELD_NUMBER;
1864        hash = (53 * hash) + getResponsesList().hashCode();
1865      }
1866      hash = (29 * hash) + getUnknownFields().hashCode();
1867      memoizedHashCode = hash;
1868      return hash;
1869    }
1870
1871    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom(
1872        com.google.protobuf.ByteString data)
1873        throws com.google.protobuf.InvalidProtocolBufferException {
1874      return PARSER.parseFrom(data);
1875    }
1876    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom(
1877        com.google.protobuf.ByteString data,
1878        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1879        throws com.google.protobuf.InvalidProtocolBufferException {
1880      return PARSER.parseFrom(data, extensionRegistry);
1881    }
1882    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom(byte[] data)
1883        throws com.google.protobuf.InvalidProtocolBufferException {
1884      return PARSER.parseFrom(data);
1885    }
1886    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom(
1887        byte[] data,
1888        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1889        throws com.google.protobuf.InvalidProtocolBufferException {
1890      return PARSER.parseFrom(data, extensionRegistry);
1891    }
1892    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom(java.io.InputStream input)
1893        throws java.io.IOException {
1894      return PARSER.parseFrom(input);
1895    }
1896    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom(
1897        java.io.InputStream input,
1898        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1899        throws java.io.IOException {
1900      return PARSER.parseFrom(input, extensionRegistry);
1901    }
1902    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseDelimitedFrom(java.io.InputStream input)
1903        throws java.io.IOException {
1904      return PARSER.parseDelimitedFrom(input);
1905    }
1906    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseDelimitedFrom(
1907        java.io.InputStream input,
1908        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1909        throws java.io.IOException {
1910      return PARSER.parseDelimitedFrom(input, extensionRegistry);
1911    }
1912    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom(
1913        com.google.protobuf.CodedInputStream input)
1914        throws java.io.IOException {
1915      return PARSER.parseFrom(input);
1916    }
1917    public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom(
1918        com.google.protobuf.CodedInputStream input,
1919        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1920        throws java.io.IOException {
1921      return PARSER.parseFrom(input, extensionRegistry);
1922    }
1923
1924    public static Builder newBuilder() { return Builder.create(); }
1925    public Builder newBuilderForType() { return newBuilder(); }
1926    public static Builder newBuilder(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto prototype) {
1927      return newBuilder().mergeFrom(prototype);
1928    }
1929    public Builder toBuilder() { return newBuilder(this); }
1930
1931    @java.lang.Override
1932    protected Builder newBuilderForType(
1933        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1934      Builder builder = new Builder(parent);
1935      return builder;
1936    }
1937    /**
1938     * Protobuf type {@code hadoop.common.GenericRefreshResponseCollectionProto}
1939     *
1940     * <pre>
1941     **
1942     * Collection of responses from zero or more handlers.
1943     * </pre>
1944     */
1945    public static final class Builder extends
1946        com.google.protobuf.GeneratedMessage.Builder<Builder>
1947       implements org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProtoOrBuilder {
1948      public static final com.google.protobuf.Descriptors.Descriptor
1949          getDescriptor() {
1950        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor;
1951      }
1952
1953      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1954          internalGetFieldAccessorTable() {
1955        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseCollectionProto_fieldAccessorTable
1956            .ensureFieldAccessorsInitialized(
1957                org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.Builder.class);
1958      }
1959
1960      // Construct using org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.newBuilder()
1961      private Builder() {
1962        maybeForceBuilderInitialization();
1963      }
1964
1965      private Builder(
1966          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1967        super(parent);
1968        maybeForceBuilderInitialization();
1969      }
1970      private void maybeForceBuilderInitialization() {
1971        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1972          getResponsesFieldBuilder();
1973        }
1974      }
1975      private static Builder create() {
1976        return new Builder();
1977      }
1978
1979      public Builder clear() {
1980        super.clear();
1981        if (responsesBuilder_ == null) {
1982          responses_ = java.util.Collections.emptyList();
1983          bitField0_ = (bitField0_ & ~0x00000001);
1984        } else {
1985          responsesBuilder_.clear();
1986        }
1987        return this;
1988      }
1989
1990      public Builder clone() {
1991        return create().mergeFrom(buildPartial());
1992      }
1993
1994      public com.google.protobuf.Descriptors.Descriptor
1995          getDescriptorForType() {
1996        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor;
1997      }
1998
1999      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto getDefaultInstanceForType() {
2000        return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance();
2001      }
2002
2003      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto build() {
2004        org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto result = buildPartial();
2005        if (!result.isInitialized()) {
2006          throw newUninitializedMessageException(result);
2007        }
2008        return result;
2009      }
2010
2011      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto buildPartial() {
2012        org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto result = new org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto(this);
2013        int from_bitField0_ = bitField0_;
2014        if (responsesBuilder_ == null) {
2015          if (((bitField0_ & 0x00000001) == 0x00000001)) {
2016            responses_ = java.util.Collections.unmodifiableList(responses_);
2017            bitField0_ = (bitField0_ & ~0x00000001);
2018          }
2019          result.responses_ = responses_;
2020        } else {
2021          result.responses_ = responsesBuilder_.build();
2022        }
2023        onBuilt();
2024        return result;
2025      }
2026
2027      public Builder mergeFrom(com.google.protobuf.Message other) {
2028        if (other instanceof org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto) {
2029          return mergeFrom((org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto)other);
2030        } else {
2031          super.mergeFrom(other);
2032          return this;
2033        }
2034      }
2035
2036      public Builder mergeFrom(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto other) {
2037        if (other == org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance()) return this;
2038        if (responsesBuilder_ == null) {
2039          if (!other.responses_.isEmpty()) {
2040            if (responses_.isEmpty()) {
2041              responses_ = other.responses_;
2042              bitField0_ = (bitField0_ & ~0x00000001);
2043            } else {
2044              ensureResponsesIsMutable();
2045              responses_.addAll(other.responses_);
2046            }
2047            onChanged();
2048          }
2049        } else {
2050          if (!other.responses_.isEmpty()) {
2051            if (responsesBuilder_.isEmpty()) {
2052              responsesBuilder_.dispose();
2053              responsesBuilder_ = null;
2054              responses_ = other.responses_;
2055              bitField0_ = (bitField0_ & ~0x00000001);
2056              responsesBuilder_ = 
2057                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
2058                   getResponsesFieldBuilder() : null;
2059            } else {
2060              responsesBuilder_.addAllMessages(other.responses_);
2061            }
2062          }
2063        }
2064        this.mergeUnknownFields(other.getUnknownFields());
2065        return this;
2066      }
2067
2068      public final boolean isInitialized() {
2069        return true;
2070      }
2071
2072      public Builder mergeFrom(
2073          com.google.protobuf.CodedInputStream input,
2074          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2075          throws java.io.IOException {
2076        org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parsedMessage = null;
2077        try {
2078          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2079        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2080          parsedMessage = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto) e.getUnfinishedMessage();
2081          throw e;
2082        } finally {
2083          if (parsedMessage != null) {
2084            mergeFrom(parsedMessage);
2085          }
2086        }
2087        return this;
2088      }
2089      private int bitField0_;
2090
2091      // repeated .hadoop.common.GenericRefreshResponseProto responses = 1;
2092      private java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> responses_ =
2093        java.util.Collections.emptyList();
2094      private void ensureResponsesIsMutable() {
2095        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
2096          responses_ = new java.util.ArrayList<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto>(responses_);
2097          bitField0_ |= 0x00000001;
2098         }
2099      }
2100
2101      private com.google.protobuf.RepeatedFieldBuilder<
2102          org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder> responsesBuilder_;
2103
2104      /**
2105       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2106       */
2107      public java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> getResponsesList() {
2108        if (responsesBuilder_ == null) {
2109          return java.util.Collections.unmodifiableList(responses_);
2110        } else {
2111          return responsesBuilder_.getMessageList();
2112        }
2113      }
2114      /**
2115       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2116       */
2117      public int getResponsesCount() {
2118        if (responsesBuilder_ == null) {
2119          return responses_.size();
2120        } else {
2121          return responsesBuilder_.getCount();
2122        }
2123      }
2124      /**
2125       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2126       */
2127      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getResponses(int index) {
2128        if (responsesBuilder_ == null) {
2129          return responses_.get(index);
2130        } else {
2131          return responsesBuilder_.getMessage(index);
2132        }
2133      }
2134      /**
2135       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2136       */
2137      public Builder setResponses(
2138          int index, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto value) {
2139        if (responsesBuilder_ == null) {
2140          if (value == null) {
2141            throw new NullPointerException();
2142          }
2143          ensureResponsesIsMutable();
2144          responses_.set(index, value);
2145          onChanged();
2146        } else {
2147          responsesBuilder_.setMessage(index, value);
2148        }
2149        return this;
2150      }
2151      /**
2152       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2153       */
2154      public Builder setResponses(
2155          int index, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder builderForValue) {
2156        if (responsesBuilder_ == null) {
2157          ensureResponsesIsMutable();
2158          responses_.set(index, builderForValue.build());
2159          onChanged();
2160        } else {
2161          responsesBuilder_.setMessage(index, builderForValue.build());
2162        }
2163        return this;
2164      }
2165      /**
2166       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2167       */
2168      public Builder addResponses(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto value) {
2169        if (responsesBuilder_ == null) {
2170          if (value == null) {
2171            throw new NullPointerException();
2172          }
2173          ensureResponsesIsMutable();
2174          responses_.add(value);
2175          onChanged();
2176        } else {
2177          responsesBuilder_.addMessage(value);
2178        }
2179        return this;
2180      }
2181      /**
2182       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2183       */
2184      public Builder addResponses(
2185          int index, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto value) {
2186        if (responsesBuilder_ == null) {
2187          if (value == null) {
2188            throw new NullPointerException();
2189          }
2190          ensureResponsesIsMutable();
2191          responses_.add(index, value);
2192          onChanged();
2193        } else {
2194          responsesBuilder_.addMessage(index, value);
2195        }
2196        return this;
2197      }
2198      /**
2199       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2200       */
2201      public Builder addResponses(
2202          org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder builderForValue) {
2203        if (responsesBuilder_ == null) {
2204          ensureResponsesIsMutable();
2205          responses_.add(builderForValue.build());
2206          onChanged();
2207        } else {
2208          responsesBuilder_.addMessage(builderForValue.build());
2209        }
2210        return this;
2211      }
2212      /**
2213       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2214       */
2215      public Builder addResponses(
2216          int index, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder builderForValue) {
2217        if (responsesBuilder_ == null) {
2218          ensureResponsesIsMutable();
2219          responses_.add(index, builderForValue.build());
2220          onChanged();
2221        } else {
2222          responsesBuilder_.addMessage(index, builderForValue.build());
2223        }
2224        return this;
2225      }
2226      /**
2227       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2228       */
2229      public Builder addAllResponses(
2230          java.lang.Iterable<? extends org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> values) {
2231        if (responsesBuilder_ == null) {
2232          ensureResponsesIsMutable();
2233          super.addAll(values, responses_);
2234          onChanged();
2235        } else {
2236          responsesBuilder_.addAllMessages(values);
2237        }
2238        return this;
2239      }
2240      /**
2241       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2242       */
2243      public Builder clearResponses() {
2244        if (responsesBuilder_ == null) {
2245          responses_ = java.util.Collections.emptyList();
2246          bitField0_ = (bitField0_ & ~0x00000001);
2247          onChanged();
2248        } else {
2249          responsesBuilder_.clear();
2250        }
2251        return this;
2252      }
2253      /**
2254       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2255       */
2256      public Builder removeResponses(int index) {
2257        if (responsesBuilder_ == null) {
2258          ensureResponsesIsMutable();
2259          responses_.remove(index);
2260          onChanged();
2261        } else {
2262          responsesBuilder_.remove(index);
2263        }
2264        return this;
2265      }
2266      /**
2267       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2268       */
2269      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder getResponsesBuilder(
2270          int index) {
2271        return getResponsesFieldBuilder().getBuilder(index);
2272      }
2273      /**
2274       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2275       */
2276      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder getResponsesOrBuilder(
2277          int index) {
2278        if (responsesBuilder_ == null) {
2279          return responses_.get(index);  } else {
2280          return responsesBuilder_.getMessageOrBuilder(index);
2281        }
2282      }
2283      /**
2284       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2285       */
2286      public java.util.List<? extends org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder> 
2287           getResponsesOrBuilderList() {
2288        if (responsesBuilder_ != null) {
2289          return responsesBuilder_.getMessageOrBuilderList();
2290        } else {
2291          return java.util.Collections.unmodifiableList(responses_);
2292        }
2293      }
2294      /**
2295       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2296       */
2297      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder addResponsesBuilder() {
2298        return getResponsesFieldBuilder().addBuilder(
2299            org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.getDefaultInstance());
2300      }
2301      /**
2302       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2303       */
2304      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder addResponsesBuilder(
2305          int index) {
2306        return getResponsesFieldBuilder().addBuilder(
2307            index, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.getDefaultInstance());
2308      }
2309      /**
2310       * <code>repeated .hadoop.common.GenericRefreshResponseProto responses = 1;</code>
2311       */
2312      public java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder> 
2313           getResponsesBuilderList() {
2314        return getResponsesFieldBuilder().getBuilderList();
2315      }
2316      private com.google.protobuf.RepeatedFieldBuilder<
2317          org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder> 
2318          getResponsesFieldBuilder() {
2319        if (responsesBuilder_ == null) {
2320          responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
2321              org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder>(
2322                  responses_,
2323                  ((bitField0_ & 0x00000001) == 0x00000001),
2324                  getParentForChildren(),
2325                  isClean());
2326          responses_ = null;
2327        }
2328        return responsesBuilder_;
2329      }
2330
2331      // @@protoc_insertion_point(builder_scope:hadoop.common.GenericRefreshResponseCollectionProto)
2332    }
2333
2334    static {
2335      defaultInstance = new GenericRefreshResponseCollectionProto(true);
2336      defaultInstance.initFields();
2337    }
2338
2339    // @@protoc_insertion_point(class_scope:hadoop.common.GenericRefreshResponseCollectionProto)
2340  }
2341
2342  /**
2343   * Protobuf service {@code hadoop.common.GenericRefreshProtocolService}
2344   *
2345   * <pre>
2346   **
2347   * Protocol which is used to refresh a user-specified feature.
2348   * </pre>
2349   */
2350  public static abstract class GenericRefreshProtocolService
2351      implements com.google.protobuf.Service {
2352    protected GenericRefreshProtocolService() {}
2353
2354    public interface Interface {
2355      /**
2356       * <code>rpc refresh(.hadoop.common.GenericRefreshRequestProto) returns (.hadoop.common.GenericRefreshResponseCollectionProto);</code>
2357       */
2358      public abstract void refresh(
2359          com.google.protobuf.RpcController controller,
2360          org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request,
2361          com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto> done);
2362
2363    }
2364
2365    public static com.google.protobuf.Service newReflectiveService(
2366        final Interface impl) {
2367      return new GenericRefreshProtocolService() {
2368        @java.lang.Override
2369        public  void refresh(
2370            com.google.protobuf.RpcController controller,
2371            org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request,
2372            com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto> done) {
2373          impl.refresh(controller, request, done);
2374        }
2375
2376      };
2377    }
2378
2379    public static com.google.protobuf.BlockingService
2380        newReflectiveBlockingService(final BlockingInterface impl) {
2381      return new com.google.protobuf.BlockingService() {
2382        public final com.google.protobuf.Descriptors.ServiceDescriptor
2383            getDescriptorForType() {
2384          return getDescriptor();
2385        }
2386
2387        public final com.google.protobuf.Message callBlockingMethod(
2388            com.google.protobuf.Descriptors.MethodDescriptor method,
2389            com.google.protobuf.RpcController controller,
2390            com.google.protobuf.Message request)
2391            throws com.google.protobuf.ServiceException {
2392          if (method.getService() != getDescriptor()) {
2393            throw new java.lang.IllegalArgumentException(
2394              "Service.callBlockingMethod() given method descriptor for " +
2395              "wrong service type.");
2396          }
2397          switch(method.getIndex()) {
2398            case 0:
2399              return impl.refresh(controller, (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto)request);
2400            default:
2401              throw new java.lang.AssertionError("Can't get here.");
2402          }
2403        }
2404
2405        public final com.google.protobuf.Message
2406            getRequestPrototype(
2407            com.google.protobuf.Descriptors.MethodDescriptor method) {
2408          if (method.getService() != getDescriptor()) {
2409            throw new java.lang.IllegalArgumentException(
2410              "Service.getRequestPrototype() given method " +
2411              "descriptor for wrong service type.");
2412          }
2413          switch(method.getIndex()) {
2414            case 0:
2415              return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.getDefaultInstance();
2416            default:
2417              throw new java.lang.AssertionError("Can't get here.");
2418          }
2419        }
2420
2421        public final com.google.protobuf.Message
2422            getResponsePrototype(
2423            com.google.protobuf.Descriptors.MethodDescriptor method) {
2424          if (method.getService() != getDescriptor()) {
2425            throw new java.lang.IllegalArgumentException(
2426              "Service.getResponsePrototype() given method " +
2427              "descriptor for wrong service type.");
2428          }
2429          switch(method.getIndex()) {
2430            case 0:
2431              return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance();
2432            default:
2433              throw new java.lang.AssertionError("Can't get here.");
2434          }
2435        }
2436
2437      };
2438    }
2439
2440    /**
2441     * <code>rpc refresh(.hadoop.common.GenericRefreshRequestProto) returns (.hadoop.common.GenericRefreshResponseCollectionProto);</code>
2442     */
2443    public abstract void refresh(
2444        com.google.protobuf.RpcController controller,
2445        org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request,
2446        com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto> done);
2447
2448    public static final
2449        com.google.protobuf.Descriptors.ServiceDescriptor
2450        getDescriptor() {
2451      return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.getDescriptor().getServices().get(0);
2452    }
2453    public final com.google.protobuf.Descriptors.ServiceDescriptor
2454        getDescriptorForType() {
2455      return getDescriptor();
2456    }
2457
2458    public final void callMethod(
2459        com.google.protobuf.Descriptors.MethodDescriptor method,
2460        com.google.protobuf.RpcController controller,
2461        com.google.protobuf.Message request,
2462        com.google.protobuf.RpcCallback<
2463          com.google.protobuf.Message> done) {
2464      if (method.getService() != getDescriptor()) {
2465        throw new java.lang.IllegalArgumentException(
2466          "Service.callMethod() given method descriptor for wrong " +
2467          "service type.");
2468      }
2469      switch(method.getIndex()) {
2470        case 0:
2471          this.refresh(controller, (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto)request,
2472            com.google.protobuf.RpcUtil.<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto>specializeCallback(
2473              done));
2474          return;
2475        default:
2476          throw new java.lang.AssertionError("Can't get here.");
2477      }
2478    }
2479
2480    public final com.google.protobuf.Message
2481        getRequestPrototype(
2482        com.google.protobuf.Descriptors.MethodDescriptor method) {
2483      if (method.getService() != getDescriptor()) {
2484        throw new java.lang.IllegalArgumentException(
2485          "Service.getRequestPrototype() given method " +
2486          "descriptor for wrong service type.");
2487      }
2488      switch(method.getIndex()) {
2489        case 0:
2490          return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.getDefaultInstance();
2491        default:
2492          throw new java.lang.AssertionError("Can't get here.");
2493      }
2494    }
2495
2496    public final com.google.protobuf.Message
2497        getResponsePrototype(
2498        com.google.protobuf.Descriptors.MethodDescriptor method) {
2499      if (method.getService() != getDescriptor()) {
2500        throw new java.lang.IllegalArgumentException(
2501          "Service.getResponsePrototype() given method " +
2502          "descriptor for wrong service type.");
2503      }
2504      switch(method.getIndex()) {
2505        case 0:
2506          return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance();
2507        default:
2508          throw new java.lang.AssertionError("Can't get here.");
2509      }
2510    }
2511
2512    public static Stub newStub(
2513        com.google.protobuf.RpcChannel channel) {
2514      return new Stub(channel);
2515    }
2516
2517    public static final class Stub extends org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshProtocolService implements Interface {
2518      private Stub(com.google.protobuf.RpcChannel channel) {
2519        this.channel = channel;
2520      }
2521
2522      private final com.google.protobuf.RpcChannel channel;
2523
2524      public com.google.protobuf.RpcChannel getChannel() {
2525        return channel;
2526      }
2527
2528      public  void refresh(
2529          com.google.protobuf.RpcController controller,
2530          org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request,
2531          com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto> done) {
2532        channel.callMethod(
2533          getDescriptor().getMethods().get(0),
2534          controller,
2535          request,
2536          org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance(),
2537          com.google.protobuf.RpcUtil.generalizeCallback(
2538            done,
2539            org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.class,
2540            org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance()));
2541      }
2542    }
2543
2544    public static BlockingInterface newBlockingStub(
2545        com.google.protobuf.BlockingRpcChannel channel) {
2546      return new BlockingStub(channel);
2547    }
2548
2549    public interface BlockingInterface {
2550      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto refresh(
2551          com.google.protobuf.RpcController controller,
2552          org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request)
2553          throws com.google.protobuf.ServiceException;
2554    }
2555
2556    private static final class BlockingStub implements BlockingInterface {
2557      private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
2558        this.channel = channel;
2559      }
2560
2561      private final com.google.protobuf.BlockingRpcChannel channel;
2562
2563      public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto refresh(
2564          com.google.protobuf.RpcController controller,
2565          org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request)
2566          throws com.google.protobuf.ServiceException {
2567        return (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto) channel.callBlockingMethod(
2568          getDescriptor().getMethods().get(0),
2569          controller,
2570          request,
2571          org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance());
2572      }
2573
2574    }
2575
2576    // @@protoc_insertion_point(class_scope:hadoop.common.GenericRefreshProtocolService)
2577  }
2578
2579  private static com.google.protobuf.Descriptors.Descriptor
2580    internal_static_hadoop_common_GenericRefreshRequestProto_descriptor;
2581  private static
2582    com.google.protobuf.GeneratedMessage.FieldAccessorTable
2583      internal_static_hadoop_common_GenericRefreshRequestProto_fieldAccessorTable;
2584  private static com.google.protobuf.Descriptors.Descriptor
2585    internal_static_hadoop_common_GenericRefreshResponseProto_descriptor;
2586  private static
2587    com.google.protobuf.GeneratedMessage.FieldAccessorTable
2588      internal_static_hadoop_common_GenericRefreshResponseProto_fieldAccessorTable;
2589  private static com.google.protobuf.Descriptors.Descriptor
2590    internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor;
2591  private static
2592    com.google.protobuf.GeneratedMessage.FieldAccessorTable
2593      internal_static_hadoop_common_GenericRefreshResponseCollectionProto_fieldAccessorTable;
2594
2595  public static com.google.protobuf.Descriptors.FileDescriptor
2596      getDescriptor() {
2597    return descriptor;
2598  }
2599  private static com.google.protobuf.Descriptors.FileDescriptor
2600      descriptor;
2601  static {
2602    java.lang.String[] descriptorData = {
2603      "\n\034GenericRefreshProtocol.proto\022\rhadoop.c" +
2604      "ommon\">\n\032GenericRefreshRequestProto\022\022\n\ni" +
2605      "dentifier\030\001 \001(\t\022\014\n\004args\030\002 \003(\t\"Z\n\033Generic" +
2606      "RefreshResponseProto\022\022\n\nexitStatus\030\001 \001(\005" +
2607      "\022\023\n\013userMessage\030\002 \001(\t\022\022\n\nsenderName\030\003 \001(" +
2608      "\t\"f\n%GenericRefreshResponseCollectionPro" +
2609      "to\022=\n\tresponses\030\001 \003(\0132*.hadoop.common.Ge" +
2610      "nericRefreshResponseProto2\213\001\n\035GenericRef" +
2611      "reshProtocolService\022j\n\007refresh\022).hadoop." +
2612      "common.GenericRefreshRequestProto\0324.hado",
2613      "op.common.GenericRefreshResponseCollecti" +
2614      "onProtoBA\n\033org.apache.hadoop.ipc.protoB\034" +
2615      "GenericRefreshProtocolProtos\210\001\001\240\001\001"
2616    };
2617    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
2618      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
2619        public com.google.protobuf.ExtensionRegistry assignDescriptors(
2620            com.google.protobuf.Descriptors.FileDescriptor root) {
2621          descriptor = root;
2622          internal_static_hadoop_common_GenericRefreshRequestProto_descriptor =
2623            getDescriptor().getMessageTypes().get(0);
2624          internal_static_hadoop_common_GenericRefreshRequestProto_fieldAccessorTable = new
2625            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
2626              internal_static_hadoop_common_GenericRefreshRequestProto_descriptor,
2627              new java.lang.String[] { "Identifier", "Args", });
2628          internal_static_hadoop_common_GenericRefreshResponseProto_descriptor =
2629            getDescriptor().getMessageTypes().get(1);
2630          internal_static_hadoop_common_GenericRefreshResponseProto_fieldAccessorTable = new
2631            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
2632              internal_static_hadoop_common_GenericRefreshResponseProto_descriptor,
2633              new java.lang.String[] { "ExitStatus", "UserMessage", "SenderName", });
2634          internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor =
2635            getDescriptor().getMessageTypes().get(2);
2636          internal_static_hadoop_common_GenericRefreshResponseCollectionProto_fieldAccessorTable = new
2637            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
2638              internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor,
2639              new java.lang.String[] { "Responses", });
2640          return null;
2641        }
2642      };
2643    com.google.protobuf.Descriptors.FileDescriptor
2644      .internalBuildGeneratedFileFrom(descriptorData,
2645        new com.google.protobuf.Descriptors.FileDescriptor[] {
2646        }, assigner);
2647  }
2648
2649  // @@protoc_insertion_point(outer_class_scope)
2650}