Skip to content

Commit 51fd0bf

Browse files
Google APIscopybara-github
authored andcommitted
feat: allow recommendation users to set user labels in the request
feat: add more long running operation path bindings PiperOrigin-RevId: 483996440
1 parent 3d59239 commit 51fd0bf

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

google/cloud/discoveryengine/v1beta/discoveryengine_v1beta.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ http:
3838
- selector: google.longrunning.Operations.GetOperation
3939
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}'
4040
additional_bindings:
41+
- get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}'
4142
- get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}'
4243
- get: '/v1beta/{name=projects/*/locations/*/operations/*}'
4344
- get: '/v1beta/{name=projects/*/operations/*}'
4445
- selector: google.longrunning.Operations.ListOperations
45-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*}/operations'
46+
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations'
4647
additional_bindings:
48+
- get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations'
49+
- get: '/v1beta/{name=projects/*/locations/*/dataStores/*}/operations'
4750
- get: '/v1beta/{name=projects/*/locations/*}/operations'
4851
- get: '/v1beta/{name=projects/*}/operations'
4952

google/cloud/discoveryengine/v1beta/recommendation_service.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,25 @@ message RecommendRequest {
137137
// This gives request-level control and adjusts recommendation results
138138
// based on Document category.
139139
map<string, google.protobuf.Value> params = 6;
140+
141+
// The user labels applied to a resource must meet the following requirements:
142+
//
143+
// * Each resource can have multiple labels, up to a maximum of 64.
144+
// * Each label must be a key-value pair.
145+
// * Keys have a minimum length of 1 character and a maximum length of 63
146+
// characters and cannot be empty. Values can be empty and have a maximum
147+
// length of 63 characters.
148+
// * Keys and values can contain only lowercase letters, numeric characters,
149+
// underscores, and dashes. All characters must use UTF-8 encoding, and
150+
// international characters are allowed.
151+
// * The key portion of a label must be unique. However, you can use the same
152+
// key with multiple resources.
153+
// * Keys must start with a lowercase letter or international character.
154+
//
155+
// See [Google Cloud
156+
// Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
157+
// for more details.
158+
map<string, string> user_labels = 8;
140159
}
141160

142161
// Response message for Recommend method.

0 commit comments

Comments
 (0)