Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96f8c6f

Browse files
Google APIscopybara-github
authored andcommitted
feat: add experiment_id in the SearchRequest proto
PiperOrigin-RevId: 785888459
1 parent 31c2593 commit 96f8c6f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

google/cloud/retail/v2alpha/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ load(
413413

414414
csharp_proto_library(
415415
name = "retail_csharp_proto",
416+
extra_opts = [],
416417
deps = [":retail_proto"],
417418
)
418419

google/cloud/retail/v2alpha/search_service.proto

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,9 @@ message SearchRequest {
431431
// [Condition.DISABLED][google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
432432
Condition condition = 1;
433433

434-
// Whether to pin unexpanded results. If this field is set to true,
435-
// unexpanded products are always at the top of the search results, followed
436-
// by the expanded results.
434+
// Whether to pin unexpanded results. The default value is false. If this
435+
// field is set to true, unexpanded products are always at the top of the
436+
// search results, followed by the expanded results.
437437
bool pin_unexpanded_results = 2;
438438
}
439439

@@ -832,6 +832,9 @@ message SearchRequest {
832832
// INVALID_ARGUMENT error is returned.
833833
repeated string variant_rollup_keys = 17;
834834

835+
// Optional. An ID for the experiment group this search belongs to.
836+
string experiment_id = 18 [(google.api.field_behavior) = OPTIONAL];
837+
835838
// The categories associated with a category page. Must be set for category
836839
// navigation queries to achieve good search quality. The format should be
837840
// the same as
@@ -927,7 +930,7 @@ message SearchRequest {
927930
// search results.
928931
// * Populate at most 100 key-value pairs per query.
929932
// * Only supports string keys and repeated string values.
930-
// * Duplcate keys are not allowed within a single query.
933+
// * Duplicate keys are not allowed within a single query.
931934
//
932935
// Example:
933936
// user_attributes: [

0 commit comments

Comments
 (0)