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