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