Class: EventContext

EventContext(opt_dataopt)

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
Type
proto.spine.core.EventContext

clearCommandId() → (non-null) {proto.spine.core.EventContext}

Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

clearEnrichment() → (non-null) {proto.spine.core.EventContext}

Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

clearEventContext() → (non-null) {proto.spine.core.EventContext}

Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

clearEventId() → (non-null) {proto.spine.core.EventContext}

Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

clearImportContext() → (non-null) {proto.spine.core.EventContext}

Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

clearPastMessage() → (non-null) {proto.spine.core.EventContext}

Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

clearProducerId() → (non-null) {proto.spine.core.EventContext}

Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

clearRejection() → (non-null) {proto.spine.core.EventContext}

Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

clearRootCommandId() → (non-null) {proto.spine.core.EventContext}

Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

clearTimestamp() → (non-null) {proto.spine.core.EventContext}

Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

clearVersion() → (non-null) {proto.spine.core.EventContext}

Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

getCommandContext() → (nullable) {proto.spine.core.CommandContext}

optional CommandContext command_context = 2;
Source:
Returns:
Type
proto.spine.core.CommandContext

getCommandId() → (nullable) {proto.spine.core.CommandId}

optional CommandId command_id = 12;
Source:
Returns:
Type
proto.spine.core.CommandId

getEnrichment() → (nullable) {proto.spine.core.Enrichment}

optional Enrichment enrichment = 5;
Source:
Returns:
Type
proto.spine.core.Enrichment

getEventContext() → (nullable) {proto.spine.core.EventContext}

optional EventContext event_context = 6;
Source:
Returns:
Type
proto.spine.core.EventContext

getEventId() → (nullable) {proto.spine.core.EventId}

optional EventId event_id = 13;
Source:
Returns:
Type
proto.spine.core.EventId

getExternal() → {boolean}

optional bool external = 8;
Source:
Returns:
Type
boolean

getImportContext() → (nullable) {proto.spine.core.ActorContext}

optional ActorContext import_context = 11;
Source:
Returns:
Type
proto.spine.core.ActorContext

getOriginCase() → {proto.spine.core.EventContext.OriginCase}

Source:
Returns:
Type
proto.spine.core.EventContext.OriginCase

getOriginIdCase() → {proto.spine.core.EventContext.OriginIdCase}

Source:
Returns:
Type
proto.spine.core.EventContext.OriginIdCase

getPastMessage() → (nullable) {proto.spine.core.Origin}

optional Origin past_message = 14;
Source:
Returns:
Type
proto.spine.core.Origin

getProducerId() → (nullable) {proto.google.protobuf.Any}

optional google.protobuf.Any producer_id = 3;
Source:
Returns:
Type
proto.google.protobuf.Any

getRejection() → (nullable) {proto.spine.core.RejectionEventContext}

optional RejectionEventContext rejection = 10;
Source:
Returns:
Type
proto.spine.core.RejectionEventContext

getRootCommandId() → (nullable) {proto.spine.core.CommandId}

optional CommandId root_command_id = 9;
Source:
Returns:
Type
proto.spine.core.CommandId

getTimestamp() → (nullable) {proto.google.protobuf.Timestamp}

optional google.protobuf.Timestamp timestamp = 1;
Source:
Returns:
Type
proto.google.protobuf.Timestamp

getVersion() → (nullable) {proto.spine.core.Version}

optional Version version = 4;
Source:
Returns:
Type
proto.spine.core.Version

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
Type
proto.spine.core.EventContext

setCommandId(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value proto.spine.core.CommandId | undefined
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

setEnrichment(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value proto.spine.core.Enrichment | undefined
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

setEventContext(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value proto.spine.core.EventContext | undefined
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

setEventId(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value proto.spine.core.EventId | undefined
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

setExternal(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value boolean
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

setImportContext(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value proto.spine.core.ActorContext | undefined
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

setPastMessage(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value proto.spine.core.Origin | undefined
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

setProducerId(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value proto.google.protobuf.Any | undefined
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

setRejection(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value proto.spine.core.RejectionEventContext | undefined
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

setRootCommandId(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value proto.spine.core.CommandId | undefined
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

setTimestamp(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value proto.google.protobuf.Timestamp | undefined
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

setVersion(value) → (non-null) {proto.spine.core.EventContext}

Parameters:
Name Type Description
value proto.spine.core.Version | undefined
Source:
Returns:
returns this
Type
proto.spine.core.EventContext

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:
Type
proto.spine.core.EventContext

(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:
Type
proto.spine.core.EventContext

(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