blob: dc7e4a6450d69c13fcda8242c4682ad163e21107 [file] [log] [blame]
Rob Pikeaaa3a622010-03-20 22:32:34 -07001// Code generated by protoc-gen-go from "google/protobuf/descriptor.proto"
2// DO NOT EDIT!
3
4package google_protobuf
5
6import "goprotobuf.googlecode.com/hg/proto"
7
8type FieldDescriptorProto_Type int32
9const (
10 FieldDescriptorProto_TYPE_DOUBLE = 1
11 FieldDescriptorProto_TYPE_FLOAT = 2
12 FieldDescriptorProto_TYPE_INT64 = 3
13 FieldDescriptorProto_TYPE_UINT64 = 4
14 FieldDescriptorProto_TYPE_INT32 = 5
15 FieldDescriptorProto_TYPE_FIXED64 = 6
16 FieldDescriptorProto_TYPE_FIXED32 = 7
17 FieldDescriptorProto_TYPE_BOOL = 8
18 FieldDescriptorProto_TYPE_STRING = 9
19 FieldDescriptorProto_TYPE_GROUP = 10
20 FieldDescriptorProto_TYPE_MESSAGE = 11
21 FieldDescriptorProto_TYPE_BYTES = 12
22 FieldDescriptorProto_TYPE_UINT32 = 13
23 FieldDescriptorProto_TYPE_ENUM = 14
24 FieldDescriptorProto_TYPE_SFIXED32 = 15
25 FieldDescriptorProto_TYPE_SFIXED64 = 16
26 FieldDescriptorProto_TYPE_SINT32 = 17
27 FieldDescriptorProto_TYPE_SINT64 = 18
28)
29var FieldDescriptorProto_Type_name = map[int32] string {
30 1: "TYPE_DOUBLE",
31 2: "TYPE_FLOAT",
32 3: "TYPE_INT64",
33 4: "TYPE_UINT64",
34 5: "TYPE_INT32",
35 6: "TYPE_FIXED64",
36 7: "TYPE_FIXED32",
37 8: "TYPE_BOOL",
38 9: "TYPE_STRING",
39 10: "TYPE_GROUP",
40 11: "TYPE_MESSAGE",
41 12: "TYPE_BYTES",
42 13: "TYPE_UINT32",
43 14: "TYPE_ENUM",
44 15: "TYPE_SFIXED32",
45 16: "TYPE_SFIXED64",
46 17: "TYPE_SINT32",
47 18: "TYPE_SINT64",
48}
49var FieldDescriptorProto_Type_value = map[string] int32 {
50 "TYPE_DOUBLE": 1,
51 "TYPE_FLOAT": 2,
52 "TYPE_INT64": 3,
53 "TYPE_UINT64": 4,
54 "TYPE_INT32": 5,
55 "TYPE_FIXED64": 6,
56 "TYPE_FIXED32": 7,
57 "TYPE_BOOL": 8,
58 "TYPE_STRING": 9,
59 "TYPE_GROUP": 10,
60 "TYPE_MESSAGE": 11,
61 "TYPE_BYTES": 12,
62 "TYPE_UINT32": 13,
63 "TYPE_ENUM": 14,
64 "TYPE_SFIXED32": 15,
65 "TYPE_SFIXED64": 16,
66 "TYPE_SINT32": 17,
67 "TYPE_SINT64": 18,
68}
69func NewFieldDescriptorProto_Type(x int32) *FieldDescriptorProto_Type {
70 e := FieldDescriptorProto_Type(x)
71 return &e
72}
73
74type FieldDescriptorProto_Label int32
75const (
76 FieldDescriptorProto_LABEL_OPTIONAL = 1
77 FieldDescriptorProto_LABEL_REQUIRED = 2
78 FieldDescriptorProto_LABEL_REPEATED = 3
79)
80var FieldDescriptorProto_Label_name = map[int32] string {
81 1: "LABEL_OPTIONAL",
82 2: "LABEL_REQUIRED",
83 3: "LABEL_REPEATED",
84}
85var FieldDescriptorProto_Label_value = map[string] int32 {
86 "LABEL_OPTIONAL": 1,
87 "LABEL_REQUIRED": 2,
88 "LABEL_REPEATED": 3,
89}
90func NewFieldDescriptorProto_Label(x int32) *FieldDescriptorProto_Label {
91 e := FieldDescriptorProto_Label(x)
92 return &e
93}
94
95type FileOptions_OptimizeMode int32
96const (
97 FileOptions_SPEED = 1
98 FileOptions_CODE_SIZE = 2
99 FileOptions_LITE_RUNTIME = 3
100)
101var FileOptions_OptimizeMode_name = map[int32] string {
102 1: "SPEED",
103 2: "CODE_SIZE",
104 3: "LITE_RUNTIME",
105}
106var FileOptions_OptimizeMode_value = map[string] int32 {
107 "SPEED": 1,
108 "CODE_SIZE": 2,
109 "LITE_RUNTIME": 3,
110}
111func NewFileOptions_OptimizeMode(x int32) *FileOptions_OptimizeMode {
112 e := FileOptions_OptimizeMode(x)
113 return &e
114}
115
116type FieldOptions_CType int32
117const (
118 FieldOptions_STRING = 0
119 FieldOptions_CORD = 1
120 FieldOptions_STRING_PIECE = 2
121)
122var FieldOptions_CType_name = map[int32] string {
123 0: "STRING",
124 1: "CORD",
125 2: "STRING_PIECE",
126}
127var FieldOptions_CType_value = map[string] int32 {
128 "STRING": 0,
129 "CORD": 1,
130 "STRING_PIECE": 2,
131}
132func NewFieldOptions_CType(x int32) *FieldOptions_CType {
133 e := FieldOptions_CType(x)
134 return &e
135}
136
137type FileDescriptorSet struct {
138 File []*FileDescriptorProto "PB(bytes,1,rep,name=file)"
139 XXX_unrecognized []byte
140}
141func (this *FileDescriptorSet) Reset() {
142 *this = FileDescriptorSet{}
143}
144func NewFileDescriptorSet() *FileDescriptorSet {
145 return new(FileDescriptorSet)
146}
147
148type FileDescriptorProto struct {
149 Name *string "PB(bytes,1,opt,name=name)"
150 Package *string "PB(bytes,2,opt,name=package)"
151 Dependency []string "PB(bytes,3,rep,name=dependency)"
152 MessageType []*DescriptorProto "PB(bytes,4,rep,name=message_type)"
153 EnumType []*EnumDescriptorProto "PB(bytes,5,rep,name=enum_type)"
154 Service []*ServiceDescriptorProto "PB(bytes,6,rep,name=service)"
155 Extension []*FieldDescriptorProto "PB(bytes,7,rep,name=extension)"
156 Options *FileOptions "PB(bytes,8,opt,name=options)"
157 XXX_unrecognized []byte
158}
159func (this *FileDescriptorProto) Reset() {
160 *this = FileDescriptorProto{}
161}
162func NewFileDescriptorProto() *FileDescriptorProto {
163 return new(FileDescriptorProto)
164}
165
166type DescriptorProto struct {
167 Name *string "PB(bytes,1,opt,name=name)"
168 Field []*FieldDescriptorProto "PB(bytes,2,rep,name=field)"
169 Extension []*FieldDescriptorProto "PB(bytes,6,rep,name=extension)"
170 NestedType []*DescriptorProto "PB(bytes,3,rep,name=nested_type)"
171 EnumType []*EnumDescriptorProto "PB(bytes,4,rep,name=enum_type)"
172 ExtensionRange []*DescriptorProto_ExtensionRange "PB(bytes,5,rep,name=extension_range)"
173 Options *MessageOptions "PB(bytes,7,opt,name=options)"
174 XXX_unrecognized []byte
175}
176func (this *DescriptorProto) Reset() {
177 *this = DescriptorProto{}
178}
179func NewDescriptorProto() *DescriptorProto {
180 return new(DescriptorProto)
181}
182
183type DescriptorProto_ExtensionRange struct {
184 Start *int32 "PB(varint,1,opt,name=start)"
185 End *int32 "PB(varint,2,opt,name=end)"
186 XXX_unrecognized []byte
187}
188func (this *DescriptorProto_ExtensionRange) Reset() {
189 *this = DescriptorProto_ExtensionRange{}
190}
191func NewDescriptorProto_ExtensionRange() *DescriptorProto_ExtensionRange {
192 return new(DescriptorProto_ExtensionRange)
193}
194
195type FieldDescriptorProto struct {
196 Name *string "PB(bytes,1,opt,name=name)"
197 Number *int32 "PB(varint,3,opt,name=number)"
198 Label *FieldDescriptorProto_Label "PB(varint,4,opt,name=label,enum=google_protobuf.FieldDescriptorProto_Label)"
199 Type *FieldDescriptorProto_Type "PB(varint,5,opt,name=type,enum=google_protobuf.FieldDescriptorProto_Type)"
200 TypeName *string "PB(bytes,6,opt,name=type_name)"
201 Extendee *string "PB(bytes,2,opt,name=extendee)"
202 DefaultValue *string "PB(bytes,7,opt,name=default_value)"
203 Options *FieldOptions "PB(bytes,8,opt,name=options)"
204 XXX_unrecognized []byte
205}
206func (this *FieldDescriptorProto) Reset() {
207 *this = FieldDescriptorProto{}
208}
209func NewFieldDescriptorProto() *FieldDescriptorProto {
210 return new(FieldDescriptorProto)
211}
212
213type EnumDescriptorProto struct {
214 Name *string "PB(bytes,1,opt,name=name)"
215 Value []*EnumValueDescriptorProto "PB(bytes,2,rep,name=value)"
216 Options *EnumOptions "PB(bytes,3,opt,name=options)"
217 XXX_unrecognized []byte
218}
219func (this *EnumDescriptorProto) Reset() {
220 *this = EnumDescriptorProto{}
221}
222func NewEnumDescriptorProto() *EnumDescriptorProto {
223 return new(EnumDescriptorProto)
224}
225
226type EnumValueDescriptorProto struct {
227 Name *string "PB(bytes,1,opt,name=name)"
228 Number *int32 "PB(varint,2,opt,name=number)"
229 Options *EnumValueOptions "PB(bytes,3,opt,name=options)"
230 XXX_unrecognized []byte
231}
232func (this *EnumValueDescriptorProto) Reset() {
233 *this = EnumValueDescriptorProto{}
234}
235func NewEnumValueDescriptorProto() *EnumValueDescriptorProto {
236 return new(EnumValueDescriptorProto)
237}
238
239type ServiceDescriptorProto struct {
240 Name *string "PB(bytes,1,opt,name=name)"
241 Method []*MethodDescriptorProto "PB(bytes,2,rep,name=method)"
242 Options *ServiceOptions "PB(bytes,3,opt,name=options)"
243 XXX_unrecognized []byte
244}
245func (this *ServiceDescriptorProto) Reset() {
246 *this = ServiceDescriptorProto{}
247}
248func NewServiceDescriptorProto() *ServiceDescriptorProto {
249 return new(ServiceDescriptorProto)
250}
251
252type MethodDescriptorProto struct {
253 Name *string "PB(bytes,1,opt,name=name)"
254 InputType *string "PB(bytes,2,opt,name=input_type)"
255 OutputType *string "PB(bytes,3,opt,name=output_type)"
256 Options *MethodOptions "PB(bytes,4,opt,name=options)"
257 XXX_unrecognized []byte
258}
259func (this *MethodDescriptorProto) Reset() {
260 *this = MethodDescriptorProto{}
261}
262func NewMethodDescriptorProto() *MethodDescriptorProto {
263 return new(MethodDescriptorProto)
264}
265
266type FileOptions struct {
267 JavaPackage *string "PB(bytes,1,opt,name=java_package)"
268 JavaOuterClassname *string "PB(bytes,8,opt,name=java_outer_classname)"
269 JavaMultipleFiles *bool "PB(varint,10,opt,name=java_multiple_files,def=0)"
270 OptimizeFor *FileOptions_OptimizeMode "PB(varint,9,opt,name=optimize_for,enum=google_protobuf.FileOptions_OptimizeMode,def=1)"
271 CcGenericServices *bool "PB(varint,16,opt,name=cc_generic_services,def=1)"
272 JavaGenericServices *bool "PB(varint,17,opt,name=java_generic_services,def=1)"
273 PyGenericServices *bool "PB(varint,18,opt,name=py_generic_services,def=1)"
274 UninterpretedOption []*UninterpretedOption "PB(bytes,999,rep,name=uninterpreted_option)"
275 XXX_unrecognized []byte
276}
277func (this *FileOptions) Reset() {
278 *this = FileOptions{}
279}
280func NewFileOptions() *FileOptions {
281 return new(FileOptions)
282}
283const Default_FileOptions_JavaMultipleFiles bool = false
284const Default_FileOptions_OptimizeFor FileOptions_OptimizeMode = FileOptions_SPEED
285const Default_FileOptions_CcGenericServices bool = true
286const Default_FileOptions_JavaGenericServices bool = true
287const Default_FileOptions_PyGenericServices bool = true
288
289type MessageOptions struct {
290 MessageSetWireFormat *bool "PB(varint,1,opt,name=message_set_wire_format,def=0)"
291 NoStandardDescriptorAccessor *bool "PB(varint,2,opt,name=no_standard_descriptor_accessor,def=0)"
292 UninterpretedOption []*UninterpretedOption "PB(bytes,999,rep,name=uninterpreted_option)"
293 XXX_unrecognized []byte
294}
295func (this *MessageOptions) Reset() {
296 *this = MessageOptions{}
297}
298func NewMessageOptions() *MessageOptions {
299 return new(MessageOptions)
300}
301const Default_MessageOptions_MessageSetWireFormat bool = false
302const Default_MessageOptions_NoStandardDescriptorAccessor bool = false
303
304type FieldOptions struct {
305 Ctype *FieldOptions_CType "PB(varint,1,opt,name=ctype,enum=google_protobuf.FieldOptions_CType,def=0)"
306 Packed *bool "PB(varint,2,opt,name=packed)"
307 Deprecated *bool "PB(varint,3,opt,name=deprecated,def=0)"
308 ExperimentalMapKey *string "PB(bytes,9,opt,name=experimental_map_key)"
309 UninterpretedOption []*UninterpretedOption "PB(bytes,999,rep,name=uninterpreted_option)"
310 XXX_unrecognized []byte
311}
312func (this *FieldOptions) Reset() {
313 *this = FieldOptions{}
314}
315func NewFieldOptions() *FieldOptions {
316 return new(FieldOptions)
317}
318const Default_FieldOptions_Ctype FieldOptions_CType = FieldOptions_STRING
319const Default_FieldOptions_Deprecated bool = false
320
321type EnumOptions struct {
322 UninterpretedOption []*UninterpretedOption "PB(bytes,999,rep,name=uninterpreted_option)"
323 XXX_unrecognized []byte
324}
325func (this *EnumOptions) Reset() {
326 *this = EnumOptions{}
327}
328func NewEnumOptions() *EnumOptions {
329 return new(EnumOptions)
330}
331
332type EnumValueOptions struct {
333 UninterpretedOption []*UninterpretedOption "PB(bytes,999,rep,name=uninterpreted_option)"
334 XXX_unrecognized []byte
335}
336func (this *EnumValueOptions) Reset() {
337 *this = EnumValueOptions{}
338}
339func NewEnumValueOptions() *EnumValueOptions {
340 return new(EnumValueOptions)
341}
342
343type ServiceOptions struct {
344 UninterpretedOption []*UninterpretedOption "PB(bytes,999,rep,name=uninterpreted_option)"
345 XXX_unrecognized []byte
346}
347func (this *ServiceOptions) Reset() {
348 *this = ServiceOptions{}
349}
350func NewServiceOptions() *ServiceOptions {
351 return new(ServiceOptions)
352}
353
354type MethodOptions struct {
355 UninterpretedOption []*UninterpretedOption "PB(bytes,999,rep,name=uninterpreted_option)"
356 XXX_unrecognized []byte
357}
358func (this *MethodOptions) Reset() {
359 *this = MethodOptions{}
360}
361func NewMethodOptions() *MethodOptions {
362 return new(MethodOptions)
363}
364
365type UninterpretedOption struct {
366 Name []*UninterpretedOption_NamePart "PB(bytes,2,rep,name=name)"
367 IdentifierValue *string "PB(bytes,3,opt,name=identifier_value)"
368 PositiveIntValue *uint64 "PB(varint,4,opt,name=positive_int_value)"
369 NegativeIntValue *int64 "PB(varint,5,opt,name=negative_int_value)"
370 DoubleValue *float64 "PB(fixed64,6,opt,name=double_value)"
371 StringValue []byte "PB(bytes,7,opt,name=string_value)"
372 XXX_unrecognized []byte
373}
374func (this *UninterpretedOption) Reset() {
375 *this = UninterpretedOption{}
376}
377func NewUninterpretedOption() *UninterpretedOption {
378 return new(UninterpretedOption)
379}
380
381type UninterpretedOption_NamePart struct {
382 NamePart *string "PB(bytes,1,req,name=name_part)"
383 IsExtension *bool "PB(varint,2,req,name=is_extension)"
384 XXX_unrecognized []byte
385}
386func (this *UninterpretedOption_NamePart) Reset() {
387 *this = UninterpretedOption_NamePart{}
388}
389func NewUninterpretedOption_NamePart() *UninterpretedOption_NamePart {
390 return new(UninterpretedOption_NamePart)
391}
392
393func init() {
394 proto.RegisterEnum("google_protobuf.FieldDescriptorProto_Type", FieldDescriptorProto_Type_name, FieldDescriptorProto_Type_value)
395 proto.RegisterEnum("google_protobuf.FieldDescriptorProto_Label", FieldDescriptorProto_Label_name, FieldDescriptorProto_Label_value)
396 proto.RegisterEnum("google_protobuf.FileOptions_OptimizeMode", FileOptions_OptimizeMode_name, FileOptions_OptimizeMode_value)
397 proto.RegisterEnum("google_protobuf.FieldOptions_CType", FieldOptions_CType_name, FieldOptions_CType_value)
398}