Debian Codegraph @

retail/apiv2beta/retailpb/control_service.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/retail/v2beta/control_service.proto
20
21 package retailpb
22
23 import (
24 context "context"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 emptypb "google.golang.org/protobuf/types/known/emptypb"
32 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
33 reflect "reflect"
34 sync "sync"
35 )
36
37 const (
38 // Verify that this generated code is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40 // Verify that runtime/protoimpl is sufficiently up-to-date.
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44 // Request for CreateControl method.
45 type CreateControlRequest struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50 // Required. Full resource name of parent catalog. Format:
51 // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
52 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
53 // Required. The Control to create.
54 Control *Control `protobuf:"bytes,2,opt,name=control,proto3" json:"control,omitempty"`
55 // Required. The ID to use for the Control, which will become the final
56 // component of the Control's resource name.
57 //
58 // This value should be 4-63 characters, and valid characters
59 // are /[a-z][0-9]-_/.
60 ControlId string `protobuf:"bytes,3,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"`
61 }
62
63 func (x *CreateControlRequest) Reset() {
64 *x = CreateControlRequest{}
65 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[0]
66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 ms.StoreMessageInfo(mi)
68 }
69
70 func (x *CreateControlRequest) String() string {
71 return protoimpl.X.MessageStringOf(x)
72 }
73
74 func (*CreateControlRequest) ProtoMessage() {}
75
76 func (x *CreateControlRequest) ProtoReflect() protoreflect.Message {
77 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[0]
78 if x != nil {
79 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
80 if ms.LoadMessageInfo() == nil {
81 ms.StoreMessageInfo(mi)
82 }
83 return ms
84 }
85 return mi.MessageOf(x)
86 }
87
88 // Deprecated: Use CreateControlRequest.ProtoReflect.Descriptor instead.
89 func (*CreateControlRequest) Descriptor() ([]byte, []int) {
90 return file_google_cloud_retail_v2beta_control_service_proto_rawDescGZIP(), []int{0}
91 }
92
93 func (x *CreateControlRequest) GetParent() string {
94 if x != nil {
95 return x.Parent
96 }
97 return ""
98 }
99
100 func (x *CreateControlRequest) GetControl() *Control {
101 if x != nil {
102 return x.Control
103 }
104 return nil
105 }
106
107 func (x *CreateControlRequest) GetControlId() string {
108 if x != nil {
109 return x.ControlId
110 }
111 return ""
112 }
113
114 // Request for UpdateControl method.
115 type UpdateControlRequest struct {
116 state protoimpl.MessageState
117 sizeCache protoimpl.SizeCache
118 unknownFields protoimpl.UnknownFields
119
120 // Required. The Control to update.
121 Control *Control `protobuf:"bytes,1,opt,name=control,proto3" json:"control,omitempty"`
122 // Indicates which fields in the provided
123 // [Control][google.cloud.retail.v2beta.Control] to update. The following are
124 // NOT supported:
125 //
126 // * [Control.name][google.cloud.retail.v2beta.Control.name]
127 //
128 // If not set or empty, all supported fields are updated.
129 UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
130 }
131
132 func (x *UpdateControlRequest) Reset() {
133 *x = UpdateControlRequest{}
134 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[1]
135 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
136 ms.StoreMessageInfo(mi)
137 }
138
139 func (x *UpdateControlRequest) String() string {
140 return protoimpl.X.MessageStringOf(x)
141 }
142
143 func (*UpdateControlRequest) ProtoMessage() {}
144
145 func (x *UpdateControlRequest) ProtoReflect() protoreflect.Message {
146 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[1]
147 if x != nil {
148 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
149 if ms.LoadMessageInfo() == nil {
150 ms.StoreMessageInfo(mi)
151 }
152 return ms
153 }
154 return mi.MessageOf(x)
155 }
156
157 // Deprecated: Use UpdateControlRequest.ProtoReflect.Descriptor instead.
158 func (*UpdateControlRequest) Descriptor() ([]byte, []int) {
159 return file_google_cloud_retail_v2beta_control_service_proto_rawDescGZIP(), []int{1}
160 }
161
162 func (x *UpdateControlRequest) GetControl() *Control {
163 if x != nil {
164 return x.Control
165 }
166 return nil
167 }
168
169 func (x *UpdateControlRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
170 if x != nil {
171 return x.UpdateMask
172 }
173 return nil
174 }
175
176 // Request for DeleteControl method.
177 type DeleteControlRequest struct {
178 state protoimpl.MessageState
179 sizeCache protoimpl.SizeCache
180 unknownFields protoimpl.UnknownFields
181
182 // Required. The resource name of the Control to delete. Format:
183 // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
184 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
185 }
186
187 func (x *DeleteControlRequest) Reset() {
188 *x = DeleteControlRequest{}
189 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[2]
190 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
191 ms.StoreMessageInfo(mi)
192 }
193
194 func (x *DeleteControlRequest) String() string {
195 return protoimpl.X.MessageStringOf(x)
196 }
197
198 func (*DeleteControlRequest) ProtoMessage() {}
199
200 func (x *DeleteControlRequest) ProtoReflect() protoreflect.Message {
201 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[2]
202 if x != nil {
203 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
204 if ms.LoadMessageInfo() == nil {
205 ms.StoreMessageInfo(mi)
206 }
207 return ms
208 }
209 return mi.MessageOf(x)
210 }
211
212 // Deprecated: Use DeleteControlRequest.ProtoReflect.Descriptor instead.
213 func (*DeleteControlRequest) Descriptor() ([]byte, []int) {
214 return file_google_cloud_retail_v2beta_control_service_proto_rawDescGZIP(), []int{2}
215 }
216
217 func (x *DeleteControlRequest) GetName() string {
218 if x != nil {
219 return x.Name
220 }
221 return ""
222 }
223
224 // Request for GetControl method.
225 type GetControlRequest struct {
226 state protoimpl.MessageState
227 sizeCache protoimpl.SizeCache
228 unknownFields protoimpl.UnknownFields
229
230 // Required. The resource name of the Control to get. Format:
231 // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
232 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
233 }
234
235 func (x *GetControlRequest) Reset() {
236 *x = GetControlRequest{}
237 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[3]
238 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
239 ms.StoreMessageInfo(mi)
240 }
241
242 func (x *GetControlRequest) String() string {
243 return protoimpl.X.MessageStringOf(x)
244 }
245
246 func (*GetControlRequest) ProtoMessage() {}
247
248 func (x *GetControlRequest) ProtoReflect() protoreflect.Message {
249 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[3]
250 if x != nil {
251 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
252 if ms.LoadMessageInfo() == nil {
253 ms.StoreMessageInfo(mi)
254 }
255 return ms
256 }
257 return mi.MessageOf(x)
258 }
259
260 // Deprecated: Use GetControlRequest.ProtoReflect.Descriptor instead.
261 func (*GetControlRequest) Descriptor() ([]byte, []int) {
262 return file_google_cloud_retail_v2beta_control_service_proto_rawDescGZIP(), []int{3}
263 }
264
265 func (x *GetControlRequest) GetName() string {
266 if x != nil {
267 return x.Name
268 }
269 return ""
270 }
271
272 // Request for ListControls method.
273 type ListControlsRequest struct {
274 state protoimpl.MessageState
275 sizeCache protoimpl.SizeCache
276 unknownFields protoimpl.UnknownFields
277
278 // Required. The catalog resource name. Format:
279 // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
280 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
281 // Optional. Maximum number of results to return. If unspecified, defaults
282 // to 50. Max allowed value is 1000.
283 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
284 // Optional. A page token, received from a previous `ListControls` call.
285 // Provide this to retrieve the subsequent page.
286 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
287 // Optional. A filter to apply on the list results. Supported features:
288 //
289 // * List all the products under the parent branch if
290 // [filter][google.cloud.retail.v2beta.ListControlsRequest.filter] is unset.
291 // - List controls that are used in a single ServingConfig:
292 // 'serving_config = "boosted_home_page_cvr"'
293 Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
294 }
295
296 func (x *ListControlsRequest) Reset() {
297 *x = ListControlsRequest{}
298 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[4]
299 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
300 ms.StoreMessageInfo(mi)
301 }
302
303 func (x *ListControlsRequest) String() string {
304 return protoimpl.X.MessageStringOf(x)
305 }
306
307 func (*ListControlsRequest) ProtoMessage() {}
308
309 func (x *ListControlsRequest) ProtoReflect() protoreflect.Message {
310 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[4]
311 if x != nil {
312 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
313 if ms.LoadMessageInfo() == nil {
314 ms.StoreMessageInfo(mi)
315 }
316 return ms
317 }
318 return mi.MessageOf(x)
319 }
320
321 // Deprecated: Use ListControlsRequest.ProtoReflect.Descriptor instead.
322 func (*ListControlsRequest) Descriptor() ([]byte, []int) {
323 return file_google_cloud_retail_v2beta_control_service_proto_rawDescGZIP(), []int{4}
324 }
325
326 func (x *ListControlsRequest) GetParent() string {
327 if x != nil {
328 return x.Parent
329 }
330 return ""
331 }
332
333 func (x *ListControlsRequest) GetPageSize() int32 {
334 if x != nil {
335 return x.PageSize
336 }
337 return 0
338 }
339
340 func (x *ListControlsRequest) GetPageToken() string {
341 if x != nil {
342 return x.PageToken
343 }
344 return ""
345 }
346
347 func (x *ListControlsRequest) GetFilter() string {
348 if x != nil {
349 return x.Filter
350 }
351 return ""
352 }
353
354 // Response for ListControls method.
355 type ListControlsResponse struct {
356 state protoimpl.MessageState
357 sizeCache protoimpl.SizeCache
358 unknownFields protoimpl.UnknownFields
359
360 // All the Controls for a given catalog.
361 Controls []*Control `protobuf:"bytes,1,rep,name=controls,proto3" json:"controls,omitempty"`
362 // Pagination token, if not returned indicates the last page.
363 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
364 }
365
366 func (x *ListControlsResponse) Reset() {
367 *x = ListControlsResponse{}
368 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[5]
369 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
370 ms.StoreMessageInfo(mi)
371 }
372
373 func (x *ListControlsResponse) String() string {
374 return protoimpl.X.MessageStringOf(x)
375 }
376
377 func (*ListControlsResponse) ProtoMessage() {}
378
379 func (x *ListControlsResponse) ProtoReflect() protoreflect.Message {
380 mi := &file_google_cloud_retail_v2beta_control_service_proto_msgTypes[5]
381 if x != nil {
382 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
383 if ms.LoadMessageInfo() == nil {
384 ms.StoreMessageInfo(mi)
385 }
386 return ms
387 }
388 return mi.MessageOf(x)
389 }
390
391 // Deprecated: Use ListControlsResponse.ProtoReflect.Descriptor instead.
392 func (*ListControlsResponse) Descriptor() ([]byte, []int) {
393 return file_google_cloud_retail_v2beta_control_service_proto_rawDescGZIP(), []int{5}
394 }
395
396 func (x *ListControlsResponse) GetControls() []*Control {
397 if x != nil {
398 return x.Controls
399 }
400 return nil
401 }
402
403 func (x *ListControlsResponse) GetNextPageToken() string {
404 if x != nil {
405 return x.NextPageToken
406 }
407 return ""
408 }
409
410 var File_google_cloud_retail_v2beta_control_service_proto protoreflect.FileDescriptor
411
412 var file_google_cloud_retail_v2beta_control_service_proto_rawDesc = []byte{
413 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
414 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6e,
415 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
416 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
417 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1c,
418 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
419 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f,
420 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e,
421 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
422 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72,
423 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
424 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
425 0x6f, 0x1a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
426 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f,
427 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f,
428 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70,
429 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
430 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,
431 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd, 0x01, 0x0a, 0x14, 0x43,
432 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75,
433 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,
434 0x01, 0x28, 0x09, 0x42, 0x25, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1f, 0x0a, 0x1d, 0x72, 0x65, 0x74,
435 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
436 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,
437 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x02, 0x20,
438 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
439 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
440 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x63,
441 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x22, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
442 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
443 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x49, 0x64, 0x22, 0x97, 0x01, 0x0a, 0x14, 0x55,
444 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75,
445 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x18, 0x01,
446 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
447 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
448 0x61, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07,
449 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74,
450 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
451 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46,
452 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
453 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x51, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f,
454 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x04,
455 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x25, 0xe0, 0x41, 0x02, 0xfa,
456 0x41, 0x1f, 0x0a, 0x1d, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
457 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
458 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4e, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6f,
459 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x04,
460 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x25, 0xe0, 0x41, 0x02, 0xfa,
461 0x41, 0x1f, 0x0a, 0x1d, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
462 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
463 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb7, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74,
464 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
465 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
466 0x25, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1f, 0x0a, 0x1d, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,
467 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43,
468 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20,
469 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
470 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
471 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03,
472 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54,
473 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04,
474 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,
475 0x72, 0x22, 0x7f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
476 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x63, 0x6f, 0x6e,
477 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f,
478 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69,
479 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
480 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65,
481 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,
482 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,
483 0x65, 0x6e, 0x32, 0x9c, 0x08, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x53, 0x65,
484 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xd0, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
485 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
486 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32,
487 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72,
488 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
489 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,
490 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0x68,
491 0xda, 0x41, 0x19, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
492 0x6c, 0x2c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x69, 0x64, 0x82, 0xd3, 0xe4, 0x93,
493 0x02, 0x46, 0x3a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0x3b, 0x2f, 0x76, 0x32,
494 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,
495 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
496 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
497 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x12, 0xa5, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c,
498 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f,
499 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c,
500 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f,
501 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67,
502 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45,
503 0x6d, 0x70, 0x74, 0x79, 0x22, 0x4a, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,
504 0x93, 0x02, 0x3d, 0x2a, 0x3b, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61,
505 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f,
506 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,
507 0x67, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x2f, 0x2a, 0x7d,
508 0x12, 0xd2, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72,
509 0x6f, 0x6c, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
510 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e,
511 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71,
512 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
513 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
514 0x61, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0x6a, 0xda, 0x41, 0x13, 0x63, 0x6f,
515 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,
516 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4e, 0x3a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
517 0x32, 0x43, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x72,
518 0x6f, 0x6c, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
519 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63,
520 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
521 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xac, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e,
522 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
523 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
524 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75,
525 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
526 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
527 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0x4a, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
528 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
529 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
530 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61,
531 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
532 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xbf, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e,
533 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
534 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65,
535 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x52,
536 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
537 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62,
538 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73,
539 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72,
540 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x76, 0x32, 0x62, 0x65,
541 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
542 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
543 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6f,
544 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x1a, 0x49, 0xca, 0x41, 0x15, 0x72, 0x65, 0x74, 0x61, 0x69,
545 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
546 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67,
547 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75,
548 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
549 0x6d, 0x42, 0xd2, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
550 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32,
551 0x62, 0x65, 0x74, 0x61, 0x42, 0x13, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x53, 0x65, 0x72,
552 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f,
553 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
554 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74,
555 0x61, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69,
556 0x6c, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x1a, 0x47,
557 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61,
558 0x69, 0x6c, 0x2e, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67,
559 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c,
560 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a,
561 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a,
562 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
563 }
564
565 var (
566 file_google_cloud_retail_v2beta_control_service_proto_rawDescOnce sync.Once
567 file_google_cloud_retail_v2beta_control_service_proto_rawDescData = file_google_cloud_retail_v2beta_control_service_proto_rawDesc
568 )
569
570 func file_google_cloud_retail_v2beta_control_service_proto_rawDescGZIP() []byte {
571 file_google_cloud_retail_v2beta_control_service_proto_rawDescOnce.Do(func() {
572 file_google_cloud_retail_v2beta_control_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2beta_control_service_proto_rawDescData)
573 })
574 return file_google_cloud_retail_v2beta_control_service_proto_rawDescData
575 }
576
577 var file_google_cloud_retail_v2beta_control_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
578 var file_google_cloud_retail_v2beta_control_service_proto_goTypes = []any{
579 (*CreateControlRequest)(nil), // 0: google.cloud.retail.v2beta.CreateControlRequest
580 (*UpdateControlRequest)(nil), // 1: google.cloud.retail.v2beta.UpdateControlRequest
581 (*DeleteControlRequest)(nil), // 2: google.cloud.retail.v2beta.DeleteControlRequest
582 (*GetControlRequest)(nil), // 3: google.cloud.retail.v2beta.GetControlRequest
583 (*ListControlsRequest)(nil), // 4: google.cloud.retail.v2beta.ListControlsRequest
584 (*ListControlsResponse)(nil), // 5: google.cloud.retail.v2beta.ListControlsResponse
585 (*Control)(nil), // 6: google.cloud.retail.v2beta.Control
586 (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask
587 (*emptypb.Empty)(nil), // 8: google.protobuf.Empty
588 }
589 var file_google_cloud_retail_v2beta_control_service_proto_depIdxs = []int32{
590 6, // 0: google.cloud.retail.v2beta.CreateControlRequest.control:type_name -> google.cloud.retail.v2beta.Control
591 6, // 1: google.cloud.retail.v2beta.UpdateControlRequest.control:type_name -> google.cloud.retail.v2beta.Control
592 7, // 2: google.cloud.retail.v2beta.UpdateControlRequest.update_mask:type_name -> google.protobuf.FieldMask
593 6, // 3: google.cloud.retail.v2beta.ListControlsResponse.controls:type_name -> google.cloud.retail.v2beta.Control
594 0, // 4: google.cloud.retail.v2beta.ControlService.CreateControl:input_type -> google.cloud.retail.v2beta.CreateControlRequest
595 2, // 5: google.cloud.retail.v2beta.ControlService.DeleteControl:input_type -> google.cloud.retail.v2beta.DeleteControlRequest
596 1, // 6: google.cloud.retail.v2beta.ControlService.UpdateControl:input_type -> google.cloud.retail.v2beta.UpdateControlRequest
597 3, // 7: google.cloud.retail.v2beta.ControlService.GetControl:input_type -> google.cloud.retail.v2beta.GetControlRequest
598 4, // 8: google.cloud.retail.v2beta.ControlService.ListControls:input_type -> google.cloud.retail.v2beta.ListControlsRequest
599 6, // 9: google.cloud.retail.v2beta.ControlService.CreateControl:output_type -> google.cloud.retail.v2beta.Control
600 8, // 10: google.cloud.retail.v2beta.ControlService.DeleteControl:output_type -> google.protobuf.Empty
601 6, // 11: google.cloud.retail.v2beta.ControlService.UpdateControl:output_type -> google.cloud.retail.v2beta.Control
602 6, // 12: google.cloud.retail.v2beta.ControlService.GetControl:output_type -> google.cloud.retail.v2beta.Control
603 5, // 13: google.cloud.retail.v2beta.ControlService.ListControls:output_type -> google.cloud.retail.v2beta.ListControlsResponse
604 9, // [9:14] is the sub-list for method output_type
605 4, // [4:9] is the sub-list for method input_type
606 4, // [4:4] is the sub-list for extension type_name
607 4, // [4:4] is the sub-list for extension extendee
608 0, // [0:4] is the sub-list for field type_name
609 }
610
611 func init() { file_google_cloud_retail_v2beta_control_service_proto_init() }
612 func file_google_cloud_retail_v2beta_control_service_proto_init() {
613 if File_google_cloud_retail_v2beta_control_service_proto != nil {
614 return
615 }
616 file_google_cloud_retail_v2beta_control_proto_init()
617 type x struct{}
618 out := protoimpl.TypeBuilder{
619 File: protoimpl.DescBuilder{
620 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
621 RawDescriptor: file_google_cloud_retail_v2beta_control_service_proto_rawDesc,
622 NumEnums: 0,
623 NumMessages: 6,
624 NumExtensions: 0,
625 NumServices: 1,
626 },
627 GoTypes: file_google_cloud_retail_v2beta_control_service_proto_goTypes,
628 DependencyIndexes: file_google_cloud_retail_v2beta_control_service_proto_depIdxs,
629 MessageInfos: file_google_cloud_retail_v2beta_control_service_proto_msgTypes,
630 }.Build()
631 File_google_cloud_retail_v2beta_control_service_proto = out.File
632 file_google_cloud_retail_v2beta_control_service_proto_rawDesc = nil
633 file_google_cloud_retail_v2beta_control_service_proto_goTypes = nil
634 file_google_cloud_retail_v2beta_control_service_proto_depIdxs = nil
635 }
636
637 // Reference imports to suppress errors if they are not otherwise used.
638 var _ context.Context
639 var _ grpc.ClientConnInterface
640
641 // This is a compile-time assertion to ensure that this generated file
642 // is compatible with the grpc package it is being compiled against.
643 const _ = grpc.SupportPackageIsVersion6
644
645 // ControlServiceClient is the client API for ControlService service.
646 //
647 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
648 type ControlServiceClient interface {
649 // Creates a Control.
650 //
651 // If the [Control][google.cloud.retail.v2beta.Control] to create already
652 // exists, an ALREADY_EXISTS error is returned.
653 CreateControl(ctx context.Context, in *CreateControlRequest, opts ...grpc.CallOption) (*Control, error)
654 // Deletes a Control.
655 //
656 // If the [Control][google.cloud.retail.v2beta.Control] to delete does not
657 // exist, a NOT_FOUND error is returned.
658 DeleteControl(ctx context.Context, in *DeleteControlRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
659 // Updates a Control.
660 //
661 // [Control][google.cloud.retail.v2beta.Control] cannot be set to a different
662 // oneof field, if so an INVALID_ARGUMENT is returned. If the
663 // [Control][google.cloud.retail.v2beta.Control] to update does not exist, a
664 // NOT_FOUND error is returned.
665 UpdateControl(ctx context.Context, in *UpdateControlRequest, opts ...grpc.CallOption) (*Control, error)
666 // Gets a Control.
667 GetControl(ctx context.Context, in *GetControlRequest, opts ...grpc.CallOption) (*Control, error)
668 // Lists all Controls by their parent
669 // [Catalog][google.cloud.retail.v2beta.Catalog].
670 ListControls(ctx context.Context, in *ListControlsRequest, opts ...grpc.CallOption) (*ListControlsResponse, error)
671 }
672
673 type controlServiceClient struct {
674 cc grpc.ClientConnInterface
675 }
676
677 func NewControlServiceClient(cc grpc.ClientConnInterface) ControlServiceClient {
678 return &controlServiceClient{cc}
679 }
680
681 func (c *controlServiceClient) CreateControl(ctx context.Context, in *CreateControlRequest, opts ...grpc.CallOption) (*Control, error) {
682 out := new(Control)
683 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.ControlService/CreateControl", in, out, opts...)
684 if err != nil {
685 return nil, err
686 }
687 return out, nil
688 }
689
690 func (c *controlServiceClient) DeleteControl(ctx context.Context, in *DeleteControlRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
691 out := new(emptypb.Empty)
692 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.ControlService/DeleteControl", in, out, opts...)
693 if err != nil {
694 return nil, err
695 }
696 return out, nil
697 }
698
699 func (c *controlServiceClient) UpdateControl(ctx context.Context, in *UpdateControlRequest, opts ...grpc.CallOption) (*Control, error) {
700 out := new(Control)
701 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.ControlService/UpdateControl", in, out, opts...)
702 if err != nil {
703 return nil, err
704 }
705 return out, nil
706 }
707
708 func (c *controlServiceClient) GetControl(ctx context.Context, in *GetControlRequest, opts ...grpc.CallOption) (*Control, error) {
709 out := new(Control)
710 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.ControlService/GetControl", in, out, opts...)
711 if err != nil {
712 return nil, err
713 }
714 return out, nil
715 }
716
717 func (c *controlServiceClient) ListControls(ctx context.Context, in *ListControlsRequest, opts ...grpc.CallOption) (*ListControlsResponse, error) {
718 out := new(ListControlsResponse)
719 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.ControlService/ListControls", in, out, opts...)
720 if err != nil {
721 return nil, err
722 }
723 return out, nil
724 }
725
726 // ControlServiceServer is the server API for ControlService service.
727 type ControlServiceServer interface {
728 // Creates a Control.
729 //
730 // If the [Control][google.cloud.retail.v2beta.Control] to create already
731 // exists, an ALREADY_EXISTS error is returned.
732 CreateControl(context.Context, *CreateControlRequest) (*Control, error)
733 // Deletes a Control.
734 //
735 // If the [Control][google.cloud.retail.v2beta.Control] to delete does not
736 // exist, a NOT_FOUND error is returned.
737 DeleteControl(context.Context, *DeleteControlRequest) (*emptypb.Empty, error)
738 // Updates a Control.
739 //
740 // [Control][google.cloud.retail.v2beta.Control] cannot be set to a different
741 // oneof field, if so an INVALID_ARGUMENT is returned. If the
742 // [Control][google.cloud.retail.v2beta.Control] to update does not exist, a
743 // NOT_FOUND error is returned.
744 UpdateControl(context.Context, *UpdateControlRequest) (*Control, error)
745 // Gets a Control.
746 GetControl(context.Context, *GetControlRequest) (*Control, error)
747 // Lists all Controls by their parent
748 // [Catalog][google.cloud.retail.v2beta.Catalog].
749 ListControls(context.Context, *ListControlsRequest) (*ListControlsResponse, error)
750 }
751
752 // UnimplementedControlServiceServer can be embedded to have forward compatible implementations.
753 type UnimplementedControlServiceServer struct {
754 }
755
756 func (*UnimplementedControlServiceServer) CreateControl(context.Context, *CreateControlRequest) (*Control, error) {
757 return nil, status.Errorf(codes.Unimplemented, "method CreateControl not implemented")
758 }
759 func (*UnimplementedControlServiceServer) DeleteControl(context.Context, *DeleteControlRequest) (*emptypb.Empty, error) {
760 return nil, status.Errorf(codes.Unimplemented, "method DeleteControl not implemented")
761 }
762 func (*UnimplementedControlServiceServer) UpdateControl(context.Context, *UpdateControlRequest) (*Control, error) {
763 return nil, status.Errorf(codes.Unimplemented, "method UpdateControl not implemented")
764 }
765 func (*UnimplementedControlServiceServer) GetControl(context.Context, *GetControlRequest) (*Control, error) {
766 return nil, status.Errorf(codes.Unimplemented, "method GetControl not implemented")
767 }
768 func (*UnimplementedControlServiceServer) ListControls(context.Context, *ListControlsRequest) (*ListControlsResponse, error) {
769 return nil, status.Errorf(codes.Unimplemented, "method ListControls not implemented")
770 }
771
772 func RegisterControlServiceServer(s *grpc.Server, srv ControlServiceServer) {
773 s.RegisterService(&_ControlService_serviceDesc, srv)
774 }
775
776 func _ControlService_CreateControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
777 in := new(CreateControlRequest)
778 if err := dec(in); err != nil {
779 return nil, err
780 }
781 if interceptor == nil {
782 return srv.(ControlServiceServer).CreateControl(ctx, in)
783 }
784 info := &grpc.UnaryServerInfo{
785 Server: srv,
786 FullMethod: "/google.cloud.retail.v2beta.ControlService/CreateControl",
787 }
788 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
789 return srv.(ControlServiceServer).CreateControl(ctx, req.(*CreateControlRequest))
790 }
791 return interceptor(ctx, in, info, handler)
792 }
793
794 func _ControlService_DeleteControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
795 in := new(DeleteControlRequest)
796 if err := dec(in); err != nil {
797 return nil, err
798 }
799 if interceptor == nil {
800 return srv.(ControlServiceServer).DeleteControl(ctx, in)
801 }
802 info := &grpc.UnaryServerInfo{
803 Server: srv,
804 FullMethod: "/google.cloud.retail.v2beta.ControlService/DeleteControl",
805 }
806 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
807 return srv.(ControlServiceServer).DeleteControl(ctx, req.(*DeleteControlRequest))
808 }
809 return interceptor(ctx, in, info, handler)
810 }
811
812 func _ControlService_UpdateControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
813 in := new(UpdateControlRequest)
814 if err := dec(in); err != nil {
815 return nil, err
816 }
817 if interceptor == nil {
818 return srv.(ControlServiceServer).UpdateControl(ctx, in)
819 }
820 info := &grpc.UnaryServerInfo{
821 Server: srv,
822 FullMethod: "/google.cloud.retail.v2beta.ControlService/UpdateControl",
823 }
824 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
825 return srv.(ControlServiceServer).UpdateControl(ctx, req.(*UpdateControlRequest))
826 }
827 return interceptor(ctx, in, info, handler)
828 }
829
830 func _ControlService_GetControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
831 in := new(GetControlRequest)
832 if err := dec(in); err != nil {
833 return nil, err
834 }
835 if interceptor == nil {
836 return srv.(ControlServiceServer).GetControl(ctx, in)
837 }
838 info := &grpc.UnaryServerInfo{
839 Server: srv,
840 FullMethod: "/google.cloud.retail.v2beta.ControlService/GetControl",
841 }
842 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
843 return srv.(ControlServiceServer).GetControl(ctx, req.(*GetControlRequest))
844 }
845 return interceptor(ctx, in, info, handler)
846 }
847
848 func _ControlService_ListControls_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
849 in := new(ListControlsRequest)
850 if err := dec(in); err != nil {
851 return nil, err
852 }
853 if interceptor == nil {
854 return srv.(ControlServiceServer).ListControls(ctx, in)
855 }
856 info := &grpc.UnaryServerInfo{
857 Server: srv,
858 FullMethod: "/google.cloud.retail.v2beta.ControlService/ListControls",
859 }
860 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
861 return srv.(ControlServiceServer).ListControls(ctx, req.(*ListControlsRequest))
862 }
863 return interceptor(ctx, in, info, handler)
864 }
865
866 var _ControlService_serviceDesc = grpc.ServiceDesc{
867 ServiceName: "google.cloud.retail.v2beta.ControlService",
868 HandlerType: (*ControlServiceServer)(nil),
869 Methods: []grpc.MethodDesc{
870 {
871 MethodName: "CreateControl",
872 Handler: _ControlService_CreateControl_Handler,
873 },
874 {
875 MethodName: "DeleteControl",
876 Handler: _ControlService_DeleteControl_Handler,
877 },
878 {
879 MethodName: "UpdateControl",
880 Handler: _ControlService_UpdateControl_Handler,
881 },
882 {
883 MethodName: "GetControl",
884 Handler: _ControlService_GetControl_Handler,
885 },
886 {
887 MethodName: "ListControls",
888 Handler: _ControlService_ListControls_Handler,
889 },
890 },
891 Streams: []grpc.StreamDesc{},
892 Metadata: "google/cloud/retail/v2beta/control_service.proto",
893 }