Skip to content

Commit 6412954

Browse files
chore: remove unused proto imports (#199)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 468735472 Source-Link: googleapis/googleapis@cfa1b37 Source-Link: googleapis/googleapis-gen@09b7666 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDliNzY2NjY1NjUxMGY1YjAwYjg5M2YwMDNhMGJhNTc2NmY5ZTI1MCJ9 feat: new model service to manage recommendation models feat: support case insensitive match on search facets feat: allow disabling spell check in search requests feat: allow adding labels in search requests feat: allow returning min/max values on search numeric facets feat: allow using serving configs as an alias of placements feat: allow enabling recommendation filtering on custom attributes feat: return output BigQuery table on product / event export response feat: allow skiping default branch protection when doing product full import docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 464664497 Source-Link: googleapis/googleapis@c30c9cc Source-Link: googleapis/googleapis-gen@a7fe8d6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTdmZThkNjcyYjhjYmJhZGM1YWIzMjI1M2RlYTUwZTRjM2Q4ZTM5MCJ9 feat: support case insensitive match on search facets feat: allow to return min/max values on search numeric facets feat: allow to use serving configs as an alias of placements docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 464560246 Source-Link: googleapis/googleapis@139f56e Source-Link: googleapis/googleapis-gen@eca9b7e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWNhOWI3ZWNiZGMyYzY0YzJkMGVjMmU2Njg4ZjYzNTNhZmYxNjJlZiJ9 feat: support case insensitive match on search facets feat: allow disabling spell check in search requests feat: allow adding labels in search requests feat: allow returning min/max values on search numeric facets feat: allow using serving configs as an alias of placements feat: allow enabling recommendation filtering on custom attributes feat: return output BigQuery table on product / event export response docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 463980128 Source-Link: googleapis/googleapis@d6bce0e Source-Link: googleapis/googleapis-gen@e3d1296 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTNkMTI5NmE5NTkyYjlmZTcxNGE3Y2JlOGQyYWNjNGJmNDJmNGVjMiJ9
1 parent 11cddb4 commit 6412954

File tree

152 files changed

+36866
-1354
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+36866
-1354
lines changed

packages/google-cloud-retail/protos/google/cloud/retail/v2/common.proto

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,8 @@ message Interval {
219219
// The lower bound of the interval. If neither of the min fields are set, then
220220
// the lower bound is negative infinity.
221221
//
222-
// This field must be not larger than
223-
// [max][google.cloud.retail.v2.Interval.max]. Otherwise, an INVALID_ARGUMENT
224-
// error is returned.
222+
// This field must not be larger than max.
223+
// Otherwise, an INVALID_ARGUMENT error is returned.
225224
oneof min {
226225
// Inclusive lower bound.
227226
double minimum = 1;
@@ -233,9 +232,8 @@ message Interval {
233232
// The upper bound of the interval. If neither of the max fields are set, then
234233
// the upper bound is positive infinity.
235234
//
236-
// This field must be not smaller than
237-
// [min][google.cloud.retail.v2.Interval.min]. Otherwise, an INVALID_ARGUMENT
238-
// error is returned.
235+
// This field must be not smaller than min.
236+
// Otherwise, an INVALID_ARGUMENT error is returned.
239237
oneof max {
240238
// Inclusive upper bound.
241239
double maximum = 3;

packages/google-cloud-retail/protos/google/cloud/retail/v2/completion_service.proto

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ message CompleteQueryRequest {
9999
// characters. Otherwise, an INVALID_ARGUMENT error is returned.
100100
string visitor_id = 7;
101101

102+
// Note that this field applies for `user-data` dataset only. For requests
103+
// with `cloud-retail` dataset, setting this field has no effect.
104+
//
102105
// The language filters applied to the output suggestions. If set, it should
103106
// contain the language of the query. If not set, suggestions are returned
104107
// without considering language restrictions. This is the BCP-47 language
@@ -159,8 +162,9 @@ message CompleteQueryResponse {
159162
// ingested through BigQuery.
160163
//
161164
// * For "cloud-retail", the attributes are product attributes generated
162-
// by Cloud Retail. This is an experimental feature. Contact Retail Search
163-
// support team if you are interested in enabling it.
165+
// by Cloud Retail. It requires
166+
// [UserEvent.product_details][google.cloud.retail.v2.UserEvent.product_details]
167+
// is imported properly.
164168
map<string, CustomAttribute> attributes = 2;
165169
}
166170

@@ -195,7 +199,7 @@ message CompleteQueryResponse {
195199
// [CompleteQueryRequest.query][google.cloud.retail.v2.CompleteQueryRequest.query]
196200
// case insensitively.
197201
//
198-
// * They are transformed to lower cases.
202+
// * They are transformed to lower case.
199203
//
200204
// * They are UTF-8 safe.
201205
//

packages/google-cloud-retail/protos/google/cloud/retail/v2/prediction_service.proto

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,30 @@ service PredictionService {
4242
option (google.api.http) = {
4343
post: "/v2/{placement=projects/*/locations/*/catalogs/*/placements/*}:predict"
4444
body: "*"
45+
additional_bindings {
46+
post: "/v2/{placement=projects/*/locations/*/catalogs/*/servingConfigs/*}:predict"
47+
body: "*"
48+
}
4549
};
4650
}
4751
}
4852

4953
// Request message for Predict method.
5054
message PredictRequest {
5155
// Required. Full resource name of the format:
52-
// {name=projects/*/locations/global/catalogs/default_catalog/placements/*}
53-
// The ID of the Recommendations AI placement. Before you can request
54-
// predictions from your model, you must create at least one placement for it.
55-
// For more information, see [Managing
56-
// placements](https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
56+
// `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}`
57+
// or
58+
// `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`.
59+
// We recommend using the `servingConfigs` resource. `placements` is a legacy
60+
// resource.
61+
// The ID of the Recommendations AI serving config or placement.
62+
// Before you can request predictions from your model, you must create at
63+
// least one serving config or placement for it. For more information, see
64+
// [Managing serving configurations]
65+
// (https://cloud.google.com/retail/docs/manage-configs).
5766
//
58-
// The full list of available placements can be seen at
59-
// https://console.cloud.google.com/recommendation/catalogs/default_catalog/placements
67+
// The full list of available serving configs can be seen at
68+
// https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs
6069
string placement = 1 [(google.api.field_behavior) = REQUIRED];
6170

6271
// Required. Context about the user, what they are looking at and what action
@@ -75,14 +84,14 @@ message PredictRequest {
7584
// [UserInfo.user_id][google.cloud.retail.v2.UserInfo.user_id] unset.
7685
UserEvent user_event = 2 [(google.api.field_behavior) = REQUIRED];
7786

78-
// Maximum number of results to return per page. Set this property
79-
// to the number of prediction results needed. If zero, the service will
80-
// choose a reasonable default. The maximum allowed value is 100. Values
81-
// above 100 will be coerced to 100.
87+
// Maximum number of results to return. Set this property to the number of
88+
// prediction results needed. If zero, the service will choose a reasonable
89+
// default. The maximum allowed value is 100. Values above 100 will be coerced
90+
// to 100.
8291
int32 page_size = 3;
8392

84-
// The previous PredictResponse.next_page_token.
85-
string page_token = 4;
93+
// This field is not used; leave it unset.
94+
string page_token = 4 [deprecated = true];
8695

8796
// Filter for restricting prediction results with a length limit of 5,000
8897
// characters. Accepts values for tags and the `filterOutOfStockItems` flag.
@@ -113,6 +122,14 @@ message PredictRequest {
113122
// receive empty results instead.
114123
// Note that the API will never return items with storageStatus of "EXPIRED"
115124
// or "DELETED" regardless of filter choices.
125+
//
126+
// If `filterSyntaxV2` is set to true under the `params` field, then
127+
// attribute-based expressions are expected instead of the above described
128+
// tag-based syntax. Examples:
129+
//
130+
// * (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones"))
131+
// * (availability: ANY("IN_STOCK")) AND
132+
// (colors: ANY("Red") OR categories: ANY("Phones"))
116133
string filter = 5;
117134

118135
// Use validate only mode for this prediction query. If set to true, a
@@ -146,6 +163,8 @@ message PredictRequest {
146163
// 'medium-diversity', 'high-diversity', 'auto-diversity'}. This gives
147164
// request-level control and adjusts prediction results based on product
148165
// category.
166+
// * `filterSyntaxV2`: Boolean. False by default. If set to true, the `filter`
167+
// field is interpreteted according to the new, attribute-based syntax.
149168
map<string, google.protobuf.Value> params = 7;
150169

151170
// The labels applied to a resource must meet the following requirements:

0 commit comments

Comments
 (0)