public static final class NotificationType.Notification extends com.google.protobuf.GeneratedMessage implements NotificationType.NotificationOrBuilder
rsb.protocol.Notification
The Notification message is the wire format and serialization mechanism used by the RSB Spread transport and other transports. Notification messages contain * event routing information, * event payloads * and optional event meta-data such as timestamps See https://docs.cor-lab.org/rsb-manual/trunk/html/specification-event.html for more information regarding events.
Modifier and Type | Class and Description |
---|---|
static class |
NotificationType.Notification.Builder
Protobuf type
rsb.protocol.Notification |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
CAUSES_FIELD_NUMBER |
static int |
DATA_FIELD_NUMBER |
static int |
EVENT_ID_FIELD_NUMBER |
static int |
META_DATA_FIELD_NUMBER |
static int |
METHOD_FIELD_NUMBER |
static com.google.protobuf.Parser<NotificationType.Notification> |
PARSER |
static int |
SCOPE_FIELD_NUMBER |
static int |
WIRE_SCHEMA_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
EventIdType.EventId |
getCauses(int index)
repeated .rsb.protocol.EventId causes = 13; |
int |
getCausesCount()
repeated .rsb.protocol.EventId causes = 13; |
List<EventIdType.EventId> |
getCausesList()
repeated .rsb.protocol.EventId causes = 13; |
EventIdType.EventIdOrBuilder |
getCausesOrBuilder(int index)
repeated .rsb.protocol.EventId causes = 13; |
List<? extends EventIdType.EventIdOrBuilder> |
getCausesOrBuilderList()
repeated .rsb.protocol.EventId causes = 13; |
com.google.protobuf.ByteString |
getData()
optional bytes data = 9; |
static NotificationType.Notification |
getDefaultInstance() |
NotificationType.Notification |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
EventIdType.EventId |
getEventId()
required .rsb.protocol.EventId event_id = 108; |
EventIdType.EventIdOrBuilder |
getEventIdOrBuilder()
required .rsb.protocol.EventId event_id = 108; |
EventMetaDataType.EventMetaData |
getMetaData()
optional .rsb.protocol.EventMetaData meta_data = 15; |
EventMetaDataType.EventMetaDataOrBuilder |
getMetaDataOrBuilder()
optional .rsb.protocol.EventMetaData meta_data = 15; |
com.google.protobuf.ByteString |
getMethod()
optional bytes method = 14 [default = ""]; |
com.google.protobuf.Parser<NotificationType.Notification> |
getParserForType() |
com.google.protobuf.ByteString |
getScope()
optional bytes scope = 6; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
com.google.protobuf.ByteString |
getWireSchema()
optional bytes wire_schema = 7; |
boolean |
hasData()
optional bytes data = 9; |
boolean |
hasEventId()
required .rsb.protocol.EventId event_id = 108; |
boolean |
hasMetaData()
optional .rsb.protocol.EventMetaData meta_data = 15; |
boolean |
hasMethod()
optional bytes method = 14 [default = ""]; |
boolean |
hasScope()
optional bytes scope = 6; |
boolean |
hasWireSchema()
optional bytes wire_schema = 7; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static NotificationType.Notification.Builder |
newBuilder() |
static NotificationType.Notification.Builder |
newBuilder(NotificationType.Notification prototype) |
NotificationType.Notification.Builder |
newBuilderForType() |
protected NotificationType.Notification.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static NotificationType.Notification |
parseDelimitedFrom(InputStream input) |
static NotificationType.Notification |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NotificationType.Notification |
parseFrom(byte[] data) |
static NotificationType.Notification |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NotificationType.Notification |
parseFrom(com.google.protobuf.ByteString data) |
static NotificationType.Notification |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NotificationType.Notification |
parseFrom(com.google.protobuf.CodedInputStream input) |
static NotificationType.Notification |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NotificationType.Notification |
parseFrom(InputStream input) |
static NotificationType.Notification |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
NotificationType.Notification.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<NotificationType.Notification> PARSER
public static final int EVENT_ID_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
public static final int WIRE_SCHEMA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
public static final int CAUSES_FIELD_NUMBER
public static final int META_DATA_FIELD_NUMBER
public static NotificationType.Notification getDefaultInstance()
public NotificationType.Notification getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<NotificationType.Notification> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasEventId()
required .rsb.protocol.EventId event_id = 108;
The unique ID of the event, consisting of the unique id of sending participant and the sequence number of the event. The odd field number is a historical artifact.
hasEventId
in interface NotificationType.NotificationOrBuilder
public EventIdType.EventId getEventId()
required .rsb.protocol.EventId event_id = 108;
The unique ID of the event, consisting of the unique id of sending participant and the sequence number of the event. The odd field number is a historical artifact.
getEventId
in interface NotificationType.NotificationOrBuilder
public EventIdType.EventIdOrBuilder getEventIdOrBuilder()
required .rsb.protocol.EventId event_id = 108;
The unique ID of the event, consisting of the unique id of sending participant and the sequence number of the event. The odd field number is a historical artifact.
getEventIdOrBuilder
in interface NotificationType.NotificationOrBuilder
public boolean hasScope()
optional bytes scope = 6;
The scope to which the encoded event was sent.
hasScope
in interface NotificationType.NotificationOrBuilder
public com.google.protobuf.ByteString getScope()
optional bytes scope = 6;
The scope to which the encoded event was sent.
getScope
in interface NotificationType.NotificationOrBuilder
public boolean hasMethod()
optional bytes method = 14 [default = ""];
An ASCII-string designating the role of this event within a communication pattern. Two such roles could be "REQUEST" and "REPLY" in RPC communication. Note: The bytes type has been chosen to avoid UTF-8 de- and encoding.
hasMethod
in interface NotificationType.NotificationOrBuilder
public com.google.protobuf.ByteString getMethod()
optional bytes method = 14 [default = ""];
An ASCII-string designating the role of this event within a communication pattern. Two such roles could be "REQUEST" and "REPLY" in RPC communication. Note: The bytes type has been chosen to avoid UTF-8 de- and encoding.
getMethod
in interface NotificationType.NotificationOrBuilder
public boolean hasWireSchema()
optional bytes wire_schema = 7;
An ASCII-string designating the wire schema with which the event payload (in the "data" field) has been serialized. Note: The bytes type has been chosen to avoid UTF-8 de- and encoding.
hasWireSchema
in interface NotificationType.NotificationOrBuilder
public com.google.protobuf.ByteString getWireSchema()
optional bytes wire_schema = 7;
An ASCII-string designating the wire schema with which the event payload (in the "data" field) has been serialized. Note: The bytes type has been chosen to avoid UTF-8 de- and encoding.
getWireSchema
in interface NotificationType.NotificationOrBuilder
public boolean hasData()
optional bytes data = 9;
The serialized payload of the event.
hasData
in interface NotificationType.NotificationOrBuilder
public com.google.protobuf.ByteString getData()
optional bytes data = 9;
The serialized payload of the event.
getData
in interface NotificationType.NotificationOrBuilder
public List<EventIdType.EventId> getCausesList()
repeated .rsb.protocol.EventId causes = 13;
A collection of id of other events which have in some way caused this event to be sent.
getCausesList
in interface NotificationType.NotificationOrBuilder
public List<? extends EventIdType.EventIdOrBuilder> getCausesOrBuilderList()
repeated .rsb.protocol.EventId causes = 13;
A collection of id of other events which have in some way caused this event to be sent.
getCausesOrBuilderList
in interface NotificationType.NotificationOrBuilder
public int getCausesCount()
repeated .rsb.protocol.EventId causes = 13;
A collection of id of other events which have in some way caused this event to be sent.
getCausesCount
in interface NotificationType.NotificationOrBuilder
public EventIdType.EventId getCauses(int index)
repeated .rsb.protocol.EventId causes = 13;
A collection of id of other events which have in some way caused this event to be sent.
getCauses
in interface NotificationType.NotificationOrBuilder
public EventIdType.EventIdOrBuilder getCausesOrBuilder(int index)
repeated .rsb.protocol.EventId causes = 13;
A collection of id of other events which have in some way caused this event to be sent.
getCausesOrBuilder
in interface NotificationType.NotificationOrBuilder
public boolean hasMetaData()
optional .rsb.protocol.EventMetaData meta_data = 15;
meta-data storage
hasMetaData
in interface NotificationType.NotificationOrBuilder
public EventMetaDataType.EventMetaData getMetaData()
optional .rsb.protocol.EventMetaData meta_data = 15;
meta-data storage
getMetaData
in interface NotificationType.NotificationOrBuilder
public EventMetaDataType.EventMetaDataOrBuilder getMetaDataOrBuilder()
optional .rsb.protocol.EventMetaData meta_data = 15;
meta-data storage
getMetaDataOrBuilder
in interface NotificationType.NotificationOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static NotificationType.Notification parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static NotificationType.Notification parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static NotificationType.Notification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static NotificationType.Notification parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static NotificationType.Notification parseFrom(InputStream input) throws IOException
IOException
public static NotificationType.Notification parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static NotificationType.Notification parseDelimitedFrom(InputStream input) throws IOException
IOException
public static NotificationType.Notification parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static NotificationType.Notification parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static NotificationType.Notification parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static NotificationType.Notification.Builder newBuilder()
public NotificationType.Notification.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static NotificationType.Notification.Builder newBuilder(NotificationType.Notification prototype)
public NotificationType.Notification.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected NotificationType.Notification.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2018 CoR-Lab. All rights reserved.