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 8e21ea5b609 Regen 8e21ea5b609 is described below commit 8e21ea5b60982ef8be1caea150018644f5159edd Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Mar 29 13:41:53 2024 +0100 Regen --- .../component/ComponentsBuilderFactory.java | 14 ++ .../GooglePubsubLiteComponentBuilderFactory.java | 257 +++++++++++++++++++++ .../dsl/PlatformHttpComponentBuilderFactory.java | 19 ++ .../src/generated/resources/metadata.json | 23 ++ 4 files changed, 313 insertions(+) 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 0e01e97b7ce..97fd433050a 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 @@ -1631,6 +1631,20 @@ public interface ComponentsBuilderFactory { static org.apache.camel.builder.component.dsl.GooglePubsubComponentBuilderFactory.GooglePubsubComponentBuilder googlePubsub() { return org.apache.camel.builder.component.dsl.GooglePubsubComponentBuilderFactory.googlePubsub(); } + /** + * Google PubSub Lite (camel-google-pubsub-lite) + * Send and receive messages to/from Google Cloud Platform PubSub Lite + * Service. + * + * Category: cloud,messaging + * Since: 4.6 + * Maven coordinates: org.apache.camel:camel-google-pubsub-lite + * + * @return the dsl builder + */ + static org.apache.camel.builder.component.dsl.GooglePubsubLiteComponentBuilderFactory.GooglePubsubLiteComponentBuilder googlePubsubLite() { + return org.apache.camel.builder.component.dsl.GooglePubsubLiteComponentBuilderFactory.googlePubsubLite(); + } /** * Google Secret Manager (camel-google-secret-manager) * Manage Google Secret Manager Secrets diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GooglePubsubLiteComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GooglePubsubLiteComponentBuilderFactory.java new file mode 100644 index 00000000000..54bfdaf3957 --- /dev/null +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GooglePubsubLiteComponentBuilderFactory.java @@ -0,0 +1,257 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.builder.component.dsl; + +import javax.annotation.processing.Generated; +import org.apache.camel.Component; +import org.apache.camel.builder.component.AbstractComponentBuilder; +import org.apache.camel.builder.component.ComponentBuilder; +import org.apache.camel.component.google.pubsublite.GooglePubsubLiteComponent; + +/** + * Send and receive messages to/from Google Cloud Platform PubSub Lite Service. + * + * Generated by camel-package-maven-plugin - do not edit this file! + */ +@Generated("org.apache.camel.maven.packaging.ComponentDslMojo") +public interface GooglePubsubLiteComponentBuilderFactory { + + /** + * Google PubSub Lite (camel-google-pubsub-lite) + * Send and receive messages to/from Google Cloud Platform PubSub Lite + * Service. + * + * Category: cloud,messaging + * Since: 4.6 + * Maven coordinates: org.apache.camel:camel-google-pubsub-lite + * + * @return the dsl builder + */ + static GooglePubsubLiteComponentBuilder googlePubsubLite() { + return new GooglePubsubLiteComponentBuilderImpl(); + } + + /** + * Builder for the Google PubSub Lite component. + */ + interface GooglePubsubLiteComponentBuilder + extends + ComponentBuilder<GooglePubsubLiteComponent> { + /** + * 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 likes, will + * now be processed as a message and handled by the routing Error + * Handler. Important: This is only possible if the 3rd party component + * allows Camel to be alerted if an exception was thrown. Some + * components handle this internally only, and therefore + * bridgeErrorHandler is not possible. In other situations we may + * improve the Camel component to hook into the 3rd party component and + * make this possible for future releases. By default the consumer will + * use the org.apache.camel.spi.ExceptionHandler to deal with + * exceptions, that will be logged at WARN or ERROR level and ignored. + * + * The option is a: <code>boolean</code> type. + * + * Default: false + * Group: consumer + * + * @param bridgeErrorHandler the value to set + * @return the dsl builder + */ + default GooglePubsubLiteComponentBuilder bridgeErrorHandler( + boolean bridgeErrorHandler) { + doSetProperty("bridgeErrorHandler", bridgeErrorHandler); + return this; + } + /** + * The number of quota bytes that may be outstanding to the client. Must + * be greater than the allowed size of the largest message (1 MiB). + * + * The option is a: <code>long</code> type. + * + * Default: 10485760 + * Group: consumer (advanced) + * + * @param consumerBytesOutstanding the value to set + * @return the dsl builder + */ + default GooglePubsubLiteComponentBuilder consumerBytesOutstanding( + long consumerBytesOutstanding) { + doSetProperty("consumerBytesOutstanding", consumerBytesOutstanding); + return this; + } + /** + * The number of messages that may be outstanding to the client. Must be + * 0. + * + * The option is a: <code>long</code> type. + * + * Default: 1000 + * Group: consumer (advanced) + * + * @param consumerMessagesOutstanding the value to set + * @return the dsl builder + */ + default GooglePubsubLiteComponentBuilder consumerMessagesOutstanding( + long consumerMessagesOutstanding) { + doSetProperty("consumerMessagesOutstanding", consumerMessagesOutstanding); + return this; + } + /** + * 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 during + * starting and cause the route to fail being started. By deferring this + * startup to be lazy then the startup failure can be handled during + * routing messages via Camel's routing error handlers. Beware that when + * the first message is processed then creating and starting the + * producer may take a little time and prolong the total processing time + * of the processing. + * + * The option is a: <code>boolean</code> type. + * + * Default: false + * Group: producer + * + * @param lazyStartProducer the value to set + * @return the dsl builder + */ + default GooglePubsubLiteComponentBuilder lazyStartProducer( + boolean lazyStartProducer) { + doSetProperty("lazyStartProducer", lazyStartProducer); + return this; + } + /** + * Maximum number of producers to cache. This could be increased if you + * have producers for lots of different topics. + * + * The option is a: <code>int</code> type. + * + * Default: 100 + * Group: producer (advanced) + * + * @param publisherCacheSize the value to set + * @return the dsl builder + */ + default GooglePubsubLiteComponentBuilder publisherCacheSize( + int publisherCacheSize) { + doSetProperty("publisherCacheSize", publisherCacheSize); + return this; + } + /** + * How many milliseconds should each producer stay alive in the cache. + * + * The option is a: <code>int</code> type. + * + * Default: 180000 + * Group: producer (advanced) + * + * @param publisherCacheTimeout the value to set + * @return the dsl builder + */ + default GooglePubsubLiteComponentBuilder publisherCacheTimeout( + int publisherCacheTimeout) { + doSetProperty("publisherCacheTimeout", publisherCacheTimeout); + return this; + } + /** + * How many milliseconds should a producer be allowed to terminate. + * + * The option is a: <code>int</code> type. + * + * Default: 60000 + * Group: producer (advanced) + * + * @param publisherTerminationTimeout the value to set + * @return the dsl builder + */ + default GooglePubsubLiteComponentBuilder publisherTerminationTimeout( + int publisherTerminationTimeout) { + doSetProperty("publisherTerminationTimeout", publisherTerminationTimeout); + return this; + } + /** + * 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 type, + * which then gets configured on the component. This can be used for + * automatic configuring JDBC data sources, JMS connection factories, + * AWS Clients, etc. + * + * The option is a: <code>boolean</code> type. + * + * Default: true + * Group: advanced + * + * @param autowiredEnabled the value to set + * @return the dsl builder + */ + default GooglePubsubLiteComponentBuilder autowiredEnabled( + boolean autowiredEnabled) { + doSetProperty("autowiredEnabled", autowiredEnabled); + return this; + } + /** + * The Service account key that can be used as credentials for the + * PubSub Lite publisher/subscriber. 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 option is a: <code>java.lang.String</code> type. + * + * Group: security + * + * @param serviceAccountKey the value to set + * @return the dsl builder + */ + default GooglePubsubLiteComponentBuilder serviceAccountKey( + java.lang.String serviceAccountKey) { + doSetProperty("serviceAccountKey", serviceAccountKey); + return this; + } + } + + class GooglePubsubLiteComponentBuilderImpl + extends + AbstractComponentBuilder<GooglePubsubLiteComponent> + implements + GooglePubsubLiteComponentBuilder { + @Override + protected GooglePubsubLiteComponent buildConcreteComponent() { + return new GooglePubsubLiteComponent(); + } + @Override + protected boolean setPropertyOnComponent( + Component component, + String name, + Object value) { + switch (name) { + case "bridgeErrorHandler": ((GooglePubsubLiteComponent) component).setBridgeErrorHandler((boolean) value); return true; + case "consumerBytesOutstanding": ((GooglePubsubLiteComponent) component).setConsumerBytesOutstanding((long) value); return true; + case "consumerMessagesOutstanding": ((GooglePubsubLiteComponent) component).setConsumerMessagesOutstanding((long) value); return true; + case "lazyStartProducer": ((GooglePubsubLiteComponent) component).setLazyStartProducer((boolean) value); return true; + case "publisherCacheSize": ((GooglePubsubLiteComponent) component).setPublisherCacheSize((int) value); return true; + case "publisherCacheTimeout": ((GooglePubsubLiteComponent) component).setPublisherCacheTimeout((int) value); return true; + case "publisherTerminationTimeout": ((GooglePubsubLiteComponent) component).setPublisherTerminationTimeout((int) value); return true; + case "autowiredEnabled": ((GooglePubsubLiteComponent) component).setAutowiredEnabled((boolean) value); return true; + case "serviceAccountKey": ((GooglePubsubLiteComponent) component).setServiceAccountKey((java.lang.String) value); return true; + default: return false; + } + } + } +} \ No newline at end of file diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PlatformHttpComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PlatformHttpComponentBuilderFactory.java index 6d13a6ee652..960a3357672 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PlatformHttpComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/PlatformHttpComponentBuilderFactory.java @@ -116,6 +116,24 @@ public interface PlatformHttpComponentBuilderFactory { doSetProperty("engine", engine); return this; } + /** + * To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter + * header to and from Camel message. + * + * The option is a: + * <code>org.apache.camel.spi.HeaderFilterStrategy</code> + * type. + * + * Group: filter + * + * @param headerFilterStrategy the value to set + * @return the dsl builder + */ + default PlatformHttpComponentBuilder headerFilterStrategy( + org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) { + doSetProperty("headerFilterStrategy", headerFilterStrategy); + return this; + } } class PlatformHttpComponentBuilderImpl @@ -136,6 +154,7 @@ public interface PlatformHttpComponentBuilderFactory { case "bridgeErrorHandler": ((PlatformHttpComponent) component).setBridgeErrorHandler((boolean) value); return true; case "autowiredEnabled": ((PlatformHttpComponent) component).setAutowiredEnabled((boolean) value); return true; case "engine": ((PlatformHttpComponent) component).setEngine((org.apache.camel.component.platform.http.spi.PlatformHttpEngine) value); return true; + case "headerFilterStrategy": ((PlatformHttpComponent) component).setHeaderFilterStrategy((org.apache.camel.spi.HeaderFilterStrategy) value); return true; default: return false; } } diff --git a/dsl/camel-componentdsl/src/generated/resources/metadata.json b/dsl/camel-componentdsl/src/generated/resources/metadata.json index 1abd57b5351..dd289512af2 100644 --- a/dsl/camel-componentdsl/src/generated/resources/metadata.json +++ b/dsl/camel-componentdsl/src/generated/resources/metadata.json @@ -2782,6 +2782,29 @@ "lenientProperties": false, "remote": true }, + "GooglePubsubLiteComponentBuilderFactory": { + "kind": "component", + "name": "google-pubsub-lite", + "title": "Google PubSub Lite", + "description": "Send and receive messages to\/from Google Cloud Platform PubSub Lite Service.", + "deprecated": false, + "firstVersion": "4.6.0", + "label": "cloud,messaging", + "javaType": "org.apache.camel.component.google.pubsublite.GooglePubsubLiteComponent", + "supportLevel": "Preview", + "groupId": "org.apache.camel", + "artifactId": "camel-google-pubsub-lite", + "version": "4.6.0-SNAPSHOT", + "scheme": "google-pubsub-lite", + "extendsScheme": "", + "syntax": "google-pubsub-lite:projectId:location:destinationName", + "async": false, + "api": false, + "consumerOnly": false, + "producerOnly": false, + "lenientProperties": false, + "remote": true + }, "GoogleSecretManagerComponentBuilderFactory": { "kind": "component", "name": "google-secret-manager",