001    // Generated by the protocol buffer compiler.  DO NOT EDIT!
002    // source: hadoop_rpc.proto
003    
004    package org.apache.hadoop.ipc.protobuf;
005    
006    public final class HadoopRpcProtos {
007      private HadoopRpcProtos() {}
008      public static void registerAllExtensions(
009          com.google.protobuf.ExtensionRegistry registry) {
010      }
011      public interface HadoopRpcRequestProtoOrBuilder
012          extends com.google.protobuf.MessageOrBuilder {
013        
014        // required string methodName = 1;
015        boolean hasMethodName();
016        String getMethodName();
017        
018        // optional bytes request = 2;
019        boolean hasRequest();
020        com.google.protobuf.ByteString getRequest();
021        
022        // required string declaringClassProtocolName = 3;
023        boolean hasDeclaringClassProtocolName();
024        String getDeclaringClassProtocolName();
025        
026        // required uint64 clientProtocolVersion = 4;
027        boolean hasClientProtocolVersion();
028        long getClientProtocolVersion();
029      }
030      public static final class HadoopRpcRequestProto extends
031          com.google.protobuf.GeneratedMessage
032          implements HadoopRpcRequestProtoOrBuilder {
033        // Use HadoopRpcRequestProto.newBuilder() to construct.
034        private HadoopRpcRequestProto(Builder builder) {
035          super(builder);
036        }
037        private HadoopRpcRequestProto(boolean noInit) {}
038        
039        private static final HadoopRpcRequestProto defaultInstance;
040        public static HadoopRpcRequestProto getDefaultInstance() {
041          return defaultInstance;
042        }
043        
044        public HadoopRpcRequestProto getDefaultInstanceForType() {
045          return defaultInstance;
046        }
047        
048        public static final com.google.protobuf.Descriptors.Descriptor
049            getDescriptor() {
050          return org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.internal_static_hadoop_common_HadoopRpcRequestProto_descriptor;
051        }
052        
053        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
054            internalGetFieldAccessorTable() {
055          return org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.internal_static_hadoop_common_HadoopRpcRequestProto_fieldAccessorTable;
056        }
057        
058        private int bitField0_;
059        // required string methodName = 1;
060        public static final int METHODNAME_FIELD_NUMBER = 1;
061        private java.lang.Object methodName_;
062        public boolean hasMethodName() {
063          return ((bitField0_ & 0x00000001) == 0x00000001);
064        }
065        public String getMethodName() {
066          java.lang.Object ref = methodName_;
067          if (ref instanceof String) {
068            return (String) ref;
069          } else {
070            com.google.protobuf.ByteString bs = 
071                (com.google.protobuf.ByteString) ref;
072            String s = bs.toStringUtf8();
073            if (com.google.protobuf.Internal.isValidUtf8(bs)) {
074              methodName_ = s;
075            }
076            return s;
077          }
078        }
079        private com.google.protobuf.ByteString getMethodNameBytes() {
080          java.lang.Object ref = methodName_;
081          if (ref instanceof String) {
082            com.google.protobuf.ByteString b = 
083                com.google.protobuf.ByteString.copyFromUtf8((String) ref);
084            methodName_ = b;
085            return b;
086          } else {
087            return (com.google.protobuf.ByteString) ref;
088          }
089        }
090        
091        // optional bytes request = 2;
092        public static final int REQUEST_FIELD_NUMBER = 2;
093        private com.google.protobuf.ByteString request_;
094        public boolean hasRequest() {
095          return ((bitField0_ & 0x00000002) == 0x00000002);
096        }
097        public com.google.protobuf.ByteString getRequest() {
098          return request_;
099        }
100        
101        // required string declaringClassProtocolName = 3;
102        public static final int DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER = 3;
103        private java.lang.Object declaringClassProtocolName_;
104        public boolean hasDeclaringClassProtocolName() {
105          return ((bitField0_ & 0x00000004) == 0x00000004);
106        }
107        public String getDeclaringClassProtocolName() {
108          java.lang.Object ref = declaringClassProtocolName_;
109          if (ref instanceof String) {
110            return (String) ref;
111          } else {
112            com.google.protobuf.ByteString bs = 
113                (com.google.protobuf.ByteString) ref;
114            String s = bs.toStringUtf8();
115            if (com.google.protobuf.Internal.isValidUtf8(bs)) {
116              declaringClassProtocolName_ = s;
117            }
118            return s;
119          }
120        }
121        private com.google.protobuf.ByteString getDeclaringClassProtocolNameBytes() {
122          java.lang.Object ref = declaringClassProtocolName_;
123          if (ref instanceof String) {
124            com.google.protobuf.ByteString b = 
125                com.google.protobuf.ByteString.copyFromUtf8((String) ref);
126            declaringClassProtocolName_ = b;
127            return b;
128          } else {
129            return (com.google.protobuf.ByteString) ref;
130          }
131        }
132        
133        // required uint64 clientProtocolVersion = 4;
134        public static final int CLIENTPROTOCOLVERSION_FIELD_NUMBER = 4;
135        private long clientProtocolVersion_;
136        public boolean hasClientProtocolVersion() {
137          return ((bitField0_ & 0x00000008) == 0x00000008);
138        }
139        public long getClientProtocolVersion() {
140          return clientProtocolVersion_;
141        }
142        
143        private void initFields() {
144          methodName_ = "";
145          request_ = com.google.protobuf.ByteString.EMPTY;
146          declaringClassProtocolName_ = "";
147          clientProtocolVersion_ = 0L;
148        }
149        private byte memoizedIsInitialized = -1;
150        public final boolean isInitialized() {
151          byte isInitialized = memoizedIsInitialized;
152          if (isInitialized != -1) return isInitialized == 1;
153          
154          if (!hasMethodName()) {
155            memoizedIsInitialized = 0;
156            return false;
157          }
158          if (!hasDeclaringClassProtocolName()) {
159            memoizedIsInitialized = 0;
160            return false;
161          }
162          if (!hasClientProtocolVersion()) {
163            memoizedIsInitialized = 0;
164            return false;
165          }
166          memoizedIsInitialized = 1;
167          return true;
168        }
169        
170        public void writeTo(com.google.protobuf.CodedOutputStream output)
171                            throws java.io.IOException {
172          getSerializedSize();
173          if (((bitField0_ & 0x00000001) == 0x00000001)) {
174            output.writeBytes(1, getMethodNameBytes());
175          }
176          if (((bitField0_ & 0x00000002) == 0x00000002)) {
177            output.writeBytes(2, request_);
178          }
179          if (((bitField0_ & 0x00000004) == 0x00000004)) {
180            output.writeBytes(3, getDeclaringClassProtocolNameBytes());
181          }
182          if (((bitField0_ & 0x00000008) == 0x00000008)) {
183            output.writeUInt64(4, clientProtocolVersion_);
184          }
185          getUnknownFields().writeTo(output);
186        }
187        
188        private int memoizedSerializedSize = -1;
189        public int getSerializedSize() {
190          int size = memoizedSerializedSize;
191          if (size != -1) return size;
192        
193          size = 0;
194          if (((bitField0_ & 0x00000001) == 0x00000001)) {
195            size += com.google.protobuf.CodedOutputStream
196              .computeBytesSize(1, getMethodNameBytes());
197          }
198          if (((bitField0_ & 0x00000002) == 0x00000002)) {
199            size += com.google.protobuf.CodedOutputStream
200              .computeBytesSize(2, request_);
201          }
202          if (((bitField0_ & 0x00000004) == 0x00000004)) {
203            size += com.google.protobuf.CodedOutputStream
204              .computeBytesSize(3, getDeclaringClassProtocolNameBytes());
205          }
206          if (((bitField0_ & 0x00000008) == 0x00000008)) {
207            size += com.google.protobuf.CodedOutputStream
208              .computeUInt64Size(4, clientProtocolVersion_);
209          }
210          size += getUnknownFields().getSerializedSize();
211          memoizedSerializedSize = size;
212          return size;
213        }
214        
215        private static final long serialVersionUID = 0L;
216        @java.lang.Override
217        protected java.lang.Object writeReplace()
218            throws java.io.ObjectStreamException {
219          return super.writeReplace();
220        }
221        
222        @java.lang.Override
223        public boolean equals(final java.lang.Object obj) {
224          if (obj == this) {
225           return true;
226          }
227          if (!(obj instanceof org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto)) {
228            return super.equals(obj);
229          }
230          org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto other = (org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto) obj;
231          
232          boolean result = true;
233          result = result && (hasMethodName() == other.hasMethodName());
234          if (hasMethodName()) {
235            result = result && getMethodName()
236                .equals(other.getMethodName());
237          }
238          result = result && (hasRequest() == other.hasRequest());
239          if (hasRequest()) {
240            result = result && getRequest()
241                .equals(other.getRequest());
242          }
243          result = result && (hasDeclaringClassProtocolName() == other.hasDeclaringClassProtocolName());
244          if (hasDeclaringClassProtocolName()) {
245            result = result && getDeclaringClassProtocolName()
246                .equals(other.getDeclaringClassProtocolName());
247          }
248          result = result && (hasClientProtocolVersion() == other.hasClientProtocolVersion());
249          if (hasClientProtocolVersion()) {
250            result = result && (getClientProtocolVersion()
251                == other.getClientProtocolVersion());
252          }
253          result = result &&
254              getUnknownFields().equals(other.getUnknownFields());
255          return result;
256        }
257        
258        @java.lang.Override
259        public int hashCode() {
260          int hash = 41;
261          hash = (19 * hash) + getDescriptorForType().hashCode();
262          if (hasMethodName()) {
263            hash = (37 * hash) + METHODNAME_FIELD_NUMBER;
264            hash = (53 * hash) + getMethodName().hashCode();
265          }
266          if (hasRequest()) {
267            hash = (37 * hash) + REQUEST_FIELD_NUMBER;
268            hash = (53 * hash) + getRequest().hashCode();
269          }
270          if (hasDeclaringClassProtocolName()) {
271            hash = (37 * hash) + DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER;
272            hash = (53 * hash) + getDeclaringClassProtocolName().hashCode();
273          }
274          if (hasClientProtocolVersion()) {
275            hash = (37 * hash) + CLIENTPROTOCOLVERSION_FIELD_NUMBER;
276            hash = (53 * hash) + hashLong(getClientProtocolVersion());
277          }
278          hash = (29 * hash) + getUnknownFields().hashCode();
279          return hash;
280        }
281        
282        public static org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto parseFrom(
283            com.google.protobuf.ByteString data)
284            throws com.google.protobuf.InvalidProtocolBufferException {
285          return newBuilder().mergeFrom(data).buildParsed();
286        }
287        public static org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto parseFrom(
288            com.google.protobuf.ByteString data,
289            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
290            throws com.google.protobuf.InvalidProtocolBufferException {
291          return newBuilder().mergeFrom(data, extensionRegistry)
292                   .buildParsed();
293        }
294        public static org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto parseFrom(byte[] data)
295            throws com.google.protobuf.InvalidProtocolBufferException {
296          return newBuilder().mergeFrom(data).buildParsed();
297        }
298        public static org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto parseFrom(
299            byte[] data,
300            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
301            throws com.google.protobuf.InvalidProtocolBufferException {
302          return newBuilder().mergeFrom(data, extensionRegistry)
303                   .buildParsed();
304        }
305        public static org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto parseFrom(java.io.InputStream input)
306            throws java.io.IOException {
307          return newBuilder().mergeFrom(input).buildParsed();
308        }
309        public static org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto parseFrom(
310            java.io.InputStream input,
311            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
312            throws java.io.IOException {
313          return newBuilder().mergeFrom(input, extensionRegistry)
314                   .buildParsed();
315        }
316        public static org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto parseDelimitedFrom(java.io.InputStream input)
317            throws java.io.IOException {
318          Builder builder = newBuilder();
319          if (builder.mergeDelimitedFrom(input)) {
320            return builder.buildParsed();
321          } else {
322            return null;
323          }
324        }
325        public static org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto parseDelimitedFrom(
326            java.io.InputStream input,
327            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
328            throws java.io.IOException {
329          Builder builder = newBuilder();
330          if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
331            return builder.buildParsed();
332          } else {
333            return null;
334          }
335        }
336        public static org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto parseFrom(
337            com.google.protobuf.CodedInputStream input)
338            throws java.io.IOException {
339          return newBuilder().mergeFrom(input).buildParsed();
340        }
341        public static org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto parseFrom(
342            com.google.protobuf.CodedInputStream input,
343            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
344            throws java.io.IOException {
345          return newBuilder().mergeFrom(input, extensionRegistry)
346                   .buildParsed();
347        }
348        
349        public static Builder newBuilder() { return Builder.create(); }
350        public Builder newBuilderForType() { return newBuilder(); }
351        public static Builder newBuilder(org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto prototype) {
352          return newBuilder().mergeFrom(prototype);
353        }
354        public Builder toBuilder() { return newBuilder(this); }
355        
356        @java.lang.Override
357        protected Builder newBuilderForType(
358            com.google.protobuf.GeneratedMessage.BuilderParent parent) {
359          Builder builder = new Builder(parent);
360          return builder;
361        }
362        public static final class Builder extends
363            com.google.protobuf.GeneratedMessage.Builder<Builder>
364           implements org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProtoOrBuilder {
365          public static final com.google.protobuf.Descriptors.Descriptor
366              getDescriptor() {
367            return org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.internal_static_hadoop_common_HadoopRpcRequestProto_descriptor;
368          }
369          
370          protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
371              internalGetFieldAccessorTable() {
372            return org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.internal_static_hadoop_common_HadoopRpcRequestProto_fieldAccessorTable;
373          }
374          
375          // Construct using org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto.newBuilder()
376          private Builder() {
377            maybeForceBuilderInitialization();
378          }
379          
380          private Builder(BuilderParent parent) {
381            super(parent);
382            maybeForceBuilderInitialization();
383          }
384          private void maybeForceBuilderInitialization() {
385            if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
386            }
387          }
388          private static Builder create() {
389            return new Builder();
390          }
391          
392          public Builder clear() {
393            super.clear();
394            methodName_ = "";
395            bitField0_ = (bitField0_ & ~0x00000001);
396            request_ = com.google.protobuf.ByteString.EMPTY;
397            bitField0_ = (bitField0_ & ~0x00000002);
398            declaringClassProtocolName_ = "";
399            bitField0_ = (bitField0_ & ~0x00000004);
400            clientProtocolVersion_ = 0L;
401            bitField0_ = (bitField0_ & ~0x00000008);
402            return this;
403          }
404          
405          public Builder clone() {
406            return create().mergeFrom(buildPartial());
407          }
408          
409          public com.google.protobuf.Descriptors.Descriptor
410              getDescriptorForType() {
411            return org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto.getDescriptor();
412          }
413          
414          public org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto getDefaultInstanceForType() {
415            return org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto.getDefaultInstance();
416          }
417          
418          public org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto build() {
419            org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto result = buildPartial();
420            if (!result.isInitialized()) {
421              throw newUninitializedMessageException(result);
422            }
423            return result;
424          }
425          
426          private org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto buildParsed()
427              throws com.google.protobuf.InvalidProtocolBufferException {
428            org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto result = buildPartial();
429            if (!result.isInitialized()) {
430              throw newUninitializedMessageException(
431                result).asInvalidProtocolBufferException();
432            }
433            return result;
434          }
435          
436          public org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto buildPartial() {
437            org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto result = new org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto(this);
438            int from_bitField0_ = bitField0_;
439            int to_bitField0_ = 0;
440            if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
441              to_bitField0_ |= 0x00000001;
442            }
443            result.methodName_ = methodName_;
444            if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
445              to_bitField0_ |= 0x00000002;
446            }
447            result.request_ = request_;
448            if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
449              to_bitField0_ |= 0x00000004;
450            }
451            result.declaringClassProtocolName_ = declaringClassProtocolName_;
452            if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
453              to_bitField0_ |= 0x00000008;
454            }
455            result.clientProtocolVersion_ = clientProtocolVersion_;
456            result.bitField0_ = to_bitField0_;
457            onBuilt();
458            return result;
459          }
460          
461          public Builder mergeFrom(com.google.protobuf.Message other) {
462            if (other instanceof org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto) {
463              return mergeFrom((org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto)other);
464            } else {
465              super.mergeFrom(other);
466              return this;
467            }
468          }
469          
470          public Builder mergeFrom(org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto other) {
471            if (other == org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto.getDefaultInstance()) return this;
472            if (other.hasMethodName()) {
473              setMethodName(other.getMethodName());
474            }
475            if (other.hasRequest()) {
476              setRequest(other.getRequest());
477            }
478            if (other.hasDeclaringClassProtocolName()) {
479              setDeclaringClassProtocolName(other.getDeclaringClassProtocolName());
480            }
481            if (other.hasClientProtocolVersion()) {
482              setClientProtocolVersion(other.getClientProtocolVersion());
483            }
484            this.mergeUnknownFields(other.getUnknownFields());
485            return this;
486          }
487          
488          public final boolean isInitialized() {
489            if (!hasMethodName()) {
490              
491              return false;
492            }
493            if (!hasDeclaringClassProtocolName()) {
494              
495              return false;
496            }
497            if (!hasClientProtocolVersion()) {
498              
499              return false;
500            }
501            return true;
502          }
503          
504          public Builder mergeFrom(
505              com.google.protobuf.CodedInputStream input,
506              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
507              throws java.io.IOException {
508            com.google.protobuf.UnknownFieldSet.Builder unknownFields =
509              com.google.protobuf.UnknownFieldSet.newBuilder(
510                this.getUnknownFields());
511            while (true) {
512              int tag = input.readTag();
513              switch (tag) {
514                case 0:
515                  this.setUnknownFields(unknownFields.build());
516                  onChanged();
517                  return this;
518                default: {
519                  if (!parseUnknownField(input, unknownFields,
520                                         extensionRegistry, tag)) {
521                    this.setUnknownFields(unknownFields.build());
522                    onChanged();
523                    return this;
524                  }
525                  break;
526                }
527                case 10: {
528                  bitField0_ |= 0x00000001;
529                  methodName_ = input.readBytes();
530                  break;
531                }
532                case 18: {
533                  bitField0_ |= 0x00000002;
534                  request_ = input.readBytes();
535                  break;
536                }
537                case 26: {
538                  bitField0_ |= 0x00000004;
539                  declaringClassProtocolName_ = input.readBytes();
540                  break;
541                }
542                case 32: {
543                  bitField0_ |= 0x00000008;
544                  clientProtocolVersion_ = input.readUInt64();
545                  break;
546                }
547              }
548            }
549          }
550          
551          private int bitField0_;
552          
553          // required string methodName = 1;
554          private java.lang.Object methodName_ = "";
555          public boolean hasMethodName() {
556            return ((bitField0_ & 0x00000001) == 0x00000001);
557          }
558          public String getMethodName() {
559            java.lang.Object ref = methodName_;
560            if (!(ref instanceof String)) {
561              String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
562              methodName_ = s;
563              return s;
564            } else {
565              return (String) ref;
566            }
567          }
568          public Builder setMethodName(String value) {
569            if (value == null) {
570        throw new NullPointerException();
571      }
572      bitField0_ |= 0x00000001;
573            methodName_ = value;
574            onChanged();
575            return this;
576          }
577          public Builder clearMethodName() {
578            bitField0_ = (bitField0_ & ~0x00000001);
579            methodName_ = getDefaultInstance().getMethodName();
580            onChanged();
581            return this;
582          }
583          void setMethodName(com.google.protobuf.ByteString value) {
584            bitField0_ |= 0x00000001;
585            methodName_ = value;
586            onChanged();
587          }
588          
589          // optional bytes request = 2;
590          private com.google.protobuf.ByteString request_ = com.google.protobuf.ByteString.EMPTY;
591          public boolean hasRequest() {
592            return ((bitField0_ & 0x00000002) == 0x00000002);
593          }
594          public com.google.protobuf.ByteString getRequest() {
595            return request_;
596          }
597          public Builder setRequest(com.google.protobuf.ByteString value) {
598            if (value == null) {
599        throw new NullPointerException();
600      }
601      bitField0_ |= 0x00000002;
602            request_ = value;
603            onChanged();
604            return this;
605          }
606          public Builder clearRequest() {
607            bitField0_ = (bitField0_ & ~0x00000002);
608            request_ = getDefaultInstance().getRequest();
609            onChanged();
610            return this;
611          }
612          
613          // required string declaringClassProtocolName = 3;
614          private java.lang.Object declaringClassProtocolName_ = "";
615          public boolean hasDeclaringClassProtocolName() {
616            return ((bitField0_ & 0x00000004) == 0x00000004);
617          }
618          public String getDeclaringClassProtocolName() {
619            java.lang.Object ref = declaringClassProtocolName_;
620            if (!(ref instanceof String)) {
621              String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
622              declaringClassProtocolName_ = s;
623              return s;
624            } else {
625              return (String) ref;
626            }
627          }
628          public Builder setDeclaringClassProtocolName(String value) {
629            if (value == null) {
630        throw new NullPointerException();
631      }
632      bitField0_ |= 0x00000004;
633            declaringClassProtocolName_ = value;
634            onChanged();
635            return this;
636          }
637          public Builder clearDeclaringClassProtocolName() {
638            bitField0_ = (bitField0_ & ~0x00000004);
639            declaringClassProtocolName_ = getDefaultInstance().getDeclaringClassProtocolName();
640            onChanged();
641            return this;
642          }
643          void setDeclaringClassProtocolName(com.google.protobuf.ByteString value) {
644            bitField0_ |= 0x00000004;
645            declaringClassProtocolName_ = value;
646            onChanged();
647          }
648          
649          // required uint64 clientProtocolVersion = 4;
650          private long clientProtocolVersion_ ;
651          public boolean hasClientProtocolVersion() {
652            return ((bitField0_ & 0x00000008) == 0x00000008);
653          }
654          public long getClientProtocolVersion() {
655            return clientProtocolVersion_;
656          }
657          public Builder setClientProtocolVersion(long value) {
658            bitField0_ |= 0x00000008;
659            clientProtocolVersion_ = value;
660            onChanged();
661            return this;
662          }
663          public Builder clearClientProtocolVersion() {
664            bitField0_ = (bitField0_ & ~0x00000008);
665            clientProtocolVersion_ = 0L;
666            onChanged();
667            return this;
668          }
669          
670          // @@protoc_insertion_point(builder_scope:hadoop.common.HadoopRpcRequestProto)
671        }
672        
673        static {
674          defaultInstance = new HadoopRpcRequestProto(true);
675          defaultInstance.initFields();
676        }
677        
678        // @@protoc_insertion_point(class_scope:hadoop.common.HadoopRpcRequestProto)
679      }
680      
681      private static com.google.protobuf.Descriptors.Descriptor
682        internal_static_hadoop_common_HadoopRpcRequestProto_descriptor;
683      private static
684        com.google.protobuf.GeneratedMessage.FieldAccessorTable
685          internal_static_hadoop_common_HadoopRpcRequestProto_fieldAccessorTable;
686      
687      public static com.google.protobuf.Descriptors.FileDescriptor
688          getDescriptor() {
689        return descriptor;
690      }
691      private static com.google.protobuf.Descriptors.FileDescriptor
692          descriptor;
693      static {
694        java.lang.String[] descriptorData = {
695          "\n\020hadoop_rpc.proto\022\rhadoop.common\"\177\n\025Had" +
696          "oopRpcRequestProto\022\022\n\nmethodName\030\001 \002(\t\022\017" +
697          "\n\007request\030\002 \001(\014\022\"\n\032declaringClassProtoco" +
698          "lName\030\003 \002(\t\022\035\n\025clientProtocolVersion\030\004 \002" +
699          "(\004B4\n\036org.apache.hadoop.ipc.protobufB\017Ha" +
700          "doopRpcProtos\240\001\001"
701        };
702        com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
703          new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
704            public com.google.protobuf.ExtensionRegistry assignDescriptors(
705                com.google.protobuf.Descriptors.FileDescriptor root) {
706              descriptor = root;
707              internal_static_hadoop_common_HadoopRpcRequestProto_descriptor =
708                getDescriptor().getMessageTypes().get(0);
709              internal_static_hadoop_common_HadoopRpcRequestProto_fieldAccessorTable = new
710                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
711                  internal_static_hadoop_common_HadoopRpcRequestProto_descriptor,
712                  new java.lang.String[] { "MethodName", "Request", "DeclaringClassProtocolName", "ClientProtocolVersion", },
713                  org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto.class,
714                  org.apache.hadoop.ipc.protobuf.HadoopRpcProtos.HadoopRpcRequestProto.Builder.class);
715              return null;
716            }
717          };
718        com.google.protobuf.Descriptors.FileDescriptor
719          .internalBuildGeneratedFileFrom(descriptorData,
720            new com.google.protobuf.Descriptors.FileDescriptor[] {
721            }, assigner);
722      }
723      
724      // @@protoc_insertion_point(outer_class_scope)
725    }