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