3 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
11 // Generated by the protocol buffer compiler. DO NOT EDIT!
12 // source: Persistent.proto
14 package org.opendaylight.controller.protobuff.messages.persistent;
16 public final class PersistentMessages {
17 private PersistentMessages() {}
18 public static void registerAllExtensions(
19 com.google.protobuf.ExtensionRegistry registry) {
21 public interface ModificationOrBuilder
22 extends com.google.protobuf.MessageOrBuilder {
24 // required string type = 1;
26 * <code>required string type = 1;</code>
30 * <code>required string type = 1;</code>
32 java.lang.String getType();
34 * <code>required string type = 1;</code>
36 com.google.protobuf.ByteString
39 // required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;
41 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
45 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
47 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getPath();
49 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
51 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder getPathOrBuilder();
53 // optional .org.opendaylight.controller.mdsal.Node data = 3;
55 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
59 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
61 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node getData();
63 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
65 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder getDataOrBuilder();
68 * Protobuf type {@code org.opendaylight.controller.mdsal.Modification}
70 public static final class Modification extends
71 com.google.protobuf.GeneratedMessage
72 implements ModificationOrBuilder {
73 // Use Modification.newBuilder() to construct.
74 private Modification(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
76 this.unknownFields = builder.getUnknownFields();
78 private Modification(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
80 private static final Modification defaultInstance;
81 public static Modification getDefaultInstance() {
82 return defaultInstance;
85 public Modification getDefaultInstanceForType() {
86 return defaultInstance;
89 private final com.google.protobuf.UnknownFieldSet unknownFields;
91 public final com.google.protobuf.UnknownFieldSet
93 return this.unknownFields;
96 com.google.protobuf.CodedInputStream input,
97 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
98 throws com.google.protobuf.InvalidProtocolBufferException {
100 int mutable_bitField0_ = 0;
101 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
102 com.google.protobuf.UnknownFieldSet.newBuilder();
104 boolean done = false;
106 int tag = input.readTag();
112 if (!parseUnknownField(input, unknownFields,
113 extensionRegistry, tag)) {
119 bitField0_ |= 0x00000001;
120 type_ = input.readBytes();
124 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder subBuilder = null;
125 if (((bitField0_ & 0x00000002) == 0x00000002)) {
126 subBuilder = path_.toBuilder();
128 path_ = input.readMessage(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.PARSER, extensionRegistry);
129 if (subBuilder != null) {
130 subBuilder.mergeFrom(path_);
131 path_ = subBuilder.buildPartial();
133 bitField0_ |= 0x00000002;
137 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder subBuilder = null;
138 if (((bitField0_ & 0x00000004) == 0x00000004)) {
139 subBuilder = data_.toBuilder();
141 data_ = input.readMessage(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.PARSER, extensionRegistry);
142 if (subBuilder != null) {
143 subBuilder.mergeFrom(data_);
144 data_ = subBuilder.buildPartial();
146 bitField0_ |= 0x00000004;
151 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
152 throw e.setUnfinishedMessage(this);
153 } catch (java.io.IOException e) {
154 throw new com.google.protobuf.InvalidProtocolBufferException(
155 e.getMessage()).setUnfinishedMessage(this);
157 this.unknownFields = unknownFields.build();
158 makeExtensionsImmutable();
161 public static final com.google.protobuf.Descriptors.Descriptor
163 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_descriptor;
166 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
167 internalGetFieldAccessorTable() {
168 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_fieldAccessorTable
169 .ensureFieldAccessorsInitialized(
170 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.class, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder.class);
173 public static com.google.protobuf.Parser<Modification> PARSER =
174 new com.google.protobuf.AbstractParser<Modification>() {
175 public Modification parsePartialFrom(
176 com.google.protobuf.CodedInputStream input,
177 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
178 throws com.google.protobuf.InvalidProtocolBufferException {
179 return new Modification(input, extensionRegistry);
184 public com.google.protobuf.Parser<Modification> getParserForType() {
188 private int bitField0_;
189 // required string type = 1;
190 public static final int TYPE_FIELD_NUMBER = 1;
191 private java.lang.Object type_;
193 * <code>required string type = 1;</code>
195 public boolean hasType() {
196 return ((bitField0_ & 0x00000001) == 0x00000001);
199 * <code>required string type = 1;</code>
201 public java.lang.String getType() {
202 java.lang.Object ref = type_;
203 if (ref instanceof java.lang.String) {
204 return (java.lang.String) ref;
206 com.google.protobuf.ByteString bs =
207 (com.google.protobuf.ByteString) ref;
208 java.lang.String s = bs.toStringUtf8();
209 if (bs.isValidUtf8()) {
216 * <code>required string type = 1;</code>
218 public com.google.protobuf.ByteString
220 java.lang.Object ref = type_;
221 if (ref instanceof java.lang.String) {
222 com.google.protobuf.ByteString b =
223 com.google.protobuf.ByteString.copyFromUtf8(
224 (java.lang.String) ref);
228 return (com.google.protobuf.ByteString) ref;
232 // required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;
233 public static final int PATH_FIELD_NUMBER = 2;
234 private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier path_;
236 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
238 public boolean hasPath() {
239 return ((bitField0_ & 0x00000002) == 0x00000002);
242 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
244 public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getPath() {
248 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
250 public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder getPathOrBuilder() {
254 // optional .org.opendaylight.controller.mdsal.Node data = 3;
255 public static final int DATA_FIELD_NUMBER = 3;
256 private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node data_;
258 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
260 public boolean hasData() {
261 return ((bitField0_ & 0x00000004) == 0x00000004);
264 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
266 public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node getData() {
270 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
272 public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder getDataOrBuilder() {
276 private void initFields() {
278 path_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance();
279 data_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.getDefaultInstance();
281 private byte memoizedIsInitialized = -1;
282 public final boolean isInitialized() {
283 byte isInitialized = memoizedIsInitialized;
284 if (isInitialized != -1) return isInitialized == 1;
287 memoizedIsInitialized = 0;
291 memoizedIsInitialized = 0;
294 if (!getPath().isInitialized()) {
295 memoizedIsInitialized = 0;
299 if (!getData().isInitialized()) {
300 memoizedIsInitialized = 0;
304 memoizedIsInitialized = 1;
308 public void writeTo(com.google.protobuf.CodedOutputStream output)
309 throws java.io.IOException {
311 if (((bitField0_ & 0x00000001) == 0x00000001)) {
312 output.writeBytes(1, getTypeBytes());
314 if (((bitField0_ & 0x00000002) == 0x00000002)) {
315 output.writeMessage(2, path_);
317 if (((bitField0_ & 0x00000004) == 0x00000004)) {
318 output.writeMessage(3, data_);
320 getUnknownFields().writeTo(output);
323 private int memoizedSerializedSize = -1;
324 public int getSerializedSize() {
325 int size = memoizedSerializedSize;
326 if (size != -1) return size;
329 if (((bitField0_ & 0x00000001) == 0x00000001)) {
330 size += com.google.protobuf.CodedOutputStream
331 .computeBytesSize(1, getTypeBytes());
333 if (((bitField0_ & 0x00000002) == 0x00000002)) {
334 size += com.google.protobuf.CodedOutputStream
335 .computeMessageSize(2, path_);
337 if (((bitField0_ & 0x00000004) == 0x00000004)) {
338 size += com.google.protobuf.CodedOutputStream
339 .computeMessageSize(3, data_);
341 size += getUnknownFields().getSerializedSize();
342 memoizedSerializedSize = size;
346 private static final long serialVersionUID = 0L;
348 protected java.lang.Object writeReplace()
349 throws java.io.ObjectStreamException {
350 return super.writeReplace();
353 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
354 com.google.protobuf.ByteString data)
355 throws com.google.protobuf.InvalidProtocolBufferException {
356 return PARSER.parseFrom(data);
358 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
359 com.google.protobuf.ByteString data,
360 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
361 throws com.google.protobuf.InvalidProtocolBufferException {
362 return PARSER.parseFrom(data, extensionRegistry);
364 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(byte[] data)
365 throws com.google.protobuf.InvalidProtocolBufferException {
366 return PARSER.parseFrom(data);
368 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
370 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
371 throws com.google.protobuf.InvalidProtocolBufferException {
372 return PARSER.parseFrom(data, extensionRegistry);
374 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(java.io.InputStream input)
375 throws java.io.IOException {
376 return PARSER.parseFrom(input);
378 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
379 java.io.InputStream input,
380 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
381 throws java.io.IOException {
382 return PARSER.parseFrom(input, extensionRegistry);
384 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseDelimitedFrom(java.io.InputStream input)
385 throws java.io.IOException {
386 return PARSER.parseDelimitedFrom(input);
388 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseDelimitedFrom(
389 java.io.InputStream input,
390 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
391 throws java.io.IOException {
392 return PARSER.parseDelimitedFrom(input, extensionRegistry);
394 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
395 com.google.protobuf.CodedInputStream input)
396 throws java.io.IOException {
397 return PARSER.parseFrom(input);
399 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
400 com.google.protobuf.CodedInputStream input,
401 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
402 throws java.io.IOException {
403 return PARSER.parseFrom(input, extensionRegistry);
406 public static Builder newBuilder() { return Builder.create(); }
407 public Builder newBuilderForType() { return newBuilder(); }
408 public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification prototype) {
409 return newBuilder().mergeFrom(prototype);
411 public Builder toBuilder() { return newBuilder(this); }
414 protected Builder newBuilderForType(
415 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
416 Builder builder = new Builder(parent);
420 * Protobuf type {@code org.opendaylight.controller.mdsal.Modification}
422 public static final class Builder extends
423 com.google.protobuf.GeneratedMessage.Builder<Builder>
424 implements org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder {
425 public static final com.google.protobuf.Descriptors.Descriptor
427 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_descriptor;
430 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
431 internalGetFieldAccessorTable() {
432 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_fieldAccessorTable
433 .ensureFieldAccessorsInitialized(
434 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.class, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder.class);
437 // Construct using org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.newBuilder()
439 maybeForceBuilderInitialization();
443 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
445 maybeForceBuilderInitialization();
447 private void maybeForceBuilderInitialization() {
448 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
449 getPathFieldBuilder();
450 getDataFieldBuilder();
453 private static Builder create() {
454 return new Builder();
457 public Builder clear() {
460 bitField0_ = (bitField0_ & ~0x00000001);
461 if (pathBuilder_ == null) {
462 path_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance();
464 pathBuilder_.clear();
466 bitField0_ = (bitField0_ & ~0x00000002);
467 if (dataBuilder_ == null) {
468 data_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.getDefaultInstance();
470 dataBuilder_.clear();
472 bitField0_ = (bitField0_ & ~0x00000004);
476 public Builder clone() {
477 return create().mergeFrom(buildPartial());
480 public com.google.protobuf.Descriptors.Descriptor
481 getDescriptorForType() {
482 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_descriptor;
485 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getDefaultInstanceForType() {
486 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.getDefaultInstance();
489 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification build() {
490 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification result = buildPartial();
491 if (!result.isInitialized()) {
492 throw newUninitializedMessageException(result);
497 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification buildPartial() {
498 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification result = new org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification(this);
499 int from_bitField0_ = bitField0_;
500 int to_bitField0_ = 0;
501 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
502 to_bitField0_ |= 0x00000001;
504 result.type_ = type_;
505 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
506 to_bitField0_ |= 0x00000002;
508 if (pathBuilder_ == null) {
509 result.path_ = path_;
511 result.path_ = pathBuilder_.build();
513 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
514 to_bitField0_ |= 0x00000004;
516 if (dataBuilder_ == null) {
517 result.data_ = data_;
519 result.data_ = dataBuilder_.build();
521 result.bitField0_ = to_bitField0_;
526 public Builder mergeFrom(com.google.protobuf.Message other) {
527 if (other instanceof org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification) {
528 return mergeFrom((org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification)other);
530 super.mergeFrom(other);
535 public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification other) {
536 if (other == org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.getDefaultInstance()) return this;
537 if (other.hasType()) {
538 bitField0_ |= 0x00000001;
542 if (other.hasPath()) {
543 mergePath(other.getPath());
545 if (other.hasData()) {
546 mergeData(other.getData());
548 this.mergeUnknownFields(other.getUnknownFields());
552 public final boolean isInitialized() {
561 if (!getPath().isInitialized()) {
566 if (!getData().isInitialized()) {
574 public Builder mergeFrom(
575 com.google.protobuf.CodedInputStream input,
576 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
577 throws java.io.IOException {
578 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parsedMessage = null;
580 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
581 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
582 parsedMessage = (org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification) e.getUnfinishedMessage();
585 if (parsedMessage != null) {
586 mergeFrom(parsedMessage);
591 private int bitField0_;
593 // required string type = 1;
594 private java.lang.Object type_ = "";
596 * <code>required string type = 1;</code>
598 public boolean hasType() {
599 return ((bitField0_ & 0x00000001) == 0x00000001);
602 * <code>required string type = 1;</code>
604 public java.lang.String getType() {
605 java.lang.Object ref = type_;
606 if (!(ref instanceof java.lang.String)) {
607 java.lang.String s = ((com.google.protobuf.ByteString) ref)
612 return (java.lang.String) ref;
616 * <code>required string type = 1;</code>
618 public com.google.protobuf.ByteString
620 java.lang.Object ref = type_;
621 if (ref instanceof String) {
622 com.google.protobuf.ByteString b =
623 com.google.protobuf.ByteString.copyFromUtf8(
624 (java.lang.String) ref);
628 return (com.google.protobuf.ByteString) ref;
632 * <code>required string type = 1;</code>
634 public Builder setType(
635 java.lang.String value) {
637 throw new NullPointerException();
639 bitField0_ |= 0x00000001;
645 * <code>required string type = 1;</code>
647 public Builder clearType() {
648 bitField0_ = (bitField0_ & ~0x00000001);
649 type_ = getDefaultInstance().getType();
654 * <code>required string type = 1;</code>
656 public Builder setTypeBytes(
657 com.google.protobuf.ByteString value) {
659 throw new NullPointerException();
661 bitField0_ |= 0x00000001;
667 // required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;
668 private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier path_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance();
669 private com.google.protobuf.SingleFieldBuilder<
670 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder> pathBuilder_;
672 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
674 public boolean hasPath() {
675 return ((bitField0_ & 0x00000002) == 0x00000002);
678 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
680 public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getPath() {
681 if (pathBuilder_ == null) {
684 return pathBuilder_.getMessage();
688 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
690 public Builder setPath(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier value) {
691 if (pathBuilder_ == null) {
693 throw new NullPointerException();
698 pathBuilder_.setMessage(value);
700 bitField0_ |= 0x00000002;
704 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
706 public Builder setPath(
707 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder builderForValue) {
708 if (pathBuilder_ == null) {
709 path_ = builderForValue.build();
712 pathBuilder_.setMessage(builderForValue.build());
714 bitField0_ |= 0x00000002;
718 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
720 public Builder mergePath(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier value) {
721 if (pathBuilder_ == null) {
722 if (((bitField0_ & 0x00000002) == 0x00000002) &&
723 path_ != org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance()) {
725 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.newBuilder(path_).mergeFrom(value).buildPartial();
731 pathBuilder_.mergeFrom(value);
733 bitField0_ |= 0x00000002;
737 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
739 public Builder clearPath() {
740 if (pathBuilder_ == null) {
741 path_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance();
744 pathBuilder_.clear();
746 bitField0_ = (bitField0_ & ~0x00000002);
750 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
752 public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder getPathBuilder() {
753 bitField0_ |= 0x00000002;
755 return getPathFieldBuilder().getBuilder();
758 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
760 public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder getPathOrBuilder() {
761 if (pathBuilder_ != null) {
762 return pathBuilder_.getMessageOrBuilder();
768 * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
770 private com.google.protobuf.SingleFieldBuilder<
771 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder>
772 getPathFieldBuilder() {
773 if (pathBuilder_ == null) {
774 pathBuilder_ = new com.google.protobuf.SingleFieldBuilder<
775 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder>(
777 getParentForChildren(),
784 // optional .org.opendaylight.controller.mdsal.Node data = 3;
785 private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node data_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.getDefaultInstance();
786 private com.google.protobuf.SingleFieldBuilder<
787 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder> dataBuilder_;
789 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
791 public boolean hasData() {
792 return ((bitField0_ & 0x00000004) == 0x00000004);
795 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
797 public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node getData() {
798 if (dataBuilder_ == null) {
801 return dataBuilder_.getMessage();
805 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
807 public Builder setData(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node value) {
808 if (dataBuilder_ == null) {
810 throw new NullPointerException();
815 dataBuilder_.setMessage(value);
817 bitField0_ |= 0x00000004;
821 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
823 public Builder setData(
824 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder builderForValue) {
825 if (dataBuilder_ == null) {
826 data_ = builderForValue.build();
829 dataBuilder_.setMessage(builderForValue.build());
831 bitField0_ |= 0x00000004;
835 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
837 public Builder mergeData(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node value) {
838 if (dataBuilder_ == null) {
839 if (((bitField0_ & 0x00000004) == 0x00000004) &&
840 data_ != org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.getDefaultInstance()) {
842 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.newBuilder(data_).mergeFrom(value).buildPartial();
848 dataBuilder_.mergeFrom(value);
850 bitField0_ |= 0x00000004;
854 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
856 public Builder clearData() {
857 if (dataBuilder_ == null) {
858 data_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.getDefaultInstance();
861 dataBuilder_.clear();
863 bitField0_ = (bitField0_ & ~0x00000004);
867 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
869 public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder getDataBuilder() {
870 bitField0_ |= 0x00000004;
872 return getDataFieldBuilder().getBuilder();
875 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
877 public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder getDataOrBuilder() {
878 if (dataBuilder_ != null) {
879 return dataBuilder_.getMessageOrBuilder();
885 * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
887 private com.google.protobuf.SingleFieldBuilder<
888 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder>
889 getDataFieldBuilder() {
890 if (dataBuilder_ == null) {
891 dataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
892 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder>(
894 getParentForChildren(),
901 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.Modification)
905 defaultInstance = new Modification(true);
906 defaultInstance.initFields();
909 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.Modification)
912 public interface CompositeModificationOrBuilder
913 extends com.google.protobuf.MessageOrBuilder {
915 // repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
917 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
919 java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification>
920 getModificationList();
922 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
924 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getModification(int index);
926 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
928 int getModificationCount();
930 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
932 java.util.List<? extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
933 getModificationOrBuilderList();
935 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
937 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder getModificationOrBuilder(
941 * Protobuf type {@code org.opendaylight.controller.mdsal.CompositeModification}
943 public static final class CompositeModification extends
944 com.google.protobuf.GeneratedMessage
945 implements CompositeModificationOrBuilder {
946 // Use CompositeModification.newBuilder() to construct.
947 private CompositeModification(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
949 this.unknownFields = builder.getUnknownFields();
951 private CompositeModification(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
953 private static final CompositeModification defaultInstance;
954 public static CompositeModification getDefaultInstance() {
955 return defaultInstance;
958 public CompositeModification getDefaultInstanceForType() {
959 return defaultInstance;
962 private final com.google.protobuf.UnknownFieldSet unknownFields;
964 public final com.google.protobuf.UnknownFieldSet
966 return this.unknownFields;
968 private CompositeModification(
969 com.google.protobuf.CodedInputStream input,
970 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
971 throws com.google.protobuf.InvalidProtocolBufferException {
973 int mutable_bitField0_ = 0;
974 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
975 com.google.protobuf.UnknownFieldSet.newBuilder();
977 boolean done = false;
979 int tag = input.readTag();
985 if (!parseUnknownField(input, unknownFields,
986 extensionRegistry, tag)) {
992 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
993 modification_ = new java.util.ArrayList<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification>();
994 mutable_bitField0_ |= 0x00000001;
996 modification_.add(input.readMessage(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.PARSER, extensionRegistry));
1001 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1002 throw e.setUnfinishedMessage(this);
1003 } catch (java.io.IOException e) {
1004 throw new com.google.protobuf.InvalidProtocolBufferException(
1005 e.getMessage()).setUnfinishedMessage(this);
1007 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
1008 modification_ = java.util.Collections.unmodifiableList(modification_);
1010 this.unknownFields = unknownFields.build();
1011 makeExtensionsImmutable();
1014 public static final com.google.protobuf.Descriptors.Descriptor
1016 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor;
1019 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1020 internalGetFieldAccessorTable() {
1021 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_fieldAccessorTable
1022 .ensureFieldAccessorsInitialized(
1023 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.class, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.Builder.class);
1026 public static com.google.protobuf.Parser<CompositeModification> PARSER =
1027 new com.google.protobuf.AbstractParser<CompositeModification>() {
1028 public CompositeModification parsePartialFrom(
1029 com.google.protobuf.CodedInputStream input,
1030 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1031 throws com.google.protobuf.InvalidProtocolBufferException {
1032 return new CompositeModification(input, extensionRegistry);
1037 public com.google.protobuf.Parser<CompositeModification> getParserForType() {
1041 // repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
1042 public static final int MODIFICATION_FIELD_NUMBER = 1;
1043 private java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> modification_;
1045 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1047 public java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> getModificationList() {
1048 return modification_;
1051 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1053 public java.util.List<? extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
1054 getModificationOrBuilderList() {
1055 return modification_;
1058 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1060 public int getModificationCount() {
1061 return modification_.size();
1064 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1066 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getModification(int index) {
1067 return modification_.get(index);
1070 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1072 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder getModificationOrBuilder(
1074 return modification_.get(index);
1077 private void initFields() {
1078 modification_ = java.util.Collections.emptyList();
1080 private byte memoizedIsInitialized = -1;
1081 public final boolean isInitialized() {
1082 byte isInitialized = memoizedIsInitialized;
1083 if (isInitialized != -1) return isInitialized == 1;
1085 for (int i = 0; i < getModificationCount(); i++) {
1086 if (!getModification(i).isInitialized()) {
1087 memoizedIsInitialized = 0;
1091 memoizedIsInitialized = 1;
1095 public void writeTo(com.google.protobuf.CodedOutputStream output)
1096 throws java.io.IOException {
1097 getSerializedSize();
1098 for (int i = 0; i < modification_.size(); i++) {
1099 output.writeMessage(1, modification_.get(i));
1101 getUnknownFields().writeTo(output);
1104 private int memoizedSerializedSize = -1;
1105 public int getSerializedSize() {
1106 int size = memoizedSerializedSize;
1107 if (size != -1) return size;
1110 for (int i = 0; i < modification_.size(); i++) {
1111 size += com.google.protobuf.CodedOutputStream
1112 .computeMessageSize(1, modification_.get(i));
1114 size += getUnknownFields().getSerializedSize();
1115 memoizedSerializedSize = size;
1119 private static final long serialVersionUID = 0L;
1121 protected java.lang.Object writeReplace()
1122 throws java.io.ObjectStreamException {
1123 return super.writeReplace();
1126 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1127 com.google.protobuf.ByteString data)
1128 throws com.google.protobuf.InvalidProtocolBufferException {
1129 return PARSER.parseFrom(data);
1131 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1132 com.google.protobuf.ByteString data,
1133 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1134 throws com.google.protobuf.InvalidProtocolBufferException {
1135 return PARSER.parseFrom(data, extensionRegistry);
1137 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(byte[] data)
1138 throws com.google.protobuf.InvalidProtocolBufferException {
1139 return PARSER.parseFrom(data);
1141 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1143 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1144 throws com.google.protobuf.InvalidProtocolBufferException {
1145 return PARSER.parseFrom(data, extensionRegistry);
1147 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(java.io.InputStream input)
1148 throws java.io.IOException {
1149 return PARSER.parseFrom(input);
1151 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1152 java.io.InputStream input,
1153 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1154 throws java.io.IOException {
1155 return PARSER.parseFrom(input, extensionRegistry);
1157 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseDelimitedFrom(java.io.InputStream input)
1158 throws java.io.IOException {
1159 return PARSER.parseDelimitedFrom(input);
1161 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseDelimitedFrom(
1162 java.io.InputStream input,
1163 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1164 throws java.io.IOException {
1165 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1167 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1168 com.google.protobuf.CodedInputStream input)
1169 throws java.io.IOException {
1170 return PARSER.parseFrom(input);
1172 public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1173 com.google.protobuf.CodedInputStream input,
1174 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1175 throws java.io.IOException {
1176 return PARSER.parseFrom(input, extensionRegistry);
1179 public static Builder newBuilder() { return Builder.create(); }
1180 public Builder newBuilderForType() { return newBuilder(); }
1181 public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification prototype) {
1182 return newBuilder().mergeFrom(prototype);
1184 public Builder toBuilder() { return newBuilder(this); }
1187 protected Builder newBuilderForType(
1188 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1189 Builder builder = new Builder(parent);
1193 * Protobuf type {@code org.opendaylight.controller.mdsal.CompositeModification}
1195 public static final class Builder extends
1196 com.google.protobuf.GeneratedMessage.Builder<Builder>
1197 implements org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModificationOrBuilder {
1198 public static final com.google.protobuf.Descriptors.Descriptor
1200 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor;
1203 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1204 internalGetFieldAccessorTable() {
1205 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_fieldAccessorTable
1206 .ensureFieldAccessorsInitialized(
1207 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.class, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.Builder.class);
1210 // Construct using org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.newBuilder()
1212 maybeForceBuilderInitialization();
1216 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1218 maybeForceBuilderInitialization();
1220 private void maybeForceBuilderInitialization() {
1221 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1222 getModificationFieldBuilder();
1225 private static Builder create() {
1226 return new Builder();
1229 public Builder clear() {
1231 if (modificationBuilder_ == null) {
1232 modification_ = java.util.Collections.emptyList();
1233 bitField0_ = (bitField0_ & ~0x00000001);
1235 modificationBuilder_.clear();
1240 public Builder clone() {
1241 return create().mergeFrom(buildPartial());
1244 public com.google.protobuf.Descriptors.Descriptor
1245 getDescriptorForType() {
1246 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor;
1249 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification getDefaultInstanceForType() {
1250 return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.getDefaultInstance();
1253 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification build() {
1254 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification result = buildPartial();
1255 if (!result.isInitialized()) {
1256 throw newUninitializedMessageException(result);
1261 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification buildPartial() {
1262 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification result = new org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification(this);
1263 int from_bitField0_ = bitField0_;
1264 if (modificationBuilder_ == null) {
1265 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1266 modification_ = java.util.Collections.unmodifiableList(modification_);
1267 bitField0_ = (bitField0_ & ~0x00000001);
1269 result.modification_ = modification_;
1271 result.modification_ = modificationBuilder_.build();
1277 public Builder mergeFrom(com.google.protobuf.Message other) {
1278 if (other instanceof org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification) {
1279 return mergeFrom((org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification)other);
1281 super.mergeFrom(other);
1286 public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification other) {
1287 if (other == org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.getDefaultInstance()) return this;
1288 if (modificationBuilder_ == null) {
1289 if (!other.modification_.isEmpty()) {
1290 if (modification_.isEmpty()) {
1291 modification_ = other.modification_;
1292 bitField0_ = (bitField0_ & ~0x00000001);
1294 ensureModificationIsMutable();
1295 modification_.addAll(other.modification_);
1300 if (!other.modification_.isEmpty()) {
1301 if (modificationBuilder_.isEmpty()) {
1302 modificationBuilder_.dispose();
1303 modificationBuilder_ = null;
1304 modification_ = other.modification_;
1305 bitField0_ = (bitField0_ & ~0x00000001);
1306 modificationBuilder_ =
1307 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1308 getModificationFieldBuilder() : null;
1310 modificationBuilder_.addAllMessages(other.modification_);
1314 this.mergeUnknownFields(other.getUnknownFields());
1318 public final boolean isInitialized() {
1319 for (int i = 0; i < getModificationCount(); i++) {
1320 if (!getModification(i).isInitialized()) {
1328 public Builder mergeFrom(
1329 com.google.protobuf.CodedInputStream input,
1330 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1331 throws java.io.IOException {
1332 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parsedMessage = null;
1334 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1335 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1336 parsedMessage = (org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification) e.getUnfinishedMessage();
1339 if (parsedMessage != null) {
1340 mergeFrom(parsedMessage);
1345 private int bitField0_;
1347 // repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
1348 private java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> modification_ =
1349 java.util.Collections.emptyList();
1350 private void ensureModificationIsMutable() {
1351 if (!((bitField0_ & 0x00000001) == 0x00000001)) {
1352 modification_ = new java.util.ArrayList<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification>(modification_);
1353 bitField0_ |= 0x00000001;
1357 private com.google.protobuf.RepeatedFieldBuilder<
1358 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder> modificationBuilder_;
1361 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1363 public java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> getModificationList() {
1364 if (modificationBuilder_ == null) {
1365 return java.util.Collections.unmodifiableList(modification_);
1367 return modificationBuilder_.getMessageList();
1371 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1373 public int getModificationCount() {
1374 if (modificationBuilder_ == null) {
1375 return modification_.size();
1377 return modificationBuilder_.getCount();
1381 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1383 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getModification(int index) {
1384 if (modificationBuilder_ == null) {
1385 return modification_.get(index);
1387 return modificationBuilder_.getMessage(index);
1391 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1393 public Builder setModification(
1394 int index, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
1395 if (modificationBuilder_ == null) {
1396 if (value == null) {
1397 throw new NullPointerException();
1399 ensureModificationIsMutable();
1400 modification_.set(index, value);
1403 modificationBuilder_.setMessage(index, value);
1408 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1410 public Builder setModification(
1411 int index, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
1412 if (modificationBuilder_ == null) {
1413 ensureModificationIsMutable();
1414 modification_.set(index, builderForValue.build());
1417 modificationBuilder_.setMessage(index, builderForValue.build());
1422 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1424 public Builder addModification(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
1425 if (modificationBuilder_ == null) {
1426 if (value == null) {
1427 throw new NullPointerException();
1429 ensureModificationIsMutable();
1430 modification_.add(value);
1433 modificationBuilder_.addMessage(value);
1438 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1440 public Builder addModification(
1441 int index, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
1442 if (modificationBuilder_ == null) {
1443 if (value == null) {
1444 throw new NullPointerException();
1446 ensureModificationIsMutable();
1447 modification_.add(index, value);
1450 modificationBuilder_.addMessage(index, value);
1455 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1457 public Builder addModification(
1458 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
1459 if (modificationBuilder_ == null) {
1460 ensureModificationIsMutable();
1461 modification_.add(builderForValue.build());
1464 modificationBuilder_.addMessage(builderForValue.build());
1469 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1471 public Builder addModification(
1472 int index, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
1473 if (modificationBuilder_ == null) {
1474 ensureModificationIsMutable();
1475 modification_.add(index, builderForValue.build());
1478 modificationBuilder_.addMessage(index, builderForValue.build());
1483 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1485 public Builder addAllModification(
1486 java.lang.Iterable<? extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> values) {
1487 if (modificationBuilder_ == null) {
1488 ensureModificationIsMutable();
1489 super.addAll(values, modification_);
1492 modificationBuilder_.addAllMessages(values);
1497 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1499 public Builder clearModification() {
1500 if (modificationBuilder_ == null) {
1501 modification_ = java.util.Collections.emptyList();
1502 bitField0_ = (bitField0_ & ~0x00000001);
1505 modificationBuilder_.clear();
1510 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1512 public Builder removeModification(int index) {
1513 if (modificationBuilder_ == null) {
1514 ensureModificationIsMutable();
1515 modification_.remove(index);
1518 modificationBuilder_.remove(index);
1523 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1525 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder getModificationBuilder(
1527 return getModificationFieldBuilder().getBuilder(index);
1530 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1532 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder getModificationOrBuilder(
1534 if (modificationBuilder_ == null) {
1535 return modification_.get(index); } else {
1536 return modificationBuilder_.getMessageOrBuilder(index);
1540 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1542 public java.util.List<? extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
1543 getModificationOrBuilderList() {
1544 if (modificationBuilder_ != null) {
1545 return modificationBuilder_.getMessageOrBuilderList();
1547 return java.util.Collections.unmodifiableList(modification_);
1551 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1553 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder addModificationBuilder() {
1554 return getModificationFieldBuilder().addBuilder(
1555 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.getDefaultInstance());
1558 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1560 public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder addModificationBuilder(
1562 return getModificationFieldBuilder().addBuilder(
1563 index, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.getDefaultInstance());
1566 * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1568 public java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder>
1569 getModificationBuilderList() {
1570 return getModificationFieldBuilder().getBuilderList();
1572 private com.google.protobuf.RepeatedFieldBuilder<
1573 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
1574 getModificationFieldBuilder() {
1575 if (modificationBuilder_ == null) {
1576 modificationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1577 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>(
1579 ((bitField0_ & 0x00000001) == 0x00000001),
1580 getParentForChildren(),
1582 modification_ = null;
1584 return modificationBuilder_;
1587 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.CompositeModification)
1591 defaultInstance = new CompositeModification(true);
1592 defaultInstance.initFields();
1595 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.CompositeModification)
1598 private static com.google.protobuf.Descriptors.Descriptor
1599 internal_static_org_opendaylight_controller_mdsal_Modification_descriptor;
1601 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1602 internal_static_org_opendaylight_controller_mdsal_Modification_fieldAccessorTable;
1603 private static com.google.protobuf.Descriptors.Descriptor
1604 internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor;
1606 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1607 internal_static_org_opendaylight_controller_mdsal_CompositeModification_fieldAccessorTable;
1609 public static com.google.protobuf.Descriptors.FileDescriptor
1613 private static com.google.protobuf.Descriptors.FileDescriptor
1616 java.lang.String[] descriptorData = {
1617 "\n\020Persistent.proto\022!org.opendaylight.con" +
1618 "troller.mdsal\032\014Common.proto\032\033AppendEntri" +
1619 "esMessages.proto\"\230\001\n\014Modification\022\014\n\004typ" +
1620 "e\030\001 \002(\t\022C\n\004path\030\002 \002(\01325.org.opendaylight" +
1621 ".controller.mdsal.InstanceIdentifier\0225\n\004" +
1622 "data\030\003 \001(\0132\'.org.opendaylight.controller" +
1623 ".mdsal.Node\"^\n\025CompositeModification\022E\n\014" +
1624 "modification\030\001 \003(\0132/.org.opendaylight.co" +
1625 "ntroller.mdsal.ModificationBO\n9org.opend" +
1626 "aylight.controller.protobuff.messages.pe",
1627 "rsistentB\022PersistentMessages"
1629 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1630 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1631 public com.google.protobuf.ExtensionRegistry assignDescriptors(
1632 com.google.protobuf.Descriptors.FileDescriptor root) {
1634 internal_static_org_opendaylight_controller_mdsal_Modification_descriptor =
1635 getDescriptor().getMessageTypes().get(0);
1636 internal_static_org_opendaylight_controller_mdsal_Modification_fieldAccessorTable = new
1637 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1638 internal_static_org_opendaylight_controller_mdsal_Modification_descriptor,
1639 new java.lang.String[] { "Type", "Path", "Data", });
1640 internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor =
1641 getDescriptor().getMessageTypes().get(1);
1642 internal_static_org_opendaylight_controller_mdsal_CompositeModification_fieldAccessorTable = new
1643 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1644 internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor,
1645 new java.lang.String[] { "Modification", });
1649 com.google.protobuf.Descriptors.FileDescriptor
1650 .internalBuildGeneratedFileFrom(descriptorData,
1651 new com.google.protobuf.Descriptors.FileDescriptor[] {
1652 org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.getDescriptor(),
1653 org.opendaylight.controller.cluster.raft.protobuff.messages.AppendEntriesMessages.getDescriptor(),
1657 // @@protoc_insertion_point(outer_class_scope)