Skip to content

PublishOptions

Options for publishing a protobuf event as a CloudEvent.

CloudEvents specification

optional id?: string

CloudEvent id. Defaults to a generated UUID.


optional metadata?: Record<string, CloudEventMetadataValue>

Additional CloudEvent extension attributes.


optional notBefore?: Timestamp

Durable one-shot delayed delivery deadline.

Production transports must persist the delay before accepting the publish and must not deliver before this timestamp.

google.protobuf.Timestamp


optional source?: string

CloudEvent source for this publish call. Overrides publisher and transport defaults.


optional time?: string | Date

CloudEvent time. Defaults to the current time.


optional topic?: string

Transport delivery topic. Overrides publisher topic defaults for this call only.


optional type?: string

Semantic CloudEvent type. Defaults to the fully qualified protobuf method name.