Skip to main content Skip to complementary content

Configuring the components

Procedure

  1. Double-click the cGCPConnection component to display its Basic settings view in the Component tab.
  2. 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.
  3. Double-click the cTimer component to open its Basic settings view in the Component tab.
  4. In the Repeat field, enter 1 to generate a message exchange. Keep the default settings of the other options.
  5. Double-click the cSetBody component to open its Basic settings view in the Component tab.
  6. Select Constant from the Language list box and type in "Test Message from Studio" in the Expression field as the message body.
  7. Double-click the first cGooglePubSub component to open its Basic settings view in the Component tab.
  8. 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".
  9. Double-click the second cGooglePubSub component to open its Basic settings view in the Component tab.
  10. 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.
  11. Keep the default settings of the cLog component to log the message exchanges.
  12. 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!