/*
 * Licensed 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.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.discoveryengine.v1alpha.model;

/**
 * Request message for WidgetService.WidgetCompleteQuery method.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest extends com.google.api.client.json.GenericJson {

  /**
   * Additional params for security and privacy enhancement.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudDiscoveryengineV1alphaAdditionalParams additionalParams;

  /**
   * Required. The CompleteQuery request to perform auto-complete suggestion query.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest completeQueryRequest;

  /**
   * Required. The UUID of the WidgetConfig. This field is used to identify the widget
   * configuration, set of models used to make the auto complete query.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String configId;

  /**
   * Additional params for security and privacy enhancement.
   * @return value or {@code null} for none
   */
  public GoogleCloudDiscoveryengineV1alphaAdditionalParams getAdditionalParams() {
    return additionalParams;
  }

  /**
   * Additional params for security and privacy enhancement.
   * @param additionalParams additionalParams or {@code null} for none
   */
  public GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest setAdditionalParams(GoogleCloudDiscoveryengineV1alphaAdditionalParams additionalParams) {
    this.additionalParams = additionalParams;
    return this;
  }

  /**
   * Required. The CompleteQuery request to perform auto-complete suggestion query.
   * @return value or {@code null} for none
   */
  public GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest getCompleteQueryRequest() {
    return completeQueryRequest;
  }

  /**
   * Required. The CompleteQuery request to perform auto-complete suggestion query.
   * @param completeQueryRequest completeQueryRequest or {@code null} for none
   */
  public GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest setCompleteQueryRequest(GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest completeQueryRequest) {
    this.completeQueryRequest = completeQueryRequest;
    return this;
  }

  /**
   * Required. The UUID of the WidgetConfig. This field is used to identify the widget
   * configuration, set of models used to make the auto complete query.
   * @return value or {@code null} for none
   */
  public java.lang.String getConfigId() {
    return configId;
  }

  /**
   * Required. The UUID of the WidgetConfig. This field is used to identify the widget
   * configuration, set of models used to make the auto complete query.
   * @param configId configId or {@code null} for none
   */
  public GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest setConfigId(java.lang.String configId) {
    this.configId = configId;
    return this;
  }

  @Override
  public GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest set(String fieldName, Object value) {
    return (GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest clone() {
    return (GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest) super.clone();
  }

}
