Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -943,3 +943,15 @@ message PinControlMetadata {
// keyed by pin position.
map<int64, ProductPins> dropped_pins = 2;
}

// A list of string values.
message StringList {
// String values.
repeated string values = 1;
}

// A message with a list of double values.
message DoubleList {
// The list of double values.
repeated double values = 1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ message SearchRequest {
// [Condition.DISABLED][google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
Condition condition = 1;

// Whether to pin unexpanded results. If this field is set to true,
// Whether to pin unexpanded results. The default value is false. If this
// field is set to true,
// unexpanded products are always at the top of the search results, followed
// by the expanded results.
bool pin_unexpanded_results = 2;
Expand Down Expand Up @@ -882,6 +883,29 @@ message SearchRequest {
// [LocalInventory.place_id][google.cloud.retail.v2beta.LocalInventory.place_id]
// for revenue optimization.
string place_id = 46 [(google.api.field_behavior) = OPTIONAL];

// Optional. The user attributes that could be used for personalization of
// search results.
// * Populate at most 100 key-value pairs per query.
// * Only supports string keys and repeated string values.
// * Duplicate keys are not allowed within a single query.
//
// Example:
// user_attributes: [
// { key: "pets"
// value {
// values: "dog"
// values: "cat"
// }
// },
// { key: "state"
// value {
// values: "CA"
// }
// }
// ]
map<string, StringList> user_attributes = 47
[(google.api.field_behavior) = OPTIONAL];
}

// Response message for
Expand Down Expand Up @@ -976,6 +1000,9 @@ message SearchResponse {
//
// * `purchased`: Indicates that this product has been purchased before.
repeated string personal_labels = 7;

// Google provided available scores.
map<string, DoubleList> model_scores = 8;
}

// A facet result.
Expand Down
206 changes: 206 additions & 0 deletions packages/google-cloud-retail/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading