Consume
Frends Task for consuming messages from Google Cloud PubSub service.
Last updated
Was this helpful?
Frends Task for consuming messages from Google Cloud PubSub service.
Task version: 1.0.0
Required Frends version: 5.5+
Required .NET version: 6.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.GooglePubSub/tree/main/Frends.GooglePubSub.Consume
ProjectID : String
The project ID.
Default: -
Example: my-project-123456
SubscriptionID : String
The subscription ID.
Default: -
Example: my-project-123456
🗝ServiceAccountKeyJSON : String
The JSON service account key that one can generate in the Google Cloud portal.
Default: -
Example: { "type": "service_account", "project_id": "something", "private_key_id": "fdsafdsafdsalmnop12345678909876543212344", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE.......Hw==\n-----END PRIVATE KEY-----\n", "client_email": "someone@something.iam.gserviceaccount.com", "client_id": "123456789012345678900", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www....nt.com" }
Timeout : Int32
Sets the timeout for the pull request to PubSub.
Too short timeout can lead to DeadlineExceeded exception.
Default: 20
Example: 20
MaxResults : Int32
Maximum amount of messages that is pulled from the PubSub.
Default: 20
Example: 20
Acknowledge : Boolean
Determines if messages are acknowledged after consuming them.
Default: True
Example: true
Messages : List<OutputMessage>
Messages consumed from Google PubSub.
Example: [ { "Hello world!", { "myCustomAttr1": "myAttrValue1" }, "271", "2024-02-27T07:53:25Z", "key" } ]
Changelog for Task Frends.GooglePubSub.Consume.
Initial implementation
Last updated
Was this helpful?
Was this helpful?

