OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / spanner / v1 / type.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/spanner/v1/type.proto
3
4 package spanner
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10
11 // Reference imports to suppress errors if they are not otherwise used.
12 var _ = proto.Marshal
13 var _ = fmt.Errorf
14 var _ = math.Inf
15
16 // `TypeCode` is used as part of [Type][google.spanner.v1.Type] to
17 // indicate the type of a Cloud Spanner value.
18 //
19 // Each legal value of a type can be encoded to or decoded from a JSON
20 // value, using the encodings described below. All Cloud Spanner values can
21 // be `null`, regardless of type; `null`s are always encoded as a JSON
22 // `null`.
23 type TypeCode int32
24
25 const (
26         // Not specified.
27         TypeCode_TYPE_CODE_UNSPECIFIED TypeCode = 0
28         // Encoded as JSON `true` or `false`.
29         TypeCode_BOOL TypeCode = 1
30         // Encoded as `string`, in decimal format.
31         TypeCode_INT64 TypeCode = 2
32         // Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
33         // `"-Infinity"`.
34         TypeCode_FLOAT64 TypeCode = 3
35         // Encoded as `string` in RFC 3339 timestamp format. The time zone
36         // must be present, and must be `"Z"`.
37         TypeCode_TIMESTAMP TypeCode = 4
38         // Encoded as `string` in RFC 3339 date format.
39         TypeCode_DATE TypeCode = 5
40         // Encoded as `string`.
41         TypeCode_STRING TypeCode = 6
42         // Encoded as a base64-encoded `string`, as described in RFC 4648,
43         // section 4.
44         TypeCode_BYTES TypeCode = 7
45         // Encoded as `list`, where the list elements are represented
46         // according to [array_element_type][google.spanner.v1.Type.array_element_type].
47         TypeCode_ARRAY TypeCode = 8
48         // Encoded as `list`, where list element `i` is represented according
49         // to [struct_type.fields[i]][google.spanner.v1.StructType.fields].
50         TypeCode_STRUCT TypeCode = 9
51 )
52
53 var TypeCode_name = map[int32]string{
54         0: "TYPE_CODE_UNSPECIFIED",
55         1: "BOOL",
56         2: "INT64",
57         3: "FLOAT64",
58         4: "TIMESTAMP",
59         5: "DATE",
60         6: "STRING",
61         7: "BYTES",
62         8: "ARRAY",
63         9: "STRUCT",
64 }
65 var TypeCode_value = map[string]int32{
66         "TYPE_CODE_UNSPECIFIED": 0,
67         "BOOL":                  1,
68         "INT64":                 2,
69         "FLOAT64":               3,
70         "TIMESTAMP":             4,
71         "DATE":                  5,
72         "STRING":                6,
73         "BYTES":                 7,
74         "ARRAY":                 8,
75         "STRUCT":                9,
76 }
77
78 func (x TypeCode) String() string {
79         return proto.EnumName(TypeCode_name, int32(x))
80 }
81 func (TypeCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor6, []int{0} }
82
83 // `Type` indicates the type of a Cloud Spanner value, as might be stored in a
84 // table cell or returned from an SQL query.
85 type Type struct {
86         // Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.
87         Code TypeCode `protobuf:"varint,1,opt,name=code,enum=google.spanner.v1.TypeCode" json:"code,omitempty"`
88         // If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type`
89         // is the type of the array elements.
90         ArrayElementType *Type `protobuf:"bytes,2,opt,name=array_element_type,json=arrayElementType" json:"array_element_type,omitempty"`
91         // If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type`
92         // provides type information for the struct's fields.
93         StructType *StructType `protobuf:"bytes,3,opt,name=struct_type,json=structType" json:"struct_type,omitempty"`
94 }
95
96 func (m *Type) Reset()                    { *m = Type{} }
97 func (m *Type) String() string            { return proto.CompactTextString(m) }
98 func (*Type) ProtoMessage()               {}
99 func (*Type) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} }
100
101 func (m *Type) GetCode() TypeCode {
102         if m != nil {
103                 return m.Code
104         }
105         return TypeCode_TYPE_CODE_UNSPECIFIED
106 }
107
108 func (m *Type) GetArrayElementType() *Type {
109         if m != nil {
110                 return m.ArrayElementType
111         }
112         return nil
113 }
114
115 func (m *Type) GetStructType() *StructType {
116         if m != nil {
117                 return m.StructType
118         }
119         return nil
120 }
121
122 // `StructType` defines the fields of a [STRUCT][google.spanner.v1.TypeCode.STRUCT] type.
123 type StructType struct {
124         // The list of fields that make up this struct. Order is
125         // significant, because values of this struct type are represented as
126         // lists, where the order of field values matches the order of
127         // fields in the [StructType][google.spanner.v1.StructType]. In turn, the order of fields
128         // matches the order of columns in a read request, or the order of
129         // fields in the `SELECT` clause of a query.
130         Fields []*StructType_Field `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty"`
131 }
132
133 func (m *StructType) Reset()                    { *m = StructType{} }
134 func (m *StructType) String() string            { return proto.CompactTextString(m) }
135 func (*StructType) ProtoMessage()               {}
136 func (*StructType) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1} }
137
138 func (m *StructType) GetFields() []*StructType_Field {
139         if m != nil {
140                 return m.Fields
141         }
142         return nil
143 }
144
145 // Message representing a single field of a struct.
146 type StructType_Field struct {
147         // The name of the field. For reads, this is the column name. For
148         // SQL queries, it is the column alias (e.g., `"Word"` in the
149         // query `"SELECT 'hello' AS Word"`), or the column name (e.g.,
150         // `"ColName"` in the query `"SELECT ColName FROM Table"`). Some
151         // columns might have an empty name (e.g., !"SELECT
152         // UPPER(ColName)"`). Note that a query result can contain
153         // multiple fields with the same name.
154         Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
155         // The type of the field.
156         Type *Type `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
157 }
158
159 func (m *StructType_Field) Reset()                    { *m = StructType_Field{} }
160 func (m *StructType_Field) String() string            { return proto.CompactTextString(m) }
161 func (*StructType_Field) ProtoMessage()               {}
162 func (*StructType_Field) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1, 0} }
163
164 func (m *StructType_Field) GetName() string {
165         if m != nil {
166                 return m.Name
167         }
168         return ""
169 }
170
171 func (m *StructType_Field) GetType() *Type {
172         if m != nil {
173                 return m.Type
174         }
175         return nil
176 }
177
178 func init() {
179         proto.RegisterType((*Type)(nil), "google.spanner.v1.Type")
180         proto.RegisterType((*StructType)(nil), "google.spanner.v1.StructType")
181         proto.RegisterType((*StructType_Field)(nil), "google.spanner.v1.StructType.Field")
182         proto.RegisterEnum("google.spanner.v1.TypeCode", TypeCode_name, TypeCode_value)
183 }
184
185 func init() { proto.RegisterFile("google/spanner/v1/type.proto", fileDescriptor6) }
186
187 var fileDescriptor6 = []byte{
188         // 430 bytes of a gzipped FileDescriptorProto
189         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xd1, 0x8a, 0xd3, 0x40,
190         0x14, 0x86, 0x9d, 0x36, 0xed, 0x36, 0xa7, 0x28, 0xe3, 0xc0, 0xb2, 0x75, 0x55, 0x28, 0xeb, 0x4d,
191         0x51, 0x48, 0x68, 0x15, 0x11, 0x16, 0x84, 0x34, 0x9d, 0xae, 0x81, 0xdd, 0x36, 0x24, 0xb3, 0x42,
192         0xbd, 0x29, 0x63, 0x3b, 0x86, 0x40, 0x3a, 0x13, 0x92, 0xec, 0x62, 0x5f, 0xc2, 0x1b, 0xdf, 0xc2,
193         0x87, 0xf0, 0xd9, 0x64, 0x26, 0x59, 0x15, 0xaa, 0xe2, 0xdd, 0x9f, 0xfc, 0xff, 0x77, 0xce, 0x99,
194         0xc3, 0x81, 0x27, 0x89, 0x52, 0x49, 0x26, 0xdc, 0x32, 0xe7, 0x52, 0x8a, 0xc2, 0xbd, 0x1d, 0xbb,
195         0xd5, 0x3e, 0x17, 0x4e, 0x5e, 0xa8, 0x4a, 0x91, 0x87, 0xb5, 0xeb, 0x34, 0xae, 0x73, 0x3b, 0x3e,
196         0xbd, 0x03, 0x78, 0x9e, 0xba, 0x5c, 0x4a, 0x55, 0xf1, 0x2a, 0x55, 0xb2, 0xac, 0x81, 0xb3, 0xef,
197         0x08, 0x2c, 0xb6, 0xcf, 0x05, 0x71, 0xc1, 0xda, 0xa8, 0xad, 0x18, 0xa0, 0x21, 0x1a, 0x3d, 0x98,
198         0x3c, 0x76, 0x0e, 0x0a, 0x39, 0x3a, 0xe6, 0xab, 0xad, 0x88, 0x4c, 0x90, 0x50, 0x20, 0xbc, 0x28,
199         0xf8, 0x7e, 0x2d, 0x32, 0xb1, 0x13, 0xb2, 0x5a, 0xeb, 0x31, 0x06, 0xad, 0x21, 0x1a, 0xf5, 0x27,
200         0x27, 0x7f, 0xc1, 0x23, 0x6c, 0x10, 0x5a, 0x13, 0xa6, 0xef, 0x5b, 0xe8, 0x97, 0x55, 0x71, 0xb3,
201         0x69, 0xf8, 0xb6, 0xe1, 0x9f, 0xfe, 0x81, 0x8f, 0x4d, 0xca, 0x54, 0x81, 0xf2, 0xa7, 0x3e, 0xfb,
202         0x8a, 0x00, 0x7e, 0x59, 0xe4, 0x1c, 0xba, 0x9f, 0x52, 0x91, 0x6d, 0xcb, 0x01, 0x1a, 0xb6, 0x47,
203         0xfd, 0xc9, 0xb3, 0x7f, 0x56, 0x72, 0xe6, 0x3a, 0x1b, 0x35, 0xc8, 0xe9, 0x3b, 0xe8, 0x98, 0x1f,
204         0x84, 0x80, 0x25, 0xf9, 0xae, 0x5e, 0x86, 0x1d, 0x19, 0x4d, 0x5e, 0x80, 0xf5, 0x3f, 0x2f, 0x34,
205         0xa1, 0xe7, 0x5f, 0x10, 0xf4, 0xee, 0xf6, 0x45, 0x1e, 0xc1, 0x31, 0x5b, 0x85, 0x74, 0xed, 0x2f,
206         0x67, 0x74, 0x7d, 0xbd, 0x88, 0x43, 0xea, 0x07, 0xf3, 0x80, 0xce, 0xf0, 0x3d, 0xd2, 0x03, 0x6b,
207         0xba, 0x5c, 0x5e, 0x62, 0x44, 0x6c, 0xe8, 0x04, 0x0b, 0xf6, 0xfa, 0x15, 0x6e, 0x91, 0x3e, 0x1c,
208         0xcd, 0x2f, 0x97, 0x9e, 0xfe, 0x68, 0x93, 0xfb, 0x60, 0xb3, 0xe0, 0x8a, 0xc6, 0xcc, 0xbb, 0x0a,
209         0xb1, 0xa5, 0x81, 0x99, 0xc7, 0x28, 0xee, 0x10, 0x80, 0x6e, 0xcc, 0xa2, 0x60, 0x71, 0x81, 0xbb,
210         0x1a, 0x9e, 0xae, 0x18, 0x8d, 0xf1, 0x91, 0x96, 0x5e, 0x14, 0x79, 0x2b, 0xdc, 0x6b, 0x12, 0xd7,
211         0x3e, 0xc3, 0xf6, 0xf4, 0x33, 0x1c, 0x6f, 0xd4, 0xee, 0x70, 0xe8, 0xa9, 0xad, 0xc7, 0x0c, 0xf5,
212         0x2d, 0x84, 0xe8, 0xc3, 0x9b, 0xc6, 0x4f, 0x54, 0xc6, 0x65, 0xe2, 0xa8, 0x22, 0x71, 0x13, 0x21,
213         0xcd, 0xa5, 0xb8, 0xb5, 0xc5, 0xf3, 0xb4, 0xfc, 0xed, 0xf6, 0xce, 0x1b, 0xf9, 0xad, 0x75, 0x72,
214         0x51, 0xa3, 0x7e, 0xa6, 0x6e, 0xb6, 0x4e, 0xdc, 0x34, 0x78, 0x3f, 0xfe, 0xd8, 0x35, 0xf8, 0xcb,
215         0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf4, 0xaa, 0xcb, 0xef, 0xb9, 0x02, 0x00, 0x00,
216 }