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 4c55ef425c3 Regen 4c55ef425c3 is described below commit 4c55ef425c36a3d0983e21048439bc80d9f3ab16 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Sep 20 12:16:38 2022 +0200 Regen --- .../apache/camel/catalog/components/telegram.json | 2 + .../dsl/TelegramEndpointBuilderFactory.java | 193 +++++++++++++++++++++ 2 files changed, 195 insertions(+) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/telegram.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/telegram.json index ed7d8f4c8a2..9bf97a82277 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/telegram.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/telegram.json @@ -49,6 +49,8 @@ "chatId": { "kind": "parameter", "displayName": "Chat Id", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.telegram.TelegramConfiguration", "configurationField": "configuration", "description": "The identifier of the chat that will receive the produced messages. Chat ids can be first obtained from incoming messages [...] "lazyStartProducer": { "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 producer may other [...] "baseUri": { "kind": "parameter", "displayName": "Base Uri", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.telegram.TelegramConfiguration", "configurationField": "configuration", "description": "Can be used to set an alternative base URI, e.g. when you want to test the component against a mock Telegram API" }, + "bufferSize": { "kind": "parameter", "displayName": "Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1048576, "description": "The initial in-memory buffer size used when transferring data between Camel and AHC Client." }, + "client": { "kind": "parameter", "displayName": "Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.net.http.HttpClient", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HttpClient" }, "proxyHost": { "kind": "parameter", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.telegram.TelegramConfiguration", "configurationField": "configuration", "description": "HTTP proxy host which could be used when sending out the message." }, "proxyPort": { "kind": "parameter", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.telegram.TelegramConfiguration", "configurationField": "configuration", "description": "HTTP proxy port which could be used when sending out the message." }, "proxyType": { "kind": "parameter", "displayName": "Proxy Type", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "org.apache.camel.component.telegram.TelegramProxyType", "enum": [ "HTTP", "SOCKS4", "SOCKS5" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTP", "configurationClass": "org.apache.camel.component.telegram.TelegramConfiguration", "configurationField": "configuration", "description": "HTTP proxy type which [...] diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TelegramEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TelegramEndpointBuilderFactory.java index d55a104c2b6..71617f4d1ee 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TelegramEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TelegramEndpointBuilderFactory.java @@ -895,6 +895,71 @@ public interface TelegramEndpointBuilderFactory { doSetProperty("baseUri", baseUri); return this; } + /** + * The initial in-memory buffer size used when transferring data between + * Camel and AHC Client. + * + * The option is a: <code>int</code> type. + * + * Default: 1048576 + * Group: advanced + * + * @param bufferSize the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointConsumerBuilder bufferSize( + int bufferSize) { + doSetProperty("bufferSize", bufferSize); + return this; + } + /** + * The initial in-memory buffer size used when transferring data between + * Camel and AHC Client. + * + * The option will be converted to a <code>int</code> type. + * + * Default: 1048576 + * Group: advanced + * + * @param bufferSize the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointConsumerBuilder bufferSize( + String bufferSize) { + doSetProperty("bufferSize", bufferSize); + return this; + } + /** + * To use a custom HttpClient. + * + * The option is a: <code>java.net.http.HttpClient</code> + * type. + * + * Group: advanced + * + * @param client the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointConsumerBuilder client( + java.net.http.HttpClient client) { + doSetProperty("client", client); + return this; + } + /** + * To use a custom HttpClient. + * + * The option will be converted to a + * <code>java.net.http.HttpClient</code> type. + * + * Group: advanced + * + * @param client the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointConsumerBuilder client(String client) { + doSetProperty("client", client); + return this; + } } /** @@ -1092,6 +1157,71 @@ public interface TelegramEndpointBuilderFactory { doSetProperty("baseUri", baseUri); return this; } + /** + * The initial in-memory buffer size used when transferring data between + * Camel and AHC Client. + * + * The option is a: <code>int</code> type. + * + * Default: 1048576 + * Group: advanced + * + * @param bufferSize the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointProducerBuilder bufferSize( + int bufferSize) { + doSetProperty("bufferSize", bufferSize); + return this; + } + /** + * The initial in-memory buffer size used when transferring data between + * Camel and AHC Client. + * + * The option will be converted to a <code>int</code> type. + * + * Default: 1048576 + * Group: advanced + * + * @param bufferSize the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointProducerBuilder bufferSize( + String bufferSize) { + doSetProperty("bufferSize", bufferSize); + return this; + } + /** + * To use a custom HttpClient. + * + * The option is a: <code>java.net.http.HttpClient</code> + * type. + * + * Group: advanced + * + * @param client the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointProducerBuilder client( + java.net.http.HttpClient client) { + doSetProperty("client", client); + return this; + } + /** + * To use a custom HttpClient. + * + * The option will be converted to a + * <code>java.net.http.HttpClient</code> type. + * + * Group: advanced + * + * @param client the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointProducerBuilder client(String client) { + doSetProperty("client", client); + return this; + } } /** @@ -1223,6 +1353,69 @@ public interface TelegramEndpointBuilderFactory { doSetProperty("baseUri", baseUri); return this; } + /** + * The initial in-memory buffer size used when transferring data between + * Camel and AHC Client. + * + * The option is a: <code>int</code> type. + * + * Default: 1048576 + * Group: advanced + * + * @param bufferSize the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointBuilder bufferSize(int bufferSize) { + doSetProperty("bufferSize", bufferSize); + return this; + } + /** + * The initial in-memory buffer size used when transferring data between + * Camel and AHC Client. + * + * The option will be converted to a <code>int</code> type. + * + * Default: 1048576 + * Group: advanced + * + * @param bufferSize the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointBuilder bufferSize(String bufferSize) { + doSetProperty("bufferSize", bufferSize); + return this; + } + /** + * To use a custom HttpClient. + * + * The option is a: <code>java.net.http.HttpClient</code> + * type. + * + * Group: advanced + * + * @param client the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointBuilder client( + java.net.http.HttpClient client) { + doSetProperty("client", client); + return this; + } + /** + * To use a custom HttpClient. + * + * The option will be converted to a + * <code>java.net.http.HttpClient</code> type. + * + * Group: advanced + * + * @param client the value to set + * @return the dsl builder + */ + default AdvancedTelegramEndpointBuilder client(String client) { + doSetProperty("client", client); + return this; + } } public interface TelegramBuilders {