/*
 * 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.google.vertexai.springboot;

import com.google.cloud.aiplatform.v1.PredictionServiceClient;
import com.google.genai.Client;
import org.apache.camel.component.google.vertexai.GoogleVertexAIConfiguration;
import org.apache.camel.component.google.vertexai.GoogleVertexAIOperations;
import org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Interact with Google Cloud Vertex AI generative models.
 * 
 * Generated by camel-package-maven-plugin - do not edit this file!
 */
@ConfigurationProperties(prefix = "camel.component.google-vertexai")
public class GoogleVertexAIComponentConfiguration
        extends
            ComponentConfigurationPropertiesCommon {

    /**
     * Whether to enable auto configuration of the google-vertexai component.
     * This is enabled by default.
     */
    private Boolean enabled;
    /**
     * The Service account key that can be used as credentials for the Vertex AI
     * 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.
     */
    private String serviceAccountKey;
    /**
     * Anthropic API version for Claude models. Required when publisher is
     * 'anthropic'.
     */
    private String anthropicVersion = "vertex-2023-10-16";
    /**
     * Number of candidate responses to generate
     */
    private Integer candidateCount = 1;
    /**
     * The component configuration. The option is a
     * org.apache.camel.component.google.vertexai.GoogleVertexAIConfiguration
     * type.
     */
    private GoogleVertexAIConfiguration configuration;
    /**
     * Whether to use JSON request/response format
     */
    private Boolean jsonMode = 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;
    /**
     * Maximum number of output tokens
     */
    private Integer maxOutputTokens = 1024;
    /**
     * Set the operation for the producer
     */
    private GoogleVertexAIOperations operation;
    /**
     * Publisher name for partner models (e.g., anthropic, meta, mistralai).
     * Required for rawPredict operations.
     */
    private String publisher;
    /**
     * Streaming output mode: complete (default) or chunks
     */
    private String streamOutputMode = "complete";
    /**
     * Temperature parameter for generation (0.0-1.0)
     */
    private Float temperature;
    /**
     * Top-K parameter for generation
     */
    private Integer topK = 40;
    /**
     * Top-P parameter for nucleus sampling
     */
    private Float topP;
    /**
     * 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;
    /**
     * The Google GenAI client for Vertex AI. The option is a
     * com.google.genai.Client type.
     */
    private Client client;
    /**
     * The Google Cloud AI Platform Prediction Service client for rawPredict
     * operations. The option is a
     * com.google.cloud.aiplatform.v1.PredictionServiceClient type.
     */
    private PredictionServiceClient predictionServiceClient;
    /**
     * Used for enabling or disabling all consumer based health checks from this
     * component
     */
    private Boolean healthCheckConsumerEnabled = true;
    /**
     * 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 producer checks globally by setting
     * camel.health.producersEnabled=true.
     */
    private Boolean healthCheckProducerEnabled = true;

    public String getServiceAccountKey() {
        return serviceAccountKey;
    }

    public void setServiceAccountKey(String serviceAccountKey) {
        this.serviceAccountKey = serviceAccountKey;
    }

    public String getAnthropicVersion() {
        return anthropicVersion;
    }

    public void setAnthropicVersion(String anthropicVersion) {
        this.anthropicVersion = anthropicVersion;
    }

    public Integer getCandidateCount() {
        return candidateCount;
    }

    public void setCandidateCount(Integer candidateCount) {
        this.candidateCount = candidateCount;
    }

    public GoogleVertexAIConfiguration getConfiguration() {
        return configuration;
    }

    public void setConfiguration(GoogleVertexAIConfiguration configuration) {
        this.configuration = configuration;
    }

    public Boolean getJsonMode() {
        return jsonMode;
    }

    public void setJsonMode(Boolean jsonMode) {
        this.jsonMode = jsonMode;
    }

    public Boolean getLazyStartProducer() {
        return lazyStartProducer;
    }

    public void setLazyStartProducer(Boolean lazyStartProducer) {
        this.lazyStartProducer = lazyStartProducer;
    }

    public Integer getMaxOutputTokens() {
        return maxOutputTokens;
    }

    public void setMaxOutputTokens(Integer maxOutputTokens) {
        this.maxOutputTokens = maxOutputTokens;
    }

    public GoogleVertexAIOperations getOperation() {
        return operation;
    }

    public void setOperation(GoogleVertexAIOperations operation) {
        this.operation = operation;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getStreamOutputMode() {
        return streamOutputMode;
    }

    public void setStreamOutputMode(String streamOutputMode) {
        this.streamOutputMode = streamOutputMode;
    }

    public Float getTemperature() {
        return temperature;
    }

    public void setTemperature(Float temperature) {
        this.temperature = temperature;
    }

    public Integer getTopK() {
        return topK;
    }

    public void setTopK(Integer topK) {
        this.topK = topK;
    }

    public Float getTopP() {
        return topP;
    }

    public void setTopP(Float topP) {
        this.topP = topP;
    }

    public Boolean getAutowiredEnabled() {
        return autowiredEnabled;
    }

    public void setAutowiredEnabled(Boolean autowiredEnabled) {
        this.autowiredEnabled = autowiredEnabled;
    }

    public Client getClient() {
        return client;
    }

    public void setClient(Client client) {
        this.client = client;
    }

    public PredictionServiceClient getPredictionServiceClient() {
        return predictionServiceClient;
    }

    public void setPredictionServiceClient(
            PredictionServiceClient predictionServiceClient) {
        this.predictionServiceClient = predictionServiceClient;
    }

    public Boolean getHealthCheckConsumerEnabled() {
        return healthCheckConsumerEnabled;
    }

    public void setHealthCheckConsumerEnabled(Boolean healthCheckConsumerEnabled) {
        this.healthCheckConsumerEnabled = healthCheckConsumerEnabled;
    }

    public Boolean getHealthCheckProducerEnabled() {
        return healthCheckProducerEnabled;
    }

    public void setHealthCheckProducerEnabled(Boolean healthCheckProducerEnabled) {
        this.healthCheckProducerEnabled = healthCheckProducerEnabled;
    }
}