- return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.class,
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.Builder.class);
- }
-
- public static com.google.protobuf.Parser<CompositeModification> PARSER =
- new com.google.protobuf.AbstractParser<CompositeModification>() {
- public CompositeModification parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new CompositeModification(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<CompositeModification> getParserForType() {
- return PARSER;
- }
-
- // repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
- public static final int MODIFICATION_FIELD_NUMBER = 1;
- private java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification>
- modification_;
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> getModificationList() {
- return modification_;
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public java.util.List<? extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
- getModificationOrBuilderList() {
- return modification_;
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public int getModificationCount() {
- return modification_.size();
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getModification(
- int index) {
- return modification_.get(index);
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder getModificationOrBuilder(
- int index) {
- return modification_.get(index);
- }
-
- private void initFields() {
- modification_ = java.util.Collections.emptyList();
- }
-
- private byte memoizedIsInitialized = -1;
-
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1)
- return isInitialized == 1;
-
- for (int i = 0; i < getModificationCount(); i++) {
- if (!getModification(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- for (int i = 0; i < modification_.size(); i++) {
- output.writeMessage(1, modification_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
-
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1)
- return size;
-
- size = 0;
- for (int i = 0; i < modification_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, modification_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
-
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
- byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
- java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseDelimitedFrom(
- java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
-
- public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
-
- public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return Builder.create();
- }
-
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder(
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification prototype) {
- return newBuilder().mergeFrom(prototype);
- }
-
- public Builder toBuilder() {
- return newBuilder(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code org.opendaylight.controller.mdsal.CompositeModification}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModificationOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.class,
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.Builder.class);
- }
-
- // Construct using org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getModificationFieldBuilder();
- }
- }
-
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- if (modificationBuilder_ == null) {
- modification_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- modificationBuilder_.clear();
- }
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor;
- }
-
- public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification getDefaultInstanceForType() {
- return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification
- .getDefaultInstance();
- }
-
- public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification build() {
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification
- result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification buildPartial() {
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification
- result =
- new org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification(
- this);
- int from_bitField0_ = bitField0_;
- if (modificationBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- modification_ = java.util.Collections
- .unmodifiableList(modification_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.modification_ = modification_;
- } else {
- result.modification_ = modificationBuilder_.build();
- }
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification) {
- return mergeFrom(
- (org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification other) {
- if (other
- == org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification
- .getDefaultInstance())
- return this;
- if (modificationBuilder_ == null) {
- if (!other.modification_.isEmpty()) {
- if (modification_.isEmpty()) {
- modification_ = other.modification_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureModificationIsMutable();
- modification_.addAll(other.modification_);
- }
- onChanged();
- }
- } else {
- if (!other.modification_.isEmpty()) {
- if (modificationBuilder_.isEmpty()) {
- modificationBuilder_.dispose();
- modificationBuilder_ = null;
- modification_ = other.modification_;
- bitField0_ = (bitField0_ & ~0x00000001);
- modificationBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getModificationFieldBuilder() : null;
- } else {
- modificationBuilder_
- .addAllMessages(other.modification_);
- }
- }
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- for (int i = 0; i < getModificationCount(); i++) {
- if (!getModification(i).isInitialized()) {
-
- return false;
- }
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification
- parsedMessage = null;
- try {
- parsedMessage =
- PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage =
- (org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification) e
- .getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- // repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
- private java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification>
- modification_ =
- java.util.Collections.emptyList();
-
- private void ensureModificationIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- modification_ =
- new java.util.ArrayList<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification>(
- modification_);
- bitField0_ |= 0x00000001;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- 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_;
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> getModificationList() {
- if (modificationBuilder_ == null) {
- return java.util.Collections
- .unmodifiableList(modification_);
- } else {
- return modificationBuilder_.getMessageList();
- }
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public int getModificationCount() {
- if (modificationBuilder_ == null) {
- return modification_.size();
- } else {
- return modificationBuilder_.getCount();
- }
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getModification(
- int index) {
- if (modificationBuilder_ == null) {
- return modification_.get(index);
- } else {
- return modificationBuilder_.getMessage(index);
- }
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public Builder setModification(
- int index,
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
- if (modificationBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureModificationIsMutable();
- modification_.set(index, value);
- onChanged();
- } else {
- modificationBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public Builder setModification(
- int index,
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
- if (modificationBuilder_ == null) {
- ensureModificationIsMutable();
- modification_.set(index, builderForValue.build());
- onChanged();
- } else {
- modificationBuilder_
- .setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public Builder addModification(
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
- if (modificationBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureModificationIsMutable();
- modification_.add(value);
- onChanged();
- } else {
- modificationBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public Builder addModification(
- int index,
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
- if (modificationBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureModificationIsMutable();
- modification_.add(index, value);
- onChanged();
- } else {
- modificationBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public Builder addModification(
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
- if (modificationBuilder_ == null) {
- ensureModificationIsMutable();
- modification_.add(builderForValue.build());
- onChanged();
- } else {
- modificationBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public Builder addModification(
- int index,
- org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
- if (modificationBuilder_ == null) {
- ensureModificationIsMutable();
- modification_.add(index, builderForValue.build());
- onChanged();
- } else {
- modificationBuilder_
- .addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public Builder addAllModification(
- java.lang.Iterable<? extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> values) {
- if (modificationBuilder_ == null) {
- ensureModificationIsMutable();
- super.addAll(values, modification_);
- onChanged();
- } else {
- modificationBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public Builder clearModification() {
- if (modificationBuilder_ == null) {
- modification_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- modificationBuilder_.clear();
- }
- return this;
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public Builder removeModification(int index) {
- if (modificationBuilder_ == null) {
- ensureModificationIsMutable();
- modification_.remove(index);
- onChanged();
- } else {
- modificationBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
- */
- public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder getModificationBuilder(
- int index) {
- return getModificationFieldBuilder().getBuilder(index);
- }