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