1// Copyright 2020 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// Code generated by protoc-gen-go. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.25.0 18// protoc v3.13.0 19// source: google/cloud/automl/v1beta1/data_types.proto 20 21package automl 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 proto "github.com/golang/protobuf/proto" 28 _ "google.golang.org/genproto/googleapis/api/annotations" 29 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 30 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 31) 32 33const ( 34 // Verify that this generated code is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 36 // Verify that runtime/protoimpl is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 38) 39 40// This is a compile-time assertion that a sufficiently up-to-date version 41// of the legacy proto package is being used. 42const _ = proto.ProtoPackageIsVersion4 43 44// `TypeCode` is used as a part of 45// [DataType][google.cloud.automl.v1beta1.DataType]. 46type TypeCode int32 47 48const ( 49 // Not specified. Should not be used. 50 TypeCode_TYPE_CODE_UNSPECIFIED TypeCode = 0 51 // Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or 52 // `"-Infinity"`. 53 TypeCode_FLOAT64 TypeCode = 3 54 // Must be between 0AD and 9999AD. Encoded as `string` according to 55 // [time_format][google.cloud.automl.v1beta1.DataType.time_format], or, if 56 // that format is not set, then in RFC 3339 `date-time` format, where 57 // `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z). 58 TypeCode_TIMESTAMP TypeCode = 4 59 // Encoded as `string`. 60 TypeCode_STRING TypeCode = 6 61 // Encoded as `list`, where the list elements are represented according to 62 // 63 // [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type]. 64 TypeCode_ARRAY TypeCode = 8 65 // Encoded as `struct`, where field values are represented according to 66 // [struct_type][google.cloud.automl.v1beta1.DataType.struct_type]. 67 TypeCode_STRUCT TypeCode = 9 68 // Values of this type are not further understood by AutoML, 69 // e.g. AutoML is unable to tell the order of values (as it could with 70 // FLOAT64), or is unable to say if one value contains another (as it 71 // could with STRING). 72 // Encoded as `string` (bytes should be base64-encoded, as described in RFC 73 // 4648, section 4). 74 TypeCode_CATEGORY TypeCode = 10 75) 76 77// Enum value maps for TypeCode. 78var ( 79 TypeCode_name = map[int32]string{ 80 0: "TYPE_CODE_UNSPECIFIED", 81 3: "FLOAT64", 82 4: "TIMESTAMP", 83 6: "STRING", 84 8: "ARRAY", 85 9: "STRUCT", 86 10: "CATEGORY", 87 } 88 TypeCode_value = map[string]int32{ 89 "TYPE_CODE_UNSPECIFIED": 0, 90 "FLOAT64": 3, 91 "TIMESTAMP": 4, 92 "STRING": 6, 93 "ARRAY": 8, 94 "STRUCT": 9, 95 "CATEGORY": 10, 96 } 97) 98 99func (x TypeCode) Enum() *TypeCode { 100 p := new(TypeCode) 101 *p = x 102 return p 103} 104 105func (x TypeCode) String() string { 106 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 107} 108 109func (TypeCode) Descriptor() protoreflect.EnumDescriptor { 110 return file_google_cloud_automl_v1beta1_data_types_proto_enumTypes[0].Descriptor() 111} 112 113func (TypeCode) Type() protoreflect.EnumType { 114 return &file_google_cloud_automl_v1beta1_data_types_proto_enumTypes[0] 115} 116 117func (x TypeCode) Number() protoreflect.EnumNumber { 118 return protoreflect.EnumNumber(x) 119} 120 121// Deprecated: Use TypeCode.Descriptor instead. 122func (TypeCode) EnumDescriptor() ([]byte, []int) { 123 return file_google_cloud_automl_v1beta1_data_types_proto_rawDescGZIP(), []int{0} 124} 125 126// Indicated the type of data that can be stored in a structured data entity 127// (e.g. a table). 128type DataType struct { 129 state protoimpl.MessageState 130 sizeCache protoimpl.SizeCache 131 unknownFields protoimpl.UnknownFields 132 133 // Details of DataType-s that need additional specification. 134 // 135 // Types that are assignable to Details: 136 // *DataType_ListElementType 137 // *DataType_StructType 138 // *DataType_TimeFormat 139 Details isDataType_Details `protobuf_oneof:"details"` 140 // Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type. 141 TypeCode TypeCode `protobuf:"varint,1,opt,name=type_code,json=typeCode,proto3,enum=google.cloud.automl.v1beta1.TypeCode" json:"type_code,omitempty"` 142 // If true, this DataType can also be `NULL`. In .CSV files `NULL` value is 143 // expressed as an empty string. 144 Nullable bool `protobuf:"varint,4,opt,name=nullable,proto3" json:"nullable,omitempty"` 145} 146 147func (x *DataType) Reset() { 148 *x = DataType{} 149 if protoimpl.UnsafeEnabled { 150 mi := &file_google_cloud_automl_v1beta1_data_types_proto_msgTypes[0] 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 ms.StoreMessageInfo(mi) 153 } 154} 155 156func (x *DataType) String() string { 157 return protoimpl.X.MessageStringOf(x) 158} 159 160func (*DataType) ProtoMessage() {} 161 162func (x *DataType) ProtoReflect() protoreflect.Message { 163 mi := &file_google_cloud_automl_v1beta1_data_types_proto_msgTypes[0] 164 if protoimpl.UnsafeEnabled && x != nil { 165 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 166 if ms.LoadMessageInfo() == nil { 167 ms.StoreMessageInfo(mi) 168 } 169 return ms 170 } 171 return mi.MessageOf(x) 172} 173 174// Deprecated: Use DataType.ProtoReflect.Descriptor instead. 175func (*DataType) Descriptor() ([]byte, []int) { 176 return file_google_cloud_automl_v1beta1_data_types_proto_rawDescGZIP(), []int{0} 177} 178 179func (m *DataType) GetDetails() isDataType_Details { 180 if m != nil { 181 return m.Details 182 } 183 return nil 184} 185 186func (x *DataType) GetListElementType() *DataType { 187 if x, ok := x.GetDetails().(*DataType_ListElementType); ok { 188 return x.ListElementType 189 } 190 return nil 191} 192 193func (x *DataType) GetStructType() *StructType { 194 if x, ok := x.GetDetails().(*DataType_StructType); ok { 195 return x.StructType 196 } 197 return nil 198} 199 200func (x *DataType) GetTimeFormat() string { 201 if x, ok := x.GetDetails().(*DataType_TimeFormat); ok { 202 return x.TimeFormat 203 } 204 return "" 205} 206 207func (x *DataType) GetTypeCode() TypeCode { 208 if x != nil { 209 return x.TypeCode 210 } 211 return TypeCode_TYPE_CODE_UNSPECIFIED 212} 213 214func (x *DataType) GetNullable() bool { 215 if x != nil { 216 return x.Nullable 217 } 218 return false 219} 220 221type isDataType_Details interface { 222 isDataType_Details() 223} 224 225type DataType_ListElementType struct { 226 // If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], 227 // then `list_element_type` is the type of the elements. 228 ListElementType *DataType `protobuf:"bytes,2,opt,name=list_element_type,json=listElementType,proto3,oneof"` 229} 230 231type DataType_StructType struct { 232 // If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` 233 // provides type information for the struct's fields. 234 StructType *StructType `protobuf:"bytes,3,opt,name=struct_type,json=structType,proto3,oneof"` 235} 236 237type DataType_TimeFormat struct { 238 // If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] 239 // then `time_format` provides the format in which that time field is 240 // expressed. The time_format must either be one of: 241 // * `UNIX_SECONDS` 242 // * `UNIX_MILLISECONDS` 243 // * `UNIX_MICROSECONDS` 244 // * `UNIX_NANOSECONDS` 245 // (for respectively number of seconds, milliseconds, microseconds and 246 // nanoseconds since start of the Unix epoch); 247 // or be written in `strftime` syntax. If time_format is not set, then the 248 // default format as described on the type_code is used. 249 TimeFormat string `protobuf:"bytes,5,opt,name=time_format,json=timeFormat,proto3,oneof"` 250} 251 252func (*DataType_ListElementType) isDataType_Details() {} 253 254func (*DataType_StructType) isDataType_Details() {} 255 256func (*DataType_TimeFormat) isDataType_Details() {} 257 258// `StructType` defines the DataType-s of a [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT] type. 259type StructType struct { 260 state protoimpl.MessageState 261 sizeCache protoimpl.SizeCache 262 unknownFields protoimpl.UnknownFields 263 264 // Unordered map of struct field names to their data types. 265 // Fields cannot be added or removed via Update. Their names and 266 // data types are still mutable. 267 Fields map[string]*DataType `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 268} 269 270func (x *StructType) Reset() { 271 *x = StructType{} 272 if protoimpl.UnsafeEnabled { 273 mi := &file_google_cloud_automl_v1beta1_data_types_proto_msgTypes[1] 274 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 275 ms.StoreMessageInfo(mi) 276 } 277} 278 279func (x *StructType) String() string { 280 return protoimpl.X.MessageStringOf(x) 281} 282 283func (*StructType) ProtoMessage() {} 284 285func (x *StructType) ProtoReflect() protoreflect.Message { 286 mi := &file_google_cloud_automl_v1beta1_data_types_proto_msgTypes[1] 287 if protoimpl.UnsafeEnabled && x != nil { 288 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 289 if ms.LoadMessageInfo() == nil { 290 ms.StoreMessageInfo(mi) 291 } 292 return ms 293 } 294 return mi.MessageOf(x) 295} 296 297// Deprecated: Use StructType.ProtoReflect.Descriptor instead. 298func (*StructType) Descriptor() ([]byte, []int) { 299 return file_google_cloud_automl_v1beta1_data_types_proto_rawDescGZIP(), []int{1} 300} 301 302func (x *StructType) GetFields() map[string]*DataType { 303 if x != nil { 304 return x.Fields 305 } 306 return nil 307} 308 309var File_google_cloud_automl_v1beta1_data_types_proto protoreflect.FileDescriptor 310 311var file_google_cloud_automl_v1beta1_data_types_proto_rawDesc = []byte{ 312 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 313 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x61, 314 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 315 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 316 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 317 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 318 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x02, 0x0a, 0x08, 0x44, 0x61, 319 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x53, 0x0a, 0x11, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x65, 320 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 321 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 322 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 323 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6c, 0x69, 0x73, 0x74, 324 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x73, 325 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 326 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 327 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 328 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x72, 329 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 330 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 331 0x74, 0x69, 0x6d, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x79, 332 0x70, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 333 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 334 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 335 0x43, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1a, 336 0x0a, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 337 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x64, 0x65, 338 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xbb, 0x01, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 339 0x54, 0x79, 0x70, 0x65, 0x12, 0x4b, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 340 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 341 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 342 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x46, 0x69, 343 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 344 0x73, 0x1a, 0x60, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 345 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 346 0x65, 0x79, 0x12, 0x3b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 347 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 348 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 349 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 350 0x02, 0x38, 0x01, 0x2a, 0x72, 0x0a, 0x08, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 351 0x19, 0x0a, 0x15, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 352 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 353 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 354 0x54, 0x41, 0x4d, 0x50, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 355 0x10, 0x06, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x52, 0x52, 0x41, 0x59, 0x10, 0x08, 0x12, 0x0a, 0x0a, 356 0x06, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x10, 0x09, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x54, 357 0x45, 0x47, 0x4f, 0x52, 0x59, 0x10, 0x0a, 0x42, 0xa5, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 358 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 359 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x50, 0x01, 0x5a, 0x41, 0x67, 360 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 361 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 362 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 363 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 364 0xca, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 365 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x6c, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 366 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 367 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 368 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 369} 370 371var ( 372 file_google_cloud_automl_v1beta1_data_types_proto_rawDescOnce sync.Once 373 file_google_cloud_automl_v1beta1_data_types_proto_rawDescData = file_google_cloud_automl_v1beta1_data_types_proto_rawDesc 374) 375 376func file_google_cloud_automl_v1beta1_data_types_proto_rawDescGZIP() []byte { 377 file_google_cloud_automl_v1beta1_data_types_proto_rawDescOnce.Do(func() { 378 file_google_cloud_automl_v1beta1_data_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_automl_v1beta1_data_types_proto_rawDescData) 379 }) 380 return file_google_cloud_automl_v1beta1_data_types_proto_rawDescData 381} 382 383var file_google_cloud_automl_v1beta1_data_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 384var file_google_cloud_automl_v1beta1_data_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 385var file_google_cloud_automl_v1beta1_data_types_proto_goTypes = []interface{}{ 386 (TypeCode)(0), // 0: google.cloud.automl.v1beta1.TypeCode 387 (*DataType)(nil), // 1: google.cloud.automl.v1beta1.DataType 388 (*StructType)(nil), // 2: google.cloud.automl.v1beta1.StructType 389 nil, // 3: google.cloud.automl.v1beta1.StructType.FieldsEntry 390} 391var file_google_cloud_automl_v1beta1_data_types_proto_depIdxs = []int32{ 392 1, // 0: google.cloud.automl.v1beta1.DataType.list_element_type:type_name -> google.cloud.automl.v1beta1.DataType 393 2, // 1: google.cloud.automl.v1beta1.DataType.struct_type:type_name -> google.cloud.automl.v1beta1.StructType 394 0, // 2: google.cloud.automl.v1beta1.DataType.type_code:type_name -> google.cloud.automl.v1beta1.TypeCode 395 3, // 3: google.cloud.automl.v1beta1.StructType.fields:type_name -> google.cloud.automl.v1beta1.StructType.FieldsEntry 396 1, // 4: google.cloud.automl.v1beta1.StructType.FieldsEntry.value:type_name -> google.cloud.automl.v1beta1.DataType 397 5, // [5:5] is the sub-list for method output_type 398 5, // [5:5] is the sub-list for method input_type 399 5, // [5:5] is the sub-list for extension type_name 400 5, // [5:5] is the sub-list for extension extendee 401 0, // [0:5] is the sub-list for field type_name 402} 403 404func init() { file_google_cloud_automl_v1beta1_data_types_proto_init() } 405func file_google_cloud_automl_v1beta1_data_types_proto_init() { 406 if File_google_cloud_automl_v1beta1_data_types_proto != nil { 407 return 408 } 409 if !protoimpl.UnsafeEnabled { 410 file_google_cloud_automl_v1beta1_data_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 411 switch v := v.(*DataType); i { 412 case 0: 413 return &v.state 414 case 1: 415 return &v.sizeCache 416 case 2: 417 return &v.unknownFields 418 default: 419 return nil 420 } 421 } 422 file_google_cloud_automl_v1beta1_data_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 423 switch v := v.(*StructType); i { 424 case 0: 425 return &v.state 426 case 1: 427 return &v.sizeCache 428 case 2: 429 return &v.unknownFields 430 default: 431 return nil 432 } 433 } 434 } 435 file_google_cloud_automl_v1beta1_data_types_proto_msgTypes[0].OneofWrappers = []interface{}{ 436 (*DataType_ListElementType)(nil), 437 (*DataType_StructType)(nil), 438 (*DataType_TimeFormat)(nil), 439 } 440 type x struct{} 441 out := protoimpl.TypeBuilder{ 442 File: protoimpl.DescBuilder{ 443 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 444 RawDescriptor: file_google_cloud_automl_v1beta1_data_types_proto_rawDesc, 445 NumEnums: 1, 446 NumMessages: 3, 447 NumExtensions: 0, 448 NumServices: 0, 449 }, 450 GoTypes: file_google_cloud_automl_v1beta1_data_types_proto_goTypes, 451 DependencyIndexes: file_google_cloud_automl_v1beta1_data_types_proto_depIdxs, 452 EnumInfos: file_google_cloud_automl_v1beta1_data_types_proto_enumTypes, 453 MessageInfos: file_google_cloud_automl_v1beta1_data_types_proto_msgTypes, 454 }.Build() 455 File_google_cloud_automl_v1beta1_data_types_proto = out.File 456 file_google_cloud_automl_v1beta1_data_types_proto_rawDesc = nil 457 file_google_cloud_automl_v1beta1_data_types_proto_goTypes = nil 458 file_google_cloud_automl_v1beta1_data_types_proto_depIdxs = nil 459} 460