/*
 * Copyright 2023 Google LLC
 *
 * 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
 *
 *     https://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.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/discoveryengine/v1/completion_service.proto

package com.google.cloud.discoveryengine.v1;

public interface CompleteQueryResponseOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CompleteQueryResponse)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Results of the matched query suggestions. The result list is ordered and
   * the first result is a top suggestion.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;
   * </code>
   */
  java.util.List<com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion>
      getQuerySuggestionsList();
  /**
   *
   *
   * <pre>
   * Results of the matched query suggestions. The result list is ordered and
   * the first result is a top suggestion.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;
   * </code>
   */
  com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion getQuerySuggestions(
      int index);
  /**
   *
   *
   * <pre>
   * Results of the matched query suggestions. The result list is ordered and
   * the first result is a top suggestion.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;
   * </code>
   */
  int getQuerySuggestionsCount();
  /**
   *
   *
   * <pre>
   * Results of the matched query suggestions. The result list is ordered and
   * the first result is a top suggestion.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;
   * </code>
   */
  java.util.List<
          ? extends
              com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder>
      getQuerySuggestionsOrBuilderList();
  /**
   *
   *
   * <pre>
   * Results of the matched query suggestions. The result list is ordered and
   * the first result is a top suggestion.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;
   * </code>
   */
  com.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestionOrBuilder
      getQuerySuggestionsOrBuilder(int index);

  /**
   *
   *
   * <pre>
   * True if the returned suggestions are all tail suggestions.
   *
   * For tail matching to be triggered, include_tail_suggestions in the request
   * must be true and there must be no suggestions that match the full query.
   * </pre>
   *
   * <code>bool tail_match_triggered = 2;</code>
   *
   * @return The tailMatchTriggered.
   */
  boolean getTailMatchTriggered();
}
