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// A representation of an image. 29// Only images up to 30MB in size are supported. 30type Image struct { 31 // Input only. The data representing the image. 32 // For Predict calls [image_bytes][] must be set, as other options are not 33 // currently supported by prediction API. You can read the contents of an 34 // uploaded image by using the [content_uri][] field. 35 // 36 // Types that are valid to be assigned to Data: 37 // *Image_ImageBytes 38 // *Image_InputConfig 39 Data isImage_Data `protobuf_oneof:"data"` 40 // Output only. HTTP URI to the thumbnail image. 41 ThumbnailUri string `protobuf:"bytes,4,opt,name=thumbnail_uri,json=thumbnailUri,proto3" json:"thumbnail_uri,omitempty"` 42 XXX_NoUnkeyedLiteral struct{} `json:"-"` 43 XXX_unrecognized []byte `json:"-"` 44 XXX_sizecache int32 `json:"-"` 45} 46 47func (m *Image) Reset() { *m = Image{} } 48func (m *Image) String() string { return proto.CompactTextString(m) } 49func (*Image) ProtoMessage() {} 50func (*Image) Descriptor() ([]byte, []int) { 51 return fileDescriptor_bd1fd4e23d5f1ca3, []int{0} 52} 53 54func (m *Image) XXX_Unmarshal(b []byte) error { 55 return xxx_messageInfo_Image.Unmarshal(m, b) 56} 57func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 58 return xxx_messageInfo_Image.Marshal(b, m, deterministic) 59} 60func (m *Image) XXX_Merge(src proto.Message) { 61 xxx_messageInfo_Image.Merge(m, src) 62} 63func (m *Image) XXX_Size() int { 64 return xxx_messageInfo_Image.Size(m) 65} 66func (m *Image) XXX_DiscardUnknown() { 67 xxx_messageInfo_Image.DiscardUnknown(m) 68} 69 70var xxx_messageInfo_Image proto.InternalMessageInfo 71 72type isImage_Data interface { 73 isImage_Data() 74} 75 76type Image_ImageBytes struct { 77 ImageBytes []byte `protobuf:"bytes,1,opt,name=image_bytes,json=imageBytes,proto3,oneof"` 78} 79 80type Image_InputConfig struct { 81 InputConfig *InputConfig `protobuf:"bytes,6,opt,name=input_config,json=inputConfig,proto3,oneof"` 82} 83 84func (*Image_ImageBytes) isImage_Data() {} 85 86func (*Image_InputConfig) isImage_Data() {} 87 88func (m *Image) GetData() isImage_Data { 89 if m != nil { 90 return m.Data 91 } 92 return nil 93} 94 95func (m *Image) GetImageBytes() []byte { 96 if x, ok := m.GetData().(*Image_ImageBytes); ok { 97 return x.ImageBytes 98 } 99 return nil 100} 101 102func (m *Image) GetInputConfig() *InputConfig { 103 if x, ok := m.GetData().(*Image_InputConfig); ok { 104 return x.InputConfig 105 } 106 return nil 107} 108 109func (m *Image) GetThumbnailUri() string { 110 if m != nil { 111 return m.ThumbnailUri 112 } 113 return "" 114} 115 116// XXX_OneofWrappers is for the internal use of the proto package. 117func (*Image) XXX_OneofWrappers() []interface{} { 118 return []interface{}{ 119 (*Image_ImageBytes)(nil), 120 (*Image_InputConfig)(nil), 121 } 122} 123 124// A representation of a text snippet. 125type TextSnippet struct { 126 // Required. The content of the text snippet as a string. Up to 250000 127 // characters long. 128 Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` 129 // The format of the source text. Currently the only two allowed values are 130 // "text/html" and "text/plain". If left blank the format is automatically 131 // determined from the type of the uploaded content. 132 MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` 133 // Output only. HTTP URI where you can download the content. 134 ContentUri string `protobuf:"bytes,4,opt,name=content_uri,json=contentUri,proto3" json:"content_uri,omitempty"` 135 XXX_NoUnkeyedLiteral struct{} `json:"-"` 136 XXX_unrecognized []byte `json:"-"` 137 XXX_sizecache int32 `json:"-"` 138} 139 140func (m *TextSnippet) Reset() { *m = TextSnippet{} } 141func (m *TextSnippet) String() string { return proto.CompactTextString(m) } 142func (*TextSnippet) ProtoMessage() {} 143func (*TextSnippet) Descriptor() ([]byte, []int) { 144 return fileDescriptor_bd1fd4e23d5f1ca3, []int{1} 145} 146 147func (m *TextSnippet) XXX_Unmarshal(b []byte) error { 148 return xxx_messageInfo_TextSnippet.Unmarshal(m, b) 149} 150func (m *TextSnippet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 151 return xxx_messageInfo_TextSnippet.Marshal(b, m, deterministic) 152} 153func (m *TextSnippet) XXX_Merge(src proto.Message) { 154 xxx_messageInfo_TextSnippet.Merge(m, src) 155} 156func (m *TextSnippet) XXX_Size() int { 157 return xxx_messageInfo_TextSnippet.Size(m) 158} 159func (m *TextSnippet) XXX_DiscardUnknown() { 160 xxx_messageInfo_TextSnippet.DiscardUnknown(m) 161} 162 163var xxx_messageInfo_TextSnippet proto.InternalMessageInfo 164 165func (m *TextSnippet) GetContent() string { 166 if m != nil { 167 return m.Content 168 } 169 return "" 170} 171 172func (m *TextSnippet) GetMimeType() string { 173 if m != nil { 174 return m.MimeType 175 } 176 return "" 177} 178 179func (m *TextSnippet) GetContentUri() string { 180 if m != nil { 181 return m.ContentUri 182 } 183 return "" 184} 185 186// A structured text document e.g. a PDF. 187type Document struct { 188 // An input config specifying the content of the document. 189 InputConfig *DocumentInputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` 190 XXX_NoUnkeyedLiteral struct{} `json:"-"` 191 XXX_unrecognized []byte `json:"-"` 192 XXX_sizecache int32 `json:"-"` 193} 194 195func (m *Document) Reset() { *m = Document{} } 196func (m *Document) String() string { return proto.CompactTextString(m) } 197func (*Document) ProtoMessage() {} 198func (*Document) Descriptor() ([]byte, []int) { 199 return fileDescriptor_bd1fd4e23d5f1ca3, []int{2} 200} 201 202func (m *Document) XXX_Unmarshal(b []byte) error { 203 return xxx_messageInfo_Document.Unmarshal(m, b) 204} 205func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 206 return xxx_messageInfo_Document.Marshal(b, m, deterministic) 207} 208func (m *Document) XXX_Merge(src proto.Message) { 209 xxx_messageInfo_Document.Merge(m, src) 210} 211func (m *Document) XXX_Size() int { 212 return xxx_messageInfo_Document.Size(m) 213} 214func (m *Document) XXX_DiscardUnknown() { 215 xxx_messageInfo_Document.DiscardUnknown(m) 216} 217 218var xxx_messageInfo_Document proto.InternalMessageInfo 219 220func (m *Document) GetInputConfig() *DocumentInputConfig { 221 if m != nil { 222 return m.InputConfig 223 } 224 return nil 225} 226 227// A representation of a row in a relational table. 228type Row struct { 229 // Input Only. 230 // The resource IDs of the column specs describing the columns of the row. 231 // If set must contain, but possibly in a different order, all input feature 232 // 233 // [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] 234 // of the Model this row is being passed to. 235 // Note: The below `values` field must match order of this field, if this 236 // field is set. 237 ColumnSpecIds []string `protobuf:"bytes,2,rep,name=column_spec_ids,json=columnSpecIds,proto3" json:"column_spec_ids,omitempty"` 238 // Input Only. 239 // The values of the row cells, given in the same order as the 240 // column_spec_ids, or, if not set, then in the same order as input feature 241 // 242 // [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] 243 // of the Model this row is being passed to. 244 Values []*_struct.Value `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` 245 XXX_NoUnkeyedLiteral struct{} `json:"-"` 246 XXX_unrecognized []byte `json:"-"` 247 XXX_sizecache int32 `json:"-"` 248} 249 250func (m *Row) Reset() { *m = Row{} } 251func (m *Row) String() string { return proto.CompactTextString(m) } 252func (*Row) ProtoMessage() {} 253func (*Row) Descriptor() ([]byte, []int) { 254 return fileDescriptor_bd1fd4e23d5f1ca3, []int{3} 255} 256 257func (m *Row) XXX_Unmarshal(b []byte) error { 258 return xxx_messageInfo_Row.Unmarshal(m, b) 259} 260func (m *Row) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 261 return xxx_messageInfo_Row.Marshal(b, m, deterministic) 262} 263func (m *Row) XXX_Merge(src proto.Message) { 264 xxx_messageInfo_Row.Merge(m, src) 265} 266func (m *Row) XXX_Size() int { 267 return xxx_messageInfo_Row.Size(m) 268} 269func (m *Row) XXX_DiscardUnknown() { 270 xxx_messageInfo_Row.DiscardUnknown(m) 271} 272 273var xxx_messageInfo_Row proto.InternalMessageInfo 274 275func (m *Row) GetColumnSpecIds() []string { 276 if m != nil { 277 return m.ColumnSpecIds 278 } 279 return nil 280} 281 282func (m *Row) GetValues() []*_struct.Value { 283 if m != nil { 284 return m.Values 285 } 286 return nil 287} 288 289// Example data used for training or prediction. 290type ExamplePayload struct { 291 // Required. Input only. The example data. 292 // 293 // Types that are valid to be assigned to Payload: 294 // *ExamplePayload_Image 295 // *ExamplePayload_TextSnippet 296 // *ExamplePayload_Document 297 // *ExamplePayload_Row 298 Payload isExamplePayload_Payload `protobuf_oneof:"payload"` 299 XXX_NoUnkeyedLiteral struct{} `json:"-"` 300 XXX_unrecognized []byte `json:"-"` 301 XXX_sizecache int32 `json:"-"` 302} 303 304func (m *ExamplePayload) Reset() { *m = ExamplePayload{} } 305func (m *ExamplePayload) String() string { return proto.CompactTextString(m) } 306func (*ExamplePayload) ProtoMessage() {} 307func (*ExamplePayload) Descriptor() ([]byte, []int) { 308 return fileDescriptor_bd1fd4e23d5f1ca3, []int{4} 309} 310 311func (m *ExamplePayload) XXX_Unmarshal(b []byte) error { 312 return xxx_messageInfo_ExamplePayload.Unmarshal(m, b) 313} 314func (m *ExamplePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 315 return xxx_messageInfo_ExamplePayload.Marshal(b, m, deterministic) 316} 317func (m *ExamplePayload) XXX_Merge(src proto.Message) { 318 xxx_messageInfo_ExamplePayload.Merge(m, src) 319} 320func (m *ExamplePayload) XXX_Size() int { 321 return xxx_messageInfo_ExamplePayload.Size(m) 322} 323func (m *ExamplePayload) XXX_DiscardUnknown() { 324 xxx_messageInfo_ExamplePayload.DiscardUnknown(m) 325} 326 327var xxx_messageInfo_ExamplePayload proto.InternalMessageInfo 328 329type isExamplePayload_Payload interface { 330 isExamplePayload_Payload() 331} 332 333type ExamplePayload_Image struct { 334 Image *Image `protobuf:"bytes,1,opt,name=image,proto3,oneof"` 335} 336 337type ExamplePayload_TextSnippet struct { 338 TextSnippet *TextSnippet `protobuf:"bytes,2,opt,name=text_snippet,json=textSnippet,proto3,oneof"` 339} 340 341type ExamplePayload_Document struct { 342 Document *Document `protobuf:"bytes,4,opt,name=document,proto3,oneof"` 343} 344 345type ExamplePayload_Row struct { 346 Row *Row `protobuf:"bytes,3,opt,name=row,proto3,oneof"` 347} 348 349func (*ExamplePayload_Image) isExamplePayload_Payload() {} 350 351func (*ExamplePayload_TextSnippet) isExamplePayload_Payload() {} 352 353func (*ExamplePayload_Document) isExamplePayload_Payload() {} 354 355func (*ExamplePayload_Row) isExamplePayload_Payload() {} 356 357func (m *ExamplePayload) GetPayload() isExamplePayload_Payload { 358 if m != nil { 359 return m.Payload 360 } 361 return nil 362} 363 364func (m *ExamplePayload) GetImage() *Image { 365 if x, ok := m.GetPayload().(*ExamplePayload_Image); ok { 366 return x.Image 367 } 368 return nil 369} 370 371func (m *ExamplePayload) GetTextSnippet() *TextSnippet { 372 if x, ok := m.GetPayload().(*ExamplePayload_TextSnippet); ok { 373 return x.TextSnippet 374 } 375 return nil 376} 377 378func (m *ExamplePayload) GetDocument() *Document { 379 if x, ok := m.GetPayload().(*ExamplePayload_Document); ok { 380 return x.Document 381 } 382 return nil 383} 384 385func (m *ExamplePayload) GetRow() *Row { 386 if x, ok := m.GetPayload().(*ExamplePayload_Row); ok { 387 return x.Row 388 } 389 return nil 390} 391 392// XXX_OneofWrappers is for the internal use of the proto package. 393func (*ExamplePayload) XXX_OneofWrappers() []interface{} { 394 return []interface{}{ 395 (*ExamplePayload_Image)(nil), 396 (*ExamplePayload_TextSnippet)(nil), 397 (*ExamplePayload_Document)(nil), 398 (*ExamplePayload_Row)(nil), 399 } 400} 401 402func init() { 403 proto.RegisterType((*Image)(nil), "google.cloud.automl.v1beta1.Image") 404 proto.RegisterType((*TextSnippet)(nil), "google.cloud.automl.v1beta1.TextSnippet") 405 proto.RegisterType((*Document)(nil), "google.cloud.automl.v1beta1.Document") 406 proto.RegisterType((*Row)(nil), "google.cloud.automl.v1beta1.Row") 407 proto.RegisterType((*ExamplePayload)(nil), "google.cloud.automl.v1beta1.ExamplePayload") 408} 409 410func init() { 411 proto.RegisterFile("google/cloud/automl/v1beta1/data_items.proto", fileDescriptor_bd1fd4e23d5f1ca3) 412} 413 414var fileDescriptor_bd1fd4e23d5f1ca3 = []byte{ 415 // 575 bytes of a gzipped FileDescriptorProto 416 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xdf, 0x6e, 0xd3, 0x3c, 417 0x18, 0xc6, 0x9b, 0x66, 0xeb, 0x56, 0x67, 0xfb, 0x3e, 0x29, 0x07, 0x28, 0x6c, 0x68, 0x0b, 0xe1, 418 0x8f, 0x72, 0x80, 0x12, 0x56, 0x38, 0x0a, 0x47, 0x6b, 0x41, 0xb4, 0x12, 0x93, 0xa6, 0x74, 0xdb, 419 0x01, 0x2a, 0x8a, 0xdc, 0xc4, 0x0b, 0x96, 0x12, 0xdb, 0x4a, 0xec, 0xb5, 0xbd, 0x1c, 0x0e, 0xe0, 420 0x62, 0xb8, 0x14, 0xae, 0x02, 0xd9, 0x71, 0x47, 0xa9, 0x50, 0xe0, 0x2c, 0xef, 0xfb, 0xfc, 0x5e, 421 0xdb, 0xef, 0xf3, 0x28, 0xe0, 0x45, 0x4e, 0x69, 0x5e, 0xa0, 0x30, 0x2d, 0xa8, 0xc8, 0x42, 0x28, 422 0x38, 0x2d, 0x8b, 0xf0, 0xee, 0x6c, 0x8e, 0x38, 0x3c, 0x0b, 0x33, 0xc8, 0x61, 0x82, 0x39, 0x2a, 423 0xeb, 0x80, 0x55, 0x94, 0x53, 0xfb, 0xb8, 0xa1, 0x03, 0x45, 0x07, 0x0d, 0x1d, 0x68, 0xfa, 0xe8, 424 0x69, 0xdb, 0x51, 0x98, 0x36, 0x47, 0x1c, 0x3d, 0xd4, 0x94, 0xaa, 0xe6, 0xe2, 0x36, 0x84, 0x64, 425 0xa5, 0xa5, 0x93, 0x6d, 0x29, 0x13, 0x15, 0xe4, 0x98, 0x12, 0xad, 0x3f, 0xda, 0xd6, 0x6b, 0x5e, 426 0x89, 0x94, 0x6f, 0xa9, 0x90, 0xe1, 0x10, 0x12, 0x42, 0xb9, 0x1a, 0xd5, 0x2f, 0xf7, 0xbe, 0x19, 427 0x60, 0x77, 0x52, 0xc2, 0x1c, 0xd9, 0x8f, 0x81, 0x85, 0xe5, 0x47, 0x32, 0x5f, 0x71, 0x54, 0x3b, 428 0x86, 0x6b, 0xf8, 0x07, 0xe3, 0x4e, 0x0c, 0x54, 0x73, 0x28, 0x7b, 0xf6, 0x05, 0x38, 0xc0, 0x84, 429 0x09, 0x9e, 0xa4, 0x94, 0xdc, 0xe2, 0xdc, 0xe9, 0xb9, 0x86, 0x6f, 0x0d, 0xfc, 0xa0, 0x65, 0xfb, 430 0x60, 0x22, 0x07, 0x46, 0x8a, 0x1f, 0x77, 0x62, 0x0b, 0xff, 0x2a, 0xed, 0x27, 0xe0, 0x90, 0x7f, 431 0x16, 0xe5, 0x9c, 0x40, 0x5c, 0x24, 0xa2, 0xc2, 0xce, 0x8e, 0x6b, 0xf8, 0xfd, 0xf8, 0xe0, 0xbe, 432 0x79, 0x5d, 0xe1, 0x61, 0x0f, 0xec, 0x48, 0xbb, 0x3d, 0x04, 0xac, 0x2b, 0xb4, 0xe4, 0x53, 0x82, 433 0x19, 0x43, 0xdc, 0x76, 0xc0, 0x5e, 0x4a, 0x09, 0x47, 0x84, 0xab, 0x97, 0xf6, 0xe3, 0x75, 0x69, 434 0x1f, 0x83, 0x7e, 0x89, 0x4b, 0x94, 0xf0, 0x15, 0x43, 0x4e, 0x57, 0x69, 0xfb, 0xb2, 0x71, 0xb5, 435 0x62, 0xc8, 0x3e, 0x05, 0x96, 0xe6, 0x36, 0x2e, 0x04, 0xba, 0x75, 0x5d, 0x61, 0x2f, 0x01, 0xfb, 436 0x6f, 0x69, 0x2a, 0x4a, 0x79, 0xd2, 0x74, 0x6b, 0x5d, 0x43, 0xad, 0xfb, 0xb2, 0x75, 0xdd, 0xf5, 437 0xf0, 0xc6, 0xda, 0xbf, 0x2d, 0xed, 0x7d, 0x02, 0x66, 0x4c, 0x17, 0xf6, 0x73, 0xf0, 0x7f, 0x4a, 438 0x0b, 0x51, 0x92, 0xa4, 0x66, 0x28, 0x4d, 0x70, 0x56, 0x3b, 0x5d, 0xd7, 0xf4, 0xfb, 0xf1, 0x61, 439 0xd3, 0x9e, 0x32, 0x94, 0x4e, 0xb2, 0xda, 0x0e, 0x40, 0xef, 0x0e, 0x16, 0x02, 0xd5, 0x8e, 0xe9, 440 0x9a, 0xbe, 0x35, 0x78, 0xb0, 0xbe, 0x7d, 0x1d, 0x76, 0x70, 0x23, 0xe5, 0x58, 0x53, 0xde, 0x97, 441 0x2e, 0xf8, 0xef, 0xdd, 0x12, 0x96, 0xac, 0x40, 0x97, 0x70, 0x55, 0x50, 0x98, 0xd9, 0x11, 0xd8, 442 0x55, 0x19, 0xea, 0xf7, 0x7b, 0xed, 0x71, 0x49, 0x72, 0xdc, 0x89, 0x9b, 0x11, 0x99, 0x38, 0x47, 443 0x4b, 0x9e, 0xd4, 0x8d, 0xed, 0xca, 0xcf, 0xbf, 0x25, 0xbe, 0x11, 0x93, 0x4c, 0x9c, 0x6f, 0xa4, 444 0x36, 0x02, 0xfb, 0x99, 0x36, 0x48, 0x79, 0x6f, 0x0d, 0x9e, 0xfd, 0x93, 0x9b, 0xe3, 0x4e, 0x7c, 445 0x3f, 0x68, 0xbf, 0x06, 0x66, 0x45, 0x17, 0x8e, 0xa9, 0xe6, 0xdd, 0xd6, 0xf9, 0x98, 0x2e, 0xc6, 446 0x9d, 0x58, 0xe2, 0xc3, 0x3e, 0xd8, 0x63, 0x8d, 0x21, 0xc3, 0xaf, 0x06, 0x38, 0x4d, 0x69, 0xd9, 447 0x36, 0x79, 0x69, 0x7c, 0x3c, 0xd7, 0x72, 0x4e, 0x0b, 0x48, 0xf2, 0x80, 0x56, 0x79, 0x98, 0x23, 448 0xa2, 0x6c, 0x0f, 0x1b, 0x09, 0x32, 0x5c, 0xff, 0xf1, 0xaf, 0x7e, 0xd3, 0x94, 0xdf, 0xbb, 0xc7, 449 0xef, 0x15, 0x38, 0x1b, 0x49, 0x68, 0x76, 0x2e, 0x38, 0xbd, 0x28, 0x66, 0x37, 0x0d, 0xf4, 0xa3, 450 0x7b, 0xd2, 0xa8, 0x51, 0xa4, 0xe4, 0x28, 0x52, 0xfa, 0x87, 0x28, 0xd2, 0xc0, 0xbc, 0xa7, 0x2e, 451 0x7b, 0xf5, 0x33, 0x00, 0x00, 0xff, 0xff, 0xb2, 0xe4, 0x43, 0xf0, 0x8c, 0x04, 0x00, 0x00, 452} 453