content: /*
   * 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.component.docling.springboot;
  
  import org.apache.camel.component.docling.AuthenticationScheme;
  import org.apache.camel.component.docling.DoclingComponent;
  import org.apache.camel.component.docling.DoclingConfiguration;
  import org.apache.camel.component.docling.DoclingOperations;
  import org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon;
  import org.springframework.boot.context.properties.ConfigurationProperties;
  
  /**
   * Process documents using Docling library for parsing and conversion.
   * 
   * Generated by camel-package-maven-plugin - do not edit this file!
   */
  @ConfigurationProperties(prefix = "camel.component.docling")
  public class DoclingComponentConfiguration
          extends
              ComponentConfigurationPropertiesCommon {
  
      /**
       * Whether to enable auto configuration of the docling component. This is
       * enabled by default.
       */
      private Boolean enabled;
      /**
       * The configuration for the Docling Endpoint. The option is a
       * org.apache.camel.component.docling.DoclingConfiguration type.
       */
      private DoclingConfiguration configuration;
      /**
       * Include the content of the output file in the exchange body and delete
       * the output file
       */
      private Boolean contentInBody = false;
      /**
       * Docling-serve API URL (e.g., http://localhost:5001)
       */
      private String doclingServeUrl = "http://localhost:5001";
      /**
       * Enable OCR processing for scanned documents
       */
      private Boolean enableOCR = true;
      /**
       * Show layout information with bounding boxes
       */
      private Boolean includeLayoutInfo = false;
      /**
       * 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.
       */
      private Boolean lazyStartProducer = false;
      /**
       * Language code for OCR processing
       */
      private String ocrLanguage = "en";
      /**
       * The operation to perform
       */
      private DoclingOperations operation = DoclingOperations.CONVERT_TO_MARKDOWN;
      /**
       * Output format for document conversion
       */
      private String outputFormat = "markdown";
      /**
       * Use docling-serve API instead of CLI command
       */
      private Boolean useDoclingServe = false;
      /**
       * 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.
       */
      private Boolean autowiredEnabled = true;
      /**
       * Docling-serve API convert endpoint path
       */
      private String convertEndpoint = "/v1/convert/source";
      /**
       * Path to Docling Python executable or command
       */
      private String doclingCommand;
      /**
       * Timeout for Docling process execution in milliseconds
       */
      private Long processTimeout = 30000L;
      /**
       * Working directory for Docling execution
       */
      private String workingDirectory;
      /**
       * Header name for API key authentication
       */
      private String apiKeyHeader = "X-API-Key";
      /**
       * Authentication scheme (BEARER, API_KEY, NONE)
       */
      private AuthenticationScheme authenticationScheme = AuthenticationScheme.NONE;
      /**
       * Authentication token for docling-serve API (Bearer token or API key)
       */
      private String authenticationToken;
      /**
       * Maximum file size in bytes for processing
       */
      private Long maxFileSize = 52428800L;
  
      public DoclingConfiguration getConfiguration() {
          return configuration;
      }
  
      public void setConfiguration(DoclingConfiguration configuration) {
          this.configuration = configuration;
      }
  
      public Boolean getContentInBody() {
          return contentInBody;
      }
  
      public void setContentInBody(Boolean contentInBody) {
          this.contentInBody = contentInBody;
      }
  
      public String getDoclingServeUrl() {
          return doclingServeUrl;
      }
  
      public void setDoclingServeUrl(String doclingServeUrl) {
          this.doclingServeUrl = doclingServeUrl;
      }
  
      public Boolean getEnableOCR() {
          return enableOCR;
      }
  
      public void setEnableOCR(Boolean enableOCR) {
          this.enableOCR = enableOCR;
      }
  
      public Boolean getIncludeLayoutInfo() {
          return includeLayoutInfo;
      }
  
      public void setIncludeLayoutInfo(Boolean includeLayoutInfo) {
          this.includeLayoutInfo = includeLayoutInfo;
      }
  
      public Boolean getLazyStartProducer() {
          return lazyStartProducer;
      }
  
      public void setLazyStartProducer(Boolean lazyStartProducer) {
          this.lazyStartProducer = lazyStartProducer;
      }
  
      public String getOcrLanguage() {
          return ocrLanguage;
      }
  
      public void setOcrLanguage(String ocrLanguage) {
          this.ocrLanguage = ocrLanguage;
      }
  
      public DoclingOperations getOperation() {
          return operation;
      }
  
      public void setOperation(DoclingOperations operation) {
          this.operation = operation;
      }
  
      public String getOutputFormat() {
          return outputFormat;
      }
  
      public void setOutputFormat(String outputFormat) {
          this.outputFormat = outputFormat;
      }
  
      public Boolean getUseDoclingServe() {
          return useDoclingServe;
      }
  
      public void setUseDoclingServe(Boolean useDoclingServe) {
          this.useDoclingServe = useDoclingServe;
      }
  
      public Boolean getAutowiredEnabled() {
          return autowiredEnabled;
      }
  
      public void setAutowiredEnabled(Boolean autowiredEnabled) {
          this.autowiredEnabled = autowiredEnabled;
      }
  
      public String getConvertEndpoint() {
          return convertEndpoint;
      }
  
      public void setConvertEndpoint(String convertEndpoint) {
          this.convertEndpoint = convertEndpoint;
      }
  
      public String getDoclingCommand() {
          return doclingCommand;
      }
  
      public void setDoclingCommand(String doclingCommand) {
          this.doclingCommand = doclingCommand;
      }
  
      public Long getProcessTimeout() {
          return processTimeout;
      }
  
      public void setProcessTimeout(Long processTimeout) {
          this.processTimeout = processTimeout;
      }
  
      public String getWorkingDirectory() {
          return workingDirectory;
      }
  
      public void setWorkingDirectory(String workingDirectory) {
          this.workingDirectory = workingDirectory;
      }
  
      public String getApiKeyHeader() {
          return apiKeyHeader;
      }
  
      public void setApiKeyHeader(String apiKeyHeader) {
          this.apiKeyHeader = apiKeyHeader;
      }
  
      public AuthenticationScheme getAuthenticationScheme() {
          return authenticationScheme;
      }
  
      public void setAuthenticationScheme(
              AuthenticationScheme authenticationScheme) {
          this.authenticationScheme = authenticationScheme;
      }
  
      public String getAuthenticationToken() {
          return authenticationToken;
      }
  
      public void setAuthenticationToken(String authenticationToken) {
          this.authenticationToken = authenticationToken;
      }
  
      public Long getMaxFileSize() {
          return maxFileSize;
      }
  
      public void setMaxFileSize(Long maxFileSize) {
          this.maxFileSize = maxFileSize;
      }
  }