You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/02/20 16:27:58 UTC

(camel) 09/12: CAMEL-20410: documentation fixes for camel-google-pubsub

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit f4dc4a0583dad6c85b6c98ddbf2f5ec4e2cb7042
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Feb 20 16:12:53 2024 +0100

    CAMEL-20410: documentation fixes for camel-google-pubsub
    
    - Fixed samples
    - Fixed grammar and typos
    - Fixed punctuation
    - Added and/or fixed links
---
 .../src/main/docs/google-pubsub-component.adoc       | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/components/camel-google/camel-google-pubsub/src/main/docs/google-pubsub-component.adoc b/components/camel-google/camel-google-pubsub/src/main/docs/google-pubsub-component.adoc
index ebe76d07f19..a3d57eac01d 100644
--- a/components/camel-google/camel-google-pubsub/src/main/docs/google-pubsub-component.adoc
+++ b/components/camel-google/camel-google-pubsub/src/main/docs/google-pubsub-component.adoc
@@ -67,19 +67,19 @@ exchanges alike. Grouped exchanges have `Exchange.GROUPED_EXCHANGE` property set
 
 Google PubSub expects the payload to be byte[] array, Producer endpoints will send:
 
-* String body as byte[] encoded as UTF-8
-* byte[] body as is
-* Everything else will be serialised into byte[] array
+* String body as `byte[]` encoded as UTF-8
+* `byte[]` body as is
+* Everything else will be serialised into a `byte[]` array
 
 A Map set as message header `GooglePubsubConstants.ATTRIBUTES` will be sent as PubSub attributes.
 
 Google PubSub supports ordered message delivery.
 
-To enable this set set the options messageOrderingEnabled to true, and the pubsubEndpoint to a GCP region.
+To enable this, set the options `messageOrderingEnabled` to true, and the `pubsubEndpoint` to a GCP region.
 
 When producing messages set the message header `GooglePubsubConstants.ORDERING_KEY` . This will be set as the PubSub orderingKey for the message.
 
-More information in https://cloud.google.com/pubsub/docs/ordering[Ordering messages].
+For more information, see https://cloud.google.com/pubsub/docs/ordering[Ordering messages].
 
 Once exchange has been delivered to PubSub the PubSub Message ID will be assigned to
 the header `GooglePubsubConstants.MESSAGE_ID`.
@@ -90,8 +90,8 @@ as a configuration option on the subscription.
 
 The component will acknowledge the message once exchange processing has been completed.
 
-If the route throws an exception, the exchange is marked as failed and the component will NACK the message -
-it will be redelivered immediately.
+If the route throws an exception, the exchange is marked as failed, and the component will NACK the message.
+It will be redelivered immediately.
 
 To ack/nack the message the component uses Acknowledgement ID stored as header `GooglePubsubConstants.ACK_ID`.
 If the header is removed or tampered with, the ack will fail and the message will be redelivered
@@ -99,12 +99,12 @@ again after the ack deadline.
 
 == Message Body
 
-The consumer endpoint returns the content of the message as byte[] - exactly as the underlying system sends it.
+The consumer endpoint returns the content of the message as `byte[]`. Exactly as the underlying system sends it.
 It is up for the route to convert/unmarshall the contents.
 
 == Authentication Configuration
 
-By default this component aquires credentials using `GoogleCredentials.getApplicationDefault()`.
+By default, this component acquires credentials using `GoogleCredentials.getApplicationDefault()`.
 This behavior can be disabled by setting _authenticate_ option to `false`, in which case requests to Google API will be made without authentication details. This is only desirable when developing against an emulator.
 This behavior can be altered by supplying a path to a service account key file.
 
@@ -117,7 +117,7 @@ Google provides an API to extend the deadline for a message.
 
 More information in https://cloud.google.com/pubsub/docs/subscriber#ack_deadline[Google PubSub Documentation]
 
-So, rollback is effectively a deadline extension API call with zero value - i.e. deadline is reached now and message can
+So, rollback is effectively a deadline extension API call with zero value - i.e., deadline is reached now, and the message can
 be redelivered to the next consumer.
 
 It is possible to delay the message redelivery by setting the acknowledgement deadline explicitly for the rollback by