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