1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/automl/v1beta1/data_items.proto 3 4package automl 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 _ "github.com/golang/protobuf/ptypes/any" 12 _ "github.com/golang/protobuf/ptypes/duration" 13 _struct "github.com/golang/protobuf/ptypes/struct" 14 _ "google.golang.org/genproto/googleapis/api/annotations" 15) 16 17// Reference imports to suppress errors if they are not otherwise used. 18var _ = proto.Marshal 19var _ = fmt.Errorf 20var _ = math.Inf 21 22// This is a compile-time assertion to ensure that this generated file 23// is compatible with the proto package it is being compiled against. 24// A compilation error at this line likely means your copy of the 25// proto package needs to be updated. 26const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 27 28// Unit of the document dimension. 29type DocumentDimensions_DocumentDimensionUnit int32 30 31const ( 32 // Should not be used. 33 DocumentDimensions_DOCUMENT_DIMENSION_UNIT_UNSPECIFIED DocumentDimensions_DocumentDimensionUnit = 0 34 // Document dimension is measured in inches. 35 DocumentDimensions_INCH DocumentDimensions_DocumentDimensionUnit = 1 36 // Document dimension is measured in centimeters. 37 DocumentDimensions_CENTIMETER DocumentDimensions_DocumentDimensionUnit = 2 38 // Document dimension is measured in points. 72 points = 1 inch. 39 DocumentDimensions_POINT DocumentDimensions_DocumentDimensionUnit = 3 40) 41 42var DocumentDimensions_DocumentDimensionUnit_name = map[int32]string{ 43 0: "DOCUMENT_DIMENSION_UNIT_UNSPECIFIED", 44 1: "INCH", 45 2: "CENTIMETER", 46 3: "POINT", 47} 48 49var DocumentDimensions_DocumentDimensionUnit_value = map[string]int32{ 50 "DOCUMENT_DIMENSION_UNIT_UNSPECIFIED": 0, 51 "INCH": 1, 52 "CENTIMETER": 2, 53 "POINT": 3, 54} 55 56func (x DocumentDimensions_DocumentDimensionUnit) String() string { 57 return proto.EnumName(DocumentDimensions_DocumentDimensionUnit_name, int32(x)) 58} 59 60func (DocumentDimensions_DocumentDimensionUnit) EnumDescriptor() ([]byte, []int) { 61 return fileDescriptor_bd1fd4e23d5f1ca3, []int{2, 0} 62} 63 64// The type of TextSegment in the context of the original document. 65type Document_Layout_TextSegmentType int32 66 67const ( 68 // Should not be used. 69 Document_Layout_TEXT_SEGMENT_TYPE_UNSPECIFIED Document_Layout_TextSegmentType = 0 70 // The text segment is a token. e.g. word. 71 Document_Layout_TOKEN Document_Layout_TextSegmentType = 1 72 // The text segment is a paragraph. 73 Document_Layout_PARAGRAPH Document_Layout_TextSegmentType = 2 74 // The text segment is a form field. 75 Document_Layout_FORM_FIELD Document_Layout_TextSegmentType = 3 76 // The text segment is the name part of a form field. It will be treated 77 // as child of another FORM_FIELD TextSegment if its span is subspan of 78 // another TextSegment with type FORM_FIELD. 79 Document_Layout_FORM_FIELD_NAME Document_Layout_TextSegmentType = 4 80 // The text segment is the text content part of a form field. It will be 81 // treated as child of another FORM_FIELD TextSegment if its span is 82 // subspan of another TextSegment with type FORM_FIELD. 83 Document_Layout_FORM_FIELD_CONTENTS Document_Layout_TextSegmentType = 5 84 // The text segment is a whole table, including headers, and all rows. 85 Document_Layout_TABLE Document_Layout_TextSegmentType = 6 86 // The text segment is a table's headers. It will be treated as child of 87 // another TABLE TextSegment if its span is subspan of another TextSegment 88 // with type TABLE. 89 Document_Layout_TABLE_HEADER Document_Layout_TextSegmentType = 7 90 // The text segment is a row in table. It will be treated as child of 91 // another TABLE TextSegment if its span is subspan of another TextSegment 92 // with type TABLE. 93 Document_Layout_TABLE_ROW Document_Layout_TextSegmentType = 8 94 // The text segment is a cell in table. It will be treated as child of 95 // another TABLE_ROW TextSegment if its span is subspan of another 96 // TextSegment with type TABLE_ROW. 97 Document_Layout_TABLE_CELL Document_Layout_TextSegmentType = 9 98) 99 100var Document_Layout_TextSegmentType_name = map[int32]string{ 101 0: "TEXT_SEGMENT_TYPE_UNSPECIFIED", 102 1: "TOKEN", 103 2: "PARAGRAPH", 104 3: "FORM_FIELD", 105 4: "FORM_FIELD_NAME", 106 5: "FORM_FIELD_CONTENTS", 107 6: "TABLE", 108 7: "TABLE_HEADER", 109 8: "TABLE_ROW", 110 9: "TABLE_CELL", 111} 112 113var Document_Layout_TextSegmentType_value = map[string]int32{ 114 "TEXT_SEGMENT_TYPE_UNSPECIFIED": 0, 115 "TOKEN": 1, 116 "PARAGRAPH": 2, 117 "FORM_FIELD": 3, 118 "FORM_FIELD_NAME": 4, 119 "FORM_FIELD_CONTENTS": 5, 120 "TABLE": 6, 121 "TABLE_HEADER": 7, 122 "TABLE_ROW": 8, 123 "TABLE_CELL": 9, 124} 125 126func (x Document_Layout_TextSegmentType) String() string { 127 return proto.EnumName(Document_Layout_TextSegmentType_name, int32(x)) 128} 129 130func (Document_Layout_TextSegmentType) EnumDescriptor() ([]byte, []int) { 131 return fileDescriptor_bd1fd4e23d5f1ca3, []int{3, 0, 0} 132} 133 134// A representation of an image. 135// Only images up to 30MB in size are supported. 136type Image struct { 137 // Input only. The data representing the image. 138 // For Predict calls [image_bytes][] must be set, as other options are not 139 // currently supported by prediction API. You can read the contents of an 140 // uploaded image by using the [content_uri][] field. 141 // 142 // Types that are valid to be assigned to Data: 143 // *Image_ImageBytes 144 // *Image_InputConfig 145 Data isImage_Data `protobuf_oneof:"data"` 146 // Output only. HTTP URI to the thumbnail image. 147 ThumbnailUri string `protobuf:"bytes,4,opt,name=thumbnail_uri,json=thumbnailUri,proto3" json:"thumbnail_uri,omitempty"` 148 XXX_NoUnkeyedLiteral struct{} `json:"-"` 149 XXX_unrecognized []byte `json:"-"` 150 XXX_sizecache int32 `json:"-"` 151} 152 153func (m *Image) Reset() { *m = Image{} } 154func (m *Image) String() string { return proto.CompactTextString(m) } 155func (*Image) ProtoMessage() {} 156func (*Image) Descriptor() ([]byte, []int) { 157 return fileDescriptor_bd1fd4e23d5f1ca3, []int{0} 158} 159 160func (m *Image) XXX_Unmarshal(b []byte) error { 161 return xxx_messageInfo_Image.Unmarshal(m, b) 162} 163func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 164 return xxx_messageInfo_Image.Marshal(b, m, deterministic) 165} 166func (m *Image) XXX_Merge(src proto.Message) { 167 xxx_messageInfo_Image.Merge(m, src) 168} 169func (m *Image) XXX_Size() int { 170 return xxx_messageInfo_Image.Size(m) 171} 172func (m *Image) XXX_DiscardUnknown() { 173 xxx_messageInfo_Image.DiscardUnknown(m) 174} 175 176var xxx_messageInfo_Image proto.InternalMessageInfo 177 178type isImage_Data interface { 179 isImage_Data() 180} 181 182type Image_ImageBytes struct { 183 ImageBytes []byte `protobuf:"bytes,1,opt,name=image_bytes,json=imageBytes,proto3,oneof"` 184} 185 186type Image_InputConfig struct { 187 InputConfig *InputConfig `protobuf:"bytes,6,opt,name=input_config,json=inputConfig,proto3,oneof"` 188} 189 190func (*Image_ImageBytes) isImage_Data() {} 191 192func (*Image_InputConfig) isImage_Data() {} 193 194func (m *Image) GetData() isImage_Data { 195 if m != nil { 196 return m.Data 197 } 198 return nil 199} 200 201func (m *Image) GetImageBytes() []byte { 202 if x, ok := m.GetData().(*Image_ImageBytes); ok { 203 return x.ImageBytes 204 } 205 return nil 206} 207 208func (m *Image) GetInputConfig() *InputConfig { 209 if x, ok := m.GetData().(*Image_InputConfig); ok { 210 return x.InputConfig 211 } 212 return nil 213} 214 215func (m *Image) GetThumbnailUri() string { 216 if m != nil { 217 return m.ThumbnailUri 218 } 219 return "" 220} 221 222// XXX_OneofWrappers is for the internal use of the proto package. 223func (*Image) XXX_OneofWrappers() []interface{} { 224 return []interface{}{ 225 (*Image_ImageBytes)(nil), 226 (*Image_InputConfig)(nil), 227 } 228} 229 230// A representation of a text snippet. 231type TextSnippet struct { 232 // Required. The content of the text snippet as a string. Up to 250000 233 // characters long. 234 Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` 235 // Optional. The format of 236 // [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the 237 // only two allowed values are "text/html" and "text/plain". If left blank, 238 // the format is automatically determined from the type of the uploaded 239 // [content][google.cloud.automl.v1beta1.TextSnippet.content]. 240 MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` 241 // Output only. HTTP URI where you can download the content. 242 ContentUri string `protobuf:"bytes,4,opt,name=content_uri,json=contentUri,proto3" json:"content_uri,omitempty"` 243 XXX_NoUnkeyedLiteral struct{} `json:"-"` 244 XXX_unrecognized []byte `json:"-"` 245 XXX_sizecache int32 `json:"-"` 246} 247 248func (m *TextSnippet) Reset() { *m = TextSnippet{} } 249func (m *TextSnippet) String() string { return proto.CompactTextString(m) } 250func (*TextSnippet) ProtoMessage() {} 251func (*TextSnippet) Descriptor() ([]byte, []int) { 252 return fileDescriptor_bd1fd4e23d5f1ca3, []int{1} 253} 254 255func (m *TextSnippet) XXX_Unmarshal(b []byte) error { 256 return xxx_messageInfo_TextSnippet.Unmarshal(m, b) 257} 258func (m *TextSnippet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 259 return xxx_messageInfo_TextSnippet.Marshal(b, m, deterministic) 260} 261func (m *TextSnippet) XXX_Merge(src proto.Message) { 262 xxx_messageInfo_TextSnippet.Merge(m, src) 263} 264func (m *TextSnippet) XXX_Size() int { 265 return xxx_messageInfo_TextSnippet.Size(m) 266} 267func (m *TextSnippet) XXX_DiscardUnknown() { 268 xxx_messageInfo_TextSnippet.DiscardUnknown(m) 269} 270 271var xxx_messageInfo_TextSnippet proto.InternalMessageInfo 272 273func (m *TextSnippet) GetContent() string { 274 if m != nil { 275 return m.Content 276 } 277 return "" 278} 279 280func (m *TextSnippet) GetMimeType() string { 281 if m != nil { 282 return m.MimeType 283 } 284 return "" 285} 286 287func (m *TextSnippet) GetContentUri() string { 288 if m != nil { 289 return m.ContentUri 290 } 291 return "" 292} 293 294// Message that describes dimension of a document. 295type DocumentDimensions struct { 296 // Unit of the dimension. 297 Unit DocumentDimensions_DocumentDimensionUnit `protobuf:"varint,1,opt,name=unit,proto3,enum=google.cloud.automl.v1beta1.DocumentDimensions_DocumentDimensionUnit" json:"unit,omitempty"` 298 // Width value of the document, works together with the unit. 299 Width float32 `protobuf:"fixed32,2,opt,name=width,proto3" json:"width,omitempty"` 300 // Height value of the document, works together with the unit. 301 Height float32 `protobuf:"fixed32,3,opt,name=height,proto3" json:"height,omitempty"` 302 XXX_NoUnkeyedLiteral struct{} `json:"-"` 303 XXX_unrecognized []byte `json:"-"` 304 XXX_sizecache int32 `json:"-"` 305} 306 307func (m *DocumentDimensions) Reset() { *m = DocumentDimensions{} } 308func (m *DocumentDimensions) String() string { return proto.CompactTextString(m) } 309func (*DocumentDimensions) ProtoMessage() {} 310func (*DocumentDimensions) Descriptor() ([]byte, []int) { 311 return fileDescriptor_bd1fd4e23d5f1ca3, []int{2} 312} 313 314func (m *DocumentDimensions) XXX_Unmarshal(b []byte) error { 315 return xxx_messageInfo_DocumentDimensions.Unmarshal(m, b) 316} 317func (m *DocumentDimensions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 318 return xxx_messageInfo_DocumentDimensions.Marshal(b, m, deterministic) 319} 320func (m *DocumentDimensions) XXX_Merge(src proto.Message) { 321 xxx_messageInfo_DocumentDimensions.Merge(m, src) 322} 323func (m *DocumentDimensions) XXX_Size() int { 324 return xxx_messageInfo_DocumentDimensions.Size(m) 325} 326func (m *DocumentDimensions) XXX_DiscardUnknown() { 327 xxx_messageInfo_DocumentDimensions.DiscardUnknown(m) 328} 329 330var xxx_messageInfo_DocumentDimensions proto.InternalMessageInfo 331 332func (m *DocumentDimensions) GetUnit() DocumentDimensions_DocumentDimensionUnit { 333 if m != nil { 334 return m.Unit 335 } 336 return DocumentDimensions_DOCUMENT_DIMENSION_UNIT_UNSPECIFIED 337} 338 339func (m *DocumentDimensions) GetWidth() float32 { 340 if m != nil { 341 return m.Width 342 } 343 return 0 344} 345 346func (m *DocumentDimensions) GetHeight() float32 { 347 if m != nil { 348 return m.Height 349 } 350 return 0 351} 352 353// A structured text document e.g. a PDF. 354type Document struct { 355 // An input config specifying the content of the document. 356 InputConfig *DocumentInputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` 357 // The plain text version of this document. 358 DocumentText *TextSnippet `protobuf:"bytes,2,opt,name=document_text,json=documentText,proto3" json:"document_text,omitempty"` 359 // Describes the layout of the document. 360 // Sorted by [page_number][]. 361 Layout []*Document_Layout `protobuf:"bytes,3,rep,name=layout,proto3" json:"layout,omitempty"` 362 // The dimensions of the page in the document. 363 DocumentDimensions *DocumentDimensions `protobuf:"bytes,4,opt,name=document_dimensions,json=documentDimensions,proto3" json:"document_dimensions,omitempty"` 364 // Number of pages in the document. 365 PageCount int32 `protobuf:"varint,5,opt,name=page_count,json=pageCount,proto3" json:"page_count,omitempty"` 366 XXX_NoUnkeyedLiteral struct{} `json:"-"` 367 XXX_unrecognized []byte `json:"-"` 368 XXX_sizecache int32 `json:"-"` 369} 370 371func (m *Document) Reset() { *m = Document{} } 372func (m *Document) String() string { return proto.CompactTextString(m) } 373func (*Document) ProtoMessage() {} 374func (*Document) Descriptor() ([]byte, []int) { 375 return fileDescriptor_bd1fd4e23d5f1ca3, []int{3} 376} 377 378func (m *Document) XXX_Unmarshal(b []byte) error { 379 return xxx_messageInfo_Document.Unmarshal(m, b) 380} 381func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 382 return xxx_messageInfo_Document.Marshal(b, m, deterministic) 383} 384func (m *Document) XXX_Merge(src proto.Message) { 385 xxx_messageInfo_Document.Merge(m, src) 386} 387func (m *Document) XXX_Size() int { 388 return xxx_messageInfo_Document.Size(m) 389} 390func (m *Document) XXX_DiscardUnknown() { 391 xxx_messageInfo_Document.DiscardUnknown(m) 392} 393 394var xxx_messageInfo_Document proto.InternalMessageInfo 395 396func (m *Document) GetInputConfig() *DocumentInputConfig { 397 if m != nil { 398 return m.InputConfig 399 } 400 return nil 401} 402 403func (m *Document) GetDocumentText() *TextSnippet { 404 if m != nil { 405 return m.DocumentText 406 } 407 return nil 408} 409 410func (m *Document) GetLayout() []*Document_Layout { 411 if m != nil { 412 return m.Layout 413 } 414 return nil 415} 416 417func (m *Document) GetDocumentDimensions() *DocumentDimensions { 418 if m != nil { 419 return m.DocumentDimensions 420 } 421 return nil 422} 423 424func (m *Document) GetPageCount() int32 { 425 if m != nil { 426 return m.PageCount 427 } 428 return 0 429} 430 431// Describes the layout information of a 432// [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in 433// the document. 434type Document_Layout struct { 435 // Text Segment that represents a segment in 436 // [document_text][google.cloud.automl.v1beta1.Document.document_text]. 437 TextSegment *TextSegment `protobuf:"bytes,1,opt,name=text_segment,json=textSegment,proto3" json:"text_segment,omitempty"` 438 // Page number of the 439 // [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] 440 // in the original document, starts from 1. 441 PageNumber int32 `protobuf:"varint,2,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` 442 // The position of the 443 // [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] 444 // in the page. Contains exactly 4 445 // 446 // [normalized_vertices][google.cloud.automl.v1beta1.BoundingPoly.normalized_vertices] 447 // and they are connected by edges in the order provided, which will 448 // represent a rectangle parallel to the frame. The 449 // [NormalizedVertex-s][google.cloud.automl.v1beta1.NormalizedVertex] are 450 // relative to the page. 451 // Coordinates are based on top-left as point (0,0). 452 BoundingPoly *BoundingPoly `protobuf:"bytes,3,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"` 453 // The type of the 454 // [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] 455 // in document. 456 TextSegmentType Document_Layout_TextSegmentType `protobuf:"varint,4,opt,name=text_segment_type,json=textSegmentType,proto3,enum=google.cloud.automl.v1beta1.Document_Layout_TextSegmentType" json:"text_segment_type,omitempty"` 457 XXX_NoUnkeyedLiteral struct{} `json:"-"` 458 XXX_unrecognized []byte `json:"-"` 459 XXX_sizecache int32 `json:"-"` 460} 461 462func (m *Document_Layout) Reset() { *m = Document_Layout{} } 463func (m *Document_Layout) String() string { return proto.CompactTextString(m) } 464func (*Document_Layout) ProtoMessage() {} 465func (*Document_Layout) Descriptor() ([]byte, []int) { 466 return fileDescriptor_bd1fd4e23d5f1ca3, []int{3, 0} 467} 468 469func (m *Document_Layout) XXX_Unmarshal(b []byte) error { 470 return xxx_messageInfo_Document_Layout.Unmarshal(m, b) 471} 472func (m *Document_Layout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 473 return xxx_messageInfo_Document_Layout.Marshal(b, m, deterministic) 474} 475func (m *Document_Layout) XXX_Merge(src proto.Message) { 476 xxx_messageInfo_Document_Layout.Merge(m, src) 477} 478func (m *Document_Layout) XXX_Size() int { 479 return xxx_messageInfo_Document_Layout.Size(m) 480} 481func (m *Document_Layout) XXX_DiscardUnknown() { 482 xxx_messageInfo_Document_Layout.DiscardUnknown(m) 483} 484 485var xxx_messageInfo_Document_Layout proto.InternalMessageInfo 486 487func (m *Document_Layout) GetTextSegment() *TextSegment { 488 if m != nil { 489 return m.TextSegment 490 } 491 return nil 492} 493 494func (m *Document_Layout) GetPageNumber() int32 { 495 if m != nil { 496 return m.PageNumber 497 } 498 return 0 499} 500 501func (m *Document_Layout) GetBoundingPoly() *BoundingPoly { 502 if m != nil { 503 return m.BoundingPoly 504 } 505 return nil 506} 507 508func (m *Document_Layout) GetTextSegmentType() Document_Layout_TextSegmentType { 509 if m != nil { 510 return m.TextSegmentType 511 } 512 return Document_Layout_TEXT_SEGMENT_TYPE_UNSPECIFIED 513} 514 515// A representation of a row in a relational table. 516type Row struct { 517 // The resource IDs of the column specs describing the columns of the row. 518 // If set must contain, but possibly in a different order, all input 519 // feature 520 // 521 // [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] 522 // of the Model this row is being passed to. 523 // Note: The below `values` field must match order of this field, if this 524 // field is set. 525 ColumnSpecIds []string `protobuf:"bytes,2,rep,name=column_spec_ids,json=columnSpecIds,proto3" json:"column_spec_ids,omitempty"` 526 // Required. The values of the row cells, given in the same order as the 527 // column_spec_ids, or, if not set, then in the same order as input 528 // feature 529 // 530 // [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] 531 // of the Model this row is being passed to. 532 Values []*_struct.Value `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` 533 XXX_NoUnkeyedLiteral struct{} `json:"-"` 534 XXX_unrecognized []byte `json:"-"` 535 XXX_sizecache int32 `json:"-"` 536} 537 538func (m *Row) Reset() { *m = Row{} } 539func (m *Row) String() string { return proto.CompactTextString(m) } 540func (*Row) ProtoMessage() {} 541func (*Row) Descriptor() ([]byte, []int) { 542 return fileDescriptor_bd1fd4e23d5f1ca3, []int{4} 543} 544 545func (m *Row) XXX_Unmarshal(b []byte) error { 546 return xxx_messageInfo_Row.Unmarshal(m, b) 547} 548func (m *Row) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 549 return xxx_messageInfo_Row.Marshal(b, m, deterministic) 550} 551func (m *Row) XXX_Merge(src proto.Message) { 552 xxx_messageInfo_Row.Merge(m, src) 553} 554func (m *Row) XXX_Size() int { 555 return xxx_messageInfo_Row.Size(m) 556} 557func (m *Row) XXX_DiscardUnknown() { 558 xxx_messageInfo_Row.DiscardUnknown(m) 559} 560 561var xxx_messageInfo_Row proto.InternalMessageInfo 562 563func (m *Row) GetColumnSpecIds() []string { 564 if m != nil { 565 return m.ColumnSpecIds 566 } 567 return nil 568} 569 570func (m *Row) GetValues() []*_struct.Value { 571 if m != nil { 572 return m.Values 573 } 574 return nil 575} 576 577// Example data used for training or prediction. 578type ExamplePayload struct { 579 // Required. Input only. The example data. 580 // 581 // Types that are valid to be assigned to Payload: 582 // *ExamplePayload_Image 583 // *ExamplePayload_TextSnippet 584 // *ExamplePayload_Document 585 // *ExamplePayload_Row 586 Payload isExamplePayload_Payload `protobuf_oneof:"payload"` 587 XXX_NoUnkeyedLiteral struct{} `json:"-"` 588 XXX_unrecognized []byte `json:"-"` 589 XXX_sizecache int32 `json:"-"` 590} 591 592func (m *ExamplePayload) Reset() { *m = ExamplePayload{} } 593func (m *ExamplePayload) String() string { return proto.CompactTextString(m) } 594func (*ExamplePayload) ProtoMessage() {} 595func (*ExamplePayload) Descriptor() ([]byte, []int) { 596 return fileDescriptor_bd1fd4e23d5f1ca3, []int{5} 597} 598 599func (m *ExamplePayload) XXX_Unmarshal(b []byte) error { 600 return xxx_messageInfo_ExamplePayload.Unmarshal(m, b) 601} 602func (m *ExamplePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 603 return xxx_messageInfo_ExamplePayload.Marshal(b, m, deterministic) 604} 605func (m *ExamplePayload) XXX_Merge(src proto.Message) { 606 xxx_messageInfo_ExamplePayload.Merge(m, src) 607} 608func (m *ExamplePayload) XXX_Size() int { 609 return xxx_messageInfo_ExamplePayload.Size(m) 610} 611func (m *ExamplePayload) XXX_DiscardUnknown() { 612 xxx_messageInfo_ExamplePayload.DiscardUnknown(m) 613} 614 615var xxx_messageInfo_ExamplePayload proto.InternalMessageInfo 616 617type isExamplePayload_Payload interface { 618 isExamplePayload_Payload() 619} 620 621type ExamplePayload_Image struct { 622 Image *Image `protobuf:"bytes,1,opt,name=image,proto3,oneof"` 623} 624 625type ExamplePayload_TextSnippet struct { 626 TextSnippet *TextSnippet `protobuf:"bytes,2,opt,name=text_snippet,json=textSnippet,proto3,oneof"` 627} 628 629type ExamplePayload_Document struct { 630 Document *Document `protobuf:"bytes,4,opt,name=document,proto3,oneof"` 631} 632 633type ExamplePayload_Row struct { 634 Row *Row `protobuf:"bytes,3,opt,name=row,proto3,oneof"` 635} 636 637func (*ExamplePayload_Image) isExamplePayload_Payload() {} 638 639func (*ExamplePayload_TextSnippet) isExamplePayload_Payload() {} 640 641func (*ExamplePayload_Document) isExamplePayload_Payload() {} 642 643func (*ExamplePayload_Row) isExamplePayload_Payload() {} 644 645func (m *ExamplePayload) GetPayload() isExamplePayload_Payload { 646 if m != nil { 647 return m.Payload 648 } 649 return nil 650} 651 652func (m *ExamplePayload) GetImage() *Image { 653 if x, ok := m.GetPayload().(*ExamplePayload_Image); ok { 654 return x.Image 655 } 656 return nil 657} 658 659func (m *ExamplePayload) GetTextSnippet() *TextSnippet { 660 if x, ok := m.GetPayload().(*ExamplePayload_TextSnippet); ok { 661 return x.TextSnippet 662 } 663 return nil 664} 665 666func (m *ExamplePayload) GetDocument() *Document { 667 if x, ok := m.GetPayload().(*ExamplePayload_Document); ok { 668 return x.Document 669 } 670 return nil 671} 672 673func (m *ExamplePayload) GetRow() *Row { 674 if x, ok := m.GetPayload().(*ExamplePayload_Row); ok { 675 return x.Row 676 } 677 return nil 678} 679 680// XXX_OneofWrappers is for the internal use of the proto package. 681func (*ExamplePayload) XXX_OneofWrappers() []interface{} { 682 return []interface{}{ 683 (*ExamplePayload_Image)(nil), 684 (*ExamplePayload_TextSnippet)(nil), 685 (*ExamplePayload_Document)(nil), 686 (*ExamplePayload_Row)(nil), 687 } 688} 689 690func init() { 691 proto.RegisterEnum("google.cloud.automl.v1beta1.DocumentDimensions_DocumentDimensionUnit", DocumentDimensions_DocumentDimensionUnit_name, DocumentDimensions_DocumentDimensionUnit_value) 692 proto.RegisterEnum("google.cloud.automl.v1beta1.Document_Layout_TextSegmentType", Document_Layout_TextSegmentType_name, Document_Layout_TextSegmentType_value) 693 proto.RegisterType((*Image)(nil), "google.cloud.automl.v1beta1.Image") 694 proto.RegisterType((*TextSnippet)(nil), "google.cloud.automl.v1beta1.TextSnippet") 695 proto.RegisterType((*DocumentDimensions)(nil), "google.cloud.automl.v1beta1.DocumentDimensions") 696 proto.RegisterType((*Document)(nil), "google.cloud.automl.v1beta1.Document") 697 proto.RegisterType((*Document_Layout)(nil), "google.cloud.automl.v1beta1.Document.Layout") 698 proto.RegisterType((*Row)(nil), "google.cloud.automl.v1beta1.Row") 699 proto.RegisterType((*ExamplePayload)(nil), "google.cloud.automl.v1beta1.ExamplePayload") 700} 701 702func init() { 703 proto.RegisterFile("google/cloud/automl/v1beta1/data_items.proto", fileDescriptor_bd1fd4e23d5f1ca3) 704} 705 706var fileDescriptor_bd1fd4e23d5f1ca3 = []byte{ 707 // 1030 bytes of a gzipped FileDescriptorProto 708 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4b, 0x73, 0xe3, 0x44, 709 0x10, 0xb6, 0xfc, 0xda, 0xb8, 0xed, 0x6c, 0xc4, 0x04, 0x16, 0x93, 0xec, 0xc3, 0xeb, 0xe5, 0x61, 710 0xa8, 0x2d, 0x9b, 0x0d, 0x9c, 0x0c, 0x17, 0x3f, 0x94, 0x58, 0xb5, 0xb6, 0xec, 0x1a, 0xcb, 0x0b, 711 0x4b, 0x85, 0x12, 0xb2, 0x3d, 0xab, 0x4c, 0x95, 0xa4, 0x51, 0xd9, 0xa3, 0x4d, 0x7c, 0xe7, 0x8f, 712 0x70, 0x80, 0xdf, 0x42, 0xf1, 0x53, 0xb8, 0x72, 0xe4, 0x42, 0xcd, 0x68, 0x9c, 0x78, 0x93, 0x2d, 713 0x93, 0xdc, 0xd4, 0x5f, 0x7f, 0x3d, 0xdd, 0xea, 0xfe, 0x7a, 0x06, 0x9e, 0x7b, 0x8c, 0x79, 0x3e, 714 0x69, 0xcc, 0x7c, 0x16, 0xcf, 0x1b, 0x6e, 0xcc, 0x59, 0xe0, 0x37, 0xde, 0xbe, 0x98, 0x12, 0xee, 715 0xbe, 0x68, 0xcc, 0x5d, 0xee, 0x3a, 0x94, 0x93, 0x60, 0x59, 0x8f, 0x16, 0x8c, 0x33, 0x74, 0x98, 716 0xb0, 0xeb, 0x92, 0x5d, 0x4f, 0xd8, 0x75, 0xc5, 0x3e, 0x78, 0xa8, 0x8e, 0x72, 0x23, 0xda, 0x70, 717 0xc3, 0x90, 0x71, 0x97, 0x53, 0x16, 0xaa, 0xd0, 0x83, 0xaf, 0xb6, 0x25, 0xf2, 0x08, 0x0b, 0x08, 718 0x5f, 0xac, 0x14, 0xf7,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, 0x00, 0x97, 0xd6, 0xe1, 0x02, 741 0x44, 0x5d, 0xc8, 0xfb, 0xee, 0x8a, 0xc5, 0xa2, 0x5f, 0x99, 0x5a, 0xf1, 0xe8, 0xf9, 0xad, 0xaa, 742 0xab, 0xf7, 0x65, 0x0c, 0x56, 0xb1, 0xe8, 0x17, 0xd8, 0xbf, 0x2c, 0x6a, 0x7e, 0x39, 0x3e, 0x29, 743 0x93, 0xe2, 0x51, 0xe3, 0x8e, 0x53, 0xc7, 0x68, 0x7e, 0x53, 0x48, 0x8f, 0x00, 0x22, 0xb1, 0x64, 744 0x33, 0x16, 0x87, 0xbc, 0x9c, 0xab, 0x68, 0xb5, 0x1c, 0x2e, 0x08, 0xa4, 0x23, 0x80, 0x83, 0x7f, 745 0x33, 0x90, 0x4f, 0x6a, 0x42, 0x2f, 0xa1, 0xb4, 0x79, 0x11, 0xa8, 0xae, 0xdf, 0xa2, 0x3f, 0x09, 746 0x1f, 0x17, 0xf9, 0x95, 0x21, 0x74, 0x2f, 0xd3, 0x86, 0x71, 0x30, 0x25, 0x0b, 0xd9, 0xeb, 0x1c, 747 0x96, 0x95, 0x58, 0x12, 0x41, 0x16, 0xec, 0x4e, 0x59, 0x1c, 0xce, 0x69, 0xe8, 0x39, 0x11, 0xf3, 748 0x57, 0x52, 0x76, 0xc5, 0xa3, 0x2f, 0xb7, 0xa6, 0x6b, 0xab, 0x88, 0x11, 0xf3, 0x57, 0xb8, 0x34, 749 0xdd, 0xb0, 0xd0, 0x19, 0x7c, 0xb0, 0x59, 0x7d, 0xb2, 0x8d, 0x59, 0xb9, 0x3d, 0xdf, 0xdf, 0x65, 750 0x34, 0x9b, 0xbf, 0x24, 0x36, 0x18, 0xef, 0xf1, 0x77, 0x81, 0xea, 0x9f, 0x1a, 0xec, 0x5d, 0x23, 751 0xa1, 0xa7, 0xf0, 0xc8, 0x36, 0x7e, 0xb4, 0x9d, 0xb1, 0x71, 0x22, 0x17, 0xc2, 0x7e, 0x3d, 0x32,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52, 0x38, 0x09, 0x11, 0xaf, 0x41, 0x32, 0xe2, 0x64, 0x21, 0xef, 0xba, 0xc0, 0xe2, 764 0x35, 0xe0, 0x1b, 0x37, 0x7a, 0x07, 0x76, 0xd6, 0xfb, 0xa2, 0x16, 0xee, 0xb3, 0x5b, 0x09, 0xa5, 765 0x97, 0xc2, 0x97, 0x81, 0xe8, 0x5b, 0xc8, 0x2c, 0xd8, 0xb9, 0x12, 0x6f, 0x65, 0x6b, 0x3c, 0x66, 766 0xe7, 0xbd, 0x14, 0x16, 0xf4, 0x76, 0x01, 0xee, 0x45, 0x49, 0x43, 0xda, 0xbf, 0x6b, 0xf0, 0x64, 767 0xc6, 0x82, 0x6d, 0x91, 0x23, 0xed, 0xa7, 0x96, 0x72, 0x7b, 0xcc, 0x77, 0x43, 0xaf, 0xce, 0x16, 768 0x5e, 0xc3, 0x23, 0xa1, 0x6c, 0x7b, 0x23, 0x71, 0xb9, 0x11, 0x5d, 0xbe, 0xf7, 0x75, 0xff, 0x2e, 769 0x31, 0xff, 0x4a, 0x1f, 0x9e, 0x48, 0xe2, 0x69, 0x47, 0x90, 0x4e, 0x5b, 0x31, 0x67, 0x03, 0xff, 770 0xf4, 0x55, 0x42, 0xfa, 0x3b, 0xfd, 0x38, 0xf1, 0x36, 0x9b, 0xd2, 0xdd, 0x6c, 0x4a, 0x7f, 0xbf, 771 0xd9, 0x54, 0x84, 0x69, 0x5e, 0x26, 0xfb, 0xe6, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x77, 0xbf, 772 0xea, 0x65, 0x04, 0x09, 0x00, 0x00, 773} 774