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() {}
9 public static void registerAllExtensions(
10 com.google.protobuf.ExtensionRegistry registry) {}
12 public interface FindPrimaryOrBuilder extends
13 com.google.protobuf.MessageOrBuilder {
15 // required string shardName = 1;
17 * <code>required string shardName = 1;</code>
19 boolean hasShardName();
22 * <code>required string shardName = 1;</code>
24 java.lang.String getShardName();
27 * <code>required string shardName = 1;</code>
29 com.google.protobuf.ByteString getShardNameBytes();
32 * Protobuf type {@code org.opendaylight.controller.mdsal.FindPrimary}
34 public static final class FindPrimary extends
35 com.google.protobuf.GeneratedMessage implements FindPrimaryOrBuilder {
36 // Use FindPrimary.newBuilder() to construct.
37 private FindPrimary(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
39 this.unknownFields = builder.getUnknownFields();
42 private FindPrimary(boolean noInit) {
44 com.google.protobuf.UnknownFieldSet.getDefaultInstance();
47 private static final FindPrimary defaultInstance;
49 public static FindPrimary getDefaultInstance() {
50 return defaultInstance;
53 public FindPrimary getDefaultInstanceForType() {
54 return defaultInstance;
57 private final com.google.protobuf.UnknownFieldSet unknownFields;
60 public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
61 return this.unknownFields;
64 private FindPrimary(com.google.protobuf.CodedInputStream input,
65 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
66 throws com.google.protobuf.InvalidProtocolBufferException {
68 int mutable_bitField0_ = 0;
69 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
70 com.google.protobuf.UnknownFieldSet.newBuilder();
74 int tag = input.readTag();
80 if (!parseUnknownField(input, unknownFields, extensionRegistry,
87 bitField0_ |= 0x00000001;
88 shardName_ = input.readBytes();
93 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
94 throw e.setUnfinishedMessage(this);
95 } catch (java.io.IOException e) {
96 throw new com.google.protobuf.InvalidProtocolBufferException(
97 e.getMessage()).setUnfinishedMessage(this);
99 this.unknownFields = unknownFields.build();
100 makeExtensionsImmutable();
104 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
105 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
108 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
109 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable
110 .ensureFieldAccessorsInitialized(
111 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.class,
112 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.Builder.class);
115 public static com.google.protobuf.Parser<FindPrimary> PARSER =
116 new com.google.protobuf.AbstractParser<FindPrimary>() {
117 public FindPrimary parsePartialFrom(
118 com.google.protobuf.CodedInputStream input,
119 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
120 throws com.google.protobuf.InvalidProtocolBufferException {
121 return new FindPrimary(input, extensionRegistry);
126 public com.google.protobuf.Parser<FindPrimary> getParserForType() {
130 private int bitField0_;
131 // required string shardName = 1;
132 public static final int SHARDNAME_FIELD_NUMBER = 1;
133 private java.lang.Object shardName_;
136 * <code>required string shardName = 1;</code>
138 public boolean hasShardName() {
139 return ((bitField0_ & 0x00000001) == 0x00000001);
143 * <code>required string shardName = 1;</code>
145 public java.lang.String getShardName() {
146 java.lang.Object ref = shardName_;
147 if (ref instanceof java.lang.String) {
148 return (java.lang.String) ref;
150 com.google.protobuf.ByteString bs =
151 (com.google.protobuf.ByteString) ref;
152 java.lang.String s = bs.toStringUtf8();
153 if (bs.isValidUtf8()) {
161 * <code>required string shardName = 1;</code>
163 public com.google.protobuf.ByteString getShardNameBytes() {
164 java.lang.Object ref = shardName_;
165 if (ref instanceof java.lang.String) {
166 com.google.protobuf.ByteString b =
167 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
171 return (com.google.protobuf.ByteString) ref;
175 private void initFields() {
179 private byte memoizedIsInitialized = -1;
181 public final boolean isInitialized() {
182 byte isInitialized = memoizedIsInitialized;
183 if (isInitialized != -1)
184 return isInitialized == 1;
186 if (!hasShardName()) {
187 memoizedIsInitialized = 0;
190 memoizedIsInitialized = 1;
194 public void writeTo(com.google.protobuf.CodedOutputStream output)
195 throws java.io.IOException {
197 if (((bitField0_ & 0x00000001) == 0x00000001)) {
198 output.writeBytes(1, getShardNameBytes());
200 getUnknownFields().writeTo(output);
203 private int memoizedSerializedSize = -1;
205 public int getSerializedSize() {
206 int size = memoizedSerializedSize;
211 if (((bitField0_ & 0x00000001) == 0x00000001)) {
213 com.google.protobuf.CodedOutputStream.computeBytesSize(1,
214 getShardNameBytes());
216 size += getUnknownFields().getSerializedSize();
217 memoizedSerializedSize = size;
221 private static final long serialVersionUID = 0L;
224 protected java.lang.Object writeReplace()
225 throws java.io.ObjectStreamException {
226 return super.writeReplace();
229 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(
230 com.google.protobuf.ByteString data)
231 throws com.google.protobuf.InvalidProtocolBufferException {
232 return PARSER.parseFrom(data);
235 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(
236 com.google.protobuf.ByteString data,
237 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
238 throws com.google.protobuf.InvalidProtocolBufferException {
239 return PARSER.parseFrom(data, extensionRegistry);
242 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(
243 byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
244 return PARSER.parseFrom(data);
247 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(
248 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
249 throws com.google.protobuf.InvalidProtocolBufferException {
250 return PARSER.parseFrom(data, extensionRegistry);
253 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(
254 java.io.InputStream input) throws java.io.IOException {
255 return PARSER.parseFrom(input);
258 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(
259 java.io.InputStream input,
260 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
261 throws java.io.IOException {
262 return PARSER.parseFrom(input, extensionRegistry);
265 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseDelimitedFrom(
266 java.io.InputStream input) throws java.io.IOException {
267 return PARSER.parseDelimitedFrom(input);
270 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseDelimitedFrom(
271 java.io.InputStream input,
272 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
273 throws java.io.IOException {
274 return PARSER.parseDelimitedFrom(input, extensionRegistry);
277 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(
278 com.google.protobuf.CodedInputStream input) throws java.io.IOException {
279 return PARSER.parseFrom(input);
282 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parseFrom(
283 com.google.protobuf.CodedInputStream input,
284 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
285 throws java.io.IOException {
286 return PARSER.parseFrom(input, extensionRegistry);
289 public static Builder newBuilder() {
290 return Builder.create();
293 public Builder newBuilderForType() {
297 public static Builder newBuilder(
298 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary prototype) {
299 return newBuilder().mergeFrom(prototype);
302 public Builder toBuilder() {
303 return newBuilder(this);
307 protected Builder newBuilderForType(
308 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
309 Builder builder = new Builder(parent);
314 * Protobuf type {@code org.opendaylight.controller.mdsal.FindPrimary}
316 public static final class Builder extends
317 com.google.protobuf.GeneratedMessage.Builder<Builder>
319 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimaryOrBuilder {
320 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
321 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
324 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
325 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable
326 .ensureFieldAccessorsInitialized(
327 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.class,
328 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.Builder.class);
332 // org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary.newBuilder()
334 maybeForceBuilderInitialization();
337 private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
339 maybeForceBuilderInitialization();
342 private void maybeForceBuilderInitialization() {
343 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
347 private static Builder create() {
348 return new Builder();
351 public Builder clear() {
354 bitField0_ = (bitField0_ & ~0x00000001);
358 public Builder clone() {
359 return create().mergeFrom(buildPartial());
362 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
363 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
366 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary getDefaultInstanceForType() {
367 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary
368 .getDefaultInstance();
371 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary build() {
372 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary result =
374 if (!result.isInitialized()) {
375 throw newUninitializedMessageException(result);
380 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary buildPartial() {
381 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary result =
382 new org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary(
384 int from_bitField0_ = bitField0_;
385 int to_bitField0_ = 0;
386 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
387 to_bitField0_ |= 0x00000001;
389 result.shardName_ = shardName_;
390 result.bitField0_ = to_bitField0_;
395 public Builder mergeFrom(com.google.protobuf.Message other) {
396 if (other instanceof org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary) {
397 return mergeFrom((org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary) other);
399 super.mergeFrom(other);
404 public Builder mergeFrom(
405 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary other) {
406 if (other == org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary
407 .getDefaultInstance())
409 if (other.hasShardName()) {
410 bitField0_ |= 0x00000001;
411 shardName_ = other.shardName_;
414 this.mergeUnknownFields(other.getUnknownFields());
418 public final boolean isInitialized() {
419 if (!hasShardName()) {
426 public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
427 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
428 throws java.io.IOException {
429 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary parsedMessage =
432 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
433 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
435 (org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.FindPrimary) e
436 .getUnfinishedMessage();
439 if (parsedMessage != null) {
440 mergeFrom(parsedMessage);
446 private int bitField0_;
448 // required string shardName = 1;
449 private java.lang.Object shardName_ = "";
452 * <code>required string shardName = 1;</code>
454 public boolean hasShardName() {
455 return ((bitField0_ & 0x00000001) == 0x00000001);
459 * <code>required string shardName = 1;</code>
461 public java.lang.String getShardName() {
462 java.lang.Object ref = shardName_;
463 if (!(ref instanceof java.lang.String)) {
465 ((com.google.protobuf.ByteString) ref).toStringUtf8();
469 return (java.lang.String) ref;
474 * <code>required string shardName = 1;</code>
476 public com.google.protobuf.ByteString getShardNameBytes() {
477 java.lang.Object ref = shardName_;
478 if (ref instanceof String) {
479 com.google.protobuf.ByteString b =
480 com.google.protobuf.ByteString
481 .copyFromUtf8((java.lang.String) ref);
485 return (com.google.protobuf.ByteString) ref;
490 * <code>required string shardName = 1;</code>
492 public Builder setShardName(java.lang.String value) {
494 throw new NullPointerException();
496 bitField0_ |= 0x00000001;
503 * <code>required string shardName = 1;</code>
505 public Builder clearShardName() {
506 bitField0_ = (bitField0_ & ~0x00000001);
507 shardName_ = getDefaultInstance().getShardName();
513 * <code>required string shardName = 1;</code>
515 public Builder setShardNameBytes(com.google.protobuf.ByteString value) {
517 throw new NullPointerException();
519 bitField0_ |= 0x00000001;
525 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.FindPrimary)
529 defaultInstance = new FindPrimary(true);
530 defaultInstance.initFields();
533 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.FindPrimary)
536 public interface PrimaryFoundOrBuilder extends
537 com.google.protobuf.MessageOrBuilder {
540 * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryFound}
542 public static final class PrimaryFound extends
543 com.google.protobuf.GeneratedMessage implements PrimaryFoundOrBuilder {
544 // Use PrimaryFound.newBuilder() to construct.
545 private PrimaryFound(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
547 this.unknownFields = builder.getUnknownFields();
550 private PrimaryFound(boolean noInit) {
552 com.google.protobuf.UnknownFieldSet.getDefaultInstance();
555 private static final PrimaryFound defaultInstance;
557 public static PrimaryFound getDefaultInstance() {
558 return defaultInstance;
561 public PrimaryFound getDefaultInstanceForType() {
562 return defaultInstance;
565 private final com.google.protobuf.UnknownFieldSet unknownFields;
568 public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
569 return this.unknownFields;
572 private PrimaryFound(com.google.protobuf.CodedInputStream input,
573 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
574 throws com.google.protobuf.InvalidProtocolBufferException {
576 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
577 com.google.protobuf.UnknownFieldSet.newBuilder();
579 boolean done = false;
581 int tag = input.readTag();
587 if (!parseUnknownField(input, unknownFields, extensionRegistry,
595 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
596 throw e.setUnfinishedMessage(this);
597 } catch (java.io.IOException e) {
598 throw new com.google.protobuf.InvalidProtocolBufferException(
599 e.getMessage()).setUnfinishedMessage(this);
601 this.unknownFields = unknownFields.build();
602 makeExtensionsImmutable();
606 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
607 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
610 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
611 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable
612 .ensureFieldAccessorsInitialized(
613 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.class,
614 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.Builder.class);
617 public static com.google.protobuf.Parser<PrimaryFound> PARSER =
618 new com.google.protobuf.AbstractParser<PrimaryFound>() {
619 public PrimaryFound parsePartialFrom(
620 com.google.protobuf.CodedInputStream input,
621 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
622 throws com.google.protobuf.InvalidProtocolBufferException {
623 return new PrimaryFound(input, extensionRegistry);
628 public com.google.protobuf.Parser<PrimaryFound> getParserForType() {
632 private void initFields() {}
634 private byte memoizedIsInitialized = -1;
636 public final boolean isInitialized() {
637 byte isInitialized = memoizedIsInitialized;
638 if (isInitialized != -1)
639 return isInitialized == 1;
641 memoizedIsInitialized = 1;
645 public void writeTo(com.google.protobuf.CodedOutputStream output)
646 throws java.io.IOException {
648 getUnknownFields().writeTo(output);
651 private int memoizedSerializedSize = -1;
653 public int getSerializedSize() {
654 int size = memoizedSerializedSize;
659 size += getUnknownFields().getSerializedSize();
660 memoizedSerializedSize = size;
664 private static final long serialVersionUID = 0L;
667 protected java.lang.Object writeReplace()
668 throws java.io.ObjectStreamException {
669 return super.writeReplace();
672 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
673 com.google.protobuf.ByteString data)
674 throws com.google.protobuf.InvalidProtocolBufferException {
675 return PARSER.parseFrom(data);
678 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
679 com.google.protobuf.ByteString data,
680 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
681 throws com.google.protobuf.InvalidProtocolBufferException {
682 return PARSER.parseFrom(data, extensionRegistry);
685 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
686 byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
687 return PARSER.parseFrom(data);
690 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
691 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
692 throws com.google.protobuf.InvalidProtocolBufferException {
693 return PARSER.parseFrom(data, extensionRegistry);
696 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
697 java.io.InputStream input) throws java.io.IOException {
698 return PARSER.parseFrom(input);
701 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
702 java.io.InputStream input,
703 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
704 throws java.io.IOException {
705 return PARSER.parseFrom(input, extensionRegistry);
708 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseDelimitedFrom(
709 java.io.InputStream input) throws java.io.IOException {
710 return PARSER.parseDelimitedFrom(input);
713 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseDelimitedFrom(
714 java.io.InputStream input,
715 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
716 throws java.io.IOException {
717 return PARSER.parseDelimitedFrom(input, extensionRegistry);
720 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
721 com.google.protobuf.CodedInputStream input) throws java.io.IOException {
722 return PARSER.parseFrom(input);
725 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parseFrom(
726 com.google.protobuf.CodedInputStream input,
727 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
728 throws java.io.IOException {
729 return PARSER.parseFrom(input, extensionRegistry);
732 public static Builder newBuilder() {
733 return Builder.create();
736 public Builder newBuilderForType() {
740 public static Builder newBuilder(
741 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound prototype) {
742 return newBuilder().mergeFrom(prototype);
745 public Builder toBuilder() {
746 return newBuilder(this);
750 protected Builder newBuilderForType(
751 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
752 Builder builder = new Builder(parent);
757 * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryFound}
759 public static final class Builder extends
760 com.google.protobuf.GeneratedMessage.Builder<Builder>
762 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFoundOrBuilder {
763 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
764 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
767 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
768 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable
769 .ensureFieldAccessorsInitialized(
770 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.class,
771 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.Builder.class);
775 // org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound.newBuilder()
777 maybeForceBuilderInitialization();
780 private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
782 maybeForceBuilderInitialization();
785 private void maybeForceBuilderInitialization() {
786 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
790 private static Builder create() {
791 return new Builder();
794 public Builder clear() {
799 public Builder clone() {
800 return create().mergeFrom(buildPartial());
803 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
804 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
807 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound getDefaultInstanceForType() {
808 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound
809 .getDefaultInstance();
812 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound build() {
813 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound result =
815 if (!result.isInitialized()) {
816 throw newUninitializedMessageException(result);
821 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound buildPartial() {
822 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound result =
823 new org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound(
829 public Builder mergeFrom(com.google.protobuf.Message other) {
830 if (other instanceof org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound) {
831 return mergeFrom((org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound) other);
833 super.mergeFrom(other);
838 public Builder mergeFrom(
839 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound other) {
840 if (other == org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound
841 .getDefaultInstance())
843 this.mergeUnknownFields(other.getUnknownFields());
847 public final boolean isInitialized() {
851 public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
852 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
853 throws java.io.IOException {
854 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound parsedMessage =
857 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
858 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
860 (org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryFound) e
861 .getUnfinishedMessage();
864 if (parsedMessage != null) {
865 mergeFrom(parsedMessage);
871 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.PrimaryFound)
875 defaultInstance = new PrimaryFound(true);
876 defaultInstance.initFields();
879 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.PrimaryFound)
882 public interface PrimaryNotFoundOrBuilder extends
883 com.google.protobuf.MessageOrBuilder {
886 * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryNotFound}
888 public static final class PrimaryNotFound extends
889 com.google.protobuf.GeneratedMessage implements PrimaryNotFoundOrBuilder {
890 // Use PrimaryNotFound.newBuilder() to construct.
891 private PrimaryNotFound(
892 com.google.protobuf.GeneratedMessage.Builder<?> builder) {
894 this.unknownFields = builder.getUnknownFields();
897 private PrimaryNotFound(boolean noInit) {
899 com.google.protobuf.UnknownFieldSet.getDefaultInstance();
902 private static final PrimaryNotFound defaultInstance;
904 public static PrimaryNotFound getDefaultInstance() {
905 return defaultInstance;
908 public PrimaryNotFound getDefaultInstanceForType() {
909 return defaultInstance;
912 private final com.google.protobuf.UnknownFieldSet unknownFields;
915 public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
916 return this.unknownFields;
919 private PrimaryNotFound(com.google.protobuf.CodedInputStream input,
920 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
921 throws com.google.protobuf.InvalidProtocolBufferException {
923 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
924 com.google.protobuf.UnknownFieldSet.newBuilder();
926 boolean done = false;
928 int tag = input.readTag();
934 if (!parseUnknownField(input, unknownFields, extensionRegistry,
942 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
943 throw e.setUnfinishedMessage(this);
944 } catch (java.io.IOException e) {
945 throw new com.google.protobuf.InvalidProtocolBufferException(
946 e.getMessage()).setUnfinishedMessage(this);
948 this.unknownFields = unknownFields.build();
949 makeExtensionsImmutable();
953 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
954 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
957 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
958 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable
959 .ensureFieldAccessorsInitialized(
960 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.class,
961 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.Builder.class);
964 public static com.google.protobuf.Parser<PrimaryNotFound> PARSER =
965 new com.google.protobuf.AbstractParser<PrimaryNotFound>() {
966 public PrimaryNotFound parsePartialFrom(
967 com.google.protobuf.CodedInputStream input,
968 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
969 throws com.google.protobuf.InvalidProtocolBufferException {
970 return new PrimaryNotFound(input, extensionRegistry);
975 public com.google.protobuf.Parser<PrimaryNotFound> getParserForType() {
979 private void initFields() {}
981 private byte memoizedIsInitialized = -1;
983 public final boolean isInitialized() {
984 byte isInitialized = memoizedIsInitialized;
985 if (isInitialized != -1)
986 return isInitialized == 1;
988 memoizedIsInitialized = 1;
992 public void writeTo(com.google.protobuf.CodedOutputStream output)
993 throws java.io.IOException {
995 getUnknownFields().writeTo(output);
998 private int memoizedSerializedSize = -1;
1000 public int getSerializedSize() {
1001 int size = memoizedSerializedSize;
1006 size += getUnknownFields().getSerializedSize();
1007 memoizedSerializedSize = size;
1011 private static final long serialVersionUID = 0L;
1014 protected java.lang.Object writeReplace()
1015 throws java.io.ObjectStreamException {
1016 return super.writeReplace();
1019 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1020 com.google.protobuf.ByteString data)
1021 throws com.google.protobuf.InvalidProtocolBufferException {
1022 return PARSER.parseFrom(data);
1025 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1026 com.google.protobuf.ByteString data,
1027 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1028 throws com.google.protobuf.InvalidProtocolBufferException {
1029 return PARSER.parseFrom(data, extensionRegistry);
1032 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1033 byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
1034 return PARSER.parseFrom(data);
1037 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1038 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1039 throws com.google.protobuf.InvalidProtocolBufferException {
1040 return PARSER.parseFrom(data, extensionRegistry);
1043 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1044 java.io.InputStream input) throws java.io.IOException {
1045 return PARSER.parseFrom(input);
1048 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1049 java.io.InputStream input,
1050 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1051 throws java.io.IOException {
1052 return PARSER.parseFrom(input, extensionRegistry);
1055 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseDelimitedFrom(
1056 java.io.InputStream input) throws java.io.IOException {
1057 return PARSER.parseDelimitedFrom(input);
1060 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseDelimitedFrom(
1061 java.io.InputStream input,
1062 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1063 throws java.io.IOException {
1064 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1067 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1068 com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1069 return PARSER.parseFrom(input);
1072 public static org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parseFrom(
1073 com.google.protobuf.CodedInputStream input,
1074 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1075 throws java.io.IOException {
1076 return PARSER.parseFrom(input, extensionRegistry);
1079 public static Builder newBuilder() {
1080 return Builder.create();
1083 public Builder newBuilderForType() {
1084 return newBuilder();
1087 public static Builder newBuilder(
1088 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound prototype) {
1089 return newBuilder().mergeFrom(prototype);
1092 public Builder toBuilder() {
1093 return newBuilder(this);
1097 protected Builder newBuilderForType(
1098 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1099 Builder builder = new Builder(parent);
1104 * Protobuf type {@code org.opendaylight.controller.mdsal.PrimaryNotFound}
1106 public static final class Builder extends
1107 com.google.protobuf.GeneratedMessage.Builder<Builder>
1109 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFoundOrBuilder {
1110 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1111 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
1114 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
1115 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable
1116 .ensureFieldAccessorsInitialized(
1117 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.class,
1118 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.Builder.class);
1122 // org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound.newBuilder()
1124 maybeForceBuilderInitialization();
1127 private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1129 maybeForceBuilderInitialization();
1132 private void maybeForceBuilderInitialization() {
1133 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1137 private static Builder create() {
1138 return new Builder();
1141 public Builder clear() {
1146 public Builder clone() {
1147 return create().mergeFrom(buildPartial());
1150 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1151 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
1154 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound getDefaultInstanceForType() {
1155 return org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound
1156 .getDefaultInstance();
1159 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound build() {
1160 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound result =
1162 if (!result.isInitialized()) {
1163 throw newUninitializedMessageException(result);
1168 public org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound buildPartial() {
1169 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound result =
1170 new org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound(
1176 public Builder mergeFrom(com.google.protobuf.Message other) {
1177 if (other instanceof org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound) {
1178 return mergeFrom((org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound) other);
1180 super.mergeFrom(other);
1185 public Builder mergeFrom(
1186 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound other) {
1187 if (other == org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound
1188 .getDefaultInstance())
1190 this.mergeUnknownFields(other.getUnknownFields());
1194 public final boolean isInitialized() {
1198 public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
1199 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1200 throws java.io.IOException {
1201 org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound parsedMessage =
1204 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1205 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1207 (org.opendaylight.controller.cluster.datastore.shard.ShardManagerMessages.PrimaryNotFound) e
1208 .getUnfinishedMessage();
1211 if (parsedMessage != null) {
1212 mergeFrom(parsedMessage);
1218 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.PrimaryNotFound)
1222 defaultInstance = new PrimaryNotFound(true);
1223 defaultInstance.initFields();
1226 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.PrimaryNotFound)
1229 private static com.google.protobuf.Descriptors.Descriptor internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor;
1230 private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable;
1231 private static com.google.protobuf.Descriptors.Descriptor internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor;
1232 private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable;
1233 private static com.google.protobuf.Descriptors.Descriptor internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor;
1234 private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable;
1236 public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
1240 private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
1242 java.lang.String[] descriptorData =
1243 {"\n\022ShardManager.proto\022!org.opendaylight.c"
1244 + "ontroller.mdsal\" \n\013FindPrimary\022\021\n\tshardN"
1245 + "ame\030\001 \002(\t\"\016\n\014PrimaryFound\"\021\n\017PrimaryNotF"
1246 + "oundBK\n3org.opendaylight.controller.clus"
1247 + "ter.datastore.shardB\024ShardManagerMessage" + "s"};
1248 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1249 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1250 public com.google.protobuf.ExtensionRegistry assignDescriptors(
1251 com.google.protobuf.Descriptors.FileDescriptor root) {
1253 internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor =
1254 getDescriptor().getMessageTypes().get(0);
1255 internal_static_org_opendaylight_controller_mdsal_FindPrimary_fieldAccessorTable =
1256 new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1257 internal_static_org_opendaylight_controller_mdsal_FindPrimary_descriptor,
1258 new java.lang.String[] {"ShardName",});
1259 internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor =
1260 getDescriptor().getMessageTypes().get(1);
1261 internal_static_org_opendaylight_controller_mdsal_PrimaryFound_fieldAccessorTable =
1262 new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1263 internal_static_org_opendaylight_controller_mdsal_PrimaryFound_descriptor,
1264 new java.lang.String[] {});
1265 internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor =
1266 getDescriptor().getMessageTypes().get(2);
1267 internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_fieldAccessorTable =
1268 new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1269 internal_static_org_opendaylight_controller_mdsal_PrimaryNotFound_descriptor,
1270 new java.lang.String[] {});
1274 com.google.protobuf.Descriptors.FileDescriptor
1275 .internalBuildGeneratedFileFrom(descriptorData,
1276 new com.google.protobuf.Descriptors.FileDescriptor[]{}, assigner);
1279 // @@protoc_insertion_point(outer_class_scope)