1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/automl/v1beta1/data_types.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	_ "google.golang.org/genproto/googleapis/api/annotations"
13)
14
15// Reference imports to suppress errors if they are not otherwise used.
16var _ = proto.Marshal
17var _ = fmt.Errorf
18var _ = math.Inf
19
20// This is a compile-time assertion to ensure that this generated file
21// is compatible with the proto package it is being compiled against.
22// A compilation error at this line likely means your copy of the
23// proto package needs to be updated.
24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
25
26// `TypeCode` is used as a part of
27// [DataType][google.cloud.automl.v1beta1.DataType].
28//
29// Each legal value of a DataType can be encoded to or decoded from a JSON
30// value, using the encodings listed below, and definitions of which can be
31// found at
32//
33// https:
34// //developers.google.com/protocol-buffers
35// // /docs/reference/google.protobuf#value.
36type TypeCode int32
37
38const (
39	// Not specified. Should not be used.
40	TypeCode_TYPE_CODE_UNSPECIFIED TypeCode = 0
41	// Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
42	// `"-Infinity"`.
43	TypeCode_FLOAT64 TypeCode = 3
44	// Must be between 0AD and 9999AD. Encoded as `string` according to
45	// [time_format][google.cloud.automl.v1beta1.DataType.time_format], or, if
46	// that format is not set, then in RFC 3339 `date-time` format, where
47	// `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z).
48	TypeCode_TIMESTAMP TypeCode = 4
49	// Encoded as `string`.
50	TypeCode_STRING TypeCode = 6
51	// Encoded as `list`, where the list elements are represented according to
52	//
53	// [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].
54	TypeCode_ARRAY TypeCode = 8
55	// Encoded as `struct`, where field values are represented according to
56	// [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
57	TypeCode_STRUCT TypeCode = 9
58	// Values of this type are not further understood by AutoML,
59	// e.g. AutoML is unable to tell the order of values (as it could with
60	// FLOAT64), or is unable to say if one value contains another (as it
61	// could with STRING).
62	// Encoded as `string` (bytes should be base64-encoded, as described in RFC
63	// 4648, section 4).
64	TypeCode_CATEGORY TypeCode = 10
65)
66
67var TypeCode_name = map[int32]string{
68	0:  "TYPE_CODE_UNSPECIFIED",
69	3:  "FLOAT64",
70	4:  "TIMESTAMP",
71	6:  "STRING",
72	8:  "ARRAY",
73	9:  "STRUCT",
74	10: "CATEGORY",
75}
76
77var TypeCode_value = map[string]int32{
78	"TYPE_CODE_UNSPECIFIED": 0,
79	"FLOAT64":               3,
80	"TIMESTAMP":             4,
81	"STRING":                6,
82	"ARRAY":                 8,
83	"STRUCT":                9,
84	"CATEGORY":              10,
85}
86
87func (x TypeCode) String() string {
88	return proto.EnumName(TypeCode_name, int32(x))
89}
90
91func (TypeCode) EnumDescriptor() ([]byte, []int) {
92	return fileDescriptor_43071a57be770d81, []int{0}
93}
94
95// Indicated the type of data that can be stored in a structured data entity
96// (e.g. a table).
97type DataType struct {
98	// Details of DataType-s that need additional specification.
99	//
100	// Types that are valid to be assigned to Details:
101	//	*DataType_ListElementType
102	//	*DataType_StructType
103	//	*DataType_TimeFormat
104	Details isDataType_Details `protobuf_oneof:"details"`
105	// Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
106	TypeCode TypeCode `protobuf:"varint,1,opt,name=type_code,json=typeCode,proto3,enum=google.cloud.automl.v1beta1.TypeCode" json:"type_code,omitempty"`
107	// If true, this DataType can also be `null`.
108	Nullable             bool     `protobuf:"varint,4,opt,name=nullable,proto3" json:"nullable,omitempty"`
109	XXX_NoUnkeyedLiteral struct{} `json:"-"`
110	XXX_unrecognized     []byte   `json:"-"`
111	XXX_sizecache        int32    `json:"-"`
112}
113
114func (m *DataType) Reset()         { *m = DataType{} }
115func (m *DataType) String() string { return proto.CompactTextString(m) }
116func (*DataType) ProtoMessage()    {}
117func (*DataType) Descriptor() ([]byte, []int) {
118	return fileDescriptor_43071a57be770d81, []int{0}
119}
120
121func (m *DataType) XXX_Unmarshal(b []byte) error {
122	return xxx_messageInfo_DataType.Unmarshal(m, b)
123}
124func (m *DataType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
125	return xxx_messageInfo_DataType.Marshal(b, m, deterministic)
126}
127func (m *DataType) XXX_Merge(src proto.Message) {
128	xxx_messageInfo_DataType.Merge(m, src)
129}
130func (m *DataType) XXX_Size() int {
131	return xxx_messageInfo_DataType.Size(m)
132}
133func (m *DataType) XXX_DiscardUnknown() {
134	xxx_messageInfo_DataType.DiscardUnknown(m)
135}
136
137var xxx_messageInfo_DataType proto.InternalMessageInfo
138
139type isDataType_Details interface {
140	isDataType_Details()
141}
142
143type DataType_ListElementType struct {
144	ListElementType *DataType `protobuf:"bytes,2,opt,name=list_element_type,json=listElementType,proto3,oneof"`
145}
146
147type DataType_StructType struct {
148	StructType *StructType `protobuf:"bytes,3,opt,name=struct_type,json=structType,proto3,oneof"`
149}
150
151type DataType_TimeFormat struct {
152	TimeFormat string `protobuf:"bytes,5,opt,name=time_format,json=timeFormat,proto3,oneof"`
153}
154
155func (*DataType_ListElementType) isDataType_Details() {}
156
157func (*DataType_StructType) isDataType_Details() {}
158
159func (*DataType_TimeFormat) isDataType_Details() {}
160
161func (m *DataType) GetDetails() isDataType_Details {
162	if m != nil {
163		return m.Details
164	}
165	return nil
166}
167
168func (m *DataType) GetListElementType() *DataType {
169	if x, ok := m.GetDetails().(*DataType_ListElementType); ok {
170		return x.ListElementType
171	}
172	return nil
173}
174
175func (m *DataType) GetStructType() *StructType {
176	if x, ok := m.GetDetails().(*DataType_StructType); ok {
177		return x.StructType
178	}
179	return nil
180}
181
182func (m *DataType) GetTimeFormat() string {
183	if x, ok := m.GetDetails().(*DataType_TimeFormat); ok {
184		return x.TimeFormat
185	}
186	return ""
187}
188
189func (m *DataType) GetTypeCode() TypeCode {
190	if m != nil {
191		return m.TypeCode
192	}
193	return TypeCode_TYPE_CODE_UNSPECIFIED
194}
195
196func (m *DataType) GetNullable() bool {
197	if m != nil {
198		return m.Nullable
199	}
200	return false
201}
202
203// XXX_OneofWrappers is for the internal use of the proto package.
204func (*DataType) XXX_OneofWrappers() []interface{} {
205	return []interface{}{
206		(*DataType_ListElementType)(nil),
207		(*DataType_StructType)(nil),
208		(*DataType_TimeFormat)(nil),
209	}
210}
211
212// `StructType` defines the DataType-s of a [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT] type.
213type StructType struct {
214	// Unordered map of struct field names to their data types.
215	// Fields cannot be added or removed via Update. Their names and
216	// data types are still mutable.
217	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"`
218	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
219	XXX_unrecognized     []byte               `json:"-"`
220	XXX_sizecache        int32                `json:"-"`
221}
222
223func (m *StructType) Reset()         { *m = StructType{} }
224func (m *StructType) String() string { return proto.CompactTextString(m) }
225func (*StructType) ProtoMessage()    {}
226func (*StructType) Descriptor() ([]byte, []int) {
227	return fileDescriptor_43071a57be770d81, []int{1}
228}
229
230func (m *StructType) XXX_Unmarshal(b []byte) error {
231	return xxx_messageInfo_StructType.Unmarshal(m, b)
232}
233func (m *StructType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
234	return xxx_messageInfo_StructType.Marshal(b, m, deterministic)
235}
236func (m *StructType) XXX_Merge(src proto.Message) {
237	xxx_messageInfo_StructType.Merge(m, src)
238}
239func (m *StructType) XXX_Size() int {
240	return xxx_messageInfo_StructType.Size(m)
241}
242func (m *StructType) XXX_DiscardUnknown() {
243	xxx_messageInfo_StructType.DiscardUnknown(m)
244}
245
246var xxx_messageInfo_StructType proto.InternalMessageInfo
247
248func (m *StructType) GetFields() map[string]*DataType {
249	if m != nil {
250		return m.Fields
251	}
252	return nil
253}
254
255func init() {
256	proto.RegisterEnum("google.cloud.automl.v1beta1.TypeCode", TypeCode_name, TypeCode_value)
257	proto.RegisterType((*DataType)(nil), "google.cloud.automl.v1beta1.DataType")
258	proto.RegisterType((*StructType)(nil), "google.cloud.automl.v1beta1.StructType")
259	proto.RegisterMapType((map[string]*DataType)(nil), "google.cloud.automl.v1beta1.StructType.FieldsEntry")
260}
261
262func init() {
263	proto.RegisterFile("google/cloud/automl/v1beta1/data_types.proto", fileDescriptor_43071a57be770d81)
264}
265
266var fileDescriptor_43071a57be770d81 = []byte{
267	// 528 bytes of a gzipped FileDescriptorProto
268	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x5f, 0x8b, 0xd3, 0x40,
269	0x10, 0xc0, 0x2f, 0xed, 0xb5, 0x97, 0x4c, 0xfc, 0x13, 0x17, 0x84, 0x5e, 0x4f, 0xb0, 0x1e, 0x8a,
270	0x45, 0x24, 0xa1, 0x77, 0x22, 0xe2, 0x3d, 0xa5, 0x69, 0x5a, 0xab, 0xf6, 0x5a, 0xd2, 0x9c, 0x50,
271	0x29, 0xc4, 0x6d, 0xb3, 0x0d, 0xc1, 0x6d, 0xb6, 0x24, 0x9b, 0xe3, 0xfa, 0xee, 0x97, 0x12, 0xbf,
272	0x81, 0x9f, 0x4a, 0xb2, 0xd9, 0x3b, 0x7d, 0x90, 0xea, 0xbd, 0xed, 0xcc, 0xfc, 0xe6, 0xb7, 0x33,
273	0x24, 0x0b, 0x2f, 0x23, 0xc6, 0x22, 0x4a, 0xac, 0x25, 0x65, 0x79, 0x68, 0xe1, 0x9c, 0xb3, 0x35,
274	0xb5, 0x2e, 0x3b, 0x0b, 0xc2, 0x71, 0xc7, 0x0a, 0x31, 0xc7, 0x01, 0xdf, 0x6e, 0x48, 0x66, 0x6e,
275	0x52, 0xc6, 0x19, 0x3a, 0x2a, 0x69, 0x53, 0xd0, 0x66, 0x49, 0x9b, 0x92, 0x6e, 0x3e, 0x92, 0x2a,
276	0xbc, 0x89, 0x2d, 0x9c, 0x24, 0x8c, 0x63, 0x1e, 0xb3, 0x44, 0xb6, 0x36, 0x9f, 0xee, 0xba, 0x28,
277	0x66, 0x92, 0xea, 0xec, 0xa2, 0x38, 0xb9, 0xe2, 0x01, 0xb9, 0xe2, 0x29, 0x5e, 0x16, 0x66, 0xd9,
278	0x72, 0x28, 0x5b, 0x44, 0xb4, 0xc8, 0x57, 0x16, 0x4e, 0xb6, 0x65, 0xe9, 0xf8, 0x7b, 0x05, 0xd4,
279	0x1e, 0xe6, 0xd8, 0xdf, 0x6e, 0x08, 0x9a, 0xc2, 0x03, 0x1a, 0x67, 0x3c, 0x20, 0x94, 0xac, 0x49,
280	0xc2, 0xc5, 0x5e, 0x8d, 0x4a, 0x4b, 0x69, 0xeb, 0x27, 0xcf, 0xcc, 0x1d, 0x7b, 0x99, 0xd7, 0x86,
281	0x77, 0x7b, 0xde, 0xfd, 0xc2, 0xe0, 0x96, 0x02, 0x21, 0x7d, 0x0f, 0x7a, 0xc6, 0xd3, 0x7c, 0x29,
282	0x75, 0x55, 0xa1, 0x7b, 0xbe, 0x53, 0x37, 0x15, 0xbc, 0x14, 0x42, 0x76, 0x13, 0xa1, 0x27, 0xa0,
283	0xf3, 0x78, 0x4d, 0x82, 0x15, 0x4b, 0xd7, 0x98, 0x37, 0x6a, 0x2d, 0xa5, 0xad, 0x15, 0x48, 0x91,
284	0xec, 0x8b, 0x1c, 0xea, 0x82, 0x56, 0xdc, 0x13, 0x2c, 0x59, 0x48, 0x1a, 0x4a, 0x4b, 0x69, 0xdf,
285	0xfb, 0xc7, 0xec, 0x85, 0xd8, 0x61, 0x21, 0xf1, 0x54, 0x2e, 0x4f, 0xa8, 0x09, 0x6a, 0x92, 0x53,
286	0x8a, 0x17, 0x94, 0x34, 0xf6, 0x5b, 0x4a, 0x5b, 0xf5, 0x6e, 0xe2, 0xae, 0x06, 0x07, 0x21, 0xe1,
287	0x38, 0xa6, 0xd9, 0xf1, 0x0f, 0x05, 0xe0, 0xf7, 0xa8, 0xe8, 0x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3, 0x72, 0x34,
299	0x10, 0xe0, 0xdc, 0x29, 0xa0, 0xb9, 0x9d, 0x73, 0x36, 0xa2, 0xf3, 0x4f, 0x25, 0xb4, 0xa8, 0x0b,
300	0xd7, 0xe9, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x69, 0x86, 0x13, 0xbf, 0xda, 0x03, 0x00, 0x00,
301}
302