/
input.pb.go
274 lines (243 loc) · 9.09 KB
/
input.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow_serving/apis/input.proto
package serving
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
example "github.com/tensorflow/tensorflow/tensorflow/go/core/example"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Specifies one or more fully independent input Examples.
// See examples at:
// https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/example/example.proto
type ExampleList struct {
Examples []*example.Example `protobuf:"bytes,1,rep,name=examples,proto3" json:"examples,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExampleList) Reset() { *m = ExampleList{} }
func (m *ExampleList) String() string { return proto.CompactTextString(m) }
func (*ExampleList) ProtoMessage() {}
func (*ExampleList) Descriptor() ([]byte, []int) {
return fileDescriptor_68144b991b8eca1f, []int{0}
}
func (m *ExampleList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExampleList.Unmarshal(m, b)
}
func (m *ExampleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExampleList.Marshal(b, m, deterministic)
}
func (m *ExampleList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExampleList.Merge(m, src)
}
func (m *ExampleList) XXX_Size() int {
return xxx_messageInfo_ExampleList.Size(m)
}
func (m *ExampleList) XXX_DiscardUnknown() {
xxx_messageInfo_ExampleList.DiscardUnknown(m)
}
var xxx_messageInfo_ExampleList proto.InternalMessageInfo
func (m *ExampleList) GetExamples() []*example.Example {
if m != nil {
return m.Examples
}
return nil
}
// Specifies one or more independent input Examples, with a common context
// Example.
//
// The common use case for context is to cleanly and optimally specify some
// features that are common across multiple examples.
//
// See example below with a search query as the context and multiple restaurants
// to perform some inference on.
//
// context: {
// features: {
// feature: {
// key : "query"
// value: {
// bytes_list: {
// value: [ "pizza" ]
// }
// }
// }
// }
// }
// examples: {
// features: {
// feature: {
// key : "cuisine"
// value: {
// bytes_list: {
// value: [ "Pizzeria" ]
// }
// }
// }
// }
// }
// examples: {
// features: {
// feature: {
// key : "cuisine"
// value: {
// bytes_list: {
// value: [ "Taqueria" ]
// }
// }
// }
// }
// }
//
// Implementations of ExampleListWithContext merge the context Example into each
// of the Examples. Note that feature keys must not be duplicated between the
// Examples and context Example, or the behavior is undefined.
//
// See also:
// tensorflow/core/example/example.proto
// https://developers.google.com/protocol-buffers/docs/proto3#maps
type ExampleListWithContext struct {
Examples []*example.Example `protobuf:"bytes,1,rep,name=examples,proto3" json:"examples,omitempty"`
Context *example.Example `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExampleListWithContext) Reset() { *m = ExampleListWithContext{} }
func (m *ExampleListWithContext) String() string { return proto.CompactTextString(m) }
func (*ExampleListWithContext) ProtoMessage() {}
func (*ExampleListWithContext) Descriptor() ([]byte, []int) {
return fileDescriptor_68144b991b8eca1f, []int{1}
}
func (m *ExampleListWithContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExampleListWithContext.Unmarshal(m, b)
}
func (m *ExampleListWithContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExampleListWithContext.Marshal(b, m, deterministic)
}
func (m *ExampleListWithContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExampleListWithContext.Merge(m, src)
}
func (m *ExampleListWithContext) XXX_Size() int {
return xxx_messageInfo_ExampleListWithContext.Size(m)
}
func (m *ExampleListWithContext) XXX_DiscardUnknown() {
xxx_messageInfo_ExampleListWithContext.DiscardUnknown(m)
}
var xxx_messageInfo_ExampleListWithContext proto.InternalMessageInfo
func (m *ExampleListWithContext) GetExamples() []*example.Example {
if m != nil {
return m.Examples
}
return nil
}
func (m *ExampleListWithContext) GetContext() *example.Example {
if m != nil {
return m.Context
}
return nil
}
type Input struct {
// Types that are valid to be assigned to Kind:
// *Input_ExampleList
// *Input_ExampleListWithContext
Kind isInput_Kind `protobuf_oneof:"kind"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Input) Reset() { *m = Input{} }
func (m *Input) String() string { return proto.CompactTextString(m) }
func (*Input) ProtoMessage() {}
func (*Input) Descriptor() ([]byte, []int) {
return fileDescriptor_68144b991b8eca1f, []int{2}
}
func (m *Input) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Input.Unmarshal(m, b)
}
func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Input.Marshal(b, m, deterministic)
}
func (m *Input) XXX_Merge(src proto.Message) {
xxx_messageInfo_Input.Merge(m, src)
}
func (m *Input) XXX_Size() int {
return xxx_messageInfo_Input.Size(m)
}
func (m *Input) XXX_DiscardUnknown() {
xxx_messageInfo_Input.DiscardUnknown(m)
}
var xxx_messageInfo_Input proto.InternalMessageInfo
type isInput_Kind interface {
isInput_Kind()
}
type Input_ExampleList struct {
ExampleList *ExampleList `protobuf:"bytes,1,opt,name=example_list,json=exampleList,proto3,oneof"`
}
type Input_ExampleListWithContext struct {
ExampleListWithContext *ExampleListWithContext `protobuf:"bytes,2,opt,name=example_list_with_context,json=exampleListWithContext,proto3,oneof"`
}
func (*Input_ExampleList) isInput_Kind() {}
func (*Input_ExampleListWithContext) isInput_Kind() {}
func (m *Input) GetKind() isInput_Kind {
if m != nil {
return m.Kind
}
return nil
}
func (m *Input) GetExampleList() *ExampleList {
if x, ok := m.GetKind().(*Input_ExampleList); ok {
return x.ExampleList
}
return nil
}
func (m *Input) GetExampleListWithContext() *ExampleListWithContext {
if x, ok := m.GetKind().(*Input_ExampleListWithContext); ok {
return x.ExampleListWithContext
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Input) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Input_ExampleList)(nil),
(*Input_ExampleListWithContext)(nil),
}
}
func init() {
proto.RegisterType((*ExampleList)(nil), "tensorflow.serving.ExampleList")
proto.RegisterType((*ExampleListWithContext)(nil), "tensorflow.serving.ExampleListWithContext")
proto.RegisterType((*Input)(nil), "tensorflow.serving.Input")
}
func init() {
proto.RegisterFile("tensorflow_serving/apis/input.proto", fileDescriptor_68144b991b8eca1f)
}
var fileDescriptor_68144b991b8eca1f = []byte{
// 242 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x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0x54, 0x47, 0x69, 0x11, 0x30, 0x16, 0x29, 0x08, 0xa0, 0x36, 0x88, 0xa5,
0x62, 0x97, 0x65, 0xe3, 0x62, 0xc9, 0xce, 0xcc, 0x4b, 0x71, 0x62, 0xfe, 0xc1, 0xc8, 0x98, 0xc4,
0x06, 0x8e, 0x0e, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2d, 0x4d, 0x99, 0xf6, 0xf0, 0x01,
0x00, 0x00,
}