Merge "Serialization/Deserialization and a host of other fixes"
[controller.git] / opendaylight / md-sal / sal-protocolbuffer-encoding / src / main / java / org / opendaylight / controller / protobuff / messages / shard / ShardManagerMessages.java
1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: ShardManager.proto
3
4 package org.opendaylight.controller.protobuff.messages.shard;
5
6 public final class ShardManagerMessages {
7   private ShardManagerMessages() {}
8   public static void registerAllExtensions(
9       com.google.protobuf.ExtensionRegistry registry) {
10   }
11   public interface FindPrimaryOrBuilder
12       extends com.google.protobuf.MessageOrBuilder {
13
14     // required string shardName = 1;
15     /**
16      * <code>required string shardName = 1;</code>
17      */
18     boolean hasShardName();
19     /**
20      * <code>required string shardName = 1;</code>
21      */
22     java.lang.String getShardName();
23     /**
24      * <code>required string shardName = 1;</code>
25      */
26     com.google.protobuf.ByteString
27         getShardNameBytes();
28   }
29   /**
30    * Protobuf type {@code org.opendaylight.controller.mdsal.FindPrimary}
31    */
32   public static final class FindPrimary extends
33       com.google.protobuf.GeneratedMessage
34       implements FindPrimaryOrBuilder {
35     // Use FindPrimary.newBuilder() to construct.
36     private FindPrimary(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
37       super(builder);
38       this.unknownFields = builder.getUnknownFields();
39     }
40     private FindPrimary(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
41
42     private static final FindPrimary defaultInstance;
43     public static FindPrimary getDefaultInstance() {
44       return defaultInstance;
45     }
46
47     public FindPrimary getDefaultInstanceForType() {
48       return defaultInstance;
49     }
50
51     private final com.google.protobuf.UnknownFieldSet unknownFields;
52     @java.lang.Override
53     public final com.google.protobuf.UnknownFieldSet
54         getUnknownFields() {
55       return this.unknownFields;
56     }
57     private FindPrimary(
58         com.google.protobuf.CodedInputStream input,
59         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
60         throws com.google.protobuf.InvalidProtocolBufferException {
61       initFields();
62       int mutable_bitField0_ = 0;
63       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
64           com.google.protobuf.UnknownFieldSet.newBuilder();
65       try {
66         boolean done = false;
67         while (!done) {
68           int tag = input.readTag();
69           switch (tag) {
70             case 0:
71               done = true;
72               break;
73             default: {
74               if (!parseUnknownField(input, unknownFields,
75                                      extensionRegistry, tag)) {
76                 done = true;
77               }
78               break;
79             }
80             case 10: {
81               bitField0_ |= 0x00000001;
82               shardName_ = input.readBytes();
83               break;
84             }
85           }
86         }
87       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
88         throw e.setUnfinishedMessage(this);
89       } catch (java.io.IOException e) {
90         throw new com.google.protobuf.InvalidProtocolBufferException(
91             e.getMessage()).setUnfinishedMessage(this);
92       } finally {
93         this.unknownFields = unknownFields.build();
94         makeExtensionsImmutable();
95       }
96     }
97     public static final com.google.protobuf.Descriptors.Descriptor
98         getDescriptor() {
99       return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
100     }
101
102     protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
103         internalGetFieldAccessorTable() {
104       return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable
105           .ensureFieldAccessorsInitialized(
106               org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary.class, org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary.Builder.class);
107     }
108
109     public static com.google.protobuf.Parser<FindPrimary> PARSER =
110         new com.google.protobuf.AbstractParser<FindPrimary>() {
111       public FindPrimary parsePartialFrom(
112           com.google.protobuf.CodedInputStream input,
113           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
114           throws com.google.protobuf.InvalidProtocolBufferException {
115         return new FindPrimary(input, extensionRegistry);
116       }
117     };
118
119     @java.lang.Override
120     public com.google.protobuf.Parser<FindPrimary> getParserForType() {
121       return PARSER;
122     }
123
124     private int bitField0_;
125     // required string shardName = 1;
126     public static final int SHARDNAME_FIELD_NUMBER = 1;
127     private java.lang.Object shardName_;
128     /**
129      * <code>required string shardName = 1;</code>
130      */
131     public boolean hasShardName() {
132       return ((bitField0_ & 0x00000001) == 0x00000001);
133     }
134     /**
135      * <code>required string shardName = 1;</code>
136      */
137     public java.lang.String getShardName() {
138       java.lang.Object ref = shardName_;
139       if (ref instanceof java.lang.String) {
140         return (java.lang.String) ref;
141       } else {
142         com.google.protobuf.ByteString bs =
143             (com.google.protobuf.ByteString) ref;
144         java.lang.String s = bs.toStringUtf8();
145         if (bs.isValidUtf8()) {
146           shardName_ = s;
147         }
148         return s;
149       }
150     }
151     /**
152      * <code>required string shardName = 1;</code>
153      */
154     public com.google.protobuf.ByteString
155         getShardNameBytes() {
156       java.lang.Object ref = shardName_;
157       if (ref instanceof java.lang.String) {
158         com.google.protobuf.ByteString b =
159             com.google.protobuf.ByteString.copyFromUtf8(
160                 (java.lang.String) ref);
161         shardName_ = b;
162         return b;
163       } else {
164         return (com.google.protobuf.ByteString) ref;
165       }
166     }
167
168     private void initFields() {
169       shardName_ = "";
170     }
171     private byte memoizedIsInitialized = -1;
172     public final boolean isInitialized() {
173       byte isInitialized = memoizedIsInitialized;
174       if (isInitialized != -1) return isInitialized == 1;
175
176       if (!hasShardName()) {
177         memoizedIsInitialized = 0;
178         return false;
179       }
180       memoizedIsInitialized = 1;
181       return true;
182     }
183
184     public void writeTo(com.google.protobuf.CodedOutputStream output)
185                         throws java.io.IOException {
186       getSerializedSize();
187       if (((bitField0_ & 0x00000001) == 0x00000001)) {
188         output.writeBytes(1, getShardNameBytes());
189       }
190       getUnknownFields().writeTo(output);
191     }
192
193     private int memoizedSerializedSize = -1;
194     public int getSerializedSize() {
195       int size = memoizedSerializedSize;
196       if (size != -1) return size;
197
198       size = 0;
199       if (((bitField0_ & 0x00000001) == 0x00000001)) {
200         size += com.google.protobuf.CodedOutputStream
201           .computeBytesSize(1, getShardNameBytes());
202       }
203       size += getUnknownFields().getSerializedSize();
204       memoizedSerializedSize = size;
205       return size;
206     }
207
208     private static final long serialVersionUID = 0L;
209     @java.lang.Override
210     protected java.lang.Object writeReplace()
211         throws java.io.ObjectStreamException {
212       return super.writeReplace();
213     }
214
215     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary parseFrom(
216         com.google.protobuf.ByteString data)
217         throws com.google.protobuf.InvalidProtocolBufferException {
218       return PARSER.parseFrom(data);
219     }
220     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary parseFrom(
221         com.google.protobuf.ByteString data,
222         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
223         throws com.google.protobuf.InvalidProtocolBufferException {
224       return PARSER.parseFrom(data, extensionRegistry);
225     }
226     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary parseFrom(byte[] data)
227         throws com.google.protobuf.InvalidProtocolBufferException {
228       return PARSER.parseFrom(data);
229     }
230     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary parseFrom(
231         byte[] data,
232         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
233         throws com.google.protobuf.InvalidProtocolBufferException {
234       return PARSER.parseFrom(data, extensionRegistry);
235     }
236     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary parseFrom(java.io.InputStream input)
237         throws java.io.IOException {
238       return PARSER.parseFrom(input);
239     }
240     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary parseFrom(
241         java.io.InputStream input,
242         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
243         throws java.io.IOException {
244       return PARSER.parseFrom(input, extensionRegistry);
245     }
246     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary parseDelimitedFrom(java.io.InputStream input)
247         throws java.io.IOException {
248       return PARSER.parseDelimitedFrom(input);
249     }
250     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary parseDelimitedFrom(
251         java.io.InputStream input,
252         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
253         throws java.io.IOException {
254       return PARSER.parseDelimitedFrom(input, extensionRegistry);
255     }
256     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary parseFrom(
257         com.google.protobuf.CodedInputStream input)
258         throws java.io.IOException {
259       return PARSER.parseFrom(input);
260     }
261     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary parseFrom(
262         com.google.protobuf.CodedInputStream input,
263         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
264         throws java.io.IOException {
265       return PARSER.parseFrom(input, extensionRegistry);
266     }
267
268     public static Builder newBuilder() { return Builder.create(); }
269     public Builder newBuilderForType() { return newBuilder(); }
270     public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary prototype) {
271       return newBuilder().mergeFrom(prototype);
272     }
273     public Builder toBuilder() { return newBuilder(this); }
274
275     @java.lang.Override
276     protected Builder newBuilderForType(
277         com.google.protobuf.GeneratedMessage.BuilderParent parent) {
278       Builder builder = new Builder(parent);
279       return builder;
280     }
281     /**
282      * Protobuf type {@code org.opendaylight.controller.mdsal.FindPrimary}
283      */
284     public static final class Builder extends
285         com.google.protobuf.GeneratedMessage.Builder<Builder>
286        implements org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimaryOrBuilder {
287       public static final com.google.protobuf.Descriptors.Descriptor
288           getDescriptor() {
289         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
290       }
291
292       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
293           internalGetFieldAccessorTable() {
294         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable
295             .ensureFieldAccessorsInitialized(
296                 org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary.class, org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary.Builder.class);
297       }
298
299       // Construct using org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary.newBuilder()
300       private Builder() {
301         maybeForceBuilderInitialization();
302       }
303
304       private Builder(
305           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
306         super(parent);
307         maybeForceBuilderInitialization();
308       }
309       private void maybeForceBuilderInitialization() {
310         if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
311         }
312       }
313       private static Builder create() {
314         return new Builder();
315       }
316
317       public Builder clear() {
318         super.clear();
319         shardName_ = "";
320         bitField0_ = (bitField0_ & ~0x00000001);
321         return this;
322       }
323
324       public Builder clone() {
325         return create().mergeFrom(buildPartial());
326       }
327
328       public com.google.protobuf.Descriptors.Descriptor
329           getDescriptorForType() {
330         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
331       }
332
333       public org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary getDefaultInstanceForType() {
334         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary.getDefaultInstance();
335       }
336
337       public org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary build() {
338         org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary result = buildPartial();
339         if (!result.isInitialized()) {
340           throw newUninitializedMessageException(result);
341         }
342         return result;
343       }
344
345       public org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary buildPartial() {
346         org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary result = new org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary(this);
347         int from_bitField0_ = bitField0_;
348         int to_bitField0_ = 0;
349         if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
350           to_bitField0_ |= 0x00000001;
351         }
352         result.shardName_ = shardName_;
353         result.bitField0_ = to_bitField0_;
354         onBuilt();
355         return result;
356       }
357
358       public Builder mergeFrom(com.google.protobuf.Message other) {
359         if (other instanceof org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary) {
360           return mergeFrom((org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary)other);
361         } else {
362           super.mergeFrom(other);
363           return this;
364         }
365       }
366
367       public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary other) {
368         if (other == org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary.getDefaultInstance()) return this;
369         if (other.hasShardName()) {
370           bitField0_ |= 0x00000001;
371           shardName_ = other.shardName_;
372           onChanged();
373         }
374         this.mergeUnknownFields(other.getUnknownFields());
375         return this;
376       }
377
378       public final boolean isInitialized() {
379         if (!hasShardName()) {
380
381           return false;
382         }
383         return true;
384       }
385
386       public Builder mergeFrom(
387           com.google.protobuf.CodedInputStream input,
388           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
389           throws java.io.IOException {
390         org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary parsedMessage = null;
391         try {
392           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
393         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
394           parsedMessage = (org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.FindPrimary) e.getUnfinishedMessage();
395           throw e;
396         } finally {
397           if (parsedMessage != null) {
398             mergeFrom(parsedMessage);
399           }
400         }
401         return this;
402       }
403       private int bitField0_;
404
405       // required string shardName = 1;
406       private java.lang.Object shardName_ = "";
407       /**
408        * <code>required string shardName = 1;</code>
409        */
410       public boolean hasShardName() {
411         return ((bitField0_ & 0x00000001) == 0x00000001);
412       }
413       /**
414        * <code>required string shardName = 1;</code>
415        */
416       public java.lang.String getShardName() {
417         java.lang.Object ref = shardName_;
418         if (!(ref instanceof java.lang.String)) {
419           java.lang.String s = ((com.google.protobuf.ByteString) ref)
420               .toStringUtf8();
421           shardName_ = s;
422           return s;
423         } else {
424           return (java.lang.String) ref;
425         }
426       }
427       /**
428        * <code>required string shardName = 1;</code>
429        */
430       public com.google.protobuf.ByteString
431           getShardNameBytes() {
432         java.lang.Object ref = shardName_;
433         if (ref instanceof String) {
434           com.google.protobuf.ByteString b =
435               com.google.protobuf.ByteString.copyFromUtf8(
436                   (java.lang.String) ref);
437           shardName_ = b;
438           return b;
439         } else {
440           return (com.google.protobuf.ByteString) ref;
441         }
442       }
443       /**
444        * <code>required string shardName = 1;</code>
445        */
446       public Builder setShardName(
447           java.lang.String value) {
448         if (value == null) {
449     throw new NullPointerException();
450   }
451   bitField0_ |= 0x00000001;
452         shardName_ = value;
453         onChanged();
454         return this;
455       }
456       /**
457        * <code>required string shardName = 1;</code>
458        */
459       public Builder clearShardName() {
460         bitField0_ = (bitField0_ & ~0x00000001);
461         shardName_ = getDefaultInstance().getShardName();
462         onChanged();
463         return this;
464       }
465       /**
466        * <code>required string shardName = 1;</code>
467        */
468       public Builder setShardNameBytes(
469           com.google.protobuf.ByteString value) {
470         if (value == null) {
471     throw new NullPointerException();
472   }
473   bitField0_ |= 0x00000001;
474         shardName_ = value;
475         onChanged();
476         return this;
477       }
478
479       // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.FindPrimary)
480     }
481
482     static {
483       defaultInstance = new FindPrimary(true);
484       defaultInstance.initFields();
485     }
486
487     // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.FindPrimary)
488   }
489
490   public interface PrimaryFoundOrBuilder
491       extends com.google.protobuf.MessageOrBuilder {
492
493     // required string primaryPath = 1;
494     /**
495      * <code>required string primaryPath = 1;</code>
496      */
497     boolean hasPrimaryPath();
498     /**
499      * <code>required string primaryPath = 1;</code>
500      */
501     java.lang.String getPrimaryPath();
502     /**
503      * <code>required string primaryPath = 1;</code>
504      */
505     com.google.protobuf.ByteString
506         getPrimaryPathBytes();
507   }
508   /**
509    * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryFound}
510    */
511   public static final class PrimaryFound extends
512       com.google.protobuf.GeneratedMessage
513       implements PrimaryFoundOrBuilder {
514     // Use PrimaryFound.newBuilder() to construct.
515     private PrimaryFound(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
516       super(builder);
517       this.unknownFields = builder.getUnknownFields();
518     }
519     private PrimaryFound(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
520
521     private static final PrimaryFound defaultInstance;
522     public static PrimaryFound getDefaultInstance() {
523       return defaultInstance;
524     }
525
526     public PrimaryFound getDefaultInstanceForType() {
527       return defaultInstance;
528     }
529
530     private final com.google.protobuf.UnknownFieldSet unknownFields;
531     @java.lang.Override
532     public final com.google.protobuf.UnknownFieldSet
533         getUnknownFields() {
534       return this.unknownFields;
535     }
536     private PrimaryFound(
537         com.google.protobuf.CodedInputStream input,
538         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
539         throws com.google.protobuf.InvalidProtocolBufferException {
540       initFields();
541       int mutable_bitField0_ = 0;
542       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
543           com.google.protobuf.UnknownFieldSet.newBuilder();
544       try {
545         boolean done = false;
546         while (!done) {
547           int tag = input.readTag();
548           switch (tag) {
549             case 0:
550               done = true;
551               break;
552             default: {
553               if (!parseUnknownField(input, unknownFields,
554                                      extensionRegistry, tag)) {
555                 done = true;
556               }
557               break;
558             }
559             case 10: {
560               bitField0_ |= 0x00000001;
561               primaryPath_ = input.readBytes();
562               break;
563             }
564           }
565         }
566       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
567         throw e.setUnfinishedMessage(this);
568       } catch (java.io.IOException e) {
569         throw new com.google.protobuf.InvalidProtocolBufferException(
570             e.getMessage()).setUnfinishedMessage(this);
571       } finally {
572         this.unknownFields = unknownFields.build();
573         makeExtensionsImmutable();
574       }
575     }
576     public static final com.google.protobuf.Descriptors.Descriptor
577         getDescriptor() {
578       return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
579     }
580
581     protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
582         internalGetFieldAccessorTable() {
583       return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable
584           .ensureFieldAccessorsInitialized(
585               org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound.class, org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound.Builder.class);
586     }
587
588     public static com.google.protobuf.Parser<PrimaryFound> PARSER =
589         new com.google.protobuf.AbstractParser<PrimaryFound>() {
590       public PrimaryFound parsePartialFrom(
591           com.google.protobuf.CodedInputStream input,
592           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
593           throws com.google.protobuf.InvalidProtocolBufferException {
594         return new PrimaryFound(input, extensionRegistry);
595       }
596     };
597
598     @java.lang.Override
599     public com.google.protobuf.Parser<PrimaryFound> getParserForType() {
600       return PARSER;
601     }
602
603     private int bitField0_;
604     // required string primaryPath = 1;
605     public static final int PRIMARYPATH_FIELD_NUMBER = 1;
606     private java.lang.Object primaryPath_;
607     /**
608      * <code>required string primaryPath = 1;</code>
609      */
610     public boolean hasPrimaryPath() {
611       return ((bitField0_ & 0x00000001) == 0x00000001);
612     }
613     /**
614      * <code>required string primaryPath = 1;</code>
615      */
616     public java.lang.String getPrimaryPath() {
617       java.lang.Object ref = primaryPath_;
618       if (ref instanceof java.lang.String) {
619         return (java.lang.String) ref;
620       } else {
621         com.google.protobuf.ByteString bs =
622             (com.google.protobuf.ByteString) ref;
623         java.lang.String s = bs.toStringUtf8();
624         if (bs.isValidUtf8()) {
625           primaryPath_ = s;
626         }
627         return s;
628       }
629     }
630     /**
631      * <code>required string primaryPath = 1;</code>
632      */
633     public com.google.protobuf.ByteString
634         getPrimaryPathBytes() {
635       java.lang.Object ref = primaryPath_;
636       if (ref instanceof java.lang.String) {
637         com.google.protobuf.ByteString b =
638             com.google.protobuf.ByteString.copyFromUtf8(
639                 (java.lang.String) ref);
640         primaryPath_ = b;
641         return b;
642       } else {
643         return (com.google.protobuf.ByteString) ref;
644       }
645     }
646
647     private void initFields() {
648       primaryPath_ = "";
649     }
650     private byte memoizedIsInitialized = -1;
651     public final boolean isInitialized() {
652       byte isInitialized = memoizedIsInitialized;
653       if (isInitialized != -1) return isInitialized == 1;
654
655       if (!hasPrimaryPath()) {
656         memoizedIsInitialized = 0;
657         return false;
658       }
659       memoizedIsInitialized = 1;
660       return true;
661     }
662
663     public void writeTo(com.google.protobuf.CodedOutputStream output)
664                         throws java.io.IOException {
665       getSerializedSize();
666       if (((bitField0_ & 0x00000001) == 0x00000001)) {
667         output.writeBytes(1, getPrimaryPathBytes());
668       }
669       getUnknownFields().writeTo(output);
670     }
671
672     private int memoizedSerializedSize = -1;
673     public int getSerializedSize() {
674       int size = memoizedSerializedSize;
675       if (size != -1) return size;
676
677       size = 0;
678       if (((bitField0_ & 0x00000001) == 0x00000001)) {
679         size += com.google.protobuf.CodedOutputStream
680           .computeBytesSize(1, getPrimaryPathBytes());
681       }
682       size += getUnknownFields().getSerializedSize();
683       memoizedSerializedSize = size;
684       return size;
685     }
686
687     private static final long serialVersionUID = 0L;
688     @java.lang.Override
689     protected java.lang.Object writeReplace()
690         throws java.io.ObjectStreamException {
691       return super.writeReplace();
692     }
693
694     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound parseFrom(
695         com.google.protobuf.ByteString data)
696         throws com.google.protobuf.InvalidProtocolBufferException {
697       return PARSER.parseFrom(data);
698     }
699     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound parseFrom(
700         com.google.protobuf.ByteString data,
701         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
702         throws com.google.protobuf.InvalidProtocolBufferException {
703       return PARSER.parseFrom(data, extensionRegistry);
704     }
705     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound parseFrom(byte[] data)
706         throws com.google.protobuf.InvalidProtocolBufferException {
707       return PARSER.parseFrom(data);
708     }
709     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound parseFrom(
710         byte[] data,
711         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
712         throws com.google.protobuf.InvalidProtocolBufferException {
713       return PARSER.parseFrom(data, extensionRegistry);
714     }
715     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound parseFrom(java.io.InputStream input)
716         throws java.io.IOException {
717       return PARSER.parseFrom(input);
718     }
719     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound parseFrom(
720         java.io.InputStream input,
721         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
722         throws java.io.IOException {
723       return PARSER.parseFrom(input, extensionRegistry);
724     }
725     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound parseDelimitedFrom(java.io.InputStream input)
726         throws java.io.IOException {
727       return PARSER.parseDelimitedFrom(input);
728     }
729     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound parseDelimitedFrom(
730         java.io.InputStream input,
731         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
732         throws java.io.IOException {
733       return PARSER.parseDelimitedFrom(input, extensionRegistry);
734     }
735     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound parseFrom(
736         com.google.protobuf.CodedInputStream input)
737         throws java.io.IOException {
738       return PARSER.parseFrom(input);
739     }
740     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound parseFrom(
741         com.google.protobuf.CodedInputStream input,
742         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
743         throws java.io.IOException {
744       return PARSER.parseFrom(input, extensionRegistry);
745     }
746
747     public static Builder newBuilder() { return Builder.create(); }
748     public Builder newBuilderForType() { return newBuilder(); }
749     public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound prototype) {
750       return newBuilder().mergeFrom(prototype);
751     }
752     public Builder toBuilder() { return newBuilder(this); }
753
754     @java.lang.Override
755     protected Builder newBuilderForType(
756         com.google.protobuf.GeneratedMessage.BuilderParent parent) {
757       Builder builder = new Builder(parent);
758       return builder;
759     }
760     /**
761      * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryFound}
762      */
763     public static final class Builder extends
764         com.google.protobuf.GeneratedMessage.Builder<Builder>
765        implements org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFoundOrBuilder {
766       public static final com.google.protobuf.Descriptors.Descriptor
767           getDescriptor() {
768         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
769       }
770
771       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
772           internalGetFieldAccessorTable() {
773         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable
774             .ensureFieldAccessorsInitialized(
775                 org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound.class, org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound.Builder.class);
776       }
777
778       // Construct using org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound.newBuilder()
779       private Builder() {
780         maybeForceBuilderInitialization();
781       }
782
783       private Builder(
784           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
785         super(parent);
786         maybeForceBuilderInitialization();
787       }
788       private void maybeForceBuilderInitialization() {
789         if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
790         }
791       }
792       private static Builder create() {
793         return new Builder();
794       }
795
796       public Builder clear() {
797         super.clear();
798         primaryPath_ = "";
799         bitField0_ = (bitField0_ & ~0x00000001);
800         return this;
801       }
802
803       public Builder clone() {
804         return create().mergeFrom(buildPartial());
805       }
806
807       public com.google.protobuf.Descriptors.Descriptor
808           getDescriptorForType() {
809         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
810       }
811
812       public org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound getDefaultInstanceForType() {
813         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound.getDefaultInstance();
814       }
815
816       public org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound build() {
817         org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound result = buildPartial();
818         if (!result.isInitialized()) {
819           throw newUninitializedMessageException(result);
820         }
821         return result;
822       }
823
824       public org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound buildPartial() {
825         org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound result = new org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound(this);
826         int from_bitField0_ = bitField0_;
827         int to_bitField0_ = 0;
828         if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
829           to_bitField0_ |= 0x00000001;
830         }
831         result.primaryPath_ = primaryPath_;
832         result.bitField0_ = to_bitField0_;
833         onBuilt();
834         return result;
835       }
836
837       public Builder mergeFrom(com.google.protobuf.Message other) {
838         if (other instanceof org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound) {
839           return mergeFrom((org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound)other);
840         } else {
841           super.mergeFrom(other);
842           return this;
843         }
844       }
845
846       public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound other) {
847         if (other == org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound.getDefaultInstance()) return this;
848         if (other.hasPrimaryPath()) {
849           bitField0_ |= 0x00000001;
850           primaryPath_ = other.primaryPath_;
851           onChanged();
852         }
853         this.mergeUnknownFields(other.getUnknownFields());
854         return this;
855       }
856
857       public final boolean isInitialized() {
858         if (!hasPrimaryPath()) {
859
860           return false;
861         }
862         return true;
863       }
864
865       public Builder mergeFrom(
866           com.google.protobuf.CodedInputStream input,
867           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
868           throws java.io.IOException {
869         org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound parsedMessage = null;
870         try {
871           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
872         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
873           parsedMessage = (org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryFound) e.getUnfinishedMessage();
874           throw e;
875         } finally {
876           if (parsedMessage != null) {
877             mergeFrom(parsedMessage);
878           }
879         }
880         return this;
881       }
882       private int bitField0_;
883
884       // required string primaryPath = 1;
885       private java.lang.Object primaryPath_ = "";
886       /**
887        * <code>required string primaryPath = 1;</code>
888        */
889       public boolean hasPrimaryPath() {
890         return ((bitField0_ & 0x00000001) == 0x00000001);
891       }
892       /**
893        * <code>required string primaryPath = 1;</code>
894        */
895       public java.lang.String getPrimaryPath() {
896         java.lang.Object ref = primaryPath_;
897         if (!(ref instanceof java.lang.String)) {
898           java.lang.String s = ((com.google.protobuf.ByteString) ref)
899               .toStringUtf8();
900           primaryPath_ = s;
901           return s;
902         } else {
903           return (java.lang.String) ref;
904         }
905       }
906       /**
907        * <code>required string primaryPath = 1;</code>
908        */
909       public com.google.protobuf.ByteString
910           getPrimaryPathBytes() {
911         java.lang.Object ref = primaryPath_;
912         if (ref instanceof String) {
913           com.google.protobuf.ByteString b =
914               com.google.protobuf.ByteString.copyFromUtf8(
915                   (java.lang.String) ref);
916           primaryPath_ = b;
917           return b;
918         } else {
919           return (com.google.protobuf.ByteString) ref;
920         }
921       }
922       /**
923        * <code>required string primaryPath = 1;</code>
924        */
925       public Builder setPrimaryPath(
926           java.lang.String value) {
927         if (value == null) {
928     throw new NullPointerException();
929   }
930   bitField0_ |= 0x00000001;
931         primaryPath_ = value;
932         onChanged();
933         return this;
934       }
935       /**
936        * <code>required string primaryPath = 1;</code>
937        */
938       public Builder clearPrimaryPath() {
939         bitField0_ = (bitField0_ & ~0x00000001);
940         primaryPath_ = getDefaultInstance().getPrimaryPath();
941         onChanged();
942         return this;
943       }
944       /**
945        * <code>required string primaryPath = 1;</code>
946        */
947       public Builder setPrimaryPathBytes(
948           com.google.protobuf.ByteString value) {
949         if (value == null) {
950     throw new NullPointerException();
951   }
952   bitField0_ |= 0x00000001;
953         primaryPath_ = value;
954         onChanged();
955         return this;
956       }
957
958       // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.PrimaryFound)
959     }
960
961     static {
962       defaultInstance = new PrimaryFound(true);
963       defaultInstance.initFields();
964     }
965
966     // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.PrimaryFound)
967   }
968
969   public interface PrimaryNotFoundOrBuilder
970       extends com.google.protobuf.MessageOrBuilder {
971
972     // required string shardName = 1;
973     /**
974      * <code>required string shardName = 1;</code>
975      */
976     boolean hasShardName();
977     /**
978      * <code>required string shardName = 1;</code>
979      */
980     java.lang.String getShardName();
981     /**
982      * <code>required string shardName = 1;</code>
983      */
984     com.google.protobuf.ByteString
985         getShardNameBytes();
986   }
987   /**
988    * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryNotFound}
989    */
990   public static final class PrimaryNotFound extends
991       com.google.protobuf.GeneratedMessage
992       implements PrimaryNotFoundOrBuilder {
993     // Use PrimaryNotFound.newBuilder() to construct.
994     private PrimaryNotFound(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
995       super(builder);
996       this.unknownFields = builder.getUnknownFields();
997     }
998     private PrimaryNotFound(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
999
1000     private static final PrimaryNotFound defaultInstance;
1001     public static PrimaryNotFound getDefaultInstance() {
1002       return defaultInstance;
1003     }
1004
1005     public PrimaryNotFound getDefaultInstanceForType() {
1006       return defaultInstance;
1007     }
1008
1009     private final com.google.protobuf.UnknownFieldSet unknownFields;
1010     @java.lang.Override
1011     public final com.google.protobuf.UnknownFieldSet
1012         getUnknownFields() {
1013       return this.unknownFields;
1014     }
1015     private PrimaryNotFound(
1016         com.google.protobuf.CodedInputStream input,
1017         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1018         throws com.google.protobuf.InvalidProtocolBufferException {
1019       initFields();
1020       int mutable_bitField0_ = 0;
1021       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1022           com.google.protobuf.UnknownFieldSet.newBuilder();
1023       try {
1024         boolean done = false;
1025         while (!done) {
1026           int tag = input.readTag();
1027           switch (tag) {
1028             case 0:
1029               done = true;
1030               break;
1031             default: {
1032               if (!parseUnknownField(input, unknownFields,
1033                                      extensionRegistry, tag)) {
1034                 done = true;
1035               }
1036               break;
1037             }
1038             case 10: {
1039               bitField0_ |= 0x00000001;
1040               shardName_ = input.readBytes();
1041               break;
1042             }
1043           }
1044         }
1045       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1046         throw e.setUnfinishedMessage(this);
1047       } catch (java.io.IOException e) {
1048         throw new com.google.protobuf.InvalidProtocolBufferException(
1049             e.getMessage()).setUnfinishedMessage(this);
1050       } finally {
1051         this.unknownFields = unknownFields.build();
1052         makeExtensionsImmutable();
1053       }
1054     }
1055     public static final com.google.protobuf.Descriptors.Descriptor
1056         getDescriptor() {
1057       return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
1058     }
1059
1060     protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1061         internalGetFieldAccessorTable() {
1062       return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable
1063           .ensureFieldAccessorsInitialized(
1064               org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound.class, org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound.Builder.class);
1065     }
1066
1067     public static com.google.protobuf.Parser<PrimaryNotFound> PARSER =
1068         new com.google.protobuf.AbstractParser<PrimaryNotFound>() {
1069       public PrimaryNotFound parsePartialFrom(
1070           com.google.protobuf.CodedInputStream input,
1071           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1072           throws com.google.protobuf.InvalidProtocolBufferException {
1073         return new PrimaryNotFound(input, extensionRegistry);
1074       }
1075     };
1076
1077     @java.lang.Override
1078     public com.google.protobuf.Parser<PrimaryNotFound> getParserForType() {
1079       return PARSER;
1080     }
1081
1082     private int bitField0_;
1083     // required string shardName = 1;
1084     public static final int SHARDNAME_FIELD_NUMBER = 1;
1085     private java.lang.Object shardName_;
1086     /**
1087      * <code>required string shardName = 1;</code>
1088      */
1089     public boolean hasShardName() {
1090       return ((bitField0_ & 0x00000001) == 0x00000001);
1091     }
1092     /**
1093      * <code>required string shardName = 1;</code>
1094      */
1095     public java.lang.String getShardName() {
1096       java.lang.Object ref = shardName_;
1097       if (ref instanceof java.lang.String) {
1098         return (java.lang.String) ref;
1099       } else {
1100         com.google.protobuf.ByteString bs =
1101             (com.google.protobuf.ByteString) ref;
1102         java.lang.String s = bs.toStringUtf8();
1103         if (bs.isValidUtf8()) {
1104           shardName_ = s;
1105         }
1106         return s;
1107       }
1108     }
1109     /**
1110      * <code>required string shardName = 1;</code>
1111      */
1112     public com.google.protobuf.ByteString
1113         getShardNameBytes() {
1114       java.lang.Object ref = shardName_;
1115       if (ref instanceof java.lang.String) {
1116         com.google.protobuf.ByteString b =
1117             com.google.protobuf.ByteString.copyFromUtf8(
1118                 (java.lang.String) ref);
1119         shardName_ = b;
1120         return b;
1121       } else {
1122         return (com.google.protobuf.ByteString) ref;
1123       }
1124     }
1125
1126     private void initFields() {
1127       shardName_ = "";
1128     }
1129     private byte memoizedIsInitialized = -1;
1130     public final boolean isInitialized() {
1131       byte isInitialized = memoizedIsInitialized;
1132       if (isInitialized != -1) return isInitialized == 1;
1133
1134       if (!hasShardName()) {
1135         memoizedIsInitialized = 0;
1136         return false;
1137       }
1138       memoizedIsInitialized = 1;
1139       return true;
1140     }
1141
1142     public void writeTo(com.google.protobuf.CodedOutputStream output)
1143                         throws java.io.IOException {
1144       getSerializedSize();
1145       if (((bitField0_ & 0x00000001) == 0x00000001)) {
1146         output.writeBytes(1, getShardNameBytes());
1147       }
1148       getUnknownFields().writeTo(output);
1149     }
1150
1151     private int memoizedSerializedSize = -1;
1152     public int getSerializedSize() {
1153       int size = memoizedSerializedSize;
1154       if (size != -1) return size;
1155
1156       size = 0;
1157       if (((bitField0_ & 0x00000001) == 0x00000001)) {
1158         size += com.google.protobuf.CodedOutputStream
1159           .computeBytesSize(1, getShardNameBytes());
1160       }
1161       size += getUnknownFields().getSerializedSize();
1162       memoizedSerializedSize = size;
1163       return size;
1164     }
1165
1166     private static final long serialVersionUID = 0L;
1167     @java.lang.Override
1168     protected java.lang.Object writeReplace()
1169         throws java.io.ObjectStreamException {
1170       return super.writeReplace();
1171     }
1172
1173     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1174         com.google.protobuf.ByteString data)
1175         throws com.google.protobuf.InvalidProtocolBufferException {
1176       return PARSER.parseFrom(data);
1177     }
1178     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1179         com.google.protobuf.ByteString data,
1180         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1181         throws com.google.protobuf.InvalidProtocolBufferException {
1182       return PARSER.parseFrom(data, extensionRegistry);
1183     }
1184     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound parseFrom(byte[] data)
1185         throws com.google.protobuf.InvalidProtocolBufferException {
1186       return PARSER.parseFrom(data);
1187     }
1188     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1189         byte[] data,
1190         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1191         throws com.google.protobuf.InvalidProtocolBufferException {
1192       return PARSER.parseFrom(data, extensionRegistry);
1193     }
1194     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound parseFrom(java.io.InputStream input)
1195         throws java.io.IOException {
1196       return PARSER.parseFrom(input);
1197     }
1198     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1199         java.io.InputStream input,
1200         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1201         throws java.io.IOException {
1202       return PARSER.parseFrom(input, extensionRegistry);
1203     }
1204     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound parseDelimitedFrom(java.io.InputStream input)
1205         throws java.io.IOException {
1206       return PARSER.parseDelimitedFrom(input);
1207     }
1208     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound parseDelimitedFrom(
1209         java.io.InputStream input,
1210         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1211         throws java.io.IOException {
1212       return PARSER.parseDelimitedFrom(input, extensionRegistry);
1213     }
1214     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1215         com.google.protobuf.CodedInputStream input)
1216         throws java.io.IOException {
1217       return PARSER.parseFrom(input);
1218     }
1219     public static org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1220         com.google.protobuf.CodedInputStream input,
1221         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1222         throws java.io.IOException {
1223       return PARSER.parseFrom(input, extensionRegistry);
1224     }
1225
1226     public static Builder newBuilder() { return Builder.create(); }
1227     public Builder newBuilderForType() { return newBuilder(); }
1228     public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound prototype) {
1229       return newBuilder().mergeFrom(prototype);
1230     }
1231     public Builder toBuilder() { return newBuilder(this); }
1232
1233     @java.lang.Override
1234     protected Builder newBuilderForType(
1235         com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1236       Builder builder = new Builder(parent);
1237       return builder;
1238     }
1239     /**
1240      * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryNotFound}
1241      */
1242     public static final class Builder extends
1243         com.google.protobuf.GeneratedMessage.Builder<Builder>
1244        implements org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFoundOrBuilder {
1245       public static final com.google.protobuf.Descriptors.Descriptor
1246           getDescriptor() {
1247         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
1248       }
1249
1250       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1251           internalGetFieldAccessorTable() {
1252         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable
1253             .ensureFieldAccessorsInitialized(
1254                 org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound.class, org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound.Builder.class);
1255       }
1256
1257       // Construct using org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound.newBuilder()
1258       private Builder() {
1259         maybeForceBuilderInitialization();
1260       }
1261
1262       private Builder(
1263           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1264         super(parent);
1265         maybeForceBuilderInitialization();
1266       }
1267       private void maybeForceBuilderInitialization() {
1268         if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1269         }
1270       }
1271       private static Builder create() {
1272         return new Builder();
1273       }
1274
1275       public Builder clear() {
1276         super.clear();
1277         shardName_ = "";
1278         bitField0_ = (bitField0_ & ~0x00000001);
1279         return this;
1280       }
1281
1282       public Builder clone() {
1283         return create().mergeFrom(buildPartial());
1284       }
1285
1286       public com.google.protobuf.Descriptors.Descriptor
1287           getDescriptorForType() {
1288         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
1289       }
1290
1291       public org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound getDefaultInstanceForType() {
1292         return org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound.getDefaultInstance();
1293       }
1294
1295       public org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound build() {
1296         org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound result = buildPartial();
1297         if (!result.isInitialized()) {
1298           throw newUninitializedMessageException(result);
1299         }
1300         return result;
1301       }
1302
1303       public org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound buildPartial() {
1304         org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound result = new org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound(this);
1305         int from_bitField0_ = bitField0_;
1306         int to_bitField0_ = 0;
1307         if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1308           to_bitField0_ |= 0x00000001;
1309         }
1310         result.shardName_ = shardName_;
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.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound) {
1318           return mergeFrom((org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound)other);
1319         } else {
1320           super.mergeFrom(other);
1321           return this;
1322         }
1323       }
1324
1325       public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound other) {
1326         if (other == org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound.getDefaultInstance()) return this;
1327         if (other.hasShardName()) {
1328           bitField0_ |= 0x00000001;
1329           shardName_ = other.shardName_;
1330           onChanged();
1331         }
1332         this.mergeUnknownFields(other.getUnknownFields());
1333         return this;
1334       }
1335
1336       public final boolean isInitialized() {
1337         if (!hasShardName()) {
1338
1339           return false;
1340         }
1341         return true;
1342       }
1343
1344       public Builder mergeFrom(
1345           com.google.protobuf.CodedInputStream input,
1346           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1347           throws java.io.IOException {
1348         org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound parsedMessage = null;
1349         try {
1350           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1351         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1352           parsedMessage = (org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages.PrimaryNotFound) e.getUnfinishedMessage();
1353           throw e;
1354         } finally {
1355           if (parsedMessage != null) {
1356             mergeFrom(parsedMessage);
1357           }
1358         }
1359         return this;
1360       }
1361       private int bitField0_;
1362
1363       // required string shardName = 1;
1364       private java.lang.Object shardName_ = "";
1365       /**
1366        * <code>required string shardName = 1;</code>
1367        */
1368       public boolean hasShardName() {
1369         return ((bitField0_ & 0x00000001) == 0x00000001);
1370       }
1371       /**
1372        * <code>required string shardName = 1;</code>
1373        */
1374       public java.lang.String getShardName() {
1375         java.lang.Object ref = shardName_;
1376         if (!(ref instanceof java.lang.String)) {
1377           java.lang.String s = ((com.google.protobuf.ByteString) ref)
1378               .toStringUtf8();
1379           shardName_ = s;
1380           return s;
1381         } else {
1382           return (java.lang.String) ref;
1383         }
1384       }
1385       /**
1386        * <code>required string shardName = 1;</code>
1387        */
1388       public com.google.protobuf.ByteString
1389           getShardNameBytes() {
1390         java.lang.Object ref = shardName_;
1391         if (ref instanceof String) {
1392           com.google.protobuf.ByteString b =
1393               com.google.protobuf.ByteString.copyFromUtf8(
1394                   (java.lang.String) ref);
1395           shardName_ = b;
1396           return b;
1397         } else {
1398           return (com.google.protobuf.ByteString) ref;
1399         }
1400       }
1401       /**
1402        * <code>required string shardName = 1;</code>
1403        */
1404       public Builder setShardName(
1405           java.lang.String value) {
1406         if (value == null) {
1407     throw new NullPointerException();
1408   }
1409   bitField0_ |= 0x00000001;
1410         shardName_ = value;
1411         onChanged();
1412         return this;
1413       }
1414       /**
1415        * <code>required string shardName = 1;</code>
1416        */
1417       public Builder clearShardName() {
1418         bitField0_ = (bitField0_ & ~0x00000001);
1419         shardName_ = getDefaultInstance().getShardName();
1420         onChanged();
1421         return this;
1422       }
1423       /**
1424        * <code>required string shardName = 1;</code>
1425        */
1426       public Builder setShardNameBytes(
1427           com.google.protobuf.ByteString value) {
1428         if (value == null) {
1429     throw new NullPointerException();
1430   }
1431   bitField0_ |= 0x00000001;
1432         shardName_ = value;
1433         onChanged();
1434         return this;
1435       }
1436
1437       // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.PrimaryNotFound)
1438     }
1439
1440     static {
1441       defaultInstance = new PrimaryNotFound(true);
1442       defaultInstance.initFields();
1443     }
1444
1445     // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.PrimaryNotFound)
1446   }
1447
1448   private static com.google.protobuf.Descriptors.Descriptor
1449     internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
1450   private static
1451     com.google.protobuf.GeneratedMessage.FieldAccessorTable
1452       internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable;
1453   private static com.google.protobuf.Descriptors.Descriptor
1454     internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
1455   private static
1456     com.google.protobuf.GeneratedMessage.FieldAccessorTable
1457       internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable;
1458   private static com.google.protobuf.Descriptors.Descriptor
1459     internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
1460   private static
1461     com.google.protobuf.GeneratedMessage.FieldAccessorTable
1462       internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable;
1463
1464   public static com.google.protobuf.Descriptors.FileDescriptor
1465       getDescriptor() {
1466     return descriptor;
1467   }
1468   private static com.google.protobuf.Descriptors.FileDescriptor
1469       descriptor;
1470   static {
1471     java.lang.String[] descriptorData = {
1472       "\n\022ShardManager.proto\022!org.opendaylight.c" +
1473       "ontroller.mdsal\" \n\013FindPrimary\022\021\n\tshardN" +
1474       "ame\030\001 \002(\t\"#\n\014PrimaryFound\022\023\n\013primaryPath" +
1475       "\030\001 \002(\t\"$\n\017PrimaryNotFound\022\021\n\tshardName\030\001" +
1476       " \002(\tBL\n4org.opendaylight.controller.prot" +
1477       "obuff.messages.shardB\024ShardManagerMessag" +
1478       "es"
1479     };
1480     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1481       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1482         public com.google.protobuf.ExtensionRegistry assignDescriptors(
1483             com.google.protobuf.Descriptors.FileDescriptor root) {
1484           descriptor = root;
1485           internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor =
1486             getDescriptor().getMessageTypes().get(0);
1487           internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable = new
1488             com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1489               internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor,
1490               new java.lang.String[] { "ShardName", });
1491           internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor =
1492             getDescriptor().getMessageTypes().get(1);
1493           internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable = new
1494             com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1495               internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor,
1496               new java.lang.String[] { "PrimaryPath", });
1497           internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor =
1498             getDescriptor().getMessageTypes().get(2);
1499           internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable = new
1500             com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1501               internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor,
1502               new java.lang.String[] { "ShardName", });
1503           return null;
1504         }
1505       };
1506     com.google.protobuf.Descriptors.FileDescriptor
1507       .internalBuildGeneratedFileFrom(descriptorData,
1508         new com.google.protobuf.Descriptors.FileDescriptor[] {
1509         }, assigner);
1510   }
1511
1512   // @@protoc_insertion_point(outer_class_scope)
1513 }