// Copyright 2026 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
//
//     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.

syntax = "proto3";

package google.cloud.ces.v1beta;

option go_package = "cloud.google.com/go/ces/apiv1beta/cespb;cespb";
option java_multiple_files = true;
option java_outer_classname = "SearchSuggestionsProto";
option java_package = "com.google.cloud.ces.v1beta";

// Search suggestions from [Google Search
// Tool][google.cloud.ces.v1beta.GoogleSearchTool].
message GoogleSearchSuggestions {
  // Compliant HTML and CSS styling for search suggestions.
  // The provided HTML and CSS automatically adapts to your device settings,
  // displaying in either light or dark mode indicated by
  // `@media(prefers-color-scheme)`.
  repeated string htmls = 1;

  // List of queries used to perform the google search along with the search
  // result URIs forming the search suggestions.
  repeated WebSearchQuery web_search_queries = 2;
}

// Represents a single web search query and its associated search uri.
message WebSearchQuery {
  // The search query text.
  string query = 1;

  // The URI to the Google Search results page for the query.
  string uri = 2;
}
