public final class Notification extends com.google.protobuf.GeneratedMessageV3 implements NotificationOrBuilder
Notification is a re-usable message that is used to encode data from the
target to the client. A Notification carries two types of changes to the data
tree:
- Deleted values (delete) - a set of paths that have been removed from the
data tree.
- Updated values (update) - a set of path-value pairs indicating the path
whose value has changed in the data tree.
Reference: gNMI Specification Section 2.1
Protobuf type gnmi.Notification| Modifier and Type | Class and Description |
|---|---|
static class |
Notification.Builder
Notification is a re-usable message that is used to encode data from the
target to the client.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ALIAS_FIELD_NUMBER |
static int |
ATOMIC_FIELD_NUMBER |
static int |
DELETE_FIELD_NUMBER |
static int |
PREFIX_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
UPDATE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlias()
An alias for the path specified in the prefix field.
|
com.google.protobuf.ByteString |
getAliasBytes()
An alias for the path specified in the prefix field.
|
boolean |
getAtomic()
This notification contains a set of paths that are always updated together
referenced by a globally unique prefix.
|
static Notification |
getDefaultInstance() |
Notification |
getDefaultInstanceForType() |
Path |
getDelete(int index)
Data elements that have been deleted.
|
int |
getDeleteCount()
Data elements that have been deleted.
|
List<Path> |
getDeleteList()
Data elements that have been deleted.
|
PathOrBuilder |
getDeleteOrBuilder(int index)
Data elements that have been deleted.
|
List<? extends PathOrBuilder> |
getDeleteOrBuilderList()
Data elements that have been deleted.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Notification> |
getParserForType() |
Path |
getPrefix()
Prefix used for paths in the message.
|
PathOrBuilder |
getPrefixOrBuilder()
Prefix used for paths in the message.
|
int |
getSerializedSize() |
long |
getTimestamp()
Timestamp in nanoseconds since Epoch.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Update |
getUpdate(int index)
Data elements that have changed values.
|
int |
getUpdateCount()
Data elements that have changed values.
|
List<Update> |
getUpdateList()
Data elements that have changed values.
|
UpdateOrBuilder |
getUpdateOrBuilder(int index)
Data elements that have changed values.
|
List<? extends UpdateOrBuilder> |
getUpdateOrBuilderList()
Data elements that have changed values.
|
int |
hashCode() |
boolean |
hasPrefix()
Prefix used for paths in the message.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Notification.Builder |
newBuilder() |
static Notification.Builder |
newBuilder(Notification prototype) |
Notification.Builder |
newBuilderForType() |
protected Notification.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Notification |
parseDelimitedFrom(InputStream input) |
static Notification |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Notification |
parseFrom(byte[] data) |
static Notification |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Notification |
parseFrom(ByteBuffer data) |
static Notification |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Notification |
parseFrom(com.google.protobuf.ByteString data) |
static Notification |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Notification |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Notification |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Notification |
parseFrom(InputStream input) |
static Notification |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Notification> |
parser() |
Notification.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TIMESTAMP_FIELD_NUMBER
public static final int PREFIX_FIELD_NUMBER
public static final int ALIAS_FIELD_NUMBER
public static final int UPDATE_FIELD_NUMBER
public static final int DELETE_FIELD_NUMBER
public static final int ATOMIC_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public long getTimestamp()
Timestamp in nanoseconds since Epoch.
int64 timestamp = 1;getTimestamp in interface NotificationOrBuilderpublic boolean hasPrefix()
Prefix used for paths in the message.
.gnmi.Path prefix = 2;hasPrefix in interface NotificationOrBuilderpublic Path getPrefix()
Prefix used for paths in the message.
.gnmi.Path prefix = 2;getPrefix in interface NotificationOrBuilderpublic PathOrBuilder getPrefixOrBuilder()
Prefix used for paths in the message.
.gnmi.Path prefix = 2;getPrefixOrBuilder in interface NotificationOrBuilderpublic String getAlias()
An alias for the path specified in the prefix field. Reference: gNMI Specification Section 2.4.2
string alias = 3;getAlias in interface NotificationOrBuilderpublic com.google.protobuf.ByteString getAliasBytes()
An alias for the path specified in the prefix field. Reference: gNMI Specification Section 2.4.2
string alias = 3;getAliasBytes in interface NotificationOrBuilderpublic List<Update> getUpdateList()
Data elements that have changed values.
repeated .gnmi.Update update = 4;getUpdateList in interface NotificationOrBuilderpublic List<? extends UpdateOrBuilder> getUpdateOrBuilderList()
Data elements that have changed values.
repeated .gnmi.Update update = 4;getUpdateOrBuilderList in interface NotificationOrBuilderpublic int getUpdateCount()
Data elements that have changed values.
repeated .gnmi.Update update = 4;getUpdateCount in interface NotificationOrBuilderpublic Update getUpdate(int index)
Data elements that have changed values.
repeated .gnmi.Update update = 4;getUpdate in interface NotificationOrBuilderpublic UpdateOrBuilder getUpdateOrBuilder(int index)
Data elements that have changed values.
repeated .gnmi.Update update = 4;getUpdateOrBuilder in interface NotificationOrBuilderpublic List<Path> getDeleteList()
Data elements that have been deleted.
repeated .gnmi.Path delete = 5;getDeleteList in interface NotificationOrBuilderpublic List<? extends PathOrBuilder> getDeleteOrBuilderList()
Data elements that have been deleted.
repeated .gnmi.Path delete = 5;getDeleteOrBuilderList in interface NotificationOrBuilderpublic int getDeleteCount()
Data elements that have been deleted.
repeated .gnmi.Path delete = 5;getDeleteCount in interface NotificationOrBuilderpublic Path getDelete(int index)
Data elements that have been deleted.
repeated .gnmi.Path delete = 5;getDelete in interface NotificationOrBuilderpublic PathOrBuilder getDeleteOrBuilder(int index)
Data elements that have been deleted.
repeated .gnmi.Path delete = 5;getDeleteOrBuilder in interface NotificationOrBuilderpublic boolean getAtomic()
This notification contains a set of paths that are always updated together referenced by a globally unique prefix.
bool atomic = 6;getAtomic in interface NotificationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Notification parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Notification parseFrom(InputStream input) throws IOException
IOExceptionpublic static Notification parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Notification parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Notification parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Notification parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Notification parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Notification.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Notification.Builder newBuilder()
public static Notification.Builder newBuilder(Notification prototype)
public Notification.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Notification.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Notification getDefaultInstance()
public static com.google.protobuf.Parser<Notification> parser()
public com.google.protobuf.Parser<Notification> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Notification getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 OpenDaylight. All rights reserved.