1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ShardManager.proto
4 package org.opendaylight.controller.cluster.datastore.shard;
6 public final class ShardManagerMessages {
7 private ShardManagerMessages() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
11 public interface FindPrimaryOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
14 // required string shardName = 1;
16 * <code>required string shardName = 1;</code>
18 boolean hasShardName();
20 * <code>required string shardName = 1;</code>
22 java.lang.String getShardName();
24 * <code>required string shardName = 1;</code>
26 com.google.protobuf.ByteString
30 * Protobuf type {@code org.opendaylight.controller.mdsal.FindPrimary}
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) {
38 this.unknownFields = builder.getUnknownFields();
40 private FindPrimary(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
42 private static final FindPrimary defaultInstance;
43 public static FindPrimary getDefaultInstance() {
44 return defaultInstance;
47 public FindPrimary getDefaultInstanceForType() {
48 return defaultInstance;
51 private final com.google.protobuf.UnknownFieldSet unknownFields;
53 public final com.google.protobuf.UnknownFieldSet
55 return this.unknownFields;
58 com.google.protobuf.CodedInputStream input,
59 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
60 throws com.google.protobuf.InvalidProtocolBufferException {
62 int mutable_bitField0_ = 0;
63 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
64 com.google.protobuf.UnknownFieldSet.newBuilder();
68 int tag = input.readTag();
74 if (!parseUnknownField(input, unknownFields,
75 extensionRegistry, tag)) {
81 bitField0_ |= 0x00000001;
82 shardName_ = input.readBytes();
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);
93 this.unknownFields = unknownFields.build();
94 makeExtensionsImmutable();
97 public static final com.google.protobuf.Descriptors.Descriptor
99 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
102 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
103 internalGetFieldAccessorTable() {
104 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable
105 .ensureFieldAccessorsInitialized(
106 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.class, org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.Builder.class);
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);
120 public com.google.protobuf.Parser<FindPrimary> getParserForType() {
124 private int bitField0_;
125 // required string shardName = 1;
126 public static final int SHARDNAME_FIELD_NUMBER = 1;
127 private java.lang.Object shardName_;
129 * <code>required string shardName = 1;</code>
131 public boolean hasShardName() {
132 return ((bitField0_ & 0x00000001) == 0x00000001);
135 * <code>required string shardName = 1;</code>
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;
142 com.google.protobuf.ByteString bs =
143 (com.google.protobuf.ByteString) ref;
144 java.lang.String s = bs.toStringUtf8();
145 if (bs.isValidUtf8()) {
152 * <code>required string shardName = 1;</code>
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);
164 return (com.google.protobuf.ByteString) ref;
168 private void initFields() {
171 private byte memoizedIsInitialized = -1;
172 public final boolean isInitialized() {
173 byte isInitialized = memoizedIsInitialized;
174 if (isInitialized != -1) return isInitialized == 1;
176 if (!hasShardName()) {
177 memoizedIsInitialized = 0;
180 memoizedIsInitialized = 1;
184 public void writeTo(com.google.protobuf.CodedOutputStream output)
185 throws java.io.IOException {
187 if (((bitField0_ & 0x00000001) == 0x00000001)) {
188 output.writeBytes(1, getShardNameBytes());
190 getUnknownFields().writeTo(output);
193 private int memoizedSerializedSize = -1;
194 public int getSerializedSize() {
195 int size = memoizedSerializedSize;
196 if (size != -1) return size;
199 if (((bitField0_ & 0x00000001) == 0x00000001)) {
200 size += com.google.protobuf.CodedOutputStream
201 .computeBytesSize(1, getShardNameBytes());
203 size += getUnknownFields().getSerializedSize();
204 memoizedSerializedSize = size;
208 private static final long serialVersionUID = 0L;
210 protected java.lang.Object writeReplace()
211 throws java.io.ObjectStreamException {
212 return super.writeReplace();
215 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(
216 com.google.protobuf.ByteString data)
217 throws com.google.protobuf.InvalidProtocolBufferException {
218 return PARSER.parseFrom(data);
220 public static org.opendaylight.controller.cluster.datastore.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);
226 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(byte[] data)
227 throws com.google.protobuf.InvalidProtocolBufferException {
228 return PARSER.parseFrom(data);
230 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(
232 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
233 throws com.google.protobuf.InvalidProtocolBufferException {
234 return PARSER.parseFrom(data, extensionRegistry);
236 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(java.io.InputStream input)
237 throws java.io.IOException {
238 return PARSER.parseFrom(input);
240 public static org.opendaylight.controller.cluster.datastore.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);
246 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseDelimitedFrom(java.io.InputStream input)
247 throws java.io.IOException {
248 return PARSER.parseDelimitedFrom(input);
250 public static org.opendaylight.controller.cluster.datastore.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);
256 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(
257 com.google.protobuf.CodedInputStream input)
258 throws java.io.IOException {
259 return PARSER.parseFrom(input);
261 public static org.opendaylight.controller.cluster.datastore.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);
268 public static Builder newBuilder() { return Builder.create(); }
269 public Builder newBuilderForType() { return newBuilder(); }
270 public static Builder newBuilder(org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary prototype) {
271 return newBuilder().mergeFrom(prototype);
273 public Builder toBuilder() { return newBuilder(this); }
276 protected Builder newBuilderForType(
277 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
278 Builder builder = new Builder(parent);
282 * Protobuf type {@code org.opendaylight.controller.mdsal.FindPrimary}
284 public static final class Builder extends
285 com.google.protobuf.GeneratedMessage.Builder<Builder>
286 implements org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimaryOrBuilder {
287 public static final com.google.protobuf.Descriptors.Descriptor
289 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
292 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
293 internalGetFieldAccessorTable() {
294 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable
295 .ensureFieldAccessorsInitialized(
296 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.class, org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.Builder.class);
299 // Construct using org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.newBuilder()
301 maybeForceBuilderInitialization();
305 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
307 maybeForceBuilderInitialization();
309 private void maybeForceBuilderInitialization() {
310 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
313 private static Builder create() {
314 return new Builder();
317 public Builder clear() {
320 bitField0_ = (bitField0_ & ~0x00000001);
324 public Builder clone() {
325 return create().mergeFrom(buildPartial());
328 public com.google.protobuf.Descriptors.Descriptor
329 getDescriptorForType() {
330 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
333 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary getDefaultInstanceForType() {
334 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.getDefaultInstance();
337 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary build() {
338 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary result = buildPartial();
339 if (!result.isInitialized()) {
340 throw newUninitializedMessageException(result);
345 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary buildPartial() {
346 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary result = new org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary(this);
347 int from_bitField0_ = bitField0_;
348 int to_bitField0_ = 0;
349 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
350 to_bitField0_ |= 0x00000001;
352 result.shardName_ = shardName_;
353 result.bitField0_ = to_bitField0_;
358 public Builder mergeFrom(com.google.protobuf.Message other) {
359 if (other instanceof org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary) {
360 return mergeFrom((org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary)other);
362 super.mergeFrom(other);
367 public Builder mergeFrom(org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary other) {
368 if (other == org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.getDefaultInstance()) return this;
369 if (other.hasShardName()) {
370 bitField0_ |= 0x00000001;
371 shardName_ = other.shardName_;
374 this.mergeUnknownFields(other.getUnknownFields());
378 public final boolean isInitialized() {
379 if (!hasShardName()) {
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.cluster.datastore.shard.ShardManagerMessages.FindPrimary parsedMessage = null;
392 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
393 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
394 parsedMessage = (org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary) e.getUnfinishedMessage();
397 if (parsedMessage != null) {
398 mergeFrom(parsedMessage);
403 private int bitField0_;
405 // required string shardName = 1;
406 private java.lang.Object shardName_ = "";
408 * <code>required string shardName = 1;</code>
410 public boolean hasShardName() {
411 return ((bitField0_ & 0x00000001) == 0x00000001);
414 * <code>required string shardName = 1;</code>
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)
424 return (java.lang.String) ref;
428 * <code>required string shardName = 1;</code>
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);
440 return (com.google.protobuf.ByteString) ref;
444 * <code>required string shardName = 1;</code>
446 public Builder setShardName(
447 java.lang.String value) {
449 throw new NullPointerException();
451 bitField0_ |= 0x00000001;
457 * <code>required string shardName = 1;</code>
459 public Builder clearShardName() {
460 bitField0_ = (bitField0_ & ~0x00000001);
461 shardName_ = getDefaultInstance().getShardName();
466 * <code>required string shardName = 1;</code>
468 public Builder setShardNameBytes(
469 com.google.protobuf.ByteString value) {
471 throw new NullPointerException();
473 bitField0_ |= 0x00000001;
479 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.FindPrimary)
483 defaultInstance = new FindPrimary(true);
484 defaultInstance.initFields();
487 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.FindPrimary)
490 public interface PrimaryFoundOrBuilder
491 extends com.google.protobuf.MessageOrBuilder {
494 * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryFound}
496 public static final class PrimaryFound extends
497 com.google.protobuf.GeneratedMessage
498 implements PrimaryFoundOrBuilder {
499 // Use PrimaryFound.newBuilder() to construct.
500 private PrimaryFound(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
502 this.unknownFields = builder.getUnknownFields();
504 private PrimaryFound(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
506 private static final PrimaryFound defaultInstance;
507 public static PrimaryFound getDefaultInstance() {
508 return defaultInstance;
511 public PrimaryFound getDefaultInstanceForType() {
512 return defaultInstance;
515 private final com.google.protobuf.UnknownFieldSet unknownFields;
517 public final com.google.protobuf.UnknownFieldSet
519 return this.unknownFields;
521 private PrimaryFound(
522 com.google.protobuf.CodedInputStream input,
523 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
524 throws com.google.protobuf.InvalidProtocolBufferException {
526 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
527 com.google.protobuf.UnknownFieldSet.newBuilder();
529 boolean done = false;
531 int tag = input.readTag();
537 if (!parseUnknownField(input, unknownFields,
538 extensionRegistry, tag)) {
545 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
546 throw e.setUnfinishedMessage(this);
547 } catch (java.io.IOException e) {
548 throw new com.google.protobuf.InvalidProtocolBufferException(
549 e.getMessage()).setUnfinishedMessage(this);
551 this.unknownFields = unknownFields.build();
552 makeExtensionsImmutable();
555 public static final com.google.protobuf.Descriptors.Descriptor
557 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
560 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
561 internalGetFieldAccessorTable() {
562 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable
563 .ensureFieldAccessorsInitialized(
564 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.class, org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.Builder.class);
567 public static com.google.protobuf.Parser<PrimaryFound> PARSER =
568 new com.google.protobuf.AbstractParser<PrimaryFound>() {
569 public PrimaryFound parsePartialFrom(
570 com.google.protobuf.CodedInputStream input,
571 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
572 throws com.google.protobuf.InvalidProtocolBufferException {
573 return new PrimaryFound(input, extensionRegistry);
578 public com.google.protobuf.Parser<PrimaryFound> getParserForType() {
582 private void initFields() {
584 private byte memoizedIsInitialized = -1;
585 public final boolean isInitialized() {
586 byte isInitialized = memoizedIsInitialized;
587 if (isInitialized != -1) return isInitialized == 1;
589 memoizedIsInitialized = 1;
593 public void writeTo(com.google.protobuf.CodedOutputStream output)
594 throws java.io.IOException {
596 getUnknownFields().writeTo(output);
599 private int memoizedSerializedSize = -1;
600 public int getSerializedSize() {
601 int size = memoizedSerializedSize;
602 if (size != -1) return size;
605 size += getUnknownFields().getSerializedSize();
606 memoizedSerializedSize = size;
610 private static final long serialVersionUID = 0L;
612 protected java.lang.Object writeReplace()
613 throws java.io.ObjectStreamException {
614 return super.writeReplace();
617 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
618 com.google.protobuf.ByteString data)
619 throws com.google.protobuf.InvalidProtocolBufferException {
620 return PARSER.parseFrom(data);
622 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
623 com.google.protobuf.ByteString data,
624 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
625 throws com.google.protobuf.InvalidProtocolBufferException {
626 return PARSER.parseFrom(data, extensionRegistry);
628 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(byte[] data)
629 throws com.google.protobuf.InvalidProtocolBufferException {
630 return PARSER.parseFrom(data);
632 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
634 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
635 throws com.google.protobuf.InvalidProtocolBufferException {
636 return PARSER.parseFrom(data, extensionRegistry);
638 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(java.io.InputStream input)
639 throws java.io.IOException {
640 return PARSER.parseFrom(input);
642 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
643 java.io.InputStream input,
644 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
645 throws java.io.IOException {
646 return PARSER.parseFrom(input, extensionRegistry);
648 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseDelimitedFrom(java.io.InputStream input)
649 throws java.io.IOException {
650 return PARSER.parseDelimitedFrom(input);
652 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseDelimitedFrom(
653 java.io.InputStream input,
654 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
655 throws java.io.IOException {
656 return PARSER.parseDelimitedFrom(input, extensionRegistry);
658 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
659 com.google.protobuf.CodedInputStream input)
660 throws java.io.IOException {
661 return PARSER.parseFrom(input);
663 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
664 com.google.protobuf.CodedInputStream input,
665 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
666 throws java.io.IOException {
667 return PARSER.parseFrom(input, extensionRegistry);
670 public static Builder newBuilder() { return Builder.create(); }
671 public Builder newBuilderForType() { return newBuilder(); }
672 public static Builder newBuilder(org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound prototype) {
673 return newBuilder().mergeFrom(prototype);
675 public Builder toBuilder() { return newBuilder(this); }
678 protected Builder newBuilderForType(
679 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
680 Builder builder = new Builder(parent);
684 * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryFound}
686 public static final class Builder extends
687 com.google.protobuf.GeneratedMessage.Builder<Builder>
688 implements org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFoundOrBuilder {
689 public static final com.google.protobuf.Descriptors.Descriptor
691 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
694 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
695 internalGetFieldAccessorTable() {
696 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable
697 .ensureFieldAccessorsInitialized(
698 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.class, org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.Builder.class);
701 // Construct using org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.newBuilder()
703 maybeForceBuilderInitialization();
707 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
709 maybeForceBuilderInitialization();
711 private void maybeForceBuilderInitialization() {
712 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
715 private static Builder create() {
716 return new Builder();
719 public Builder clear() {
724 public Builder clone() {
725 return create().mergeFrom(buildPartial());
728 public com.google.protobuf.Descriptors.Descriptor
729 getDescriptorForType() {
730 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
733 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound getDefaultInstanceForType() {
734 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.getDefaultInstance();
737 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound build() {
738 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound result = buildPartial();
739 if (!result.isInitialized()) {
740 throw newUninitializedMessageException(result);
745 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound buildPartial() {
746 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound result = new org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound(this);
751 public Builder mergeFrom(com.google.protobuf.Message other) {
752 if (other instanceof org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound) {
753 return mergeFrom((org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound)other);
755 super.mergeFrom(other);
760 public Builder mergeFrom(org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound other) {
761 if (other == org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.getDefaultInstance()) return this;
762 this.mergeUnknownFields(other.getUnknownFields());
766 public final boolean isInitialized() {
770 public Builder mergeFrom(
771 com.google.protobuf.CodedInputStream input,
772 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
773 throws java.io.IOException {
774 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parsedMessage = null;
776 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
777 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
778 parsedMessage = (org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound) e.getUnfinishedMessage();
781 if (parsedMessage != null) {
782 mergeFrom(parsedMessage);
788 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.PrimaryFound)
792 defaultInstance = new PrimaryFound(true);
793 defaultInstance.initFields();
796 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.PrimaryFound)
799 public interface PrimaryNotFoundOrBuilder
800 extends com.google.protobuf.MessageOrBuilder {
803 * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryNotFound}
805 public static final class PrimaryNotFound extends
806 com.google.protobuf.GeneratedMessage
807 implements PrimaryNotFoundOrBuilder {
808 // Use PrimaryNotFound.newBuilder() to construct.
809 private PrimaryNotFound(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
811 this.unknownFields = builder.getUnknownFields();
813 private PrimaryNotFound(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
815 private static final PrimaryNotFound defaultInstance;
816 public static PrimaryNotFound getDefaultInstance() {
817 return defaultInstance;
820 public PrimaryNotFound getDefaultInstanceForType() {
821 return defaultInstance;
824 private final com.google.protobuf.UnknownFieldSet unknownFields;
826 public final com.google.protobuf.UnknownFieldSet
828 return this.unknownFields;
830 private PrimaryNotFound(
831 com.google.protobuf.CodedInputStream input,
832 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
833 throws com.google.protobuf.InvalidProtocolBufferException {
835 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
836 com.google.protobuf.UnknownFieldSet.newBuilder();
838 boolean done = false;
840 int tag = input.readTag();
846 if (!parseUnknownField(input, unknownFields,
847 extensionRegistry, tag)) {
854 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
855 throw e.setUnfinishedMessage(this);
856 } catch (java.io.IOException e) {
857 throw new com.google.protobuf.InvalidProtocolBufferException(
858 e.getMessage()).setUnfinishedMessage(this);
860 this.unknownFields = unknownFields.build();
861 makeExtensionsImmutable();
864 public static final com.google.protobuf.Descriptors.Descriptor
866 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
869 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
870 internalGetFieldAccessorTable() {
871 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable
872 .ensureFieldAccessorsInitialized(
873 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.class, org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.Builder.class);
876 public static com.google.protobuf.Parser<PrimaryNotFound> PARSER =
877 new com.google.protobuf.AbstractParser<PrimaryNotFound>() {
878 public PrimaryNotFound parsePartialFrom(
879 com.google.protobuf.CodedInputStream input,
880 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
881 throws com.google.protobuf.InvalidProtocolBufferException {
882 return new PrimaryNotFound(input, extensionRegistry);
887 public com.google.protobuf.Parser<PrimaryNotFound> getParserForType() {
891 private void initFields() {
893 private byte memoizedIsInitialized = -1;
894 public final boolean isInitialized() {
895 byte isInitialized = memoizedIsInitialized;
896 if (isInitialized != -1) return isInitialized == 1;
898 memoizedIsInitialized = 1;
902 public void writeTo(com.google.protobuf.CodedOutputStream output)
903 throws java.io.IOException {
905 getUnknownFields().writeTo(output);
908 private int memoizedSerializedSize = -1;
909 public int getSerializedSize() {
910 int size = memoizedSerializedSize;
911 if (size != -1) return size;
914 size += getUnknownFields().getSerializedSize();
915 memoizedSerializedSize = size;
919 private static final long serialVersionUID = 0L;
921 protected java.lang.Object writeReplace()
922 throws java.io.ObjectStreamException {
923 return super.writeReplace();
926 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
927 com.google.protobuf.ByteString data)
928 throws com.google.protobuf.InvalidProtocolBufferException {
929 return PARSER.parseFrom(data);
931 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
932 com.google.protobuf.ByteString data,
933 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
934 throws com.google.protobuf.InvalidProtocolBufferException {
935 return PARSER.parseFrom(data, extensionRegistry);
937 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(byte[] data)
938 throws com.google.protobuf.InvalidProtocolBufferException {
939 return PARSER.parseFrom(data);
941 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
943 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
944 throws com.google.protobuf.InvalidProtocolBufferException {
945 return PARSER.parseFrom(data, extensionRegistry);
947 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(java.io.InputStream input)
948 throws java.io.IOException {
949 return PARSER.parseFrom(input);
951 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
952 java.io.InputStream input,
953 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
954 throws java.io.IOException {
955 return PARSER.parseFrom(input, extensionRegistry);
957 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseDelimitedFrom(java.io.InputStream input)
958 throws java.io.IOException {
959 return PARSER.parseDelimitedFrom(input);
961 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseDelimitedFrom(
962 java.io.InputStream input,
963 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
964 throws java.io.IOException {
965 return PARSER.parseDelimitedFrom(input, extensionRegistry);
967 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
968 com.google.protobuf.CodedInputStream input)
969 throws java.io.IOException {
970 return PARSER.parseFrom(input);
972 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
973 com.google.protobuf.CodedInputStream input,
974 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
975 throws java.io.IOException {
976 return PARSER.parseFrom(input, extensionRegistry);
979 public static Builder newBuilder() { return Builder.create(); }
980 public Builder newBuilderForType() { return newBuilder(); }
981 public static Builder newBuilder(org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound prototype) {
982 return newBuilder().mergeFrom(prototype);
984 public Builder toBuilder() { return newBuilder(this); }
987 protected Builder newBuilderForType(
988 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
989 Builder builder = new Builder(parent);
993 * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryNotFound}
995 public static final class Builder extends
996 com.google.protobuf.GeneratedMessage.Builder<Builder>
997 implements org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFoundOrBuilder {
998 public static final com.google.protobuf.Descriptors.Descriptor
1000 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
1003 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1004 internalGetFieldAccessorTable() {
1005 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable
1006 .ensureFieldAccessorsInitialized(
1007 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.class, org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.Builder.class);
1010 // Construct using org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.newBuilder()
1012 maybeForceBuilderInitialization();
1016 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1018 maybeForceBuilderInitialization();
1020 private void maybeForceBuilderInitialization() {
1021 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1024 private static Builder create() {
1025 return new Builder();
1028 public Builder clear() {
1033 public Builder clone() {
1034 return create().mergeFrom(buildPartial());
1037 public com.google.protobuf.Descriptors.Descriptor
1038 getDescriptorForType() {
1039 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
1042 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound getDefaultInstanceForType() {
1043 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.getDefaultInstance();
1046 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound build() {
1047 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound result = buildPartial();
1048 if (!result.isInitialized()) {
1049 throw newUninitializedMessageException(result);
1054 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound buildPartial() {
1055 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound result = new org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound(this);
1060 public Builder mergeFrom(com.google.protobuf.Message other) {
1061 if (other instanceof org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound) {
1062 return mergeFrom((org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound)other);
1064 super.mergeFrom(other);
1069 public Builder mergeFrom(org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound other) {
1070 if (other == org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.getDefaultInstance()) return this;
1071 this.mergeUnknownFields(other.getUnknownFields());
1075 public final boolean isInitialized() {
1079 public Builder mergeFrom(
1080 com.google.protobuf.CodedInputStream input,
1081 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1082 throws java.io.IOException {
1083 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parsedMessage = null;
1085 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1086 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1087 parsedMessage = (org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound) e.getUnfinishedMessage();
1090 if (parsedMessage != null) {
1091 mergeFrom(parsedMessage);
1097 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.PrimaryNotFound)
1101 defaultInstance = new PrimaryNotFound(true);
1102 defaultInstance.initFields();
1105 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.PrimaryNotFound)
1108 private static com.google.protobuf.Descriptors.Descriptor
1109 internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
1111 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1112 internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable;
1113 private static com.google.protobuf.Descriptors.Descriptor
1114 internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
1116 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1117 internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable;
1118 private static com.google.protobuf.Descriptors.Descriptor
1119 internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
1121 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1122 internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable;
1124 public static com.google.protobuf.Descriptors.FileDescriptor
1128 private static com.google.protobuf.Descriptors.FileDescriptor
1131 java.lang.String[] descriptorData = {
1132 "\n\022ShardManager.proto\022!org.opendaylight.c" +
1133 "ontroller.mdsal\" \n\013FindPrimary\022\021\n\tshardN" +
1134 "ame\030\001 \002(\t\"\016\n\014PrimaryFound\"\021\n\017PrimaryNotF" +
1135 "oundBK\n3org.opendaylight.controller.clus" +
1136 "ter.datastore.shardB\024ShardManagerMessage" +
1139 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1140 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1141 public com.google.protobuf.ExtensionRegistry assignDescriptors(
1142 com.google.protobuf.Descriptors.FileDescriptor root) {
1144 internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor =
1145 getDescriptor().getMessageTypes().get(0);
1146 internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable = new
1147 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1148 internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor,
1149 new java.lang.String[] { "ShardName", });
1150 internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor =
1151 getDescriptor().getMessageTypes().get(1);
1152 internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable = new
1153 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1154 internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor,
1155 new java.lang.String[] { });
1156 internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor =
1157 getDescriptor().getMessageTypes().get(2);
1158 internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable = new
1159 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1160 internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor,
1161 new java.lang.String[] { });
1165 com.google.protobuf.Descriptors.FileDescriptor
1166 .internalBuildGeneratedFileFrom(descriptorData,
1167 new com.google.protobuf.Descriptors.FileDescriptor[] {
1171 // @@protoc_insertion_point(outer_class_scope)