-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add data store, engine and site search engine services
feat: support search summarization with citations and references feat: add suggestion deny list import/purge APIs feat: add engine support for multi-turn search and search APIs docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 605218577
- Loading branch information
Google APIs
authored and
Copybara-Service
committed
Feb 8, 2024
1 parent
679060c
commit 565c340
Showing
18 changed files
with
2,215 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright 2022 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.discoveryengine.v1; | ||
|
||
import "google/api/field_behavior.proto"; | ||
|
||
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; | ||
option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "CompletionProto"; | ||
option java_package = "com.google.cloud.discoveryengine.v1"; | ||
option objc_class_prefix = "DISCOVERYENGINE"; | ||
option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; | ||
option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; | ||
|
||
// Suggestion deny list entry identifying the phrase to block from suggestions | ||
// and the applied operation for the phrase. | ||
message SuggestionDenyListEntry { | ||
// Operator for matching with the generated suggestions. | ||
enum MatchOperator { | ||
// Default value. Should not be used | ||
MATCH_OPERATOR_UNSPECIFIED = 0; | ||
|
||
// If the suggestion is an exact match to the block_phrase, then block it. | ||
EXACT_MATCH = 1; | ||
|
||
// If the suggestion contains the block_phrase, then block it. | ||
CONTAINS = 2; | ||
} | ||
|
||
// Required. Phrase to block from suggestions served. Can be maximum 125 | ||
// characters. | ||
string block_phrase = 1 [(google.api.field_behavior) = REQUIRED]; | ||
|
||
// Required. The match operator to apply for this phrase. Whether to block the | ||
// exact phrase, or block any suggestions containing this phrase. | ||
MatchOperator match_operator = 2 [(google.api.field_behavior) = REQUIRED]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.