Double-click the cGCPConnection
component to display its Basic settings view in
the Component tab.
From the Project ID field, enter
your Google Cloud project ID.
Select the Use Google Cloud Platform credentials
file check box and enter the path to your credentials file in the
Credentials file field.
Alternatively, you can clear the Use Google Cloud Platform credentials
file check box and add a system variable named
GOOGLE_APPLICATION_CREDENTIALS with the value of the path
to your credentials file. Note that you need to restart Talend Studio
after this system variable is added.
Double-click the cTimer component to open
its Basic settings view in the Component tab.
In the Repeat field, enter
1 to generate a message exchange. Keep the default
settings of the other options.
Double-click the cSetBody component to
open its Basic settings view in the
Component tab.
Select Constant from the
Language list box and type in
"Test Message from Studio" in the Expression field as the message body.
Double-click the first cGooglePubSub component to open its Basic
settings view in the Component
tab.
In the Connection list, select
the cGCPConnection component that you have just configured to handle messages.
In the Destination Name field,
type in the topic name to publish to, for example
"TestTopic".
Double-click the second cGooglePubSub component to open its
Basic settings view in the Component
tab.
In the Connection list, select the cGCPConnection component
that you have just configured to handle messages.
In the Destination Name field, type in the subscription
name for the consumer, "TestTopic-sub" in this example.
Keep the default settings of the cLog component to
log the message exchanges.
Press Ctrl+S to save your Route.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!