-
Notifications
You must be signed in to change notification settings - Fork 0
/
feature.pb.go
293 lines (260 loc) · 10.4 KB
/
feature.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
// Code generated by protoc-gen-go.
// source: tensorflow/core/example/feature.proto
// DO NOT EDIT!
package tensorflow
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Containers to hold repeated fundamental values.
type BytesList struct {
Value [][]byte `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
}
func (m *BytesList) Reset() { *m = BytesList{} }
func (m *BytesList) String() string { return proto.CompactTextString(m) }
func (*BytesList) ProtoMessage() {}
func (*BytesList) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
type FloatList struct {
Value []float32 `protobuf:"fixed32,1,rep,packed,name=value" json:"value,omitempty"`
}
func (m *FloatList) Reset() { *m = FloatList{} }
func (m *FloatList) String() string { return proto.CompactTextString(m) }
func (*FloatList) ProtoMessage() {}
func (*FloatList) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
type Int64List struct {
Value []int64 `protobuf:"varint,1,rep,packed,name=value" json:"value,omitempty"`
}
func (m *Int64List) Reset() { *m = Int64List{} }
func (m *Int64List) String() string { return proto.CompactTextString(m) }
func (*Int64List) ProtoMessage() {}
func (*Int64List) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
// Containers for non-sequential data.
type Feature struct {
// Each feature can be exactly one kind.
//
// Types that are valid to be assigned to Kind:
// *Feature_BytesList
// *Feature_FloatList
// *Feature_Int64List
Kind isFeature_Kind `protobuf_oneof:"kind"`
}
func (m *Feature) Reset() { *m = Feature{} }
func (m *Feature) String() string { return proto.CompactTextString(m) }
func (*Feature) ProtoMessage() {}
func (*Feature) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
type isFeature_Kind interface {
isFeature_Kind()
}
type Feature_BytesList struct {
BytesList *BytesList `protobuf:"bytes,1,opt,name=bytes_list,json=bytesList,oneof"`
}
type Feature_FloatList struct {
FloatList *FloatList `protobuf:"bytes,2,opt,name=float_list,json=floatList,oneof"`
}
type Feature_Int64List struct {
Int64List *Int64List `protobuf:"bytes,3,opt,name=int64_list,json=int64List,oneof"`
}
func (*Feature_BytesList) isFeature_Kind() {}
func (*Feature_FloatList) isFeature_Kind() {}
func (*Feature_Int64List) isFeature_Kind() {}
func (m *Feature) GetKind() isFeature_Kind {
if m != nil {
return m.Kind
}
return nil
}
func (m *Feature) GetBytesList() *BytesList {
if x, ok := m.GetKind().(*Feature_BytesList); ok {
return x.BytesList
}
return nil
}
func (m *Feature) GetFloatList() *FloatList {
if x, ok := m.GetKind().(*Feature_FloatList); ok {
return x.FloatList
}
return nil
}
func (m *Feature) GetInt64List() *Int64List {
if x, ok := m.GetKind().(*Feature_Int64List); ok {
return x.Int64List
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Feature) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Feature_OneofMarshaler, _Feature_OneofUnmarshaler, _Feature_OneofSizer, []interface{}{
(*Feature_BytesList)(nil),
(*Feature_FloatList)(nil),
(*Feature_Int64List)(nil),
}
}
func _Feature_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Feature)
// kind
switch x := m.Kind.(type) {
case *Feature_BytesList:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BytesList); err != nil {
return err
}
case *Feature_FloatList:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.FloatList); err != nil {
return err
}
case *Feature_Int64List:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Int64List); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Feature.Kind has unexpected type %T", x)
}
return nil
}
func _Feature_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Feature)
switch tag {
case 1: // kind.bytes_list
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BytesList)
err := b.DecodeMessage(msg)
m.Kind = &Feature_BytesList{msg}
return true, err
case 2: // kind.float_list
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(FloatList)
err := b.DecodeMessage(msg)
m.Kind = &Feature_FloatList{msg}
return true, err
case 3: // kind.int64_list
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Int64List)
err := b.DecodeMessage(msg)
m.Kind = &Feature_Int64List{msg}
return true, err
default:
return false, nil
}
}
func _Feature_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Feature)
// kind
switch x := m.Kind.(type) {
case *Feature_BytesList:
s := proto.Size(x.BytesList)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Feature_FloatList:
s := proto.Size(x.FloatList)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Feature_Int64List:
s := proto.Size(x.Int64List)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type Features struct {
// Map from feature name to feature.
Feature map[string]*Feature `protobuf:"bytes,1,rep,name=feature" json:"feature,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *Features) Reset() { *m = Features{} }
func (m *Features) String() string { return proto.CompactTextString(m) }
func (*Features) ProtoMessage() {}
func (*Features) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
func (m *Features) GetFeature() map[string]*Feature {
if m != nil {
return m.Feature
}
return nil
}
// Containers for sequential data.
//
// A FeatureList contains lists of Features. These may hold zero or more
// Feature values.
//
// FeatureLists are organized into categories by name. The FeatureLists message
// contains the mapping from name to FeatureList.
//
type FeatureList struct {
Feature []*Feature `protobuf:"bytes,1,rep,name=feature" json:"feature,omitempty"`
}
func (m *FeatureList) Reset() { *m = FeatureList{} }
func (m *FeatureList) String() string { return proto.CompactTextString(m) }
func (*FeatureList) ProtoMessage() {}
func (*FeatureList) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
func (m *FeatureList) GetFeature() []*Feature {
if m != nil {
return m.Feature
}
return nil
}
type FeatureLists struct {
// Map from feature name to feature list.
FeatureList map[string]*FeatureList `protobuf:"bytes,1,rep,name=feature_list,json=featureList" json:"feature_list,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *FeatureLists) Reset() { *m = FeatureLists{} }
func (m *FeatureLists) String() string { return proto.CompactTextString(m) }
func (*FeatureLists) ProtoMessage() {}
func (*FeatureLists) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
func (m *FeatureLists) GetFeatureList() map[string]*FeatureList {
if m != nil {
return m.FeatureList
}
return nil
}
func init() {
proto.RegisterType((*BytesList)(nil), "tensorflow.BytesList")
proto.RegisterType((*FloatList)(nil), "tensorflow.FloatList")
proto.RegisterType((*Int64List)(nil), "tensorflow.Int64List")
proto.RegisterType((*Feature)(nil), "tensorflow.Feature")
proto.RegisterType((*Features)(nil), "tensorflow.Features")
proto.RegisterType((*FeatureList)(nil), "tensorflow.FeatureList")
proto.RegisterType((*FeatureLists)(nil), "tensorflow.FeatureLists")
}
var fileDescriptor1 = []byte{
// 372 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x4a, 0xf3, 0x40,
0x14, 0xc5, 0xbf, 0x49, 0x3e, 0x5b, 0x73, 0x53, 0xa1, 0x8c, 0xff, 0x4a, 0x57, 0x36, 0x50, 0x68,
0xc1, 0xb6, 0x50, 0xa5, 0x88, 0xba, 0x0a, 0x58, 0x14, 0x0a, 0x96, 0x6c, 0x5c, 0x4a, 0xaa, 0x13,
0x09, 0x8d, 0x99, 0x92, 0x4c, 0xd5, 0xbe, 0x89, 0x2f, 0xe2, 0xc2, 0x37, 0x73, 0x69, 0x26, 0x99,
0x4c, 0xa7, 0x4d, 0xdc, 0xe5, 0xce, 0x9c, 0xdf, 0x9d, 0x73, 0x6e, 0x2e, 0xb4, 0x19, 0x09, 0x63,
0x1a, 0x79, 0x01, 0x7d, 0x1f, 0x3c, 0xd1, 0x88, 0x0c, 0xc8, 0x87, 0xfb, 0xba, 0x08, 0xc8, 0xc0,
0x23, 0x2e, 0x5b, 0x46, 0xa4, 0xbf, 0x88, 0x28, 0xa3, 0x18, 0xd6, 0x32, 0xab, 0x05, 0x86, 0xbd,
0x62, 0x24, 0x9e, 0xf8, 0x31, 0xc3, 0x07, 0xb0, 0x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