Debian Codegraph @

automl/apiv1/automlpb/data_items.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/automl/v1/data_items.proto
20
21 package automlpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // Unit of the document dimension.
38 type DocumentDimensions_DocumentDimensionUnit int32
39
40 const (
41 // Should not be used.
42 DocumentDimensions_DOCUMENT_DIMENSION_UNIT_UNSPECIFIED DocumentDimensions_DocumentDimensionUnit = 0
43 // Document dimension is measured in inches.
44 DocumentDimensions_INCH DocumentDimensions_DocumentDimensionUnit = 1
45 // Document dimension is measured in centimeters.
46 DocumentDimensions_CENTIMETER DocumentDimensions_DocumentDimensionUnit = 2
47 // Document dimension is measured in points. 72 points = 1 inch.
48 DocumentDimensions_POINT DocumentDimensions_DocumentDimensionUnit = 3
49 )
50
51 // Enum value maps for DocumentDimensions_DocumentDimensionUnit.
52 var (
53 DocumentDimensions_DocumentDimensionUnit_name = map[int32]string{
54 0: "DOCUMENT_DIMENSION_UNIT_UNSPECIFIED",
55 1: "INCH",
56 2: "CENTIMETER",
57 3: "POINT",
58 }
59 DocumentDimensions_DocumentDimensionUnit_value = map[string]int32{
60 "DOCUMENT_DIMENSION_UNIT_UNSPECIFIED": 0,
61 "INCH": 1,
62 "CENTIMETER": 2,
63 "POINT": 3,
64 }
65 )
66
67 func (x DocumentDimensions_DocumentDimensionUnit) Enum() *DocumentDimensions_DocumentDimensionUnit {
68 p := new(DocumentDimensions_DocumentDimensionUnit)
69 *p = x
70 return p
71 }
72
73 func (x DocumentDimensions_DocumentDimensionUnit) String() string {
74 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
75 }
76
77 func (DocumentDimensions_DocumentDimensionUnit) Descriptor() protoreflect.EnumDescriptor {
78 return file_google_cloud_automl_v1_data_items_proto_enumTypes[0].Descriptor()
79 }
80
81 func (DocumentDimensions_DocumentDimensionUnit) Type() protoreflect.EnumType {
82 return &file_google_cloud_automl_v1_data_items_proto_enumTypes[0]
83 }
84
85 func (x DocumentDimensions_DocumentDimensionUnit) Number() protoreflect.EnumNumber {
86 return protoreflect.EnumNumber(x)
87 }
88
89 // Deprecated: Use DocumentDimensions_DocumentDimensionUnit.Descriptor instead.
90 func (DocumentDimensions_DocumentDimensionUnit) EnumDescriptor() ([]byte, []int) {
91 return file_google_cloud_automl_v1_data_items_proto_rawDescGZIP(), []int{2, 0}
92 }
93
94 // The type of TextSegment in the context of the original document.
95 type Document_Layout_TextSegmentType int32
96
97 const (
98 // Should not be used.
99 Document_Layout_TEXT_SEGMENT_TYPE_UNSPECIFIED Document_Layout_TextSegmentType = 0
100 // The text segment is a token. e.g. word.
101 Document_Layout_TOKEN Document_Layout_TextSegmentType = 1
102 // The text segment is a paragraph.
103 Document_Layout_PARAGRAPH Document_Layout_TextSegmentType = 2
104 // The text segment is a form field.
105 Document_Layout_FORM_FIELD Document_Layout_TextSegmentType = 3
106 // The text segment is the name part of a form field. It will be treated
107 // as child of another FORM_FIELD TextSegment if its span is subspan of
108 // another TextSegment with type FORM_FIELD.
109 Document_Layout_FORM_FIELD_NAME Document_Layout_TextSegmentType = 4
110 // The text segment is the text content part of a form field. It will be
111 // treated as child of another FORM_FIELD TextSegment if its span is
112 // subspan of another TextSegment with type FORM_FIELD.
113 Document_Layout_FORM_FIELD_CONTENTS Document_Layout_TextSegmentType = 5
114 // The text segment is a whole table, including headers, and all rows.
115 Document_Layout_TABLE Document_Layout_TextSegmentType = 6
116 // The text segment is a table's headers. It will be treated as child of
117 // another TABLE TextSegment if its span is subspan of another TextSegment
118 // with type TABLE.
119 Document_Layout_TABLE_HEADER Document_Layout_TextSegmentType = 7
120 // The text segment is a row in table. It will be treated as child of
121 // another TABLE TextSegment if its span is subspan of another TextSegment
122 // with type TABLE.
123 Document_Layout_TABLE_ROW Document_Layout_TextSegmentType = 8
124 // The text segment is a cell in table. It will be treated as child of
125 // another TABLE_ROW TextSegment if its span is subspan of another
126 // TextSegment with type TABLE_ROW.
127 Document_Layout_TABLE_CELL Document_Layout_TextSegmentType = 9
128 )
129
130 // Enum value maps for Document_Layout_TextSegmentType.
131 var (
132 Document_Layout_TextSegmentType_name = map[int32]string{
133 0: "TEXT_SEGMENT_TYPE_UNSPECIFIED",
134 1: "TOKEN",
135 2: "PARAGRAPH",
136 3: "FORM_FIELD",
137 4: "FORM_FIELD_NAME",
138 5: "FORM_FIELD_CONTENTS",
139 6: "TABLE",
140 7: "TABLE_HEADER",
141 8: "TABLE_ROW",
142 9: "TABLE_CELL",
143 }
144 Document_Layout_TextSegmentType_value = map[string]int32{
145 "TEXT_SEGMENT_TYPE_UNSPECIFIED": 0,
146 "TOKEN": 1,
147 "PARAGRAPH": 2,
148 "FORM_FIELD": 3,
149 "FORM_FIELD_NAME": 4,
150 "FORM_FIELD_CONTENTS": 5,
151 "TABLE": 6,
152 "TABLE_HEADER": 7,
153 "TABLE_ROW": 8,
154 "TABLE_CELL": 9,
155 }
156 )
157
158 func (x Document_Layout_TextSegmentType) Enum() *Document_Layout_TextSegmentType {
159 p := new(Document_Layout_TextSegmentType)
160 *p = x
161 return p
162 }
163
164 func (x Document_Layout_TextSegmentType) String() string {
165 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
166 }
167
168 func (Document_Layout_TextSegmentType) Descriptor() protoreflect.EnumDescriptor {
169 return file_google_cloud_automl_v1_data_items_proto_enumTypes[1].Descriptor()
170 }
171
172 func (Document_Layout_TextSegmentType) Type() protoreflect.EnumType {
173 return &file_google_cloud_automl_v1_data_items_proto_enumTypes[1]
174 }
175
176 func (x Document_Layout_TextSegmentType) Number() protoreflect.EnumNumber {
177 return protoreflect.EnumNumber(x)
178 }
179
180 // Deprecated: Use Document_Layout_TextSegmentType.Descriptor instead.
181 func (Document_Layout_TextSegmentType) EnumDescriptor() ([]byte, []int) {
182 return file_google_cloud_automl_v1_data_items_proto_rawDescGZIP(), []int{3, 0, 0}
183 }
184
185 // A representation of an image.
186 // Only images up to 30MB in size are supported.
187 type Image struct {
188 state protoimpl.MessageState
189 sizeCache protoimpl.SizeCache
190 unknownFields protoimpl.UnknownFields
191
192 // Input only. The data representing the image.
193 // For Predict calls [image_bytes][google.cloud.automl.v1.Image.image_bytes] must be set .
194 //
195 // Types that are assignable to Data:
196 //
197 // *Image_ImageBytes
198 Data isImage_Data `protobuf_oneof:"data"`
199 // Output only. HTTP URI to the thumbnail image.
200 ThumbnailUri string `protobuf:"bytes,4,opt,name=thumbnail_uri,json=thumbnailUri,proto3" json:"thumbnail_uri,omitempty"`
201 }
202
203 func (x *Image) Reset() {
204 *x = Image{}
205 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[0]
206 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
207 ms.StoreMessageInfo(mi)
208 }
209
210 func (x *Image) String() string {
211 return protoimpl.X.MessageStringOf(x)
212 }
213
214 func (*Image) ProtoMessage() {}
215
216 func (x *Image) ProtoReflect() protoreflect.Message {
217 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[0]
218 if x != nil {
219 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
220 if ms.LoadMessageInfo() == nil {
221 ms.StoreMessageInfo(mi)
222 }
223 return ms
224 }
225 return mi.MessageOf(x)
226 }
227
228 // Deprecated: Use Image.ProtoReflect.Descriptor instead.
229 func (*Image) Descriptor() ([]byte, []int) {
230 return file_google_cloud_automl_v1_data_items_proto_rawDescGZIP(), []int{0}
231 }
232
233 func (m *Image) GetData() isImage_Data {
234 if m != nil {
235 return m.Data
236 }
237 return nil
238 }
239
240 func (x *Image) GetImageBytes() []byte {
241 if x, ok := x.GetData().(*Image_ImageBytes); ok {
242 return x.ImageBytes
243 }
244 return nil
245 }
246
247 func (x *Image) GetThumbnailUri() string {
248 if x != nil {
249 return x.ThumbnailUri
250 }
251 return ""
252 }
253
254 type isImage_Data interface {
255 isImage_Data()
256 }
257
258 type Image_ImageBytes struct {
259 // Image content represented as a stream of bytes.
260 // Note: As with all `bytes` fields, protobuffers use a pure binary
261 // representation, whereas JSON representations use base64.
262 ImageBytes []byte `protobuf:"bytes,1,opt,name=image_bytes,json=imageBytes,proto3,oneof"`
263 }
264
265 func (*Image_ImageBytes) isImage_Data() {}
266
267 // A representation of a text snippet.
268 type TextSnippet struct {
269 state protoimpl.MessageState
270 sizeCache protoimpl.SizeCache
271 unknownFields protoimpl.UnknownFields
272
273 // Required. The content of the text snippet as a string. Up to 250000
274 // characters long.
275 Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
276 // Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed
277 // values are "text/html" and "text/plain". If left blank, the format is
278 // automatically determined from the type of the uploaded [content][google.cloud.automl.v1.TextSnippet.content].
279 MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
280 // Output only. HTTP URI where you can download the content.
281 ContentUri string `protobuf:"bytes,4,opt,name=content_uri,json=contentUri,proto3" json:"content_uri,omitempty"`
282 }
283
284 func (x *TextSnippet) Reset() {
285 *x = TextSnippet{}
286 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[1]
287 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
288 ms.StoreMessageInfo(mi)
289 }
290
291 func (x *TextSnippet) String() string {
292 return protoimpl.X.MessageStringOf(x)
293 }
294
295 func (*TextSnippet) ProtoMessage() {}
296
297 func (x *TextSnippet) ProtoReflect() protoreflect.Message {
298 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[1]
299 if x != nil {
300 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
301 if ms.LoadMessageInfo() == nil {
302 ms.StoreMessageInfo(mi)
303 }
304 return ms
305 }
306 return mi.MessageOf(x)
307 }
308
309 // Deprecated: Use TextSnippet.ProtoReflect.Descriptor instead.
310 func (*TextSnippet) Descriptor() ([]byte, []int) {
311 return file_google_cloud_automl_v1_data_items_proto_rawDescGZIP(), []int{1}
312 }
313
314 func (x *TextSnippet) GetContent() string {
315 if x != nil {
316 return x.Content
317 }
318 return ""
319 }
320
321 func (x *TextSnippet) GetMimeType() string {
322 if x != nil {
323 return x.MimeType
324 }
325 return ""
326 }
327
328 func (x *TextSnippet) GetContentUri() string {
329 if x != nil {
330 return x.ContentUri
331 }
332 return ""
333 }
334
335 // Message that describes dimension of a document.
336 type DocumentDimensions struct {
337 state protoimpl.MessageState
338 sizeCache protoimpl.SizeCache
339 unknownFields protoimpl.UnknownFields
340
341 // Unit of the dimension.
342 Unit DocumentDimensions_DocumentDimensionUnit `protobuf:"varint,1,opt,name=unit,proto3,enum=google.cloud.automl.v1.DocumentDimensions_DocumentDimensionUnit" json:"unit,omitempty"`
343 // Width value of the document, works together with the unit.
344 Width float32 `protobuf:"fixed32,2,opt,name=width,proto3" json:"width,omitempty"`
345 // Height value of the document, works together with the unit.
346 Height float32 `protobuf:"fixed32,3,opt,name=height,proto3" json:"height,omitempty"`
347 }
348
349 func (x *DocumentDimensions) Reset() {
350 *x = DocumentDimensions{}
351 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[2]
352 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
353 ms.StoreMessageInfo(mi)
354 }
355
356 func (x *DocumentDimensions) String() string {
357 return protoimpl.X.MessageStringOf(x)
358 }
359
360 func (*DocumentDimensions) ProtoMessage() {}
361
362 func (x *DocumentDimensions) ProtoReflect() protoreflect.Message {
363 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[2]
364 if x != nil {
365 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
366 if ms.LoadMessageInfo() == nil {
367 ms.StoreMessageInfo(mi)
368 }
369 return ms
370 }
371 return mi.MessageOf(x)
372 }
373
374 // Deprecated: Use DocumentDimensions.ProtoReflect.Descriptor instead.
375 func (*DocumentDimensions) Descriptor() ([]byte, []int) {
376 return file_google_cloud_automl_v1_data_items_proto_rawDescGZIP(), []int{2}
377 }
378
379 func (x *DocumentDimensions) GetUnit() DocumentDimensions_DocumentDimensionUnit {
380 if x != nil {
381 return x.Unit
382 }
383 return DocumentDimensions_DOCUMENT_DIMENSION_UNIT_UNSPECIFIED
384 }
385
386 func (x *DocumentDimensions) GetWidth() float32 {
387 if x != nil {
388 return x.Width
389 }
390 return 0
391 }
392
393 func (x *DocumentDimensions) GetHeight() float32 {
394 if x != nil {
395 return x.Height
396 }
397 return 0
398 }
399
400 // A structured text document e.g. a PDF.
401 type Document struct {
402 state protoimpl.MessageState
403 sizeCache protoimpl.SizeCache
404 unknownFields protoimpl.UnknownFields
405
406 // An input config specifying the content of the document.
407 InputConfig *DocumentInputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
408 // The plain text version of this document.
409 DocumentText *TextSnippet `protobuf:"bytes,2,opt,name=document_text,json=documentText,proto3" json:"document_text,omitempty"`
410 // Describes the layout of the document.
411 // Sorted by [page_number][].
412 Layout []*Document_Layout `protobuf:"bytes,3,rep,name=layout,proto3" json:"layout,omitempty"`
413 // The dimensions of the page in the document.
414 DocumentDimensions *DocumentDimensions `protobuf:"bytes,4,opt,name=document_dimensions,json=documentDimensions,proto3" json:"document_dimensions,omitempty"`
415 // Number of pages in the document.
416 PageCount int32 `protobuf:"varint,5,opt,name=page_count,json=pageCount,proto3" json:"page_count,omitempty"`
417 }
418
419 func (x *Document) Reset() {
420 *x = Document{}
421 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[3]
422 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
423 ms.StoreMessageInfo(mi)
424 }
425
426 func (x *Document) String() string {
427 return protoimpl.X.MessageStringOf(x)
428 }
429
430 func (*Document) ProtoMessage() {}
431
432 func (x *Document) ProtoReflect() protoreflect.Message {
433 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[3]
434 if x != nil {
435 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
436 if ms.LoadMessageInfo() == nil {
437 ms.StoreMessageInfo(mi)
438 }
439 return ms
440 }
441 return mi.MessageOf(x)
442 }
443
444 // Deprecated: Use Document.ProtoReflect.Descriptor instead.
445 func (*Document) Descriptor() ([]byte, []int) {
446 return file_google_cloud_automl_v1_data_items_proto_rawDescGZIP(), []int{3}
447 }
448
449 func (x *Document) GetInputConfig() *DocumentInputConfig {
450 if x != nil {
451 return x.InputConfig
452 }
453 return nil
454 }
455
456 func (x *Document) GetDocumentText() *TextSnippet {
457 if x != nil {
458 return x.DocumentText
459 }
460 return nil
461 }
462
463 func (x *Document) GetLayout() []*Document_Layout {
464 if x != nil {
465 return x.Layout
466 }
467 return nil
468 }
469
470 func (x *Document) GetDocumentDimensions() *DocumentDimensions {
471 if x != nil {
472 return x.DocumentDimensions
473 }
474 return nil
475 }
476
477 func (x *Document) GetPageCount() int32 {
478 if x != nil {
479 return x.PageCount
480 }
481 return 0
482 }
483
484 // Example data used for training or prediction.
485 type ExamplePayload struct {
486 state protoimpl.MessageState
487 sizeCache protoimpl.SizeCache
488 unknownFields protoimpl.UnknownFields
489
490 // Required. The example data.
491 //
492 // Types that are assignable to Payload:
493 //
494 // *ExamplePayload_Image
495 // *ExamplePayload_TextSnippet
496 // *ExamplePayload_Document
497 Payload isExamplePayload_Payload `protobuf_oneof:"payload"`
498 }
499
500 func (x *ExamplePayload) Reset() {
501 *x = ExamplePayload{}
502 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[4]
503 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
504 ms.StoreMessageInfo(mi)
505 }
506
507 func (x *ExamplePayload) String() string {
508 return protoimpl.X.MessageStringOf(x)
509 }
510
511 func (*ExamplePayload) ProtoMessage() {}
512
513 func (x *ExamplePayload) ProtoReflect() protoreflect.Message {
514 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[4]
515 if x != nil {
516 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
517 if ms.LoadMessageInfo() == nil {
518 ms.StoreMessageInfo(mi)
519 }
520 return ms
521 }
522 return mi.MessageOf(x)
523 }
524
525 // Deprecated: Use ExamplePayload.ProtoReflect.Descriptor instead.
526 func (*ExamplePayload) Descriptor() ([]byte, []int) {
527 return file_google_cloud_automl_v1_data_items_proto_rawDescGZIP(), []int{4}
528 }
529
530 func (m *ExamplePayload) GetPayload() isExamplePayload_Payload {
531 if m != nil {
532 return m.Payload
533 }
534 return nil
535 }
536
537 func (x *ExamplePayload) GetImage() *Image {
538 if x, ok := x.GetPayload().(*ExamplePayload_Image); ok {
539 return x.Image
540 }
541 return nil
542 }
543
544 func (x *ExamplePayload) GetTextSnippet() *TextSnippet {
545 if x, ok := x.GetPayload().(*ExamplePayload_TextSnippet); ok {
546 return x.TextSnippet
547 }
548 return nil
549 }
550
551 func (x *ExamplePayload) GetDocument() *Document {
552 if x, ok := x.GetPayload().(*ExamplePayload_Document); ok {
553 return x.Document
554 }
555 return nil
556 }
557
558 type isExamplePayload_Payload interface {
559 isExamplePayload_Payload()
560 }
561
562 type ExamplePayload_Image struct {
563 // Example image.
564 Image *Image `protobuf:"bytes,1,opt,name=image,proto3,oneof"`
565 }
566
567 type ExamplePayload_TextSnippet struct {
568 // Example text.
569 TextSnippet *TextSnippet `protobuf:"bytes,2,opt,name=text_snippet,json=textSnippet,proto3,oneof"`
570 }
571
572 type ExamplePayload_Document struct {
573 // Example document.
574 Document *Document `protobuf:"bytes,4,opt,name=document,proto3,oneof"`
575 }
576
577 func (*ExamplePayload_Image) isExamplePayload_Payload() {}
578
579 func (*ExamplePayload_TextSnippet) isExamplePayload_Payload() {}
580
581 func (*ExamplePayload_Document) isExamplePayload_Payload() {}
582
583 // Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.
584 type Document_Layout struct {
585 state protoimpl.MessageState
586 sizeCache protoimpl.SizeCache
587 unknownFields protoimpl.UnknownFields
588
589 // Text Segment that represents a segment in
590 // [document_text][google.cloud.automl.v1p1beta.Document.document_text].
591 TextSegment *TextSegment `protobuf:"bytes,1,opt,name=text_segment,json=textSegment,proto3" json:"text_segment,omitempty"`
592 // Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
593 // from 1.
594 PageNumber int32 `protobuf:"varint,2,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"`
595 // The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
596 // Contains exactly 4
597 // [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices]
598 // and they are connected by edges in the order provided, which will
599 // represent a rectangle parallel to the frame. The
600 // [NormalizedVertex-s][google.cloud.automl.v1p1beta.NormalizedVertex] are
601 // relative to the page.
602 // Coordinates are based on top-left as point (0,0).
603 BoundingPoly *BoundingPoly `protobuf:"bytes,3,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"`
604 // The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
605 TextSegmentType Document_Layout_TextSegmentType `protobuf:"varint,4,opt,name=text_segment_type,json=textSegmentType,proto3,enum=google.cloud.automl.v1.Document_Layout_TextSegmentType" json:"text_segment_type,omitempty"`
606 }
607
608 func (x *Document_Layout) Reset() {
609 *x = Document_Layout{}
610 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[5]
611 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
612 ms.StoreMessageInfo(mi)
613 }
614
615 func (x *Document_Layout) String() string {
616 return protoimpl.X.MessageStringOf(x)
617 }
618
619 func (*Document_Layout) ProtoMessage() {}
620
621 func (x *Document_Layout) ProtoReflect() protoreflect.Message {
622 mi := &file_google_cloud_automl_v1_data_items_proto_msgTypes[5]
623 if x != nil {
624 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
625 if ms.LoadMessageInfo() == nil {
626 ms.StoreMessageInfo(mi)
627 }
628 return ms
629 }
630 return mi.MessageOf(x)
631 }
632
633 // Deprecated: Use Document_Layout.ProtoReflect.Descriptor instead.
634 func (*Document_Layout) Descriptor() ([]byte, []int) {
635 return file_google_cloud_automl_v1_data_items_proto_rawDescGZIP(), []int{3, 0}
636 }
637
638 func (x *Document_Layout) GetTextSegment() *TextSegment {
639 if x != nil {
640 return x.TextSegment
641 }
642 return nil
643 }
644
645 func (x *Document_Layout) GetPageNumber() int32 {
646 if x != nil {
647 return x.PageNumber
648 }
649 return 0
650 }
651
652 func (x *Document_Layout) GetBoundingPoly() *BoundingPoly {
653 if x != nil {
654 return x.BoundingPoly
655 }
656 return nil
657 }
658
659 func (x *Document_Layout) GetTextSegmentType() Document_Layout_TextSegmentType {
660 if x != nil {
661 return x.TextSegmentType
662 }
663 return Document_Layout_TEXT_SEGMENT_TYPE_UNSPECIFIED
664 }
665
666 var File_google_cloud_automl_v1_data_items_proto protoreflect.FileDescriptor
667
668 var file_google_cloud_automl_v1_data_items_proto_rawDesc = []byte{
669 0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
670 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x69, 0x74,
671 0x65, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
672 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76,
673 0x31, 0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
674 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74,
675 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
676 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31,
677 0x2f, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
678 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76,
679 0x31, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70,
680 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a,
681 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01,
682 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73,
683 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x5f, 0x75, 0x72,
684 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61,
685 0x69, 0x6c, 0x55, 0x72, 0x69, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x65, 0x0a,
686 0x0b, 0x54, 0x65, 0x78, 0x74, 0x53, 0x6e, 0x69, 0x70, 0x70, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07,
687 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
688 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74,
689 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54,
690 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x75,
691 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
692 0x74, 0x55, 0x72, 0x69, 0x22, 0xff, 0x01, 0x0a, 0x12, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e,
693 0x74, 0x44, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x54, 0x0a, 0x04, 0x75,
694 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
695 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e,
696 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x6d, 0x65, 0x6e,
697 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x69,
698 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x69, 0x74, 0x52, 0x04, 0x75, 0x6e, 0x69,
699 0x74, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02,
700 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68,
701 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22,
702 0x65, 0x0a, 0x15, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x6d, 0x65, 0x6e,
703 0x73, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x4f, 0x43, 0x55,
704 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x44, 0x49, 0x4d, 0x45, 0x4e, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55,
705 0x4e, 0x49, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
706 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x43, 0x48, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x43,
707 0x45, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x50,
708 0x4f, 0x49, 0x4e, 0x54, 0x10, 0x03, 0x22, 0xd0, 0x06, 0x0a, 0x08, 0x44, 0x6f, 0x63, 0x75, 0x6d,
709 0x65, 0x6e, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e,
710 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
711 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e,
712 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x70, 0x75, 0x74,
713 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e,
714 0x66, 0x69, 0x67, 0x12, 0x48, 0x0a, 0x0d, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f,
715 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f,
716 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c,
717 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x53, 0x6e, 0x69, 0x70, 0x70, 0x65, 0x74, 0x52,
718 0x0c, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x65, 0x78, 0x74, 0x12, 0x3f, 0x0a,
719 0x06, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e,
720 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74,
721 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x2e,
722 0x4c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x52, 0x06, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x12, 0x5b,
723 0x0a, 0x13, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x6d, 0x65, 0x6e,
724 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f,
725 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d,
726 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x6d,
727 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x12, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e,
728 0x74, 0x44, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
729 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52,
730 0x09, 0x70, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0xec, 0x03, 0x0a, 0x06, 0x4c,
731 0x61, 0x79, 0x6f, 0x75, 0x74, 0x12, 0x46, 0x0a, 0x0c, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x65,
732 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f,
733 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d,
734 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74,
735 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a,
736 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
737 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x49,
738 0x0a, 0x0d, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x79, 0x18,
739 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
740 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x42,
741 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x75,
742 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x79, 0x12, 0x63, 0x0a, 0x11, 0x74, 0x65, 0x78,
743 0x74, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04,
744 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
745 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f,
746 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x2e, 0x54, 0x65,
747 0x78, 0x74, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0f, 0x74,
748 0x65, 0x78, 0x74, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0xc8,
749 0x01, 0x0a, 0x0f, 0x54, 0x65, 0x78, 0x74, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79,
750 0x70, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x53, 0x45, 0x47, 0x4d, 0x45,
751 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
752 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01,
753 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x41, 0x52, 0x41, 0x47, 0x52, 0x41, 0x50, 0x48, 0x10, 0x02, 0x12,
754 0x0e, 0x0a, 0x0a, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x03, 0x12,
755 0x13, 0x0a, 0x0f, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x4e, 0x41,
756 0x4d, 0x45, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x46, 0x49, 0x45,
757 0x4c, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x53, 0x10, 0x05, 0x12, 0x09, 0x0a,
758 0x05, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x06, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x41, 0x42, 0x4c,
759 0x45, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x41,
760 0x42, 0x4c, 0x45, 0x5f, 0x52, 0x4f, 0x57, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x41, 0x42,
761 0x4c, 0x45, 0x5f, 0x43, 0x45, 0x4c, 0x4c, 0x10, 0x09, 0x22, 0xdc, 0x01, 0x0a, 0x0e, 0x45, 0x78,
762 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x35, 0x0a, 0x05,
763 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f,
764 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d,
765 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x05, 0x69, 0x6d,
766 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x0c, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x6e, 0x69, 0x70,
767 0x70, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
768 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e,
769 0x76, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x53, 0x6e, 0x69, 0x70, 0x70, 0x65, 0x74, 0x48, 0x00,
770 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74, 0x53, 0x6e, 0x69, 0x70, 0x70, 0x65, 0x74, 0x12, 0x3e, 0x0a,
771 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
772 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
773 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e,
774 0x74, 0x48, 0x00, 0x52, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x09, 0x0a,
775 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0xa0, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d,
776 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75,
777 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64,
778 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61,
779 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x6f,
780 0x6d, 0x6c, 0x70, 0x62, 0x3b, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x70, 0x62, 0xaa, 0x02, 0x16,
781 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x75, 0x74,
782 0x6f, 0x4d, 0x4c, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
783 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x6c, 0x5c, 0x56, 0x31, 0xea,
784 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a,
785 0x3a, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
786 0x74, 0x6f, 0x33,
787 }
788
789 var (
790 file_google_cloud_automl_v1_data_items_proto_rawDescOnce sync.Once
791 file_google_cloud_automl_v1_data_items_proto_rawDescData = file_google_cloud_automl_v1_data_items_proto_rawDesc
792 )
793
794 func file_google_cloud_automl_v1_data_items_proto_rawDescGZIP() []byte {
795 file_google_cloud_automl_v1_data_items_proto_rawDescOnce.Do(func() {
796 file_google_cloud_automl_v1_data_items_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_automl_v1_data_items_proto_rawDescData)
797 })
798 return file_google_cloud_automl_v1_data_items_proto_rawDescData
799 }
800
801 var file_google_cloud_automl_v1_data_items_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
802 var file_google_cloud_automl_v1_data_items_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
803 var file_google_cloud_automl_v1_data_items_proto_goTypes = []any{
804 (DocumentDimensions_DocumentDimensionUnit)(0), // 0: google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit
805 (Document_Layout_TextSegmentType)(0), // 1: google.cloud.automl.v1.Document.Layout.TextSegmentType
806 (*Image)(nil), // 2: google.cloud.automl.v1.Image
807 (*TextSnippet)(nil), // 3: google.cloud.automl.v1.TextSnippet
808 (*DocumentDimensions)(nil), // 4: google.cloud.automl.v1.DocumentDimensions
809 (*Document)(nil), // 5: google.cloud.automl.v1.Document
810 (*ExamplePayload)(nil), // 6: google.cloud.automl.v1.ExamplePayload
811 (*Document_Layout)(nil), // 7: google.cloud.automl.v1.Document.Layout
812 (*DocumentInputConfig)(nil), // 8: google.cloud.automl.v1.DocumentInputConfig
813 (*TextSegment)(nil), // 9: google.cloud.automl.v1.TextSegment
814 (*BoundingPoly)(nil), // 10: google.cloud.automl.v1.BoundingPoly
815 }
816 var file_google_cloud_automl_v1_data_items_proto_depIdxs = []int32{
817 0, // 0: google.cloud.automl.v1.DocumentDimensions.unit:type_name -> google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit
818 8, // 1: google.cloud.automl.v1.Document.input_config:type_name -> google.cloud.automl.v1.DocumentInputConfig
819 3, // 2: google.cloud.automl.v1.Document.document_text:type_name -> google.cloud.automl.v1.TextSnippet
820 7, // 3: google.cloud.automl.v1.Document.layout:type_name -> google.cloud.automl.v1.Document.Layout
821 4, // 4: google.cloud.automl.v1.Document.document_dimensions:type_name -> google.cloud.automl.v1.DocumentDimensions
822 2, // 5: google.cloud.automl.v1.ExamplePayload.image:type_name -> google.cloud.automl.v1.Image
823 3, // 6: google.cloud.automl.v1.ExamplePayload.text_snippet:type_name -> google.cloud.automl.v1.TextSnippet
824 5, // 7: google.cloud.automl.v1.ExamplePayload.document:type_name -> google.cloud.automl.v1.Document
825 9, // 8: google.cloud.automl.v1.Document.Layout.text_segment:type_name -> google.cloud.automl.v1.TextSegment
826 10, // 9: google.cloud.automl.v1.Document.Layout.bounding_poly:type_name -> google.cloud.automl.v1.BoundingPoly
827 1, // 10: google.cloud.automl.v1.Document.Layout.text_segment_type:type_name -> google.cloud.automl.v1.Document.Layout.TextSegmentType
828 11, // [11:11] is the sub-list for method output_type
829 11, // [11:11] is the sub-list for method input_type
830 11, // [11:11] is the sub-list for extension type_name
831 11, // [11:11] is the sub-list for extension extendee
832 0, // [0:11] is the sub-list for field type_name
833 }
834
835 func init() { file_google_cloud_automl_v1_data_items_proto_init() }
836 func file_google_cloud_automl_v1_data_items_proto_init() {
837 if File_google_cloud_automl_v1_data_items_proto != nil {
838 return
839 }
840 file_google_cloud_automl_v1_geometry_proto_init()
841 file_google_cloud_automl_v1_io_proto_init()
842 file_google_cloud_automl_v1_text_segment_proto_init()
843 file_google_cloud_automl_v1_data_items_proto_msgTypes[0].OneofWrappers = []any{
844 (*Image_ImageBytes)(nil),
845 }
846 file_google_cloud_automl_v1_data_items_proto_msgTypes[4].OneofWrappers = []any{
847 (*ExamplePayload_Image)(nil),
848 (*ExamplePayload_TextSnippet)(nil),
849 (*ExamplePayload_Document)(nil),
850 }
851 type x struct{}
852 out := protoimpl.TypeBuilder{
853 File: protoimpl.DescBuilder{
854 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
855 RawDescriptor: file_google_cloud_automl_v1_data_items_proto_rawDesc,
856 NumEnums: 2,
857 NumMessages: 6,
858 NumExtensions: 0,
859 NumServices: 0,
860 },
861 GoTypes: file_google_cloud_automl_v1_data_items_proto_goTypes,
862 DependencyIndexes: file_google_cloud_automl_v1_data_items_proto_depIdxs,
863 EnumInfos: file_google_cloud_automl_v1_data_items_proto_enumTypes,
864 MessageInfos: file_google_cloud_automl_v1_data_items_proto_msgTypes,
865 }.Build()
866 File_google_cloud_automl_v1_data_items_proto = out.File
867 file_google_cloud_automl_v1_data_items_proto_rawDesc = nil
868 file_google_cloud_automl_v1_data_items_proto_goTypes = nil
869 file_google_cloud_automl_v1_data_items_proto_depIdxs = nil
870 }