Debian Codegraph @

shopping/merchant/datasources/apiv1/datasourcespb/fileuploads.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/shopping/merchant/datasources/v1/fileuploads.proto
20
21 package datasourcespb
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 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
32 reflect "reflect"
33 sync "sync"
34 )
35
36 const (
37 // Verify that this generated code is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39 // Verify that runtime/protoimpl is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 // The processing state of the data source.
44 type FileUpload_ProcessingState int32
45
46 const (
47 // Processing state unspecified.
48 FileUpload_PROCESSING_STATE_UNSPECIFIED FileUpload_ProcessingState = 0
49 // The data source could not be processed or all the items had errors.
50 FileUpload_FAILED FileUpload_ProcessingState = 1
51 // The data source is being processed.
52 FileUpload_IN_PROGRESS FileUpload_ProcessingState = 2
53 // The data source was processed successfully, though some items might have
54 // had errors.
55 FileUpload_SUCCEEDED FileUpload_ProcessingState = 3
56 )
57
58 // Enum value maps for FileUpload_ProcessingState.
59 var (
60 FileUpload_ProcessingState_name = map[int32]string{
61 0: "PROCESSING_STATE_UNSPECIFIED",
62 1: "FAILED",
63 2: "IN_PROGRESS",
64 3: "SUCCEEDED",
65 }
66 FileUpload_ProcessingState_value = map[string]int32{
67 "PROCESSING_STATE_UNSPECIFIED": 0,
68 "FAILED": 1,
69 "IN_PROGRESS": 2,
70 "SUCCEEDED": 3,
71 }
72 )
73
74 func (x FileUpload_ProcessingState) Enum() *FileUpload_ProcessingState {
75 p := new(FileUpload_ProcessingState)
76 *p = x
77 return p
78 }
79
80 func (x FileUpload_ProcessingState) String() string {
81 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
82 }
83
84 func (FileUpload_ProcessingState) Descriptor() protoreflect.EnumDescriptor {
85 return file_google_shopping_merchant_datasources_v1_fileuploads_proto_enumTypes[0].Descriptor()
86 }
87
88 func (FileUpload_ProcessingState) Type() protoreflect.EnumType {
89 return &file_google_shopping_merchant_datasources_v1_fileuploads_proto_enumTypes[0]
90 }
91
92 func (x FileUpload_ProcessingState) Number() protoreflect.EnumNumber {
93 return protoreflect.EnumNumber(x)
94 }
95
96 // Deprecated: Use FileUpload_ProcessingState.Descriptor instead.
97 func (FileUpload_ProcessingState) EnumDescriptor() ([]byte, []int) {
98 return file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescGZIP(), []int{0, 0}
99 }
100
101 // The severity of the issue.
102 type FileUpload_Issue_Severity int32
103
104 const (
105 // Severity unspecified.
106 FileUpload_Issue_SEVERITY_UNSPECIFIED FileUpload_Issue_Severity = 0
107 // The issue is the warning.
108 FileUpload_Issue_WARNING FileUpload_Issue_Severity = 1
109 // The issue is an error.
110 FileUpload_Issue_ERROR FileUpload_Issue_Severity = 2
111 )
112
113 // Enum value maps for FileUpload_Issue_Severity.
114 var (
115 FileUpload_Issue_Severity_name = map[int32]string{
116 0: "SEVERITY_UNSPECIFIED",
117 1: "WARNING",
118 2: "ERROR",
119 }
120 FileUpload_Issue_Severity_value = map[string]int32{
121 "SEVERITY_UNSPECIFIED": 0,
122 "WARNING": 1,
123 "ERROR": 2,
124 }
125 )
126
127 func (x FileUpload_Issue_Severity) Enum() *FileUpload_Issue_Severity {
128 p := new(FileUpload_Issue_Severity)
129 *p = x
130 return p
131 }
132
133 func (x FileUpload_Issue_Severity) String() string {
134 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
135 }
136
137 func (FileUpload_Issue_Severity) Descriptor() protoreflect.EnumDescriptor {
138 return file_google_shopping_merchant_datasources_v1_fileuploads_proto_enumTypes[1].Descriptor()
139 }
140
141 func (FileUpload_Issue_Severity) Type() protoreflect.EnumType {
142 return &file_google_shopping_merchant_datasources_v1_fileuploads_proto_enumTypes[1]
143 }
144
145 func (x FileUpload_Issue_Severity) Number() protoreflect.EnumNumber {
146 return protoreflect.EnumNumber(x)
147 }
148
149 // Deprecated: Use FileUpload_Issue_Severity.Descriptor instead.
150 func (FileUpload_Issue_Severity) EnumDescriptor() ([]byte, []int) {
151 return file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescGZIP(), []int{0, 0, 0}
152 }
153
154 // The file upload of a specific data source, that is, the result of the
155 // retrieval of the data source at a certain timestamp computed asynchronously
156 // when the data source processing is finished. Only applicable to file data
157 // sources.
158 type FileUpload struct {
159 state protoimpl.MessageState
160 sizeCache protoimpl.SizeCache
161 unknownFields protoimpl.UnknownFields
162
163 // Identifier. The name of the data source file upload.
164 // Format:
165 // `{datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}`
166 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
167 // Output only. The data source id.
168 DataSourceId int64 `protobuf:"varint,2,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
169 // Output only. The processing state of the data source.
170 ProcessingState FileUpload_ProcessingState `protobuf:"varint,3,opt,name=processing_state,json=processingState,proto3,enum=google.shopping.merchant.datasources.v1.FileUpload_ProcessingState" json:"processing_state,omitempty"`
171 // Output only. The list of issues occurring in the data source.
172 Issues []*FileUpload_Issue `protobuf:"bytes,4,rep,name=issues,proto3" json:"issues,omitempty"`
173 // Output only. The number of items in the data source that were processed.
174 ItemsTotal int64 `protobuf:"varint,5,opt,name=items_total,json=itemsTotal,proto3" json:"items_total,omitempty"`
175 // Output only. The number of items in the data source that were created.
176 ItemsCreated int64 `protobuf:"varint,6,opt,name=items_created,json=itemsCreated,proto3" json:"items_created,omitempty"`
177 // Output only. The number of items in the data source that were updated.
178 ItemsUpdated int64 `protobuf:"varint,7,opt,name=items_updated,json=itemsUpdated,proto3" json:"items_updated,omitempty"`
179 // Output only. The date at which the file of the data source was uploaded.
180 UploadTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=upload_time,json=uploadTime,proto3" json:"upload_time,omitempty"`
181 }
182
183 func (x *FileUpload) Reset() {
184 *x = FileUpload{}
185 mi := &file_google_shopping_merchant_datasources_v1_fileuploads_proto_msgTypes[0]
186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
187 ms.StoreMessageInfo(mi)
188 }
189
190 func (x *FileUpload) String() string {
191 return protoimpl.X.MessageStringOf(x)
192 }
193
194 func (*FileUpload) ProtoMessage() {}
195
196 func (x *FileUpload) ProtoReflect() protoreflect.Message {
197 mi := &file_google_shopping_merchant_datasources_v1_fileuploads_proto_msgTypes[0]
198 if x != nil {
199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
200 if ms.LoadMessageInfo() == nil {
201 ms.StoreMessageInfo(mi)
202 }
203 return ms
204 }
205 return mi.MessageOf(x)
206 }
207
208 // Deprecated: Use FileUpload.ProtoReflect.Descriptor instead.
209 func (*FileUpload) Descriptor() ([]byte, []int) {
210 return file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescGZIP(), []int{0}
211 }
212
213 func (x *FileUpload) GetName() string {
214 if x != nil {
215 return x.Name
216 }
217 return ""
218 }
219
220 func (x *FileUpload) GetDataSourceId() int64 {
221 if x != nil {
222 return x.DataSourceId
223 }
224 return 0
225 }
226
227 func (x *FileUpload) GetProcessingState() FileUpload_ProcessingState {
228 if x != nil {
229 return x.ProcessingState
230 }
231 return FileUpload_PROCESSING_STATE_UNSPECIFIED
232 }
233
234 func (x *FileUpload) GetIssues() []*FileUpload_Issue {
235 if x != nil {
236 return x.Issues
237 }
238 return nil
239 }
240
241 func (x *FileUpload) GetItemsTotal() int64 {
242 if x != nil {
243 return x.ItemsTotal
244 }
245 return 0
246 }
247
248 func (x *FileUpload) GetItemsCreated() int64 {
249 if x != nil {
250 return x.ItemsCreated
251 }
252 return 0
253 }
254
255 func (x *FileUpload) GetItemsUpdated() int64 {
256 if x != nil {
257 return x.ItemsUpdated
258 }
259 return 0
260 }
261
262 func (x *FileUpload) GetUploadTime() *timestamppb.Timestamp {
263 if x != nil {
264 return x.UploadTime
265 }
266 return nil
267 }
268
269 // Request message for the GetFileUploadRequest method.
270 type GetFileUploadRequest struct {
271 state protoimpl.MessageState
272 sizeCache protoimpl.SizeCache
273 unknownFields protoimpl.UnknownFields
274
275 // Required. The name of the data source file upload to retrieve.
276 // Format:
277 // `accounts/{account}/dataSources/{datasource}/fileUploads/latest`
278 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
279 }
280
281 func (x *GetFileUploadRequest) Reset() {
282 *x = GetFileUploadRequest{}
283 mi := &file_google_shopping_merchant_datasources_v1_fileuploads_proto_msgTypes[1]
284 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
285 ms.StoreMessageInfo(mi)
286 }
287
288 func (x *GetFileUploadRequest) String() string {
289 return protoimpl.X.MessageStringOf(x)
290 }
291
292 func (*GetFileUploadRequest) ProtoMessage() {}
293
294 func (x *GetFileUploadRequest) ProtoReflect() protoreflect.Message {
295 mi := &file_google_shopping_merchant_datasources_v1_fileuploads_proto_msgTypes[1]
296 if x != nil {
297 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
298 if ms.LoadMessageInfo() == nil {
299 ms.StoreMessageInfo(mi)
300 }
301 return ms
302 }
303 return mi.MessageOf(x)
304 }
305
306 // Deprecated: Use GetFileUploadRequest.ProtoReflect.Descriptor instead.
307 func (*GetFileUploadRequest) Descriptor() ([]byte, []int) {
308 return file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescGZIP(), []int{1}
309 }
310
311 func (x *GetFileUploadRequest) GetName() string {
312 if x != nil {
313 return x.Name
314 }
315 return ""
316 }
317
318 // An error occurring in the data source, like "invalid price".
319 type FileUpload_Issue struct {
320 state protoimpl.MessageState
321 sizeCache protoimpl.SizeCache
322 unknownFields protoimpl.UnknownFields
323
324 // Output only. The title of the issue, for example, "Item too big".
325 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
326 // Output only. The error description, for example, "Your data source
327 // contains items which have too many attributes, or are too big. These
328 // items will be dropped".
329 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
330 // Output only. The code of the error, for example,
331 // "validation/invalid_value". Returns
332 // "?" if the code is unknown.
333 Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
334 // Output only. The number of occurrences of the error in the file upload.
335 Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
336 // Output only. The severity of the issue.
337 Severity FileUpload_Issue_Severity `protobuf:"varint,5,opt,name=severity,proto3,enum=google.shopping.merchant.datasources.v1.FileUpload_Issue_Severity" json:"severity,omitempty"`
338 // Output only. Link to the documentation explaining the issue in more
339 // details, if available.
340 DocumentationUri string `protobuf:"bytes,6,opt,name=documentation_uri,json=documentationUri,proto3" json:"documentation_uri,omitempty"`
341 }
342
343 func (x *FileUpload_Issue) Reset() {
344 *x = FileUpload_Issue{}
345 mi := &file_google_shopping_merchant_datasources_v1_fileuploads_proto_msgTypes[2]
346 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
347 ms.StoreMessageInfo(mi)
348 }
349
350 func (x *FileUpload_Issue) String() string {
351 return protoimpl.X.MessageStringOf(x)
352 }
353
354 func (*FileUpload_Issue) ProtoMessage() {}
355
356 func (x *FileUpload_Issue) ProtoReflect() protoreflect.Message {
357 mi := &file_google_shopping_merchant_datasources_v1_fileuploads_proto_msgTypes[2]
358 if x != nil {
359 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
360 if ms.LoadMessageInfo() == nil {
361 ms.StoreMessageInfo(mi)
362 }
363 return ms
364 }
365 return mi.MessageOf(x)
366 }
367
368 // Deprecated: Use FileUpload_Issue.ProtoReflect.Descriptor instead.
369 func (*FileUpload_Issue) Descriptor() ([]byte, []int) {
370 return file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescGZIP(), []int{0, 0}
371 }
372
373 func (x *FileUpload_Issue) GetTitle() string {
374 if x != nil {
375 return x.Title
376 }
377 return ""
378 }
379
380 func (x *FileUpload_Issue) GetDescription() string {
381 if x != nil {
382 return x.Description
383 }
384 return ""
385 }
386
387 func (x *FileUpload_Issue) GetCode() string {
388 if x != nil {
389 return x.Code
390 }
391 return ""
392 }
393
394 func (x *FileUpload_Issue) GetCount() int64 {
395 if x != nil {
396 return x.Count
397 }
398 return 0
399 }
400
401 func (x *FileUpload_Issue) GetSeverity() FileUpload_Issue_Severity {
402 if x != nil {
403 return x.Severity
404 }
405 return FileUpload_Issue_SEVERITY_UNSPECIFIED
406 }
407
408 func (x *FileUpload_Issue) GetDocumentationUri() string {
409 if x != nil {
410 return x.DocumentationUri
411 }
412 return ""
413 }
414
415 var File_google_shopping_merchant_datasources_v1_fileuploads_proto protoreflect.FileDescriptor
416
417 var file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDesc = []byte{
418 0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
419 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73,
420 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x75, 0x70,
421 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x67, 0x6f, 0x6f,
422 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72,
423 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
424 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
425 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
426 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
427 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
428 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65,
429 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f,
430 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
431 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
432 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
433 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x08, 0x0a, 0x0a, 0x46, 0x69, 0x6c,
434 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
435 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
436 0x12, 0x29, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
437 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x64,
438 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x73, 0x0a, 0x10, 0x70,
439 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18,
440 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73,
441 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
442 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e,
443 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65,
444 0x73, 0x73, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
445 0x0f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65,
446 0x12, 0x56, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
447 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
448 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x64, 0x61, 0x74, 0x61,
449 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x55,
450 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03,
451 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0b, 0x69, 0x74, 0x65, 0x6d,
452 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0,
453 0x41, 0x03, 0x52, 0x0a, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x28,
454 0x0a, 0x0d, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18,
455 0x06, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x69, 0x74, 0x65, 0x6d,
456 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x0d, 0x69, 0x74, 0x65, 0x6d,
457 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x42,
458 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74,
459 0x65, 0x64, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d,
460 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
461 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
462 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64,
463 0x54, 0x69, 0x6d, 0x65, 0x1a, 0xd2, 0x02, 0x0a, 0x05, 0x49, 0x73, 0x73, 0x75, 0x65, 0x12, 0x19,
464 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
465 0x41, 0x03, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73,
466 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
467 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
468 0x12, 0x17, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
469 0xe0, 0x41, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x63, 0x6f, 0x75,
470 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x63,
471 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x63, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79,
472 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
473 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e,
474 0x74, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31,
475 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x49, 0x73, 0x73, 0x75,
476 0x65, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
477 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x30, 0x0a, 0x11, 0x64, 0x6f, 0x63,
478 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x06,
479 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, 0x64, 0x6f, 0x63, 0x75, 0x6d,
480 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x72, 0x69, 0x22, 0x3c, 0x0a, 0x08, 0x53,
481 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x45, 0x56, 0x45, 0x52,
482 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
483 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x09,
484 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x22, 0x5f, 0x0a, 0x0f, 0x50, 0x72, 0x6f,
485 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x1c,
486 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45,
487 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a,
488 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x4e,
489 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x53,
490 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, 0x3a, 0x8a, 0x01, 0xea, 0x41, 0x86,
491 0x01, 0x0a, 0x25, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67,
492 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69,
493 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x44, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
494 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x64, 0x61, 0x74,
495 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f,
496 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64,
497 0x73, 0x2f, 0x7b, 0x66, 0x69, 0x6c, 0x65, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x7d, 0x2a, 0x0b,
498 0x66, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x32, 0x0a, 0x66, 0x69, 0x6c,
499 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x59, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x46, 0x69,
500 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
501 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0,
502 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61,
503 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
504 0x6d, 0x2f, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x04, 0x6e, 0x61,
505 0x6d, 0x65, 0x32, 0xb1, 0x02, 0x0a, 0x12, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61,
506 0x64, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xd1, 0x01, 0x0a, 0x0d, 0x47, 0x65,
507 0x74, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x3d, 0x2e, 0x67, 0x6f,
508 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65,
509 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63,
510 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c,
511 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x67, 0x6f, 0x6f,
512 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72,
513 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
514 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x22,
515 0x4c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d,
516 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f,
517 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
518 0x2f, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x66,
519 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x1a, 0x47, 0xca,
520 0x41, 0x1a, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f,
521 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68,
522 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
523 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63,
524 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x98, 0x02, 0x0a, 0x2b, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
525 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d,
526 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72,
527 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f,
528 0x61, 0x64, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x63, 0x6c, 0x6f, 0x75,
529 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f,
530 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e,
531 0x74, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x61, 0x70,
532 0x69, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x70,
533 0x62, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x70, 0x62, 0xaa,
534 0x02, 0x27, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
535 0x67, 0x2e, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53,
536 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x27, 0x47, 0x6f, 0x6f, 0x67,
537 0x6c, 0x65, 0x5c, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5c, 0x4d, 0x65, 0x72, 0x63,
538 0x68, 0x61, 0x6e, 0x74, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
539 0x5c, 0x56, 0x31, 0xea, 0x02, 0x2b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x53, 0x68,
540 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
541 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x3a, 0x3a, 0x56,
542 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
543 }
544
545 var (
546 file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescOnce sync.Once
547 file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescData = file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDesc
548 )
549
550 func file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescGZIP() []byte {
551 file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescOnce.Do(func() {
552 file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescData)
553 })
554 return file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDescData
555 }
556
557 var file_google_shopping_merchant_datasources_v1_fileuploads_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
558 var file_google_shopping_merchant_datasources_v1_fileuploads_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
559 var file_google_shopping_merchant_datasources_v1_fileuploads_proto_goTypes = []any{
560 (FileUpload_ProcessingState)(0), // 0: google.shopping.merchant.datasources.v1.FileUpload.ProcessingState
561 (FileUpload_Issue_Severity)(0), // 1: google.shopping.merchant.datasources.v1.FileUpload.Issue.Severity
562 (*FileUpload)(nil), // 2: google.shopping.merchant.datasources.v1.FileUpload
563 (*GetFileUploadRequest)(nil), // 3: google.shopping.merchant.datasources.v1.GetFileUploadRequest
564 (*FileUpload_Issue)(nil), // 4: google.shopping.merchant.datasources.v1.FileUpload.Issue
565 (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
566 }
567 var file_google_shopping_merchant_datasources_v1_fileuploads_proto_depIdxs = []int32{
568 0, // 0: google.shopping.merchant.datasources.v1.FileUpload.processing_state:type_name -> google.shopping.merchant.datasources.v1.FileUpload.ProcessingState
569 4, // 1: google.shopping.merchant.datasources.v1.FileUpload.issues:type_name -> google.shopping.merchant.datasources.v1.FileUpload.Issue
570 5, // 2: google.shopping.merchant.datasources.v1.FileUpload.upload_time:type_name -> google.protobuf.Timestamp
571 1, // 3: google.shopping.merchant.datasources.v1.FileUpload.Issue.severity:type_name -> google.shopping.merchant.datasources.v1.FileUpload.Issue.Severity
572 3, // 4: google.shopping.merchant.datasources.v1.FileUploadsService.GetFileUpload:input_type -> google.shopping.merchant.datasources.v1.GetFileUploadRequest
573 2, // 5: google.shopping.merchant.datasources.v1.FileUploadsService.GetFileUpload:output_type -> google.shopping.merchant.datasources.v1.FileUpload
574 5, // [5:6] is the sub-list for method output_type
575 4, // [4:5] is the sub-list for method input_type
576 4, // [4:4] is the sub-list for extension type_name
577 4, // [4:4] is the sub-list for extension extendee
578 0, // [0:4] is the sub-list for field type_name
579 }
580
581 func init() { file_google_shopping_merchant_datasources_v1_fileuploads_proto_init() }
582 func file_google_shopping_merchant_datasources_v1_fileuploads_proto_init() {
583 if File_google_shopping_merchant_datasources_v1_fileuploads_proto != nil {
584 return
585 }
586 type x struct{}
587 out := protoimpl.TypeBuilder{
588 File: protoimpl.DescBuilder{
589 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
590 RawDescriptor: file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDesc,
591 NumEnums: 2,
592 NumMessages: 3,
593 NumExtensions: 0,
594 NumServices: 1,
595 },
596 GoTypes: file_google_shopping_merchant_datasources_v1_fileuploads_proto_goTypes,
597 DependencyIndexes: file_google_shopping_merchant_datasources_v1_fileuploads_proto_depIdxs,
598 EnumInfos: file_google_shopping_merchant_datasources_v1_fileuploads_proto_enumTypes,
599 MessageInfos: file_google_shopping_merchant_datasources_v1_fileuploads_proto_msgTypes,
600 }.Build()
601 File_google_shopping_merchant_datasources_v1_fileuploads_proto = out.File
602 file_google_shopping_merchant_datasources_v1_fileuploads_proto_rawDesc = nil
603 file_google_shopping_merchant_datasources_v1_fileuploads_proto_goTypes = nil
604 file_google_shopping_merchant_datasources_v1_fileuploads_proto_depIdxs = nil
605 }
606
607 // Reference imports to suppress errors if they are not otherwise used.
608 var _ context.Context
609 var _ grpc.ClientConnInterface
610
611 // This is a compile-time assertion to ensure that this generated file
612 // is compatible with the grpc package it is being compiled against.
613 const _ = grpc.SupportPackageIsVersion6
614
615 // FileUploadsServiceClient is the client API for FileUploadsService service.
616 //
617 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
618 type FileUploadsServiceClient interface {
619 // Gets the latest data source file upload. Only the `latest` alias is
620 // accepted for a file upload.
621 GetFileUpload(ctx context.Context, in *GetFileUploadRequest, opts ...grpc.CallOption) (*FileUpload, error)
622 }
623
624 type fileUploadsServiceClient struct {
625 cc grpc.ClientConnInterface
626 }
627
628 func NewFileUploadsServiceClient(cc grpc.ClientConnInterface) FileUploadsServiceClient {
629 return &fileUploadsServiceClient{cc}
630 }
631
632 func (c *fileUploadsServiceClient) GetFileUpload(ctx context.Context, in *GetFileUploadRequest, opts ...grpc.CallOption) (*FileUpload, error) {
633 out := new(FileUpload)
634 err := c.cc.Invoke(ctx, "/google.shopping.merchant.datasources.v1.FileUploadsService/GetFileUpload", in, out, opts...)
635 if err != nil {
636 return nil, err
637 }
638 return out, nil
639 }
640
641 // FileUploadsServiceServer is the server API for FileUploadsService service.
642 type FileUploadsServiceServer interface {
643 // Gets the latest data source file upload. Only the `latest` alias is
644 // accepted for a file upload.
645 GetFileUpload(context.Context, *GetFileUploadRequest) (*FileUpload, error)
646 }
647
648 // UnimplementedFileUploadsServiceServer can be embedded to have forward compatible implementations.
649 type UnimplementedFileUploadsServiceServer struct {
650 }
651
652 func (*UnimplementedFileUploadsServiceServer) GetFileUpload(context.Context, *GetFileUploadRequest) (*FileUpload, error) {
653 return nil, status.Errorf(codes.Unimplemented, "method GetFileUpload not implemented")
654 }
655
656 func RegisterFileUploadsServiceServer(s *grpc.Server, srv FileUploadsServiceServer) {
657 s.RegisterService(&_FileUploadsService_serviceDesc, srv)
658 }
659
660 func _FileUploadsService_GetFileUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
661 in := new(GetFileUploadRequest)
662 if err := dec(in); err != nil {
663 return nil, err
664 }
665 if interceptor == nil {
666 return srv.(FileUploadsServiceServer).GetFileUpload(ctx, in)
667 }
668 info := &grpc.UnaryServerInfo{
669 Server: srv,
670 FullMethod: "/google.shopping.merchant.datasources.v1.FileUploadsService/GetFileUpload",
671 }
672 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
673 return srv.(FileUploadsServiceServer).GetFileUpload(ctx, req.(*GetFileUploadRequest))
674 }
675 return interceptor(ctx, in, info, handler)
676 }
677
678 var _FileUploadsService_serviceDesc = grpc.ServiceDesc{
679 ServiceName: "google.shopping.merchant.datasources.v1.FileUploadsService",
680 HandlerType: (*FileUploadsServiceServer)(nil),
681 Methods: []grpc.MethodDesc{
682 {
683 MethodName: "GetFileUpload",
684 Handler: _FileUploadsService_GetFileUpload_Handler,
685 },
686 },
687 Streams: []grpc.StreamDesc{},
688 Metadata: "google/shopping/merchant/datasources/v1/fileuploads.proto",
689 }