This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ccdab314253a CAMEL-23832: camel-google-firestore - improve the
component and option descriptions (#30939)
ccdab314253a is described below
commit ccdab314253acddeb5e02984d1607a4e49d298aa
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 14:53:06 2026 +0100
CAMEL-23832: camel-google-firestore - improve the component and option
descriptions (#30939)
This commit rewrites the component description, the texts of 8 options (7
shared by the component and the endpoint,
plus the component configuration) and of 15 headers of google-firestore.
The new texts name the operations that read
each option and header, the header that replaces an option, and the
defaults: setDocument when no operation is set,
Application Default Credentials without serviceAccountKey. The
realtimeUpdates text now says that without it each poll
reads the whole collection again, and the response header texts say which
side and which operation sets them.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are
regenerated. camel-google-firestore is marked as done in
tasks/component-descriptions.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../camel/catalog/components/google-firestore.json | 60 ++++----
.../catalog/docs/google-firestore-component.adoc | 2 +-
.../google/firestore/google-firestore.json | 60 ++++----
.../src/main/docs/google-firestore-component.adoc | 2 +-
.../google/firestore/GoogleFirestoreComponent.java | 6 +-
.../firestore/GoogleFirestoreConfiguration.java | 61 +++-----
.../google/firestore/GoogleFirestoreConstants.java | 63 ++++++--
.../google/firestore/GoogleFirestoreEndpoint.java | 5 +-
.../component/ComponentsBuilderFactory.java | 3 +-
.../GoogleFirestoreComponentBuilderFactory.java | 43 ++++--
.../builder/endpoint/EndpointHeaderBuilders.java | 3 +-
.../builder/endpoint/StaticEndpointBuilders.java | 14 +-
.../dsl/GoogleFirestoreEndpointBuilderFactory.java | 170 ++++++++++++++-------
tasks/component-descriptions.md | 2 +-
14 files changed, 296 insertions(+), 198 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-firestore.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-firestore.json
index 75ff447483e9..b4449bd427be 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-firestore.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-firestore.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "google-firestore",
"title": "Google Firestore",
- "description": "Store and retrieve data from Google Cloud Firestore NoSQL
database.",
+ "description": "Store, retrieve and query documents in Google Cloud
Firestore collections.",
"deprecated": false,
"firstVersion": "4.19.0",
"label": "cloud,database",
@@ -24,39 +24,39 @@
"remote": true
},
"componentProperties": {
- "configuration": { "index": 0, "kind": "property", "displayName":
"Configuration", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description": "The
component configuration" },
+ "configuration": { "index": 0, "kind": "property", "displayName":
"Configuration", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description": "The
configuration that each endpoint of this component starts from. The options of
the endpoint URI override its values." },
"databaseId": { "index": 1, "kind": "property", "displayName": "Database
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Firestore database
ID. If not specified, the default database '(default)' will be used." },
- "firestoreClient": { "index": 2, "kind": "property", "displayName":
"Firestore Client", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "com.google.cloud.firestore.Firestore", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Firestore client to
use for operations." },
- "projectId": { "index": 3, "kind": "property", "displayName": "Project
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Google Cloud project
ID. If not specified, it will be determined from the service account [...]
- "serviceAccountKey": { "index": 4, "kind": "property", "displayName":
"Service Account Key", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Service account key
that can be used as credentials for the Firestore cli [...]
+ "firestoreClient": { "index": 2, "kind": "property", "displayName":
"Firestore Client", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "com.google.cloud.firestore.Firestore", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "To use a custom
com.google.cloud.firestore.Firestore client. When thi [...]
+ "projectId": { "index": 3, "kind": "property", "displayName": "Project
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The ID of the Google
Cloud project. If not set, the Firestore client takes it from the service [...]
+ "serviceAccountKey": { "index": 4, "kind": "property", "displayName":
"Service Account Key", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The service account key
file in JSON format that the Firestore client uses as [...]
"bridgeErrorHandler": { "index": 5, "kind": "property", "displayName":
"Bridge Error Handler", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Allows for bridging the consumer to the Camel routing Error Handler, which
mean any exceptions (if possible) occurred while the Camel consumer is trying
to pickup incoming messages, or the like [...]
- "realtimeUpdates": { "index": 6, "kind": "property", "displayName":
"Realtime Updates", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "When true, the consumer
will listen for real-time updates on th [...]
+ "realtimeUpdates": { "index": 6, "kind": "property", "displayName":
"Realtime Updates", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "Whether the consumer
listens for realtime changes of the collec [...]
"maxPendingChanges": { "index": 7, "kind": "property", "displayName": "Max
Pending Changes", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": 0, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "Maximum number of
realtime document changes bu [...]
- "documentId": { "index": 8, "kind": "property", "displayName": "Document
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The document ID to use
for document-specific operations" },
+ "documentId": { "index": 8, "kind": "property", "displayName": "Document
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The ID of the document
for setDocument, getDocumentById, updateDocument and deleteDocume [...]
"lazyStartProducer": { "index": 9, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fail [...]
- "operation": { "index": 10, "kind": "property", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.cam [...]
+ "operation": { "index": 10, "kind": "property", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.cam [...]
"autowiredEnabled": { "index": 11, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching [...]
"healthCheckConsumerEnabled": { "index": 12, "kind": "property",
"displayName": "Health Check Consumer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all consumer based health checks
from this component" },
"healthCheckProducerEnabled": { "index": 13, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on produce [...]
},
"headers": {
- "CamelGoogleFirestoreOperation": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "description": "The
operation to perform.", " [...]
- "CamelGoogleFirestoreCollectionName": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The collection name to use for the operation.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#COLLECTION_NAME"
},
- "CamelGoogleFirestoreDocumentId": { "index": 2, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The document ID to use for the operation.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#DOCUMENT_ID"
},
- "CamelGoogleFirestoreQueryField": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The field name for query filtering.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_FIELD"
},
+ "CamelGoogleFirestoreOperation": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "description": "The
operation that the produc [...]
+ "CamelGoogleFirestoreCollectionName": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the collection that the producer uses. It replaces
the collection name of the endpoint URI.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#COLLECTION_NAME"
},
+ "CamelGoogleFirestoreDocumentId": { "index": 2, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The ID of the document that the producer uses. It replaces the
documentId option.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#DOCUMENT_ID"
},
+ "CamelGoogleFirestoreQueryField": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The field that queryCollection filters on. The filter is
applied only when the CamelGoogleFirestoreQueryOperator and
CamelGoogleFirestoreQueryValue headers are also set.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFiresto [...]
"CamelGoogleFirestoreQueryOperator": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The operator for query filtering: == (or eq), != (or ne), lt
(less than), lte (less than or equal), gt (greater than), gte (greater than or
equal), array-contains, in, array-contains-any or not-in. The lt, lte, gt and
gte operators can also be [...]
- "CamelGoogleFirestoreQueryValue": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Object", "deprecated": false, "autowired": false, "secret": false,
"description": "The value for query filtering.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_VALUE"
},
- "CamelGoogleFirestoreQueryLimit": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Integer", "deprecated": false, "autowired": false, "secret":
false, "description": "The maximum number of documents to return in a query.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_LIMIT"
},
- "CamelGoogleFirestoreQueryOrderBy": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The field to order the query results by.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_ORDER_BY"
},
- "CamelGoogleFirestoreQueryOrderDirection": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "com.google.cloud.firestore.Query$Direction", "enum": [
"ASCENDING", "DESCENDING" ], "deprecated": false, "autowired": false, "secret":
false, "description": "The direction to order the query results (ASCENDING or
DESCENDING).", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_
[...]
- "CamelGoogleFirestoreResponseDocumentId": { "index": 9, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The document ID from the response.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPONSE_DOCUMENT_ID"
},
- "CamelGoogleFirestoreResponseDocumentPath": { "index": 10, "kind":
"header", "displayName": "", "group": "common", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The document path from the response.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPONSE_DOCUMENT_PATH"
},
- "CamelGoogleFirestoreResponseCreateTime": { "index": 11, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The document create time.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPONSE_CREATE_TIME"
},
- "CamelGoogleFirestoreResponseUpdateTime": { "index": 12, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The document update time.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPONSE_UPDATE_TIME"
},
- "CamelGoogleFirestoreResponseReadTime": { "index": 13, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The document read time.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPONSE_READ_TIME"
},
+ "CamelGoogleFirestoreQueryValue": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Object", "deprecated": false, "autowired": false, "secret": false,
"description": "The value that queryCollection compares the field with. For the
in, array-contains-any and not-in operators it must be a java.util.List.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_VALUE"
},
+ "CamelGoogleFirestoreQueryLimit": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Integer", "deprecated": false, "autowired": false, "secret":
false, "description": "The maximum number of documents that queryCollection
returns. If not set, or 0 or less, all matching documents are returned.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_LIMIT"
},
+ "CamelGoogleFirestoreQueryOrderBy": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The field that queryCollection orders the documents by.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_ORDER_BY"
},
+ "CamelGoogleFirestoreQueryOrderDirection": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "com.google.cloud.firestore.Query$Direction", "enum": [
"ASCENDING", "DESCENDING" ], "deprecated": false, "autowired": false, "secret":
false, "description": "The direction of the order that
CamelGoogleFirestoreQueryOrderBy sets: ASCENDING (the default) or DESCENDING.",
"constantName": "org.apache.camel.component.google [...]
+ "CamelGoogleFirestoreResponseDocumentId": { "index": 9, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The ID of the document. The consumer sets it for each document,
and the producer for setDocument, createDocument (the generated ID),
getDocumentById, updateDocument and deleteDocument.", "constantName":
"org.apache.camel.component.google.firestore. [...]
+ "CamelGoogleFirestoreResponseDocumentPath": { "index": 10, "kind":
"header", "displayName": "", "group": "common", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The path of the document, such as users\/alice. The consumer
sets it for each document, and the producer for setDocument, createDocument,
updateDocument, deleteDocument, and getDocumentById when the document exists.",
"constantName": "org.apache [...]
+ "CamelGoogleFirestoreResponseCreateTime": { "index": 11, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The time the document was created. The
consumer sets it for each document, and the producer for getDocumentById when
the document exists.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#R [...]
+ "CamelGoogleFirestoreResponseUpdateTime": { "index": 12, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The time the document was last updated.
The consumer sets it for each document, and the producer for getDocumentById
when the document exists. For setDocument, createDocument, updateDocument and
deleteDocument it is the time of [...]
+ "CamelGoogleFirestoreResponseReadTime": { "index": 13, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The time the document was read. The
consumer sets it for each document, and the producer for getDocumentById when
the document exists.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPON
[...]
"CamelGoogleFirestoreChangeType": { "index": 14, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The type of change reported by the realtime listener: ADDED,
MODIFIED or REMOVED. Only set when realtimeUpdates is enabled.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#CHANGE_TYPE"
},
- "CamelGoogleFirestoreMerge": { "index": 15, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "false", "description": "When true, merge the data with
existing document data instead of overwriting.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#MERGE" },
- "CamelGoogleFirestoreMergeFields": { "index": 16, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "java.util.List<String>", "deprecated": false, "autowired": false,
"secret": false, "description": "List of field paths to merge when using merge
option.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#MERGE_FIELDS"
}
+ "CamelGoogleFirestoreMerge": { "index": 15, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "false", "description": "Whether setDocument merges the
fields of the body into the existing document instead of replacing the
document.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#MERGE" },
+ "CamelGoogleFirestoreMergeFields": { "index": 16, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "java.util.List<String>", "deprecated": false, "autowired": false,
"secret": false, "description": "The names of the fields that setDocument
merges when CamelGoogleFirestoreMerge is true. The other fields of the body are
ignored. If not set, all fields of the body are merged.", "constantName":
"org.apache.camel.component.googl [...]
},
"bodyTypes": {
"consumerOut": { "carriers": [ "map" ], "description": "The fields of the
document as a Map, one message per document, with its id, path and times in
headers, and with realtimeUpdates the change type. Numbers are Long or Double,
a timestamp a com.google.cloud.Timestamp" },
@@ -64,20 +64,20 @@
"producerOut": { "carriers": [ "map" ], "byOption": [ { "option":
"operation", "value": "getDocumentById", "carriers": [ "map", "null" ] }, {
"option": "operation", "value": "deleteDocument", "carriers": [ "value" ],
"javaType": "java.lang.Boolean" }, { "option": "operation", "value":
"queryCollection", "carriers": [ "list" ], "javaType":
"java.util.List<java.util.Map<java.lang.String, java.lang.Object>>" }, {
"option": "operation", "value": "listDocuments", "carriers": [ "list" ], " [...]
},
"properties": {
- "collectionName": { "index": 0, "kind": "path", "displayName": "Collection
Name", "group": "common", "label": "common", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The collection name to
use" },
+ "collectionName": { "index": 0, "kind": "path", "displayName": "Collection
Name", "group": "common", "label": "common", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The name of the
collection. The consumer reads the documents of this collection, and the [...]
"databaseId": { "index": 1, "kind": "parameter", "displayName": "Database
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Firestore database
ID. If not specified, the default database '(default)' will be used." },
- "firestoreClient": { "index": 2, "kind": "parameter", "displayName":
"Firestore Client", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "com.google.cloud.firestore.Firestore", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Firestore client to
use for operations." },
- "projectId": { "index": 3, "kind": "parameter", "displayName": "Project
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Google Cloud project
ID. If not specified, it will be determined from the service account [...]
- "serviceAccountKey": { "index": 4, "kind": "parameter", "displayName":
"Service Account Key", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Service account key
that can be used as credentials for the Firestore cl [...]
- "realtimeUpdates": { "index": 5, "kind": "parameter", "displayName":
"Realtime Updates", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "When true, the consumer
will listen for real-time updates on t [...]
+ "firestoreClient": { "index": 2, "kind": "parameter", "displayName":
"Firestore Client", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "com.google.cloud.firestore.Firestore", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "To use a custom
com.google.cloud.firestore.Firestore client. When th [...]
+ "projectId": { "index": 3, "kind": "parameter", "displayName": "Project
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The ID of the Google
Cloud project. If not set, the Firestore client takes it from the servic [...]
+ "serviceAccountKey": { "index": 4, "kind": "parameter", "displayName":
"Service Account Key", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The service account key
file in JSON format that the Firestore client uses a [...]
+ "realtimeUpdates": { "index": 5, "kind": "parameter", "displayName":
"Realtime Updates", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "Whether the consumer
listens for realtime changes of the colle [...]
"sendEmptyMessageWhenIdle": { "index": 6, "kind": "parameter",
"displayName": "Send Empty Message When Idle", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "If the polling consumer did not poll any files, you can
enable this option to send an empty message (no body) instead." },
"bridgeErrorHandler": { "index": 7, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
"exceptionHandler": { "index": 8, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By def [...]
"exchangePattern": { "index": 9, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
"maxPendingChanges": { "index": 10, "kind": "parameter", "displayName":
"Max Pending Changes", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 0,
"configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "Maximum number of
realtime document changes [...]
"pollStrategy": { "index": 11, "kind": "parameter", "displayName": "Poll
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false,
"autowired": false, "secret": false, "description": "A pluggable
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your
custom implementation to control error handling usually occurred during the po
[...]
- "documentId": { "index": 12, "kind": "parameter", "displayName": "Document
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The document ID to use
for document-specific operations" },
- "operation": { "index": 13, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.ca [...]
+ "documentId": { "index": 12, "kind": "parameter", "displayName": "Document
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The ID of the document
for setDocument, getDocumentById, updateDocument and deleteDocu [...]
+ "operation": { "index": 13, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.ca [...]
"lazyStartProducer": { "index": 14, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
"backoffErrorThreshold": { "index": 15, "kind": "parameter",
"displayName": "Backoff Error Threshold", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "description": "The
number of subsequent error polls (failed due some error) that should happen
before the backoffMultipler should kick-in." },
"backoffIdleThreshold": { "index": 16, "kind": "parameter", "displayName":
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
idle polls that should happen before the backoffMultipler should kick-in." },
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-firestore-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-firestore-component.adoc
index 85c17eca22ea..d861955e7331 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-firestore-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-firestore-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Google Firestore
:shortname: google-firestore
:artifactid: camel-google-firestore
-:description: Store and retrieve data from Google Cloud Firestore NoSQL
database.
+:description: Store, retrieve and query documents in Google Cloud Firestore
collections.
:since: 4.19
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-google/camel-google-firestore/src/generated/resources/META-INF/org/apache/camel/component/google/firestore/google-firestore.json
b/components/camel-google/camel-google-firestore/src/generated/resources/META-INF/org/apache/camel/component/google/firestore/google-firestore.json
index 75ff447483e9..b4449bd427be 100644
---
a/components/camel-google/camel-google-firestore/src/generated/resources/META-INF/org/apache/camel/component/google/firestore/google-firestore.json
+++
b/components/camel-google/camel-google-firestore/src/generated/resources/META-INF/org/apache/camel/component/google/firestore/google-firestore.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "google-firestore",
"title": "Google Firestore",
- "description": "Store and retrieve data from Google Cloud Firestore NoSQL
database.",
+ "description": "Store, retrieve and query documents in Google Cloud
Firestore collections.",
"deprecated": false,
"firstVersion": "4.19.0",
"label": "cloud,database",
@@ -24,39 +24,39 @@
"remote": true
},
"componentProperties": {
- "configuration": { "index": 0, "kind": "property", "displayName":
"Configuration", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description": "The
component configuration" },
+ "configuration": { "index": 0, "kind": "property", "displayName":
"Configuration", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description": "The
configuration that each endpoint of this component starts from. The options of
the endpoint URI override its values." },
"databaseId": { "index": 1, "kind": "property", "displayName": "Database
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Firestore database
ID. If not specified, the default database '(default)' will be used." },
- "firestoreClient": { "index": 2, "kind": "property", "displayName":
"Firestore Client", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "com.google.cloud.firestore.Firestore", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Firestore client to
use for operations." },
- "projectId": { "index": 3, "kind": "property", "displayName": "Project
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Google Cloud project
ID. If not specified, it will be determined from the service account [...]
- "serviceAccountKey": { "index": 4, "kind": "property", "displayName":
"Service Account Key", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Service account key
that can be used as credentials for the Firestore cli [...]
+ "firestoreClient": { "index": 2, "kind": "property", "displayName":
"Firestore Client", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "com.google.cloud.firestore.Firestore", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "To use a custom
com.google.cloud.firestore.Firestore client. When thi [...]
+ "projectId": { "index": 3, "kind": "property", "displayName": "Project
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The ID of the Google
Cloud project. If not set, the Firestore client takes it from the service [...]
+ "serviceAccountKey": { "index": 4, "kind": "property", "displayName":
"Service Account Key", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The service account key
file in JSON format that the Firestore client uses as [...]
"bridgeErrorHandler": { "index": 5, "kind": "property", "displayName":
"Bridge Error Handler", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Allows for bridging the consumer to the Camel routing Error Handler, which
mean any exceptions (if possible) occurred while the Camel consumer is trying
to pickup incoming messages, or the like [...]
- "realtimeUpdates": { "index": 6, "kind": "property", "displayName":
"Realtime Updates", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "When true, the consumer
will listen for real-time updates on th [...]
+ "realtimeUpdates": { "index": 6, "kind": "property", "displayName":
"Realtime Updates", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "Whether the consumer
listens for realtime changes of the collec [...]
"maxPendingChanges": { "index": 7, "kind": "property", "displayName": "Max
Pending Changes", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": 0, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "Maximum number of
realtime document changes bu [...]
- "documentId": { "index": 8, "kind": "property", "displayName": "Document
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The document ID to use
for document-specific operations" },
+ "documentId": { "index": 8, "kind": "property", "displayName": "Document
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The ID of the document
for setDocument, getDocumentById, updateDocument and deleteDocume [...]
"lazyStartProducer": { "index": 9, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fail [...]
- "operation": { "index": 10, "kind": "property", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.cam [...]
+ "operation": { "index": 10, "kind": "property", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.cam [...]
"autowiredEnabled": { "index": 11, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching [...]
"healthCheckConsumerEnabled": { "index": 12, "kind": "property",
"displayName": "Health Check Consumer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all consumer based health checks
from this component" },
"healthCheckProducerEnabled": { "index": 13, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on produce [...]
},
"headers": {
- "CamelGoogleFirestoreOperation": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "description": "The
operation to perform.", " [...]
- "CamelGoogleFirestoreCollectionName": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The collection name to use for the operation.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#COLLECTION_NAME"
},
- "CamelGoogleFirestoreDocumentId": { "index": 2, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The document ID to use for the operation.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#DOCUMENT_ID"
},
- "CamelGoogleFirestoreQueryField": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The field name for query filtering.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_FIELD"
},
+ "CamelGoogleFirestoreOperation": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "description": "The
operation that the produc [...]
+ "CamelGoogleFirestoreCollectionName": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the collection that the producer uses. It replaces
the collection name of the endpoint URI.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#COLLECTION_NAME"
},
+ "CamelGoogleFirestoreDocumentId": { "index": 2, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The ID of the document that the producer uses. It replaces the
documentId option.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#DOCUMENT_ID"
},
+ "CamelGoogleFirestoreQueryField": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The field that queryCollection filters on. The filter is
applied only when the CamelGoogleFirestoreQueryOperator and
CamelGoogleFirestoreQueryValue headers are also set.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFiresto [...]
"CamelGoogleFirestoreQueryOperator": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The operator for query filtering: == (or eq), != (or ne), lt
(less than), lte (less than or equal), gt (greater than), gte (greater than or
equal), array-contains, in, array-contains-any or not-in. The lt, lte, gt and
gte operators can also be [...]
- "CamelGoogleFirestoreQueryValue": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Object", "deprecated": false, "autowired": false, "secret": false,
"description": "The value for query filtering.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_VALUE"
},
- "CamelGoogleFirestoreQueryLimit": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Integer", "deprecated": false, "autowired": false, "secret":
false, "description": "The maximum number of documents to return in a query.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_LIMIT"
},
- "CamelGoogleFirestoreQueryOrderBy": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The field to order the query results by.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_ORDER_BY"
},
- "CamelGoogleFirestoreQueryOrderDirection": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "com.google.cloud.firestore.Query$Direction", "enum": [
"ASCENDING", "DESCENDING" ], "deprecated": false, "autowired": false, "secret":
false, "description": "The direction to order the query results (ASCENDING or
DESCENDING).", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_
[...]
- "CamelGoogleFirestoreResponseDocumentId": { "index": 9, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The document ID from the response.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPONSE_DOCUMENT_ID"
},
- "CamelGoogleFirestoreResponseDocumentPath": { "index": 10, "kind":
"header", "displayName": "", "group": "common", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The document path from the response.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPONSE_DOCUMENT_PATH"
},
- "CamelGoogleFirestoreResponseCreateTime": { "index": 11, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The document create time.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPONSE_CREATE_TIME"
},
- "CamelGoogleFirestoreResponseUpdateTime": { "index": 12, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The document update time.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPONSE_UPDATE_TIME"
},
- "CamelGoogleFirestoreResponseReadTime": { "index": 13, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The document read time.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPONSE_READ_TIME"
},
+ "CamelGoogleFirestoreQueryValue": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Object", "deprecated": false, "autowired": false, "secret": false,
"description": "The value that queryCollection compares the field with. For the
in, array-contains-any and not-in operators it must be a java.util.List.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_VALUE"
},
+ "CamelGoogleFirestoreQueryLimit": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Integer", "deprecated": false, "autowired": false, "secret":
false, "description": "The maximum number of documents that queryCollection
returns. If not set, or 0 or less, all matching documents are returned.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_LIMIT"
},
+ "CamelGoogleFirestoreQueryOrderBy": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The field that queryCollection orders the documents by.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#QUERY_ORDER_BY"
},
+ "CamelGoogleFirestoreQueryOrderDirection": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "com.google.cloud.firestore.Query$Direction", "enum": [
"ASCENDING", "DESCENDING" ], "deprecated": false, "autowired": false, "secret":
false, "description": "The direction of the order that
CamelGoogleFirestoreQueryOrderBy sets: ASCENDING (the default) or DESCENDING.",
"constantName": "org.apache.camel.component.google [...]
+ "CamelGoogleFirestoreResponseDocumentId": { "index": 9, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The ID of the document. The consumer sets it for each document,
and the producer for setDocument, createDocument (the generated ID),
getDocumentById, updateDocument and deleteDocument.", "constantName":
"org.apache.camel.component.google.firestore. [...]
+ "CamelGoogleFirestoreResponseDocumentPath": { "index": 10, "kind":
"header", "displayName": "", "group": "common", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The path of the document, such as users\/alice. The consumer
sets it for each document, and the producer for setDocument, createDocument,
updateDocument, deleteDocument, and getDocumentById when the document exists.",
"constantName": "org.apache [...]
+ "CamelGoogleFirestoreResponseCreateTime": { "index": 11, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The time the document was created. The
consumer sets it for each document, and the producer for getDocumentById when
the document exists.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#R [...]
+ "CamelGoogleFirestoreResponseUpdateTime": { "index": 12, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The time the document was last updated.
The consumer sets it for each document, and the producer for getDocumentById
when the document exists. For setDocument, createDocument, updateDocument and
deleteDocument it is the time of [...]
+ "CamelGoogleFirestoreResponseReadTime": { "index": 13, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "com.google.cloud.Timestamp", "deprecated": false, "autowired":
false, "secret": false, "description": "The time the document was read. The
consumer sets it for each document, and the producer for getDocumentById when
the document exists.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#RESPON
[...]
"CamelGoogleFirestoreChangeType": { "index": 14, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The type of change reported by the realtime listener: ADDED,
MODIFIED or REMOVED. Only set when realtimeUpdates is enabled.",
"constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#CHANGE_TYPE"
},
- "CamelGoogleFirestoreMerge": { "index": 15, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "false", "description": "When true, merge the data with
existing document data instead of overwriting.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#MERGE" },
- "CamelGoogleFirestoreMergeFields": { "index": 16, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "java.util.List<String>", "deprecated": false, "autowired": false,
"secret": false, "description": "List of field paths to merge when using merge
option.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#MERGE_FIELDS"
}
+ "CamelGoogleFirestoreMerge": { "index": 15, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "false", "description": "Whether setDocument merges the
fields of the body into the existing document instead of replacing the
document.", "constantName":
"org.apache.camel.component.google.firestore.GoogleFirestoreConstants#MERGE" },
+ "CamelGoogleFirestoreMergeFields": { "index": 16, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "java.util.List<String>", "deprecated": false, "autowired": false,
"secret": false, "description": "The names of the fields that setDocument
merges when CamelGoogleFirestoreMerge is true. The other fields of the body are
ignored. If not set, all fields of the body are merged.", "constantName":
"org.apache.camel.component.googl [...]
},
"bodyTypes": {
"consumerOut": { "carriers": [ "map" ], "description": "The fields of the
document as a Map, one message per document, with its id, path and times in
headers, and with realtimeUpdates the change type. Numbers are Long or Double,
a timestamp a com.google.cloud.Timestamp" },
@@ -64,20 +64,20 @@
"producerOut": { "carriers": [ "map" ], "byOption": [ { "option":
"operation", "value": "getDocumentById", "carriers": [ "map", "null" ] }, {
"option": "operation", "value": "deleteDocument", "carriers": [ "value" ],
"javaType": "java.lang.Boolean" }, { "option": "operation", "value":
"queryCollection", "carriers": [ "list" ], "javaType":
"java.util.List<java.util.Map<java.lang.String, java.lang.Object>>" }, {
"option": "operation", "value": "listDocuments", "carriers": [ "list" ], " [...]
},
"properties": {
- "collectionName": { "index": 0, "kind": "path", "displayName": "Collection
Name", "group": "common", "label": "common", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The collection name to
use" },
+ "collectionName": { "index": 0, "kind": "path", "displayName": "Collection
Name", "group": "common", "label": "common", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The name of the
collection. The consumer reads the documents of this collection, and the [...]
"databaseId": { "index": 1, "kind": "parameter", "displayName": "Database
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Firestore database
ID. If not specified, the default database '(default)' will be used." },
- "firestoreClient": { "index": 2, "kind": "parameter", "displayName":
"Firestore Client", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "com.google.cloud.firestore.Firestore", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Firestore client to
use for operations." },
- "projectId": { "index": 3, "kind": "parameter", "displayName": "Project
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Google Cloud project
ID. If not specified, it will be determined from the service account [...]
- "serviceAccountKey": { "index": 4, "kind": "parameter", "displayName":
"Service Account Key", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The Service account key
that can be used as credentials for the Firestore cl [...]
- "realtimeUpdates": { "index": 5, "kind": "parameter", "displayName":
"Realtime Updates", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "When true, the consumer
will listen for real-time updates on t [...]
+ "firestoreClient": { "index": 2, "kind": "parameter", "displayName":
"Firestore Client", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "com.google.cloud.firestore.Firestore", "deprecated":
false, "autowired": true, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "To use a custom
com.google.cloud.firestore.Firestore client. When th [...]
+ "projectId": { "index": 3, "kind": "parameter", "displayName": "Project
Id", "group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The ID of the Google
Cloud project. If not set, the Firestore client takes it from the servic [...]
+ "serviceAccountKey": { "index": 4, "kind": "parameter", "displayName":
"Service Account Key", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The service account key
file in JSON format that the Firestore client uses a [...]
+ "realtimeUpdates": { "index": 5, "kind": "parameter", "displayName":
"Realtime Updates", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "Whether the consumer
listens for realtime changes of the colle [...]
"sendEmptyMessageWhenIdle": { "index": 6, "kind": "parameter",
"displayName": "Send Empty Message When Idle", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "If the polling consumer did not poll any files, you can
enable this option to send an empty message (no body) instead." },
"bridgeErrorHandler": { "index": 7, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
"exceptionHandler": { "index": 8, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By def [...]
"exchangePattern": { "index": 9, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
"maxPendingChanges": { "index": 10, "kind": "parameter", "displayName":
"Max Pending Changes", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 0,
"configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "Maximum number of
realtime document changes [...]
"pollStrategy": { "index": 11, "kind": "parameter", "displayName": "Poll
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false,
"autowired": false, "secret": false, "description": "A pluggable
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your
custom implementation to control error handling usually occurred during the po
[...]
- "documentId": { "index": 12, "kind": "parameter", "displayName": "Document
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The document ID to use
for document-specific operations" },
- "operation": { "index": 13, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.ca [...]
+ "documentId": { "index": 12, "kind": "parameter", "displayName": "Document
Id", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration",
"configurationField": "configuration", "description": "The ID of the document
for setDocument, getDocumentById, updateDocument and deleteDocu [...]
+ "operation": { "index": 13, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations",
"enum": [ "setDocument", "getDocumentById", "updateDocument", "deleteDocument",
"queryCollection", "listDocuments", "listCollections", "createDocument" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.ca [...]
"lazyStartProducer": { "index": 14, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
"backoffErrorThreshold": { "index": 15, "kind": "parameter",
"displayName": "Backoff Error Threshold", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "description": "The
number of subsequent error polls (failed due some error) that should happen
before the backoffMultipler should kick-in." },
"backoffIdleThreshold": { "index": 16, "kind": "parameter", "displayName":
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
idle polls that should happen before the backoffMultipler should kick-in." },
diff --git
a/components/camel-google/camel-google-firestore/src/main/docs/google-firestore-component.adoc
b/components/camel-google/camel-google-firestore/src/main/docs/google-firestore-component.adoc
index 85c17eca22ea..d861955e7331 100644
---
a/components/camel-google/camel-google-firestore/src/main/docs/google-firestore-component.adoc
+++
b/components/camel-google/camel-google-firestore/src/main/docs/google-firestore-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Google Firestore
:shortname: google-firestore
:artifactid: camel-google-firestore
-:description: Store and retrieve data from Google Cloud Firestore NoSQL
database.
+:description: Store, retrieve and query documents in Google Cloud Firestore
collections.
:since: 4.19
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreComponent.java
b/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreComponent.java
index d913ed9a1d3c..6f59b3310f98 100644
---
a/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreComponent.java
+++
b/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreComponent.java
@@ -30,7 +30,8 @@ import org.apache.camel.support.HealthCheckComponent;
@Component("google-firestore")
public class GoogleFirestoreComponent extends HealthCheckComponent {
- @Metadata
+ @Metadata(description = "The configuration that each endpoint of this
component starts from. The options of the"
+ + " endpoint URI override its values.")
private GoogleFirestoreConfiguration configuration = new
GoogleFirestoreConfiguration();
public GoogleFirestoreComponent() {
@@ -60,9 +61,6 @@ public class GoogleFirestoreComponent extends
HealthCheckComponent {
return configuration;
}
- /**
- * The component configuration
- */
public void setConfiguration(GoogleFirestoreConfiguration configuration) {
this.configuration = configuration;
}
diff --git
a/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreConfiguration.java
b/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreConfiguration.java
index 655cbacd294b..1fc8f0676cb1 100644
---
a/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreConfiguration.java
+++
b/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreConfiguration.java
@@ -30,12 +30,15 @@ import org.apache.camel.spi.UriPath;
@UriParams
public class GoogleFirestoreConfiguration implements Cloneable,
GoogleCommonConfiguration {
- @UriPath(label = "common", description = "The collection name to use")
+ @UriPath(label = "common",
+ description = "The name of the collection. The consumer reads the
documents of this collection, and the"
+ + " CamelGoogleFirestoreCollectionName header
replaces it for the producer.")
@Metadata(required = true)
private String collectionName;
@UriParam(label = "common",
- description = "The Google Cloud project ID. If not specified, it
will be determined from the service account key or environment.")
+ description = "The ID of the Google Cloud project. If not set,
the Firestore client takes it from the service"
+ + " account key, or from the environment, such as
the GOOGLE_CLOUD_PROJECT environment variable.")
private String projectId;
@UriParam(label = "common",
@@ -43,23 +46,35 @@ public class GoogleFirestoreConfiguration implements
Cloneable, GoogleCommonConf
private String databaseId;
@UriParam(label = "common",
- description = "The Service account key that can be used as
credentials for the Firestore client. It can be loaded by default from "
- + "classpath, but you can prefix with classpath:,
file:, or http: to load the resource from different systems.")
+ description = "The service account key file in JSON format that
the Firestore client uses as credentials. It is"
+ + " loaded from the classpath by default, or from
another location with the prefix file: or http:."
+ + " If not set, the client uses Application
Default Credentials.")
private String serviceAccountKey;
@UriParam(label = "producer",
+ description = "The operation that the producer performs. If not
set, the producer performs setDocument. The"
+ + " CamelGoogleFirestoreOperation header replaces
this option.",
enums =
"setDocument,getDocumentById,updateDocument,deleteDocument,queryCollection,listDocuments,listCollections,createDocument")
private GoogleFirestoreOperations operation;
- @UriParam(label = "producer", description = "The document ID to use for
document-specific operations")
+ @UriParam(label = "producer",
+ description = "The ID of the document for setDocument,
getDocumentById, updateDocument and deleteDocument,"
+ + " which fail without one. For listCollections it
is the document whose subcollections are"
+ + " listed, and if not set the root collections
are listed. The CamelGoogleFirestoreDocumentId"
+ + " header replaces this option.")
private String documentId;
- @UriParam
+ @UriParam(description = "To use a custom
com.google.cloud.firestore.Firestore client. When this option is set or"
+ + " autowired, the projectId, databaseId and
serviceAccountKey options are not used. The Camel"
+ + " endpoint does not close a client that is set
or autowired.")
@Metadata(autowired = true)
private Firestore firestoreClient;
@UriParam(label = "consumer", defaultValue = "false",
- description = "When true, the consumer will listen for real-time
updates on the collection")
+ description = "Whether the consumer listens for realtime changes
of the collection with a snapshot listener."
+ + " The first snapshot reports every existing
document as ADDED, and each poll routes the changes"
+ + " buffered since the previous poll. If false,
each poll reads all documents of the collection,"
+ + " so a document is consumed again in every
poll.")
private boolean realtimeUpdates;
@UriParam(label = "consumer,advanced", defaultValue = "0",
@@ -74,9 +89,6 @@ public class GoogleFirestoreConfiguration implements
Cloneable, GoogleCommonConf
return collectionName;
}
- /**
- * The collection name to use for Firestore operations.
- */
public void setCollectionName(String collectionName) {
this.collectionName = collectionName;
}
@@ -85,9 +97,6 @@ public class GoogleFirestoreConfiguration implements
Cloneable, GoogleCommonConf
return projectId;
}
- /**
- * The Google Cloud project ID. If not specified, it will be determined
from the service account key or environment.
- */
public void setProjectId(String projectId) {
this.projectId = projectId;
}
@@ -96,9 +105,6 @@ public class GoogleFirestoreConfiguration implements
Cloneable, GoogleCommonConf
return databaseId;
}
- /**
- * The Firestore database ID. If not specified, the default database
'(default)' will be used.
- */
public void setDatabaseId(String databaseId) {
this.databaseId = databaseId;
}
@@ -108,11 +114,6 @@ public class GoogleFirestoreConfiguration implements
Cloneable, GoogleCommonConf
return serviceAccountKey;
}
- /**
- * The Service account key that can be used as credentials for the
Firestore client. It can be loaded by default
- * from classpath, but you can prefix with "classpath:", "file:", or
"http:" to load the resource from different
- * systems.
- */
public void setServiceAccountKey(String serviceAccountKey) {
this.serviceAccountKey = serviceAccountKey;
}
@@ -121,9 +122,6 @@ public class GoogleFirestoreConfiguration implements
Cloneable, GoogleCommonConf
return operation;
}
- /**
- * Set the operation for the producer.
- */
public void setOperation(GoogleFirestoreOperations operation) {
this.operation = operation;
}
@@ -132,9 +130,6 @@ public class GoogleFirestoreConfiguration implements
Cloneable, GoogleCommonConf
return documentId;
}
- /**
- * The document ID to use for document-specific operations.
- */
public void setDocumentId(String documentId) {
this.documentId = documentId;
}
@@ -143,9 +138,6 @@ public class GoogleFirestoreConfiguration implements
Cloneable, GoogleCommonConf
return firestoreClient;
}
- /**
- * The Firestore client to use for operations.
- */
public void setFirestoreClient(Firestore firestoreClient) {
this.firestoreClient = firestoreClient;
}
@@ -154,9 +146,6 @@ public class GoogleFirestoreConfiguration implements
Cloneable, GoogleCommonConf
return realtimeUpdates;
}
- /**
- * When true, the consumer will listen for real-time updates on the
collection instead of polling.
- */
public void setRealtimeUpdates(boolean realtimeUpdates) {
this.realtimeUpdates = realtimeUpdates;
}
@@ -165,12 +154,6 @@ public class GoogleFirestoreConfiguration implements
Cloneable, GoogleCommonConf
return maxPendingChanges;
}
- /**
- * Maximum number of realtime document changes buffered between two polls.
The changes reported by the snapshot
- * listener are buffered until the next poll picks them up, so a
collection changing faster than the route consumes
- * it makes that buffer grow. When the buffer is full the oldest buffered
change is discarded and a warning is
- * logged. Use 0 for an unbounded buffer. Only used when realtimeUpdates
is enabled.
- */
public void setMaxPendingChanges(int maxPendingChanges) {
this.maxPendingChanges = maxPendingChanges;
}
diff --git
a/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreConstants.java
b/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreConstants.java
index 839099478e0c..1d6aa377f059 100644
---
a/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreConstants.java
+++
b/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreConstants.java
@@ -24,19 +24,27 @@ import org.apache.camel.spi.Metadata;
public final class GoogleFirestoreConstants {
// Operation header
- @Metadata(label = "producer", description = "The operation to perform.",
+ @Metadata(label = "producer", description = "The operation that the
producer performs. It replaces the operation option.",
javaType =
"org.apache.camel.component.google.firestore.GoogleFirestoreOperations")
public static final String OPERATION = "CamelGoogleFirestoreOperation";
// Collection and document identifiers
- @Metadata(label = "producer", description = "The collection name to use
for the operation.", javaType = "String")
+ @Metadata(label = "producer",
+ description = "The name of the collection that the producer
uses. It replaces the collection name"
+ + " of the endpoint URI.",
+ javaType = "String")
public static final String COLLECTION_NAME =
"CamelGoogleFirestoreCollectionName";
- @Metadata(label = "producer", description = "The document ID to use for
the operation.", javaType = "String")
+ @Metadata(label = "producer",
+ description = "The ID of the document that the producer uses. It
replaces the documentId option.",
+ javaType = "String")
public static final String DOCUMENT_ID = "CamelGoogleFirestoreDocumentId";
// Query parameters
- @Metadata(label = "producer", description = "The field name for query
filtering.", javaType = "String")
+ @Metadata(label = "producer", description = "The field that
queryCollection filters on. The filter is applied only when the"
+ + "
CamelGoogleFirestoreQueryOperator and CamelGoogleFirestoreQueryValue"
+ + " headers are also set.",
+ javaType = "String")
public static final String QUERY_FIELD = "CamelGoogleFirestoreQueryField";
@Metadata(label = "producer",
@@ -46,33 +54,53 @@ public final class GoogleFirestoreConstants {
javaType = "String")
public static final String QUERY_OPERATOR =
"CamelGoogleFirestoreQueryOperator";
- @Metadata(label = "producer", description = "The value for query
filtering.", javaType = "Object")
+ @Metadata(label = "producer", description = "The value that
queryCollection compares the field with. For the in,"
+ + " array-contains-any and
not-in operators it must be a java.util.List.",
+ javaType = "Object")
public static final String QUERY_VALUE = "CamelGoogleFirestoreQueryValue";
- @Metadata(label = "producer", description = "The maximum number of
documents to return in a query.", javaType = "Integer")
+ @Metadata(label = "producer",
+ description = "The maximum number of documents that
queryCollection returns. If not set, or 0 or"
+ + " less, all matching documents are returned.",
+ javaType = "Integer")
public static final String QUERY_LIMIT = "CamelGoogleFirestoreQueryLimit";
- @Metadata(label = "producer", description = "The field to order the query
results by.", javaType = "String")
+ @Metadata(label = "producer", description = "The field that
queryCollection orders the documents by.", javaType = "String")
public static final String QUERY_ORDER_BY =
"CamelGoogleFirestoreQueryOrderBy";
- @Metadata(label = "producer", description = "The direction to order the
query results (ASCENDING or DESCENDING).",
+ @Metadata(label = "producer",
+ description = "The direction of the order that
CamelGoogleFirestoreQueryOrderBy sets: ASCENDING (the"
+ + " default) or DESCENDING.",
javaType = "com.google.cloud.firestore.Query$Direction")
public static final String QUERY_ORDER_DIRECTION =
"CamelGoogleFirestoreQueryOrderDirection";
// Response metadata
- @Metadata(description = "The document ID from the response.", javaType =
"String")
+ @Metadata(description = "The ID of the document. The consumer sets it for
each document, and the producer for"
+ + " setDocument, createDocument (the generated
ID), getDocumentById, updateDocument and"
+ + " deleteDocument.",
+ javaType = "String")
public static final String RESPONSE_DOCUMENT_ID =
"CamelGoogleFirestoreResponseDocumentId";
- @Metadata(description = "The document path from the response.", javaType =
"String")
+ @Metadata(description = "The path of the document, such as users/alice.
The consumer sets it for each document, and"
+ + " the producer for setDocument, createDocument,
updateDocument, deleteDocument, and"
+ + " getDocumentById when the document exists.",
+ javaType = "String")
public static final String RESPONSE_DOCUMENT_PATH =
"CamelGoogleFirestoreResponseDocumentPath";
- @Metadata(description = "The document create time.", javaType =
"com.google.cloud.Timestamp")
+ @Metadata(description = "The time the document was created. The consumer
sets it for each document, and the producer"
+ + " for getDocumentById when the document exists.",
+ javaType = "com.google.cloud.Timestamp")
public static final String RESPONSE_CREATE_TIME =
"CamelGoogleFirestoreResponseCreateTime";
- @Metadata(description = "The document update time.", javaType =
"com.google.cloud.Timestamp")
+ @Metadata(description = "The time the document was last updated. The
consumer sets it for each document, and the"
+ + " producer for getDocumentById when the document
exists. For setDocument, createDocument,"
+ + " updateDocument and deleteDocument it is the
time of the write.",
+ javaType = "com.google.cloud.Timestamp")
public static final String RESPONSE_UPDATE_TIME =
"CamelGoogleFirestoreResponseUpdateTime";
- @Metadata(description = "The document read time.", javaType =
"com.google.cloud.Timestamp")
+ @Metadata(description = "The time the document was read. The consumer sets
it for each document, and the producer for"
+ + " getDocumentById when the document exists.",
+ javaType = "com.google.cloud.Timestamp")
public static final String RESPONSE_READ_TIME =
"CamelGoogleFirestoreResponseReadTime";
@Metadata(label = "consumer",
@@ -82,11 +110,16 @@ public final class GoogleFirestoreConstants {
public static final String CHANGE_TYPE = "CamelGoogleFirestoreChangeType";
// Set/update options
- @Metadata(label = "producer", description = "When true, merge the data
with existing document data instead of overwriting.",
+ @Metadata(label = "producer",
+ description = "Whether setDocument merges the fields of the body
into the existing document instead"
+ + " of replacing the document.",
javaType = "Boolean", defaultValue = "false")
public static final String MERGE = "CamelGoogleFirestoreMerge";
- @Metadata(label = "producer", description = "List of field paths to merge
when using merge option.",
+ @Metadata(label = "producer",
+ description = "The names of the fields that setDocument merges
when CamelGoogleFirestoreMerge is"
+ + " true. The other fields of the body are
ignored. If not set, all fields"
+ + " of the body are merged.",
javaType = "java.util.List<String>")
public static final String MERGE_FIELDS =
"CamelGoogleFirestoreMergeFields";
diff --git
a/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreEndpoint.java
b/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreEndpoint.java
index 5d668adaf34d..b0ce2485252b 100644
---
a/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreEndpoint.java
+++
b/components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreEndpoint.java
@@ -35,10 +35,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
- * Store and retrieve data from Google Cloud Firestore NoSQL database.
- *
- * Google Firestore Endpoint represents a collection within Firestore and
contains configuration to customize the
- * behavior of Consumer and Producer.
+ * Store, retrieve and query documents in Google Cloud Firestore collections.
*/
@UriEndpoint(firstVersion = "4.19.0", scheme = "google-firestore", title =
"Google Firestore",
syntax = "google-firestore:collectionName",
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 3baf432ce3eb..f60c87cb035f 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -2060,7 +2060,8 @@ public interface ComponentsBuilderFactory {
}
/**
* Google Firestore (camel-google-firestore)
- * Store and retrieve data from Google Cloud Firestore NoSQL database.
+ * Store, retrieve and query documents in Google Cloud Firestore
+ * collections.
*
* Category: cloud,database
* Since: 4.19
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleFirestoreComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleFirestoreComponentBuilderFactory.java
index 375d966f8f69..ed476281527b 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleFirestoreComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleFirestoreComponentBuilderFactory.java
@@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.google.firestore.GoogleFirestoreComponent;
/**
- * Store and retrieve data from Google Cloud Firestore NoSQL database.
+ * Store, retrieve and query documents in Google Cloud Firestore collections.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -33,7 +33,8 @@ public interface GoogleFirestoreComponentBuilderFactory {
/**
* Google Firestore (camel-google-firestore)
- * Store and retrieve data from Google Cloud Firestore NoSQL database.
+ * Store, retrieve and query documents in Google Cloud Firestore
+ * collections.
*
* Category: cloud,database
* Since: 4.19
@@ -51,7 +52,8 @@ public interface GoogleFirestoreComponentBuilderFactory {
interface GoogleFirestoreComponentBuilder extends
ComponentBuilder<GoogleFirestoreComponent> {
/**
- * The component configuration.
+ * The configuration that each endpoint of this component starts from.
+ * The options of the endpoint URI override its values.
*
* The option is a:
*
<code>org.apache.camel.component.google.firestore.GoogleFirestoreConfiguration</code>
type.
@@ -83,7 +85,10 @@ public interface GoogleFirestoreComponentBuilderFactory {
}
/**
- * The Firestore client to use for operations.
+ * To use a custom com.google.cloud.firestore.Firestore client. When
+ * this option is set or autowired, the projectId, databaseId and
+ * serviceAccountKey options are not used. The Camel endpoint does not
+ * close a client that is set or autowired.
*
* The option is a:
* <code>com.google.cloud.firestore.Firestore</code> type.
@@ -99,8 +104,9 @@ public interface GoogleFirestoreComponentBuilderFactory {
}
/**
- * The Google Cloud project ID. If not specified, it will be determined
- * from the service account key or environment.
+ * The ID of the Google Cloud project. If not set, the Firestore client
+ * takes it from the service account key, or from the environment, such
+ * as the GOOGLE_CLOUD_PROJECT environment variable.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -115,10 +121,10 @@ public interface GoogleFirestoreComponentBuilderFactory {
}
/**
- * The Service account key that can be used as credentials for the
- * Firestore client. It can be loaded by default from classpath, but
you
- * can prefix with classpath:, file:, or http: to load the resource
from
- * different systems.
+ * The service account key file in JSON format that the Firestore
client
+ * uses as credentials. It is loaded from the classpath by default, or
+ * from another location with the prefix file: or http:. If not set,
the
+ * client uses Application Default Credentials.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -162,8 +168,11 @@ public interface GoogleFirestoreComponentBuilderFactory {
/**
- * When true, the consumer will listen for real-time updates on the
- * collection.
+ * Whether the consumer listens for realtime changes of the collection
+ * with a snapshot listener. The first snapshot reports every existing
+ * document as ADDED, and each poll routes the changes buffered since
+ * the previous poll. If false, each poll reads all documents of the
+ * collection, so a document is consumed again in every poll.
*
* The option is a: <code>boolean</code> type.
*
@@ -200,7 +209,11 @@ public interface GoogleFirestoreComponentBuilderFactory {
}
/**
- * The document ID to use for document-specific operations.
+ * The ID of the document for setDocument, getDocumentById,
+ * updateDocument and deleteDocument, which fail without one. For
+ * listCollections it is the document whose subcollections are listed,
+ * and if not set the root collections are listed. The
+ * CamelGoogleFirestoreDocumentId header replaces this option.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -240,7 +253,9 @@ public interface GoogleFirestoreComponentBuilderFactory {
}
/**
- * Set the operation for the producer.
+ * The operation that the producer performs. If not set, the producer
+ * performs setDocument. The CamelGoogleFirestoreOperation header
+ * replaces this option.
*
* The option is a:
*
<code>org.apache.camel.component.google.firestore.GoogleFirestoreOperations</code>
type.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index c8c04b175d09..96bcda31afa0 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -1638,7 +1638,8 @@ public class EndpointHeaderBuilders {
}
/**
* Google Firestore (camel-google-firestore)
- * Store and retrieve data from Google Cloud Firestore NoSQL database.
+ * Store, retrieve and query documents in Google Cloud Firestore
+ * collections.
*
* Category: cloud,database
* Since: 4.19
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 1e31129fa372..923ae6d637a6 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -6815,7 +6815,8 @@ public class StaticEndpointBuilders {
}
/**
* Google Firestore (camel-google-firestore)
- * Store and retrieve data from Google Cloud Firestore NoSQL database.
+ * Store, retrieve and query documents in Google Cloud Firestore
+ * collections.
*
* Category: cloud,database
* Since: 4.19
@@ -6824,7 +6825,9 @@ public class StaticEndpointBuilders {
* Syntax: <code>google-firestore:collectionName</code>
*
* Path parameter: collectionName (required)
- * The collection name to use
+ * The name of the collection. The consumer reads the documents of this
+ * collection, and the CamelGoogleFirestoreCollectionName header replaces
it
+ * for the producer.
*
* @param path collectionName
* @return the dsl builder
@@ -6834,7 +6837,8 @@ public class StaticEndpointBuilders {
}
/**
* Google Firestore (camel-google-firestore)
- * Store and retrieve data from Google Cloud Firestore NoSQL database.
+ * Store, retrieve and query documents in Google Cloud Firestore
+ * collections.
*
* Category: cloud,database
* Since: 4.19
@@ -6843,7 +6847,9 @@ public class StaticEndpointBuilders {
* Syntax: <code>google-firestore:collectionName</code>
*
* Path parameter: collectionName (required)
- * The collection name to use
+ * The name of the collection. The consumer reads the documents of this
+ * collection, and the CamelGoogleFirestoreCollectionName header replaces
it
+ * for the producer.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleFirestoreEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleFirestoreEndpointBuilderFactory.java
index 1f842ac56146..2ef07c344a20 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleFirestoreEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleFirestoreEndpointBuilderFactory.java
@@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Store and retrieve data from Google Cloud Firestore NoSQL database.
+ * Store, retrieve and query documents in Google Cloud Firestore collections.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -59,7 +59,10 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Firestore client to use for operations.
+ * To use a custom com.google.cloud.firestore.Firestore client. When
+ * this option is set or autowired, the projectId, databaseId and
+ * serviceAccountKey options are not used. The Camel endpoint does not
+ * close a client that is set or autowired.
*
* The option is a: <code>com.google.cloud.firestore.Firestore</code>
* type.
@@ -74,7 +77,10 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Firestore client to use for operations.
+ * To use a custom com.google.cloud.firestore.Firestore client. When
+ * this option is set or autowired, the projectId, databaseId and
+ * serviceAccountKey options are not used. The Camel endpoint does not
+ * close a client that is set or autowired.
*
* The option will be converted to a
* <code>com.google.cloud.firestore.Firestore</code> type.
@@ -89,8 +95,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Google Cloud project ID. If not specified, it will be determined
- * from the service account key or environment.
+ * The ID of the Google Cloud project. If not set, the Firestore client
+ * takes it from the service account key, or from the environment, such
+ * as the GOOGLE_CLOUD_PROJECT environment variable.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -104,10 +111,10 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Service account key that can be used as credentials for the
- * Firestore client. It can be loaded by default from classpath, but
you
- * can prefix with classpath:, file:, or http: to load the resource
from
- * different systems.
+ * The service account key file in JSON format that the Firestore
client
+ * uses as credentials. It is loaded from the classpath by default, or
+ * from another location with the prefix file: or http:. If not set,
the
+ * client uses Application Default Credentials.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -121,8 +128,11 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * When true, the consumer will listen for real-time updates on the
- * collection.
+ * Whether the consumer listens for realtime changes of the collection
+ * with a snapshot listener. The first snapshot reports every existing
+ * document as ADDED, and each poll routes the changes buffered since
+ * the previous poll. If false, each poll reads all documents of the
+ * collection, so a document is consumed again in every poll.
*
* The option is a: <code>boolean</code> type.
*
@@ -137,8 +147,11 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * When true, the consumer will listen for real-time updates on the
- * collection.
+ * Whether the consumer listens for realtime changes of the collection
+ * with a snapshot listener. The first snapshot reports every existing
+ * document as ADDED, and each poll routes the changes buffered since
+ * the previous poll. If false, each poll reads all documents of the
+ * collection, so a document is consumed again in every poll.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -917,7 +930,10 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Firestore client to use for operations.
+ * To use a custom com.google.cloud.firestore.Firestore client. When
+ * this option is set or autowired, the projectId, databaseId and
+ * serviceAccountKey options are not used. The Camel endpoint does not
+ * close a client that is set or autowired.
*
* The option is a: <code>com.google.cloud.firestore.Firestore</code>
* type.
@@ -932,7 +948,10 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Firestore client to use for operations.
+ * To use a custom com.google.cloud.firestore.Firestore client. When
+ * this option is set or autowired, the projectId, databaseId and
+ * serviceAccountKey options are not used. The Camel endpoint does not
+ * close a client that is set or autowired.
*
* The option will be converted to a
* <code>com.google.cloud.firestore.Firestore</code> type.
@@ -947,8 +966,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Google Cloud project ID. If not specified, it will be determined
- * from the service account key or environment.
+ * The ID of the Google Cloud project. If not set, the Firestore client
+ * takes it from the service account key, or from the environment, such
+ * as the GOOGLE_CLOUD_PROJECT environment variable.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -962,10 +982,10 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Service account key that can be used as credentials for the
- * Firestore client. It can be loaded by default from classpath, but
you
- * can prefix with classpath:, file:, or http: to load the resource
from
- * different systems.
+ * The service account key file in JSON format that the Firestore
client
+ * uses as credentials. It is loaded from the classpath by default, or
+ * from another location with the prefix file: or http:. If not set,
the
+ * client uses Application Default Credentials.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -979,7 +999,11 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The document ID to use for document-specific operations.
+ * The ID of the document for setDocument, getDocumentById,
+ * updateDocument and deleteDocument, which fail without one. For
+ * listCollections it is the document whose subcollections are listed,
+ * and if not set the root collections are listed. The
+ * CamelGoogleFirestoreDocumentId header replaces this option.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -993,7 +1017,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * Set the operation for the producer.
+ * The operation that the producer performs. If not set, the producer
+ * performs setDocument. The CamelGoogleFirestoreOperation header
+ * replaces this option.
*
* The option is a:
*
<code>org.apache.camel.component.google.firestore.GoogleFirestoreOperations</code>
type.
@@ -1008,7 +1034,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * Set the operation for the producer.
+ * The operation that the producer performs. If not set, the producer
+ * performs setDocument. The CamelGoogleFirestoreOperation header
+ * replaces this option.
*
* The option will be converted to a
*
<code>org.apache.camel.component.google.firestore.GoogleFirestoreOperations</code>
type.
@@ -1107,7 +1135,10 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Firestore client to use for operations.
+ * To use a custom com.google.cloud.firestore.Firestore client. When
+ * this option is set or autowired, the projectId, databaseId and
+ * serviceAccountKey options are not used. The Camel endpoint does not
+ * close a client that is set or autowired.
*
* The option is a: <code>com.google.cloud.firestore.Firestore</code>
* type.
@@ -1122,7 +1153,10 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Firestore client to use for operations.
+ * To use a custom com.google.cloud.firestore.Firestore client. When
+ * this option is set or autowired, the projectId, databaseId and
+ * serviceAccountKey options are not used. The Camel endpoint does not
+ * close a client that is set or autowired.
*
* The option will be converted to a
* <code>com.google.cloud.firestore.Firestore</code> type.
@@ -1137,8 +1171,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Google Cloud project ID. If not specified, it will be determined
- * from the service account key or environment.
+ * The ID of the Google Cloud project. If not set, the Firestore client
+ * takes it from the service account key, or from the environment, such
+ * as the GOOGLE_CLOUD_PROJECT environment variable.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1152,10 +1187,10 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return this;
}
/**
- * The Service account key that can be used as credentials for the
- * Firestore client. It can be loaded by default from classpath, but
you
- * can prefix with classpath:, file:, or http: to load the resource
from
- * different systems.
+ * The service account key file in JSON format that the Firestore
client
+ * uses as credentials. It is loaded from the classpath by default, or
+ * from another location with the prefix file: or http:. If not set,
the
+ * client uses Application Default Credentials.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1186,7 +1221,8 @@ public interface GoogleFirestoreEndpointBuilderFactory {
public interface GoogleFirestoreBuilders {
/**
* Google Firestore (camel-google-firestore)
- * Store and retrieve data from Google Cloud Firestore NoSQL database.
+ * Store, retrieve and query documents in Google Cloud Firestore
+ * collections.
*
* Category: cloud,database
* Since: 4.19
@@ -1199,7 +1235,8 @@ public interface GoogleFirestoreEndpointBuilderFactory {
}
/**
* Google Firestore (camel-google-firestore)
- * Store and retrieve data from Google Cloud Firestore NoSQL database.
+ * Store, retrieve and query documents in Google Cloud Firestore
+ * collections.
*
* Category: cloud,database
* Since: 4.19
@@ -1208,7 +1245,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
* Syntax: <code>google-firestore:collectionName</code>
*
* Path parameter: collectionName (required)
- * The collection name to use
+ * The name of the collection. The consumer reads the documents of this
+ * collection, and the CamelGoogleFirestoreCollectionName header
+ * replaces it for the producer.
*
* @param path collectionName
* @return the dsl builder
@@ -1218,7 +1257,8 @@ public interface GoogleFirestoreEndpointBuilderFactory {
}
/**
* Google Firestore (camel-google-firestore)
- * Store and retrieve data from Google Cloud Firestore NoSQL database.
+ * Store, retrieve and query documents in Google Cloud Firestore
+ * collections.
*
* Category: cloud,database
* Since: 4.19
@@ -1227,7 +1267,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
* Syntax: <code>google-firestore:collectionName</code>
*
* Path parameter: collectionName (required)
- * The collection name to use
+ * The name of the collection. The consumer reads the documents of this
+ * collection, and the CamelGoogleFirestoreCollectionName header
+ * replaces it for the producer.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
@@ -1250,7 +1292,8 @@ public interface GoogleFirestoreEndpointBuilderFactory {
public static final GoogleFirestoreHeaderNameBuilder INSTANCE = new
GoogleFirestoreHeaderNameBuilder();
/**
- * The operation to perform.
+ * The operation that the producer performs. It replaces the operation
+ * option.
*
* The option is a: {@code
*
org.apache.camel.component.google.firestore.GoogleFirestoreOperations} type.
@@ -1263,7 +1306,8 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreOperation";
}
/**
- * The collection name to use for the operation.
+ * The name of the collection that the producer uses. It replaces the
+ * collection name of the endpoint URI.
*
* The option is a: {@code String} type.
*
@@ -1275,7 +1319,8 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreCollectionName";
}
/**
- * The document ID to use for the operation.
+ * The ID of the document that the producer uses. It replaces the
+ * documentId option.
*
* The option is a: {@code String} type.
*
@@ -1287,7 +1332,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreDocumentId";
}
/**
- * The field name for query filtering.
+ * The field that queryCollection filters on. The filter is applied
only
+ * when the CamelGoogleFirestoreQueryOperator and
+ * CamelGoogleFirestoreQueryValue headers are also set.
*
* The option is a: {@code String} type.
*
@@ -1315,7 +1362,8 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreQueryOperator";
}
/**
- * The value for query filtering.
+ * The value that queryCollection compares the field with. For the in,
+ * array-contains-any and not-in operators it must be a java.util.List.
*
* The option is a: {@code Object} type.
*
@@ -1327,7 +1375,8 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreQueryValue";
}
/**
- * The maximum number of documents to return in a query.
+ * The maximum number of documents that queryCollection returns. If not
+ * set, or 0 or less, all matching documents are returned.
*
* The option is a: {@code Integer} type.
*
@@ -1339,7 +1388,7 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreQueryLimit";
}
/**
- * The field to order the query results by.
+ * The field that queryCollection orders the documents by.
*
* The option is a: {@code String} type.
*
@@ -1351,7 +1400,8 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreQueryOrderBy";
}
/**
- * The direction to order the query results (ASCENDING or DESCENDING).
+ * The direction of the order that CamelGoogleFirestoreQueryOrderBy
+ * sets: ASCENDING (the default) or DESCENDING.
*
* The option is a: {@code com.google.cloud.firestore.Query$Direction}
* type.
@@ -1365,7 +1415,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreQueryOrderDirection";
}
/**
- * The document ID from the response.
+ * The ID of the document. The consumer sets it for each document, and
+ * the producer for setDocument, createDocument (the generated ID),
+ * getDocumentById, updateDocument and deleteDocument.
*
* The option is a: {@code String} type.
*
@@ -1378,7 +1430,10 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreResponseDocumentId";
}
/**
- * The document path from the response.
+ * The path of the document, such as users/alice. The consumer sets it
+ * for each document, and the producer for setDocument, createDocument,
+ * updateDocument, deleteDocument, and getDocumentById when the
document
+ * exists.
*
* The option is a: {@code String} type.
*
@@ -1391,7 +1446,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreResponseDocumentPath";
}
/**
- * The document create time.
+ * The time the document was created. The consumer sets it for each
+ * document, and the producer for getDocumentById when the document
+ * exists.
*
* The option is a: {@code com.google.cloud.Timestamp} type.
*
@@ -1404,7 +1461,10 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreResponseCreateTime";
}
/**
- * The document update time.
+ * The time the document was last updated. The consumer sets it for
each
+ * document, and the producer for getDocumentById when the document
+ * exists. For setDocument, createDocument, updateDocument and
+ * deleteDocument it is the time of the write.
*
* The option is a: {@code com.google.cloud.Timestamp} type.
*
@@ -1417,7 +1477,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreResponseUpdateTime";
}
/**
- * The document read time.
+ * The time the document was read. The consumer sets it for each
+ * document, and the producer for getDocumentById when the document
+ * exists.
*
* The option is a: {@code com.google.cloud.Timestamp} type.
*
@@ -1443,8 +1505,8 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreChangeType";
}
/**
- * When true, merge the data with existing document data instead of
- * overwriting.
+ * Whether setDocument merges the fields of the body into the existing
+ * document instead of replacing the document.
*
* The option is a: {@code Boolean} type.
*
@@ -1457,7 +1519,9 @@ public interface GoogleFirestoreEndpointBuilderFactory {
return "CamelGoogleFirestoreMerge";
}
/**
- * List of field paths to merge when using merge option.
+ * The names of the fields that setDocument merges when
+ * CamelGoogleFirestoreMerge is true. The other fields of the body are
+ * ignored. If not set, all fields of the body are merged.
*
* The option is a: {@code java.util.List<String>} type.
*
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index b1232c036c1b..6c32dfc4f6d7 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -186,7 +186,7 @@ or removes its row.
| camel-google-bigquery | google-bigquery, google-bigquery-sql | |
| camel-google-calendar | google-calendar, google-calendar-stream | |
| camel-google-drive | google-drive | |
-| camel-google-firestore | google-firestore | |
+| camel-google-firestore | google-firestore | yes |
| camel-google-functions | google-functions | |
| camel-google-mail | google-mail, google-mail-stream | |
| camel-google-pubsub | google-pubsub | |