Class: PubSubSpec
Represents a PubSubSpec.
Implements
Constructors
constructor
• new PubSubSpec(properties?): PubSubSpec
Constructs a new PubSubSpec.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IPubSubSpec | Properties to set |
Returns
Properties
gcpProjectId
• gcpProjectId: string
The gcp project id of pubsub topic and service account
Implementation of
serviceAccountId
• serviceAccountId: string
The customer service account id that Temporal Cloud impersonates for writing records to customer's pubsub topic
Implementation of
topicName
• topicName: string
Destination pubsub topic name for us
Implementation of
Methods
toJSON
▸ toJSON(): Object
Converts this PubSubSpec to JSON.
Returns
Object
JSON object
create
▸ create(properties?): PubSubSpec
Creates a new PubSubSpec instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IPubSubSpec | Properties to set |
Returns
PubSubSpec instance
decode
▸ decode(reader, length?): PubSubSpec
Decodes a PubSubSpec message from the specified reader or buffer.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
PubSubSpec
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): PubSubSpec
Decodes a PubSubSpec message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |