// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ListenerRegistration.proto package org.opendaylight.controller.protobuff.messages.registration; public final class ListenerRegistrationMessages { private ListenerRegistrationMessages() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface CloseDataChangeListenerRegistrationOrBuilder extends com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code org.opendaylight.controller.mdsal.CloseDataChangeListenerRegistration} * *
** used when a listener needs to be unregistered **/ public static final class CloseDataChangeListenerRegistration extends com.google.protobuf.GeneratedMessage implements CloseDataChangeListenerRegistrationOrBuilder { // Use CloseDataChangeListenerRegistration.newBuilder() to construct. private CloseDataChangeListenerRegistration(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CloseDataChangeListenerRegistration(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CloseDataChangeListenerRegistration defaultInstance; public static CloseDataChangeListenerRegistration getDefaultInstance() { return defaultInstance; } public CloseDataChangeListenerRegistration getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CloseDataChangeListenerRegistration( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistration_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistration_fieldAccessorTable .ensureFieldAccessorsInitialized( org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.CloseDataChangeListenerRegistration.class, org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.CloseDataChangeListenerRegistration.Builder.class); } public static com.google.protobuf.Parser
** used when a listener needs to be unregistered **/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
** reply to the CloseDataChangeListenerRegistration request **/ public static final class CloseDataChangeListenerRegistrationReply extends com.google.protobuf.GeneratedMessage implements CloseDataChangeListenerRegistrationReplyOrBuilder { // Use CloseDataChangeListenerRegistrationReply.newBuilder() to construct. private CloseDataChangeListenerRegistrationReply(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CloseDataChangeListenerRegistrationReply(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CloseDataChangeListenerRegistrationReply defaultInstance; public static CloseDataChangeListenerRegistrationReply getDefaultInstance() { return defaultInstance; } public CloseDataChangeListenerRegistrationReply getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CloseDataChangeListenerRegistrationReply( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistrationReply_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistrationReply_fieldAccessorTable .ensureFieldAccessorsInitialized( org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.CloseDataChangeListenerRegistrationReply.class, org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.CloseDataChangeListenerRegistrationReply.Builder.class); } public static com.google.protobuf.Parser
** reply to the CloseDataChangeListenerRegistration request **/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1;
*/
boolean hasInstanceIdentifierPath();
/**
* required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1;
*/
org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getInstanceIdentifierPath();
/**
* required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1;
*/
org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder getInstanceIdentifierPathOrBuilder();
// required string dataChangeListenerActorPath = 2;
/**
* required string dataChangeListenerActorPath = 2;
*/
boolean hasDataChangeListenerActorPath();
/**
* required string dataChangeListenerActorPath = 2;
*/
java.lang.String getDataChangeListenerActorPath();
/**
* required string dataChangeListenerActorPath = 2;
*/
com.google.protobuf.ByteString
getDataChangeListenerActorPathBytes();
// required int32 dataChangeScope = 3;
/**
* required int32 dataChangeScope = 3;
*/
boolean hasDataChangeScope();
/**
* required int32 dataChangeScope = 3;
*/
int getDataChangeScope();
}
/**
* Protobuf type {@code org.opendaylight.controller.mdsal.RegisterChangeListener}
*/
public static final class RegisterChangeListener extends
com.google.protobuf.GeneratedMessage
implements RegisterChangeListenerOrBuilder {
// Use RegisterChangeListener.newBuilder() to construct.
private RegisterChangeListener(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RegisterChangeListener(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RegisterChangeListener defaultInstance;
public static RegisterChangeListener getDefaultInstance() {
return defaultInstance;
}
public RegisterChangeListener getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RegisterChangeListener(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
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;
break;
}
case 18: {
bitField0_ |= 0x00000002;
dataChangeListenerActorPath_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
dataChangeScope_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.internal_static_org_opendaylight_controller_mdsal_RegisterChangeListener_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.internal_static_org_opendaylight_controller_mdsal_RegisterChangeListener_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListener.class, org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListener.Builder.class);
}
public static com.google.protobuf.Parserrequired .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1;
*/
public boolean hasInstanceIdentifierPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1;
*/
public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getInstanceIdentifierPath() {
return instanceIdentifierPath_;
}
/**
* required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1;
*/
public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder getInstanceIdentifierPathOrBuilder() {
return instanceIdentifierPath_;
}
// required string dataChangeListenerActorPath = 2;
public static final int DATACHANGELISTENERACTORPATH_FIELD_NUMBER = 2;
private java.lang.Object dataChangeListenerActorPath_;
/**
* required string dataChangeListenerActorPath = 2;
*/
public boolean hasDataChangeListenerActorPath() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string dataChangeListenerActorPath = 2;
*/
public java.lang.String getDataChangeListenerActorPath() {
java.lang.Object ref = dataChangeListenerActorPath_;
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()) {
dataChangeListenerActorPath_ = s;
}
return s;
}
}
/**
* required string dataChangeListenerActorPath = 2;
*/
public com.google.protobuf.ByteString
getDataChangeListenerActorPathBytes() {
java.lang.Object ref = dataChangeListenerActorPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataChangeListenerActorPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 dataChangeScope = 3;
public static final int DATACHANGESCOPE_FIELD_NUMBER = 3;
private int dataChangeScope_;
/**
* required int32 dataChangeScope = 3;
*/
public boolean hasDataChangeScope() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 dataChangeScope = 3;
*/
public int getDataChangeScope() {
return dataChangeScope_;
}
private void initFields() {
instanceIdentifierPath_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance();
dataChangeListenerActorPath_ = "";
dataChangeScope_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasInstanceIdentifierPath()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasDataChangeListenerActorPath()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasDataChangeScope()) {
memoizedIsInitialized = 0;
return false;
}
if (!getInstanceIdentifierPath().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, instanceIdentifierPath_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getDataChangeListenerActorPathBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, dataChangeScope_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, instanceIdentifierPath_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getDataChangeListenerActorPathBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, dataChangeScope_);
}
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.registration.ListenerRegistrationMessages.RegisterChangeListener parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListener 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.registration.ListenerRegistrationMessages.RegisterChangeListener parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListener 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.registration.ListenerRegistrationMessages.RegisterChangeListener parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListener 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.registration.ListenerRegistrationMessages.RegisterChangeListener parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListener 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.registration.ListenerRegistrationMessages.RegisterChangeListener parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListener 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.registration.ListenerRegistrationMessages.RegisterChangeListener 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.RegisterChangeListener}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderrequired .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1;
*/
public boolean hasInstanceIdentifierPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1;
*/
public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getInstanceIdentifierPath() {
if (instanceIdentifierPathBuilder_ == null) {
return instanceIdentifierPath_;
} else {
return instanceIdentifierPathBuilder_.getMessage();
}
}
/**
* required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1;
*/
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 {
instanceIdentifierPathBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1;
*/
public Builder setInstanceIdentifierPath(
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 .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);
return this;
}
/**
* required .org.opendaylight.controller.mdsal.InstanceIdentifier instanceIdentifierPath = 1;
*/
public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder getInstanceIdentifierPathBuilder() {
bitField0_ |= 0x00000001;
onChanged();
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;
private java.lang.Object dataChangeListenerActorPath_ = "";
/**
* required string dataChangeListenerActorPath = 2;
*/
public boolean hasDataChangeListenerActorPath() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string dataChangeListenerActorPath = 2;
*/
public java.lang.String getDataChangeListenerActorPath() {
java.lang.Object ref = dataChangeListenerActorPath_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
dataChangeListenerActorPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string dataChangeListenerActorPath = 2;
*/
public com.google.protobuf.ByteString
getDataChangeListenerActorPathBytes() {
java.lang.Object ref = dataChangeListenerActorPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataChangeListenerActorPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string dataChangeListenerActorPath = 2;
*/
public Builder setDataChangeListenerActorPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
dataChangeListenerActorPath_ = value;
onChanged();
return this;
}
/**
* required string dataChangeListenerActorPath = 2;
*/
public Builder clearDataChangeListenerActorPath() {
bitField0_ = (bitField0_ & ~0x00000002);
dataChangeListenerActorPath_ = getDefaultInstance().getDataChangeListenerActorPath();
onChanged();
return this;
}
/**
* required string dataChangeListenerActorPath = 2;
*/
public Builder setDataChangeListenerActorPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
dataChangeListenerActorPath_ = value;
onChanged();
return this;
}
// required int32 dataChangeScope = 3;
private int dataChangeScope_ ;
/**
* required int32 dataChangeScope = 3;
*/
public boolean hasDataChangeScope() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 dataChangeScope = 3;
*/
public int getDataChangeScope() {
return dataChangeScope_;
}
/**
* required int32 dataChangeScope = 3;
*/
public Builder setDataChangeScope(int value) {
bitField0_ |= 0x00000004;
dataChangeScope_ = value;
onChanged();
return this;
}
/**
* required int32 dataChangeScope = 3;
*/
public Builder clearDataChangeScope() {
bitField0_ = (bitField0_ & ~0x00000004);
dataChangeScope_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.RegisterChangeListener)
}
static {
defaultInstance = new RegisterChangeListener(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.RegisterChangeListener)
}
public interface RegisterChangeListenerReplyOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string listenerRegistrationPath = 1;
/**
* required string listenerRegistrationPath = 1;
*/
boolean hasListenerRegistrationPath();
/**
* required string listenerRegistrationPath = 1;
*/
java.lang.String getListenerRegistrationPath();
/**
* required string listenerRegistrationPath = 1;
*/
com.google.protobuf.ByteString
getListenerRegistrationPathBytes();
}
/**
* Protobuf type {@code org.opendaylight.controller.mdsal.RegisterChangeListenerReply}
*
* ** * This is the reply for the RegisterChangeListener message * It contains the listenerRegistration actor path * that can be used to unregister the listener **/ public static final class RegisterChangeListenerReply extends com.google.protobuf.GeneratedMessage implements RegisterChangeListenerReplyOrBuilder { // Use RegisterChangeListenerReply.newBuilder() to construct. private RegisterChangeListenerReply(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RegisterChangeListenerReply(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RegisterChangeListenerReply defaultInstance; public static RegisterChangeListenerReply getDefaultInstance() { return defaultInstance; } public RegisterChangeListenerReply getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegisterChangeListenerReply( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; listenerRegistrationPath_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.internal_static_org_opendaylight_controller_mdsal_RegisterChangeListenerReply_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.internal_static_org_opendaylight_controller_mdsal_RegisterChangeListenerReply_fieldAccessorTable .ensureFieldAccessorsInitialized( org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListenerReply.class, org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListenerReply.Builder.class); } public static com.google.protobuf.Parser
required string listenerRegistrationPath = 1;
*/
public boolean hasListenerRegistrationPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string listenerRegistrationPath = 1;
*/
public java.lang.String getListenerRegistrationPath() {
java.lang.Object ref = listenerRegistrationPath_;
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()) {
listenerRegistrationPath_ = s;
}
return s;
}
}
/**
* required string listenerRegistrationPath = 1;
*/
public com.google.protobuf.ByteString
getListenerRegistrationPathBytes() {
java.lang.Object ref = listenerRegistrationPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
listenerRegistrationPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
listenerRegistrationPath_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasListenerRegistrationPath()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getListenerRegistrationPathBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getListenerRegistrationPathBytes());
}
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.registration.ListenerRegistrationMessages.RegisterChangeListenerReply parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListenerReply 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.registration.ListenerRegistrationMessages.RegisterChangeListenerReply parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListenerReply 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.registration.ListenerRegistrationMessages.RegisterChangeListenerReply parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListenerReply 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.registration.ListenerRegistrationMessages.RegisterChangeListenerReply parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListenerReply 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.registration.ListenerRegistrationMessages.RegisterChangeListenerReply parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.opendaylight.controller.protobuff.messages.registration.ListenerRegistrationMessages.RegisterChangeListenerReply 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.registration.ListenerRegistrationMessages.RegisterChangeListenerReply 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.RegisterChangeListenerReply}
*
* ** * This is the reply for the RegisterChangeListener message * It contains the listenerRegistration actor path * that can be used to unregister the listener **/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
required string listenerRegistrationPath = 1;
*/
public boolean hasListenerRegistrationPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string listenerRegistrationPath = 1;
*/
public java.lang.String getListenerRegistrationPath() {
java.lang.Object ref = listenerRegistrationPath_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
listenerRegistrationPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string listenerRegistrationPath = 1;
*/
public com.google.protobuf.ByteString
getListenerRegistrationPathBytes() {
java.lang.Object ref = listenerRegistrationPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
listenerRegistrationPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string listenerRegistrationPath = 1;
*/
public Builder setListenerRegistrationPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
listenerRegistrationPath_ = value;
onChanged();
return this;
}
/**
* required string listenerRegistrationPath = 1;
*/
public Builder clearListenerRegistrationPath() {
bitField0_ = (bitField0_ & ~0x00000001);
listenerRegistrationPath_ = getDefaultInstance().getListenerRegistrationPath();
onChanged();
return this;
}
/**
* required string listenerRegistrationPath = 1;
*/
public Builder setListenerRegistrationPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
listenerRegistrationPath_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.RegisterChangeListenerReply)
}
static {
defaultInstance = new RegisterChangeListenerReply(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.RegisterChangeListenerReply)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistration_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistration_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistrationReply_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistrationReply_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_org_opendaylight_controller_mdsal_RegisterChangeListener_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_org_opendaylight_controller_mdsal_RegisterChangeListener_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_org_opendaylight_controller_mdsal_RegisterChangeListenerReply_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_org_opendaylight_controller_mdsal_RegisterChangeListenerReply_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\032ListenerRegistration.proto\022!org.openda" +
"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() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistration_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistration_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistration_descriptor,
new java.lang.String[] { });
internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistrationReply_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistrationReply_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_org_opendaylight_controller_mdsal_CloseDataChangeListenerRegistrationReply_descriptor,
new java.lang.String[] { });
internal_static_org_opendaylight_controller_mdsal_RegisterChangeListener_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_org_opendaylight_controller_mdsal_RegisterChangeListener_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_org_opendaylight_controller_mdsal_RegisterChangeListener_descriptor,
new java.lang.String[] { "InstanceIdentifierPath", "DataChangeListenerActorPath", "DataChangeScope", });
internal_static_org_opendaylight_controller_mdsal_RegisterChangeListenerReply_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_org_opendaylight_controller_mdsal_RegisterChangeListenerReply_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_org_opendaylight_controller_mdsal_RegisterChangeListenerReply_descriptor,
new java.lang.String[] { "ListenerRegistrationPath", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}