X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-protocolbuffer-encoding%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotobuff%2Fmessages%2Fregistration%2FListenerRegistrationMessages.java;h=0f439d8c7cc7f1c84ee9fdc80bf902a36d4094eb;hp=d07c6781b67e4ff0e0e5351dadc4bcae6f33aa71;hb=eb887b1c2c8cd2768f8b4c2ed2b5054f97798466;hpb=1e59825dbec7b354d76bd7efa6a61e4ad802c802 diff --git a/opendaylight/md-sal/sal-protocolbuffer-encoding/src/main/java/org/opendaylight/controller/protobuff/messages/registration/ListenerRegistrationMessages.java b/opendaylight/md-sal/sal-protocolbuffer-encoding/src/main/java/org/opendaylight/controller/protobuff/messages/registration/ListenerRegistrationMessages.java index d07c6781b6..0f439d8c7c 100644 --- a/opendaylight/md-sal/sal-protocolbuffer-encoding/src/main/java/org/opendaylight/controller/protobuff/messages/registration/ListenerRegistrationMessages.java +++ b/opendaylight/md-sal/sal-protocolbuffer-encoding/src/main/java/org/opendaylight/controller/protobuff/messages/registration/ListenerRegistrationMessages.java @@ -1,3 +1,13 @@ +/* + * + * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + */ + // Generated by the protocol buffer compiler. DO NOT EDIT! // source: ListenerRegistration.proto @@ -645,20 +655,19 @@ public final class ListenerRegistrationMessages { public interface RegisterChangeListenerOrBuilder extends com.google.protobuf.MessageOrBuilder { - // required string instanceIdentifierPath = 1; + // required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ boolean hasInstanceIdentifierPath(); /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ - java.lang.String getInstanceIdentifierPath(); + org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getInstanceIdentifierPath(); /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ - com.google.protobuf.ByteString - getInstanceIdentifierPathBytes(); + org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder getInstanceIdentifierPathOrBuilder(); // required string dataChangeListenerActorPath = 2; /** @@ -737,8 +746,16 @@ public final class ListenerRegistrationMessages { break; } case 10: { + org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = instanceIdentifierPath_.toBuilder(); + } + instanceIdentifierPath_ = input.readMessage(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instanceIdentifierPath_); + instanceIdentifierPath_ = subBuilder.buildPartial(); + } bitField0_ |= 0x00000001; - instanceIdentifierPath_ = input.readBytes(); break; } case 18: { @@ -791,47 +808,26 @@ public final class ListenerRegistrationMessages { } private int bitField0_; - // required string instanceIdentifierPath = 1; + // required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; public static final int INSTANCEIDENTIFIERPATH_FIELD_NUMBER = 1; - private java.lang.Object instanceIdentifierPath_; + private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier instanceIdentifierPath_; /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ public boolean hasInstanceIdentifierPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ - public java.lang.String getInstanceIdentifierPath() { - java.lang.Object ref = instanceIdentifierPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - instanceIdentifierPath_ = s; - } - return s; - } + public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getInstanceIdentifierPath() { + return instanceIdentifierPath_; } /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ - public com.google.protobuf.ByteString - getInstanceIdentifierPathBytes() { - java.lang.Object ref = instanceIdentifierPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceIdentifierPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder getInstanceIdentifierPathOrBuilder() { + return instanceIdentifierPath_; } // required string dataChangeListenerActorPath = 2; @@ -894,7 +890,7 @@ public final class ListenerRegistrationMessages { } private void initFields() { - instanceIdentifierPath_ = ""; + instanceIdentifierPath_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance(); dataChangeListenerActorPath_ = ""; dataChangeScope_ = 0; } @@ -915,6 +911,10 @@ public final class ListenerRegistrationMessages { memoizedIsInitialized = 0; return false; } + if (!getInstanceIdentifierPath().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } memoizedIsInitialized = 1; return true; } @@ -923,7 +923,7 @@ public final class ListenerRegistrationMessages { throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getInstanceIdentifierPathBytes()); + output.writeMessage(1, instanceIdentifierPath_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getDataChangeListenerActorPathBytes()); @@ -942,7 +942,7 @@ public final class ListenerRegistrationMessages { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getInstanceIdentifierPathBytes()); + .computeMessageSize(1, instanceIdentifierPath_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream @@ -1060,6 +1060,7 @@ public final class ListenerRegistrationMessages { } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getInstanceIdentifierPathFieldBuilder(); } } private static Builder create() { @@ -1068,7 +1069,11 @@ public final class ListenerRegistrationMessages { public Builder clear() { super.clear(); - instanceIdentifierPath_ = ""; + if (instanceIdentifierPathBuilder_ == null) { + instanceIdentifierPath_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance(); + } else { + instanceIdentifierPathBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000001); dataChangeListenerActorPath_ = ""; bitField0_ = (bitField0_ & ~0x00000002); @@ -1105,7 +1110,11 @@ public final class ListenerRegistrationMessages { if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.instanceIdentifierPath_ = instanceIdentifierPath_; + if (instanceIdentifierPathBuilder_ == null) { + result.instanceIdentifierPath_ = instanceIdentifierPath_; + } else { + result.instanceIdentifierPath_ = instanceIdentifierPathBuilder_.build(); + } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } @@ -1131,9 +1140,7 @@ public final class ListenerRegistrationMessages { public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListener other) { if (other == org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListener.getDefaultInstance()) return this; if (other.hasInstanceIdentifierPath()) { - bitField0_ |= 0x00000001; - instanceIdentifierPath_ = other.instanceIdentifierPath_; - onChanged(); + mergeInstanceIdentifierPath(other.getInstanceIdentifierPath()); } if (other.hasDataChangeListenerActorPath()) { bitField0_ |= 0x00000002; @@ -1160,6 +1167,10 @@ public final class ListenerRegistrationMessages { return false; } + if (!getInstanceIdentifierPath().isInitialized()) { + + return false; + } return true; } @@ -1182,78 +1193,121 @@ public final class ListenerRegistrationMessages { } private int bitField0_; - // required string instanceIdentifierPath = 1; - private java.lang.Object instanceIdentifierPath_ = ""; + // required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; + private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier instanceIdentifierPath_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + 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> instanceIdentifierPathBuilder_; /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ public boolean hasInstanceIdentifierPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ - public java.lang.String getInstanceIdentifierPath() { - java.lang.Object ref = instanceIdentifierPath_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - instanceIdentifierPath_ = s; - return s; + public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getInstanceIdentifierPath() { + if (instanceIdentifierPathBuilder_ == null) { + return instanceIdentifierPath_; } else { - return (java.lang.String) ref; + return instanceIdentifierPathBuilder_.getMessage(); } } /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ - public com.google.protobuf.ByteString - getInstanceIdentifierPathBytes() { - java.lang.Object ref = instanceIdentifierPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceIdentifierPath_ = b; - return b; + public Builder setInstanceIdentifierPath(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier value) { + if (instanceIdentifierPathBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instanceIdentifierPath_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + instanceIdentifierPathBuilder_.setMessage(value); } + bitField0_ |= 0x00000001; + return this; } /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ public Builder setInstanceIdentifierPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - instanceIdentifierPath_ = value; - onChanged(); + org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder builderForValue) { + if (instanceIdentifierPathBuilder_ == null) { + instanceIdentifierPath_ = builderForValue.build(); + onChanged(); + } else { + instanceIdentifierPathBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; return this; } /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; + */ + public Builder mergeInstanceIdentifierPath(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier value) { + if (instanceIdentifierPathBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + instanceIdentifierPath_ != org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance()) { + instanceIdentifierPath_ = + org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.newBuilder(instanceIdentifierPath_).mergeFrom(value).buildPartial(); + } else { + instanceIdentifierPath_ = value; + } + onChanged(); + } else { + instanceIdentifierPathBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ public Builder clearInstanceIdentifierPath() { + if (instanceIdentifierPathBuilder_ == null) { + instanceIdentifierPath_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance(); + onChanged(); + } else { + instanceIdentifierPathBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000001); - instanceIdentifierPath_ = getDefaultInstance().getInstanceIdentifierPath(); - onChanged(); return this; } /** - * required string instanceIdentifierPath = 1; + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; */ - public Builder setInstanceIdentifierPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - instanceIdentifierPath_ = value; + public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder getInstanceIdentifierPathBuilder() { + bitField0_ |= 0x00000001; onChanged(); - return this; + return getInstanceIdentifierPathFieldBuilder().getBuilder(); + } + /** + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; + */ + public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder getInstanceIdentifierPathOrBuilder() { + if (instanceIdentifierPathBuilder_ != null) { + return instanceIdentifierPathBuilder_.getMessageOrBuilder(); + } else { + return instanceIdentifierPath_; + } + } + /** + * required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + 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> + getInstanceIdentifierPathFieldBuilder() { + if (instanceIdentifierPathBuilder_ == null) { + instanceIdentifierPathBuilder_ = new com.google.protobuf.SingleFieldBuilder< + 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>( + instanceIdentifierPath_, + getParentForChildren(), + isClean()); + instanceIdentifierPath_ = null; + } + return instanceIdentifierPathBuilder_; } // required string dataChangeListenerActorPath = 2; @@ -1897,16 +1951,18 @@ public final class ListenerRegistrationMessages { static { java.lang.String[] descriptorData = { "\n\032ListenerRegistration.proto\022!org.openda" + - "ylight.controller.mdsal\"%\n#CloseDataChan" + - "geListenerRegistration\"*\n(CloseDataChang" + - "eListenerRegistrationReply\"v\n\026RegisterCh" + - "angeListener\022\036\n\026instanceIdentifierPath\030\001" + - " \002(\t\022#\n\033dataChangeListenerActorPath\030\002 \002(" + - "\t\022\027\n\017dataChangeScope\030\003 \002(\005\"?\n\033RegisterCh" + - "angeListenerReply\022 \n\030listenerRegistratio" + - "nPath\030\001 \002(\tB[\n;org.opendaylight.controll" + - "er.protobuff.messages.registrationB\034List", - "enerRegistrationMessages" + "ylight.controller.mdsal\032\014Common.proto\"%\n" + + "#CloseDataChangeListenerRegistration\"*\n(" + + "CloseDataChangeListenerRegistrationReply" + + "\"\255\001\n\026RegisterChangeListener\022U\n\026instanceI" + + "dentifierPath\030\001 \002(\01325.org.opendaylight.c" + + "ontroller.mdsal.InstanceIdentifier\022#\n\033da" + + "taChangeListenerActorPath\030\002 \002(\t\022\027\n\017dataC" + + "hangeScope\030\003 \002(\005\"?\n\033RegisterChangeListen" + + "erReply\022 \n\030listenerRegistrationPath\030\001 \002(", + "\tB[\n;org.opendaylight.controller.protobu" + + "ff.messages.registrationB\034ListenerRegist" + + "rationMessages" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -1943,6 +1999,7 @@ public final class ListenerRegistrationMessages { com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.getDescriptor(), }, assigner); }