new EventContext(opt_dataopt)
Generated by JsPbCodeGenerator.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opt_data |
Array |
<optional> |
Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid. |
- Source:
Extends
- jspb.Message
Members
(static) OriginCase :number
Type:
- number
Properties:
Name | Type | Description |
---|---|---|
ORIGIN_NOT_SET |
number | |
COMMAND_CONTEXT |
number | |
EVENT_CONTEXT |
number | |
PAST_MESSAGE |
number | |
IMPORT_CONTEXT |
number |
- Source:
(static) OriginIdCase :number
Type:
- number
Properties:
Name | Type | Description |
---|---|---|
ORIGIN_ID_NOT_SET |
number | |
COMMAND_ID |
number | |
EVENT_ID |
number |
- Source:
(static) displayName
- Source:
Methods
clearCommandContext() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
clearCommandId() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
clearEnrichment() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
clearEventContext() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
clearEventId() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
clearImportContext() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
clearPastMessage() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
clearProducerId() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
clearRejection() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
clearRootCommandId() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
clearTimestamp() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
clearVersion() → (non-null) {proto.spine.core.EventContext}
Clears the message field making it undefined.
- Source:
Returns:
returns this
getCommandContext() → (nullable) {proto.spine.core.CommandContext}
optional CommandContext command_context = 2;
- Source:
Returns:
getCommandId() → (nullable) {proto.spine.core.CommandId}
optional CommandId command_id = 12;
- Source:
Returns:
getEnrichment() → (nullable) {proto.spine.core.Enrichment}
optional Enrichment enrichment = 5;
- Source:
Returns:
getEventContext() → (nullable) {proto.spine.core.EventContext}
optional EventContext event_context = 6;
- Source:
Returns:
getEventId() → (nullable) {proto.spine.core.EventId}
optional EventId event_id = 13;
- Source:
Returns:
getExternal() → {boolean}
optional bool external = 8;
- Source:
Returns:
- Type
- boolean
getImportContext() → (nullable) {proto.spine.core.ActorContext}
optional ActorContext import_context = 11;
- Source:
Returns:
getOriginCase() → {proto.spine.core.EventContext.OriginCase}
- Source:
Returns:
getOriginIdCase() → {proto.spine.core.EventContext.OriginIdCase}
- Source:
Returns:
getPastMessage() → (nullable) {proto.spine.core.Origin}
optional Origin past_message = 14;
- Source:
Returns:
getProducerId() → (nullable) {proto.google.protobuf.Any}
optional google.protobuf.Any producer_id = 3;
- Source:
Returns:
getRejection() → (nullable) {proto.spine.core.RejectionEventContext}
optional RejectionEventContext rejection = 10;
- Source:
Returns:
getRootCommandId() → (nullable) {proto.spine.core.CommandId}
optional CommandId root_command_id = 9;
- Source:
Returns:
getTimestamp() → (nullable) {proto.google.protobuf.Timestamp}
optional google.protobuf.Timestamp timestamp = 1;
- Source:
Returns:
getVersion() → (nullable) {proto.spine.core.Version}
optional Version version = 4;
- Source:
Returns:
hasCommandContext() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasCommandId() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasEnrichment() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasEventContext() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasEventId() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasImportContext() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasPastMessage() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasProducerId() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasRejection() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasRootCommandId() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasTimestamp() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasVersion() → {boolean}
Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
serializeBinary() → (non-null) {Uint8Array}
Serializes the message to binary data (in protobuf wire format).
- Source:
Returns:
- Type
- Uint8Array
setCommandContext(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.spine.core.CommandContext | undefined |
- Source:
Returns:
returns this
setCommandId(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.spine.core.CommandId | undefined |
- Source:
Returns:
returns this
setEnrichment(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.spine.core.Enrichment | undefined |
- Source:
Returns:
returns this
setEventContext(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.spine.core.EventContext | undefined |
- Source:
Returns:
returns this
setEventId(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.spine.core.EventId | undefined |
- Source:
Returns:
returns this
setExternal(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
boolean |
- Source:
Returns:
returns this
setImportContext(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.spine.core.ActorContext | undefined |
- Source:
Returns:
returns this
setPastMessage(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.spine.core.Origin | undefined |
- Source:
Returns:
returns this
setProducerId(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.google.protobuf.Any | undefined |
- Source:
Returns:
returns this
setRejection(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.spine.core.RejectionEventContext | undefined |
- Source:
Returns:
returns this
setRootCommandId(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.spine.core.CommandId | undefined |
- Source:
Returns:
returns this
setTimestamp(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.google.protobuf.Timestamp | undefined |
- Source:
Returns:
returns this
setVersion(value) → (non-null) {proto.spine.core.EventContext}
Parameters:
Name | Type | Description |
---|---|---|
value |
proto.spine.core.Version | undefined |
- Source:
Returns:
returns this
toObject(opt_includeInstanceopt) → (non-null) {Object}
Creates an object representation of this proto.
Field names that are reserved in JavaScript and will be renamed to pb_name.
Optional fields that are not set will be set to undefined.
To access a reserved field use, foo.pb_, eg, foo.pb_default.
For the list of reserved names please see:
net/proto2/compiler/js/internal/generator.cc#kKeyword.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opt_includeInstance |
boolean |
<optional> |
Deprecated. whether to include the JSPB instance for transitional soy proto support: http://goto/soy-param-migration |
- Source:
Returns:
- Type
- Object
(static) deserializeBinary(bytes) → (non-null) {proto.spine.core.EventContext}
Deserializes binary data (in protobuf wire format).
Parameters:
Name | Type | Description |
---|---|---|
bytes |
jspb.ByteSource | The bytes to deserialize. |
- Source:
Returns:
(static) deserializeBinaryFromReader(msgnon-null, readernon-null) → (non-null) {proto.spine.core.EventContext}
Deserializes binary data (in protobuf wire format) from the
given reader into the given message object.
Parameters:
Name | Type | Description |
---|---|---|
msg |
proto.spine.core.EventContext | The message object to deserialize into. |
reader |
jspb.BinaryReader | The BinaryReader to use. |
- Source:
Returns:
(static) serializeBinaryToWriter(messagenon-null, writernon-null)
Serializes the given message to binary data (in protobuf wire
format), writing to the given BinaryWriter.
Parameters:
Name | Type | Description |
---|---|---|
message |
proto.spine.core.EventContext | |
writer |
jspb.BinaryWriter |
- Source:
(static) toObject(includeInstance, msgnon-null) → (non-null) {Object}
Static version of the {@see toObject} method.
Parameters:
Name | Type | Description |
---|---|---|
includeInstance |
boolean | undefined | Deprecated. Whether to include the JSPB instance for transitional soy proto support: http://goto/soy-param-migration |
msg |
proto.spine.core.EventContext | The msg instance to transform. |
- Source:
Returns:
- Type
- Object