1// Copyright 2020 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.25.0
18// 	protoc        v3.13.0
19// source: google/cloud/retail/v2/catalog_service.proto
20
21package retail
22
23import (
24	context "context"
25	reflect "reflect"
26	sync "sync"
27
28	proto "github.com/golang/protobuf/proto"
29	_ "google.golang.org/genproto/googleapis/api/annotations"
30	grpc "google.golang.org/grpc"
31	codes "google.golang.org/grpc/codes"
32	status "google.golang.org/grpc/status"
33	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35	_ "google.golang.org/protobuf/types/known/emptypb"
36	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
37	_ "google.golang.org/protobuf/types/known/timestamppb"
38)
39
40const (
41	// Verify that this generated code is sufficiently up-to-date.
42	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
43	// Verify that runtime/protoimpl is sufficiently up-to-date.
44	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
45)
46
47// This is a compile-time assertion that a sufficiently up-to-date version
48// of the legacy proto package is being used.
49const _ = proto.ProtoPackageIsVersion4
50
51// Request for
52// [CatalogService.ListCatalogs][google.cloud.retail.v2.CatalogService.ListCatalogs]
53// method.
54type ListCatalogsRequest struct {
55	state         protoimpl.MessageState
56	sizeCache     protoimpl.SizeCache
57	unknownFields protoimpl.UnknownFields
58
59	// Required. The account resource name with an associated location.
60	//
61	// If the caller does not have permission to list
62	// [Catalog][google.cloud.retail.v2.Catalog]s under this location, regardless
63	// of whether or not this location exists, a PERMISSION_DENIED error is
64	// returned.
65	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
66	// Maximum number of [Catalog][google.cloud.retail.v2.Catalog]s to return. If
67	// unspecified, defaults to 50. The maximum allowed value is 1000. Values
68	// above 1000 will be coerced to 1000.
69	//
70	// If this field is negative, an INVALID_ARGUMENT is returned.
71	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
72	// A page token
73	// [ListCatalogsResponse.next_page_token][google.cloud.retail.v2.ListCatalogsResponse.next_page_token],
74	// received from a previous
75	// [CatalogService.ListCatalogs][google.cloud.retail.v2.CatalogService.ListCatalogs]
76	// call. Provide this to retrieve the subsequent page.
77	//
78	// When paginating, all other parameters provided to
79	// [CatalogService.ListCatalogs][google.cloud.retail.v2.CatalogService.ListCatalogs]
80	// must match the call that provided the page token. Otherwise, an
81	// INVALID_ARGUMENT error is returned.
82	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
83}
84
85func (x *ListCatalogsRequest) Reset() {
86	*x = ListCatalogsRequest{}
87	if protoimpl.UnsafeEnabled {
88		mi := &file_google_cloud_retail_v2_catalog_service_proto_msgTypes[0]
89		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
90		ms.StoreMessageInfo(mi)
91	}
92}
93
94func (x *ListCatalogsRequest) String() string {
95	return protoimpl.X.MessageStringOf(x)
96}
97
98func (*ListCatalogsRequest) ProtoMessage() {}
99
100func (x *ListCatalogsRequest) ProtoReflect() protoreflect.Message {
101	mi := &file_google_cloud_retail_v2_catalog_service_proto_msgTypes[0]
102	if protoimpl.UnsafeEnabled && x != nil {
103		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
104		if ms.LoadMessageInfo() == nil {
105			ms.StoreMessageInfo(mi)
106		}
107		return ms
108	}
109	return mi.MessageOf(x)
110}
111
112// Deprecated: Use ListCatalogsRequest.ProtoReflect.Descriptor instead.
113func (*ListCatalogsRequest) Descriptor() ([]byte, []int) {
114	return file_google_cloud_retail_v2_catalog_service_proto_rawDescGZIP(), []int{0}
115}
116
117func (x *ListCatalogsRequest) GetParent() string {
118	if x != nil {
119		return x.Parent
120	}
121	return ""
122}
123
124func (x *ListCatalogsRequest) GetPageSize() int32 {
125	if x != nil {
126		return x.PageSize
127	}
128	return 0
129}
130
131func (x *ListCatalogsRequest) GetPageToken() string {
132	if x != nil {
133		return x.PageToken
134	}
135	return ""
136}
137
138// Response for
139// [CatalogService.ListCatalogs][google.cloud.retail.v2.CatalogService.ListCatalogs]
140// method.
141type ListCatalogsResponse struct {
142	state         protoimpl.MessageState
143	sizeCache     protoimpl.SizeCache
144	unknownFields protoimpl.UnknownFields
145
146	// All the customer's [Catalog][google.cloud.retail.v2.Catalog]s.
147	Catalogs []*Catalog `protobuf:"bytes,1,rep,name=catalogs,proto3" json:"catalogs,omitempty"`
148	// A token that can be sent as
149	// [ListCatalogsRequest.page_token][google.cloud.retail.v2.ListCatalogsRequest.page_token]
150	// to retrieve the next page. If this field is omitted, there are no
151	// subsequent pages.
152	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
153}
154
155func (x *ListCatalogsResponse) Reset() {
156	*x = ListCatalogsResponse{}
157	if protoimpl.UnsafeEnabled {
158		mi := &file_google_cloud_retail_v2_catalog_service_proto_msgTypes[1]
159		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
160		ms.StoreMessageInfo(mi)
161	}
162}
163
164func (x *ListCatalogsResponse) String() string {
165	return protoimpl.X.MessageStringOf(x)
166}
167
168func (*ListCatalogsResponse) ProtoMessage() {}
169
170func (x *ListCatalogsResponse) ProtoReflect() protoreflect.Message {
171	mi := &file_google_cloud_retail_v2_catalog_service_proto_msgTypes[1]
172	if protoimpl.UnsafeEnabled && x != nil {
173		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
174		if ms.LoadMessageInfo() == nil {
175			ms.StoreMessageInfo(mi)
176		}
177		return ms
178	}
179	return mi.MessageOf(x)
180}
181
182// Deprecated: Use ListCatalogsResponse.ProtoReflect.Descriptor instead.
183func (*ListCatalogsResponse) Descriptor() ([]byte, []int) {
184	return file_google_cloud_retail_v2_catalog_service_proto_rawDescGZIP(), []int{1}
185}
186
187func (x *ListCatalogsResponse) GetCatalogs() []*Catalog {
188	if x != nil {
189		return x.Catalogs
190	}
191	return nil
192}
193
194func (x *ListCatalogsResponse) GetNextPageToken() string {
195	if x != nil {
196		return x.NextPageToken
197	}
198	return ""
199}
200
201// Request for
202// [CatalogService.UpdateCatalog][google.cloud.retail.v2.CatalogService.UpdateCatalog]
203// method.
204type UpdateCatalogRequest struct {
205	state         protoimpl.MessageState
206	sizeCache     protoimpl.SizeCache
207	unknownFields protoimpl.UnknownFields
208
209	// Required. The [Catalog][google.cloud.retail.v2.Catalog] to update.
210	//
211	// If the caller does not have permission to update the
212	// [Catalog][google.cloud.retail.v2.Catalog], regardless of whether or not it
213	// exists, a PERMISSION_DENIED error is returned.
214	//
215	// If the [Catalog][google.cloud.retail.v2.Catalog] to update does not exist,
216	// a NOT_FOUND error is returned.
217	Catalog *Catalog `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
218	// Indicates which fields in the provided
219	// [Catalog][google.cloud.retail.v2.Catalog] to update. If not set, will only
220	// update the
221	// [Catalog.product_level_config][google.cloud.retail.v2.Catalog.product_level_config]
222	// field, which is also the only currently supported field to update.
223	//
224	// If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
225	// is returned.
226	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
227}
228
229func (x *UpdateCatalogRequest) Reset() {
230	*x = UpdateCatalogRequest{}
231	if protoimpl.UnsafeEnabled {
232		mi := &file_google_cloud_retail_v2_catalog_service_proto_msgTypes[2]
233		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
234		ms.StoreMessageInfo(mi)
235	}
236}
237
238func (x *UpdateCatalogRequest) String() string {
239	return protoimpl.X.MessageStringOf(x)
240}
241
242func (*UpdateCatalogRequest) ProtoMessage() {}
243
244func (x *UpdateCatalogRequest) ProtoReflect() protoreflect.Message {
245	mi := &file_google_cloud_retail_v2_catalog_service_proto_msgTypes[2]
246	if protoimpl.UnsafeEnabled && x != nil {
247		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
248		if ms.LoadMessageInfo() == nil {
249			ms.StoreMessageInfo(mi)
250		}
251		return ms
252	}
253	return mi.MessageOf(x)
254}
255
256// Deprecated: Use UpdateCatalogRequest.ProtoReflect.Descriptor instead.
257func (*UpdateCatalogRequest) Descriptor() ([]byte, []int) {
258	return file_google_cloud_retail_v2_catalog_service_proto_rawDescGZIP(), []int{2}
259}
260
261func (x *UpdateCatalogRequest) GetCatalog() *Catalog {
262	if x != nil {
263		return x.Catalog
264	}
265	return nil
266}
267
268func (x *UpdateCatalogRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
269	if x != nil {
270		return x.UpdateMask
271	}
272	return nil
273}
274
275var File_google_cloud_retail_v2_catalog_service_proto protoreflect.FileDescriptor
276
277var file_google_cloud_retail_v2_catalog_service_proto_rawDesc = []byte{
278	0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
279	0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
280	0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16,
281	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74,
282	0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
283	0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
284	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
285	0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67,
286	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,
287	0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19,
288	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
289	0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
290	0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76,
291	0x32, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
292	0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
293	0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f,
294	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69,
295	0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f,
296	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
297	0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
298	0x94, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73,
299	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
300	0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a,
301	0x21, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
302	0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69,
303	0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61,
304	0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70,
305	0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f,
306	0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67,
307	0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7b, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61,
308	0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b,
309	0x0a, 0x08, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
310	0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
311	0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f,
312	0x67, 0x52, 0x08, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,
313	0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
314	0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,
315	0x6b, 0x65, 0x6e, 0x22, 0x93, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61,
316	0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x07,
317	0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
318	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74,
319	0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x42, 0x03,
320	0xe0, 0x41, 0x02, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x3b, 0x0a, 0x0b,
321	0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28,
322	0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
323	0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75,
324	0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x32, 0xc4, 0x03, 0x0a, 0x0e, 0x43, 0x61,
325	0x74, 0x61, 0x6c, 0x6f, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa8, 0x01, 0x0a,
326	0x0c, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x2b, 0x2e,
327	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74,
328	0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c,
329	0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6f, 0x6f,
330	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c,
331	0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73,
332	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e,
333	0x12, 0x2c, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72,
334	0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
335	0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0xda, 0x41,
336	0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xbb, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61,
337	0x74, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
338	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,
339	0x76, 0x32, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
340	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
341	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32,
342	0x2e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x22, 0x5b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f,
343	0x32, 0x34, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x6e,
344	0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c,
345	0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c,
346	0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0xda,
347	0x41, 0x13, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
348	0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x1a, 0x49, 0xca, 0x41, 0x15, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c,
349	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2,
350	0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f,
351	0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74,
352	0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
353	0x42, 0xc8, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
354	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x42,
355	0x13, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50,
356	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
357	0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
358	0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c,
359	0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x3b, 0x72, 0x65,
360	0x74, 0x61, 0x69, 0x6c, 0xa2, 0x02, 0x06, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x16,
361	0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74,
362	0x61, 0x69, 0x6c, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
363	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56, 0x32, 0xea,
364	0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a,
365	0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f,
366	0x74, 0x6f, 0x33,
367}
368
369var (
370	file_google_cloud_retail_v2_catalog_service_proto_rawDescOnce sync.Once
371	file_google_cloud_retail_v2_catalog_service_proto_rawDescData = file_google_cloud_retail_v2_catalog_service_proto_rawDesc
372)
373
374func file_google_cloud_retail_v2_catalog_service_proto_rawDescGZIP() []byte {
375	file_google_cloud_retail_v2_catalog_service_proto_rawDescOnce.Do(func() {
376		file_google_cloud_retail_v2_catalog_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2_catalog_service_proto_rawDescData)
377	})
378	return file_google_cloud_retail_v2_catalog_service_proto_rawDescData
379}
380
381var file_google_cloud_retail_v2_catalog_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
382var file_google_cloud_retail_v2_catalog_service_proto_goTypes = []interface{}{
383	(*ListCatalogsRequest)(nil),   // 0: google.cloud.retail.v2.ListCatalogsRequest
384	(*ListCatalogsResponse)(nil),  // 1: google.cloud.retail.v2.ListCatalogsResponse
385	(*UpdateCatalogRequest)(nil),  // 2: google.cloud.retail.v2.UpdateCatalogRequest
386	(*Catalog)(nil),               // 3: google.cloud.retail.v2.Catalog
387	(*fieldmaskpb.FieldMask)(nil), // 4: google.protobuf.FieldMask
388}
389var file_google_cloud_retail_v2_catalog_service_proto_depIdxs = []int32{
390	3, // 0: google.cloud.retail.v2.ListCatalogsResponse.catalogs:type_name -> google.cloud.retail.v2.Catalog
391	3, // 1: google.cloud.retail.v2.UpdateCatalogRequest.catalog:type_name -> google.cloud.retail.v2.Catalog
392	4, // 2: google.cloud.retail.v2.UpdateCatalogRequest.update_mask:type_name -> google.protobuf.FieldMask
393	0, // 3: google.cloud.retail.v2.CatalogService.ListCatalogs:input_type -> google.cloud.retail.v2.ListCatalogsRequest
394	2, // 4: google.cloud.retail.v2.CatalogService.UpdateCatalog:input_type -> google.cloud.retail.v2.UpdateCatalogRequest
395	1, // 5: google.cloud.retail.v2.CatalogService.ListCatalogs:output_type -> google.cloud.retail.v2.ListCatalogsResponse
396	3, // 6: google.cloud.retail.v2.CatalogService.UpdateCatalog:output_type -> google.cloud.retail.v2.Catalog
397	5, // [5:7] is the sub-list for method output_type
398	3, // [3:5] is the sub-list for method input_type
399	3, // [3:3] is the sub-list for extension type_name
400	3, // [3:3] is the sub-list for extension extendee
401	0, // [0:3] is the sub-list for field type_name
402}
403
404func init() { file_google_cloud_retail_v2_catalog_service_proto_init() }
405func file_google_cloud_retail_v2_catalog_service_proto_init() {
406	if File_google_cloud_retail_v2_catalog_service_proto != nil {
407		return
408	}
409	file_google_cloud_retail_v2_catalog_proto_init()
410	if !protoimpl.UnsafeEnabled {
411		file_google_cloud_retail_v2_catalog_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
412			switch v := v.(*ListCatalogsRequest); i {
413			case 0:
414				return &v.state
415			case 1:
416				return &v.sizeCache
417			case 2:
418				return &v.unknownFields
419			default:
420				return nil
421			}
422		}
423		file_google_cloud_retail_v2_catalog_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
424			switch v := v.(*ListCatalogsResponse); i {
425			case 0:
426				return &v.state
427			case 1:
428				return &v.sizeCache
429			case 2:
430				return &v.unknownFields
431			default:
432				return nil
433			}
434		}
435		file_google_cloud_retail_v2_catalog_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
436			switch v := v.(*UpdateCatalogRequest); i {
437			case 0:
438				return &v.state
439			case 1:
440				return &v.sizeCache
441			case 2:
442				return &v.unknownFields
443			default:
444				return nil
445			}
446		}
447	}
448	type x struct{}
449	out := protoimpl.TypeBuilder{
450		File: protoimpl.DescBuilder{
451			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
452			RawDescriptor: file_google_cloud_retail_v2_catalog_service_proto_rawDesc,
453			NumEnums:      0,
454			NumMessages:   3,
455			NumExtensions: 0,
456			NumServices:   1,
457		},
458		GoTypes:           file_google_cloud_retail_v2_catalog_service_proto_goTypes,
459		DependencyIndexes: file_google_cloud_retail_v2_catalog_service_proto_depIdxs,
460		MessageInfos:      file_google_cloud_retail_v2_catalog_service_proto_msgTypes,
461	}.Build()
462	File_google_cloud_retail_v2_catalog_service_proto = out.File
463	file_google_cloud_retail_v2_catalog_service_proto_rawDesc = nil
464	file_google_cloud_retail_v2_catalog_service_proto_goTypes = nil
465	file_google_cloud_retail_v2_catalog_service_proto_depIdxs = nil
466}
467
468// Reference imports to suppress errors if they are not otherwise used.
469var _ context.Context
470var _ grpc.ClientConnInterface
471
472// This is a compile-time assertion to ensure that this generated file
473// is compatible with the grpc package it is being compiled against.
474const _ = grpc.SupportPackageIsVersion6
475
476// CatalogServiceClient is the client API for CatalogService service.
477//
478// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
479type CatalogServiceClient interface {
480	// Lists all the [Catalog][google.cloud.retail.v2.Catalog]s associated with
481	// the project.
482	ListCatalogs(ctx context.Context, in *ListCatalogsRequest, opts ...grpc.CallOption) (*ListCatalogsResponse, error)
483	// Updates the [Catalog][google.cloud.retail.v2.Catalog]s.
484	UpdateCatalog(ctx context.Context, in *UpdateCatalogRequest, opts ...grpc.CallOption) (*Catalog, error)
485}
486
487type catalogServiceClient struct {
488	cc grpc.ClientConnInterface
489}
490
491func NewCatalogServiceClient(cc grpc.ClientConnInterface) CatalogServiceClient {
492	return &catalogServiceClient{cc}
493}
494
495func (c *catalogServiceClient) ListCatalogs(ctx context.Context, in *ListCatalogsRequest, opts ...grpc.CallOption) (*ListCatalogsResponse, error) {
496	out := new(ListCatalogsResponse)
497	err := c.cc.Invoke(ctx, "/google.cloud.retail.v2.CatalogService/ListCatalogs", in, out, opts...)
498	if err != nil {
499		return nil, err
500	}
501	return out, nil
502}
503
504func (c *catalogServiceClient) UpdateCatalog(ctx context.Context, in *UpdateCatalogRequest, opts ...grpc.CallOption) (*Catalog, error) {
505	out := new(Catalog)
506	err := c.cc.Invoke(ctx, "/google.cloud.retail.v2.CatalogService/UpdateCatalog", in, out, opts...)
507	if err != nil {
508		return nil, err
509	}
510	return out, nil
511}
512
513// CatalogServiceServer is the server API for CatalogService service.
514type CatalogServiceServer interface {
515	// Lists all the [Catalog][google.cloud.retail.v2.Catalog]s associated with
516	// the project.
517	ListCatalogs(context.Context, *ListCatalogsRequest) (*ListCatalogsResponse, error)
518	// Updates the [Catalog][google.cloud.retail.v2.Catalog]s.
519	UpdateCatalog(context.Context, *UpdateCatalogRequest) (*Catalog, error)
520}
521
522// UnimplementedCatalogServiceServer can be embedded to have forward compatible implementations.
523type UnimplementedCatalogServiceServer struct {
524}
525
526func (*UnimplementedCatalogServiceServer) ListCatalogs(context.Context, *ListCatalogsRequest) (*ListCatalogsResponse, error) {
527	return nil, status.Errorf(codes.Unimplemented, "method ListCatalogs not implemented")
528}
529func (*UnimplementedCatalogServiceServer) UpdateCatalog(context.Context, *UpdateCatalogRequest) (*Catalog, error) {
530	return nil, status.Errorf(codes.Unimplemented, "method UpdateCatalog not implemented")
531}
532
533func RegisterCatalogServiceServer(s *grpc.Server, srv CatalogServiceServer) {
534	s.RegisterService(&_CatalogService_serviceDesc, srv)
535}
536
537func _CatalogService_ListCatalogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
538	in := new(ListCatalogsRequest)
539	if err := dec(in); err != nil {
540		return nil, err
541	}
542	if interceptor == nil {
543		return srv.(CatalogServiceServer).ListCatalogs(ctx, in)
544	}
545	info := &grpc.UnaryServerInfo{
546		Server:     srv,
547		FullMethod: "/google.cloud.retail.v2.CatalogService/ListCatalogs",
548	}
549	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
550		return srv.(CatalogServiceServer).ListCatalogs(ctx, req.(*ListCatalogsRequest))
551	}
552	return interceptor(ctx, in, info, handler)
553}
554
555func _CatalogService_UpdateCatalog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
556	in := new(UpdateCatalogRequest)
557	if err := dec(in); err != nil {
558		return nil, err
559	}
560	if interceptor == nil {
561		return srv.(CatalogServiceServer).UpdateCatalog(ctx, in)
562	}
563	info := &grpc.UnaryServerInfo{
564		Server:     srv,
565		FullMethod: "/google.cloud.retail.v2.CatalogService/UpdateCatalog",
566	}
567	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
568		return srv.(CatalogServiceServer).UpdateCatalog(ctx, req.(*UpdateCatalogRequest))
569	}
570	return interceptor(ctx, in, info, handler)
571}
572
573var _CatalogService_serviceDesc = grpc.ServiceDesc{
574	ServiceName: "google.cloud.retail.v2.CatalogService",
575	HandlerType: (*CatalogServiceServer)(nil),
576	Methods: []grpc.MethodDesc{
577		{
578			MethodName: "ListCatalogs",
579			Handler:    _CatalogService_ListCatalogs_Handler,
580		},
581		{
582			MethodName: "UpdateCatalog",
583			Handler:    _CatalogService_UpdateCatalog_Handler,
584		},
585	},
586	Streams:  []grpc.StreamDesc{},
587	Metadata: "google/cloud/retail/v2/catalog_service.proto",
588}
589