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.1Protobuf 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public long getTimestamp()
Timestamp in nanoseconds since Epoch.
int64 timestamp = 1;
getTimestamp
in interface NotificationOrBuilder
public boolean hasPrefix()
Prefix used for paths in the message.
.gnmi.Path prefix = 2;
hasPrefix
in interface NotificationOrBuilder
public Path getPrefix()
Prefix used for paths in the message.
.gnmi.Path prefix = 2;
getPrefix
in interface NotificationOrBuilder
public PathOrBuilder getPrefixOrBuilder()
Prefix used for paths in the message.
.gnmi.Path prefix = 2;
getPrefixOrBuilder
in interface NotificationOrBuilder
public 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 NotificationOrBuilder
public 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 NotificationOrBuilder
public List<Update> getUpdateList()
Data elements that have changed values.
repeated .gnmi.Update update = 4;
getUpdateList
in interface NotificationOrBuilder
public List<? extends UpdateOrBuilder> getUpdateOrBuilderList()
Data elements that have changed values.
repeated .gnmi.Update update = 4;
getUpdateOrBuilderList
in interface NotificationOrBuilder
public int getUpdateCount()
Data elements that have changed values.
repeated .gnmi.Update update = 4;
getUpdateCount
in interface NotificationOrBuilder
public Update getUpdate(int index)
Data elements that have changed values.
repeated .gnmi.Update update = 4;
getUpdate
in interface NotificationOrBuilder
public UpdateOrBuilder getUpdateOrBuilder(int index)
Data elements that have changed values.
repeated .gnmi.Update update = 4;
getUpdateOrBuilder
in interface NotificationOrBuilder
public List<Path> getDeleteList()
Data elements that have been deleted.
repeated .gnmi.Path delete = 5;
getDeleteList
in interface NotificationOrBuilder
public List<? extends PathOrBuilder> getDeleteOrBuilderList()
Data elements that have been deleted.
repeated .gnmi.Path delete = 5;
getDeleteOrBuilderList
in interface NotificationOrBuilder
public int getDeleteCount()
Data elements that have been deleted.
repeated .gnmi.Path delete = 5;
getDeleteCount
in interface NotificationOrBuilder
public Path getDelete(int index)
Data elements that have been deleted.
repeated .gnmi.Path delete = 5;
getDelete
in interface NotificationOrBuilder
public PathOrBuilder getDeleteOrBuilder(int index)
Data elements that have been deleted.
repeated .gnmi.Path delete = 5;
getDeleteOrBuilder
in interface NotificationOrBuilder
public 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 NotificationOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Notification parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Notification parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Notification parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Notification parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Notification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Notification parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Notification parseFrom(InputStream input) throws IOException
IOException
public static Notification parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Notification parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Notification parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Notification parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Notification parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Notification.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Notification.Builder newBuilder()
public static Notification.Builder newBuilder(Notification prototype)
public Notification.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Notification.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Notification getDefaultInstance()
public static com.google.protobuf.Parser<Notification> parser()
public com.google.protobuf.Parser<Notification> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Notification getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2018 OpenDaylight. All rights reserved.