public static final class FragmentedNotificationType.FragmentedNotification extends com.google.protobuf.GeneratedMessage implements FragmentedNotificationType.FragmentedNotificationOrBuilder
rsb.protocol.FragmentedNotification
A message which wraps the normal Notification and extends it with fragmentation information. This message is, for example, used in the Spread transport. See https://code.cor-lab.org/projects/rsb/wiki/SpreadProtocol for information regarding the event <-> notification transformation in this case.
Modifier and Type | Class and Description |
---|---|
static class |
FragmentedNotificationType.FragmentedNotification.Builder
Protobuf type
rsb.protocol.FragmentedNotification |
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 |
DATA_PART_FIELD_NUMBER |
static int |
NOTIFICATION_FIELD_NUMBER |
static int |
NUM_DATA_PARTS_FIELD_NUMBER |
static com.google.protobuf.Parser<FragmentedNotificationType.FragmentedNotification> |
PARSER |
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<FragmentedNotificationType.FragmentedNotification> PARSER
public static final int NOTIFICATION_FIELD_NUMBER
public static final int NUM_DATA_PARTS_FIELD_NUMBER
public static final int DATA_PART_FIELD_NUMBER
public static FragmentedNotificationType.FragmentedNotification getDefaultInstance()
public FragmentedNotificationType.FragmentedNotification 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<FragmentedNotificationType.FragmentedNotification> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasNotification()
required .rsb.protocol.Notification notification = 1;
The original notification in some cases with only required fields filled. The first fragment contains the full meta-data set whereas subsequent FragmentedNotification s only carry payload chunks in this field and the event id for association.
hasNotification
in interface FragmentedNotificationType.FragmentedNotificationOrBuilder
public NotificationType.Notification getNotification()
required .rsb.protocol.Notification notification = 1;
The original notification in some cases with only required fields filled. The first fragment contains the full meta-data set whereas subsequent FragmentedNotification s only carry payload chunks in this field and the event id for association.
getNotification
in interface FragmentedNotificationType.FragmentedNotificationOrBuilder
public NotificationType.NotificationOrBuilder getNotificationOrBuilder()
required .rsb.protocol.Notification notification = 1;
The original notification in some cases with only required fields filled. The first fragment contains the full meta-data set whereas subsequent FragmentedNotification s only carry payload chunks in this field and the event id for association.
getNotificationOrBuilder
in interface FragmentedNotificationType.FragmentedNotificationOrBuilder
public boolean hasNumDataParts()
required uint32 num_data_parts = 2 [default = 1];
The number of notifications an event was split into. Splitting only happens when message size would have been to big for transmission in a single notification. 1 indicates a self-contained, i.e. not split, notification.
hasNumDataParts
in interface FragmentedNotificationType.FragmentedNotificationOrBuilder
public int getNumDataParts()
required uint32 num_data_parts = 2 [default = 1];
The number of notifications an event was split into. Splitting only happens when message size would have been to big for transmission in a single notification. 1 indicates a self-contained, i.e. not split, notification.
getNumDataParts
in interface FragmentedNotificationType.FragmentedNotificationOrBuilder
public boolean hasDataPart()
required uint32 data_part = 3 [default = 0];
The index of the current fragment of a fragmented notification. The initial fragment has index 0.
hasDataPart
in interface FragmentedNotificationType.FragmentedNotificationOrBuilder
public int getDataPart()
required uint32 data_part = 3 [default = 0];
The index of the current fragment of a fragmented notification. The initial fragment has index 0.
getDataPart
in interface FragmentedNotificationType.FragmentedNotificationOrBuilder
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 FragmentedNotificationType.FragmentedNotification parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static FragmentedNotificationType.FragmentedNotification parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static FragmentedNotificationType.FragmentedNotification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static FragmentedNotificationType.FragmentedNotification parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static FragmentedNotificationType.FragmentedNotification parseFrom(InputStream input) throws IOException
IOException
public static FragmentedNotificationType.FragmentedNotification parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static FragmentedNotificationType.FragmentedNotification parseDelimitedFrom(InputStream input) throws IOException
IOException
public static FragmentedNotificationType.FragmentedNotification parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static FragmentedNotificationType.FragmentedNotification parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static FragmentedNotificationType.FragmentedNotification parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static FragmentedNotificationType.FragmentedNotification.Builder newBuilder()
public FragmentedNotificationType.FragmentedNotification.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static FragmentedNotificationType.FragmentedNotification.Builder newBuilder(FragmentedNotificationType.FragmentedNotification prototype)
public FragmentedNotificationType.FragmentedNotification.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected FragmentedNotificationType.FragmentedNotification.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2018 CoR-Lab. All rights reserved.