1 // Code generated by protoc-gen-go from "google/protobuf/descriptor.proto"
4 package google_protobuf
6 import proto "goprotobuf.googlecode.com/hg/proto"
10 // Reference proto, math & os imports to suppress error if they are not otherwise used.
11 var _ = proto.GetString
16 type FieldDescriptorProto_Type int32
19 FieldDescriptorProto_TYPE_DOUBLE = 1
20 FieldDescriptorProto_TYPE_FLOAT = 2
21 FieldDescriptorProto_TYPE_INT64 = 3
22 FieldDescriptorProto_TYPE_UINT64 = 4
23 FieldDescriptorProto_TYPE_INT32 = 5
24 FieldDescriptorProto_TYPE_FIXED64 = 6
25 FieldDescriptorProto_TYPE_FIXED32 = 7
26 FieldDescriptorProto_TYPE_BOOL = 8
27 FieldDescriptorProto_TYPE_STRING = 9
28 FieldDescriptorProto_TYPE_GROUP = 10
29 FieldDescriptorProto_TYPE_MESSAGE = 11
30 FieldDescriptorProto_TYPE_BYTES = 12
31 FieldDescriptorProto_TYPE_UINT32 = 13
32 FieldDescriptorProto_TYPE_ENUM = 14
33 FieldDescriptorProto_TYPE_SFIXED32 = 15
34 FieldDescriptorProto_TYPE_SFIXED64 = 16
35 FieldDescriptorProto_TYPE_SINT32 = 17
36 FieldDescriptorProto_TYPE_SINT64 = 18
39 var FieldDescriptorProto_Type_name = map[int32]string{
59 var FieldDescriptorProto_Type_value = map[string]int32{
80 func NewFieldDescriptorProto_Type(x int32) *FieldDescriptorProto_Type {
81 e := FieldDescriptorProto_Type(x)
84 func (x FieldDescriptorProto_Type) String() string {
85 return proto.EnumName(FieldDescriptorProto_Type_name, int32(x))
88 type FieldDescriptorProto_Label int32
91 FieldDescriptorProto_LABEL_OPTIONAL = 1
92 FieldDescriptorProto_LABEL_REQUIRED = 2
93 FieldDescriptorProto_LABEL_REPEATED = 3
96 var FieldDescriptorProto_Label_name = map[int32]string{
101 var FieldDescriptorProto_Label_value = map[string]int32{
107 func NewFieldDescriptorProto_Label(x int32) *FieldDescriptorProto_Label {
108 e := FieldDescriptorProto_Label(x)
111 func (x FieldDescriptorProto_Label) String() string {
112 return proto.EnumName(FieldDescriptorProto_Label_name, int32(x))
115 type FileOptions_OptimizeMode int32
118 FileOptions_SPEED = 1
119 FileOptions_CODE_SIZE = 2
120 FileOptions_LITE_RUNTIME = 3
123 var FileOptions_OptimizeMode_name = map[int32]string{
128 var FileOptions_OptimizeMode_value = map[string]int32{
134 func NewFileOptions_OptimizeMode(x int32) *FileOptions_OptimizeMode {
135 e := FileOptions_OptimizeMode(x)
138 func (x FileOptions_OptimizeMode) String() string {
139 return proto.EnumName(FileOptions_OptimizeMode_name, int32(x))
142 type FieldOptions_CType int32
145 FieldOptions_STRING = 0
146 FieldOptions_CORD = 1
147 FieldOptions_STRING_PIECE = 2
150 var FieldOptions_CType_name = map[int32]string{
155 var FieldOptions_CType_value = map[string]int32{
161 func NewFieldOptions_CType(x int32) *FieldOptions_CType {
162 e := FieldOptions_CType(x)
165 func (x FieldOptions_CType) String() string {
166 return proto.EnumName(FieldOptions_CType_name, int32(x))
169 type FileDescriptorSet struct {
170 File []*FileDescriptorProto `protobuf:"bytes,1,rep,name=file"`
171 XXX_unrecognized []byte
174 func (this *FileDescriptorSet) Reset() { *this = FileDescriptorSet{} }
175 func (this *FileDescriptorSet) String() string { return proto.CompactTextString(this) }
177 type FileDescriptorProto struct {
178 Name *string `protobuf:"bytes,1,opt,name=name"`
179 Package *string `protobuf:"bytes,2,opt,name=package"`
180 Dependency []string `protobuf:"bytes,3,rep,name=dependency"`
181 PublicDependency []int32 `protobuf:"varint,10,rep,name=public_dependency"`
182 MessageType []*DescriptorProto `protobuf:"bytes,4,rep,name=message_type"`
183 EnumType []*EnumDescriptorProto `protobuf:"bytes,5,rep,name=enum_type"`
184 Service []*ServiceDescriptorProto `protobuf:"bytes,6,rep,name=service"`
185 Extension []*FieldDescriptorProto `protobuf:"bytes,7,rep,name=extension"`
186 Options *FileOptions `protobuf:"bytes,8,opt,name=options"`
187 XXX_unrecognized []byte
190 func (this *FileDescriptorProto) Reset() { *this = FileDescriptorProto{} }
191 func (this *FileDescriptorProto) String() string { return proto.CompactTextString(this) }
193 type DescriptorProto struct {
194 Name *string `protobuf:"bytes,1,opt,name=name"`
195 Field []*FieldDescriptorProto `protobuf:"bytes,2,rep,name=field"`
196 Extension []*FieldDescriptorProto `protobuf:"bytes,6,rep,name=extension"`
197 NestedType []*DescriptorProto `protobuf:"bytes,3,rep,name=nested_type"`
198 EnumType []*EnumDescriptorProto `protobuf:"bytes,4,rep,name=enum_type"`
199 ExtensionRange []*DescriptorProto_ExtensionRange `protobuf:"bytes,5,rep,name=extension_range"`
200 Options *MessageOptions `protobuf:"bytes,7,opt,name=options"`
201 XXX_unrecognized []byte
204 func (this *DescriptorProto) Reset() { *this = DescriptorProto{} }
205 func (this *DescriptorProto) String() string { return proto.CompactTextString(this) }
207 type DescriptorProto_ExtensionRange struct {
208 Start *int32 `protobuf:"varint,1,opt,name=start"`
209 End *int32 `protobuf:"varint,2,opt,name=end"`
210 XXX_unrecognized []byte
213 func (this *DescriptorProto_ExtensionRange) Reset() { *this = DescriptorProto_ExtensionRange{} }
214 func (this *DescriptorProto_ExtensionRange) String() string { return proto.CompactTextString(this) }
216 type FieldDescriptorProto struct {
217 Name *string `protobuf:"bytes,1,opt,name=name"`
218 Number *int32 `protobuf:"varint,3,opt,name=number"`
219 Label *FieldDescriptorProto_Label `protobuf:"varint,4,opt,name=label,enum=google_protobuf.FieldDescriptorProto_Label"`
220 Type *FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=type,enum=google_protobuf.FieldDescriptorProto_Type"`
221 TypeName *string `protobuf:"bytes,6,opt,name=type_name"`
222 Extendee *string `protobuf:"bytes,2,opt,name=extendee"`
223 DefaultValue *string `protobuf:"bytes,7,opt,name=default_value"`
224 Options *FieldOptions `protobuf:"bytes,8,opt,name=options"`
225 XXX_unrecognized []byte
228 func (this *FieldDescriptorProto) Reset() { *this = FieldDescriptorProto{} }
229 func (this *FieldDescriptorProto) String() string { return proto.CompactTextString(this) }
231 type EnumDescriptorProto struct {
232 Name *string `protobuf:"bytes,1,opt,name=name"`
233 Value []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value"`
234 Options *EnumOptions `protobuf:"bytes,3,opt,name=options"`
235 XXX_unrecognized []byte
238 func (this *EnumDescriptorProto) Reset() { *this = EnumDescriptorProto{} }
239 func (this *EnumDescriptorProto) String() string { return proto.CompactTextString(this) }
241 type EnumValueDescriptorProto struct {
242 Name *string `protobuf:"bytes,1,opt,name=name"`
243 Number *int32 `protobuf:"varint,2,opt,name=number"`
244 Options *EnumValueOptions `protobuf:"bytes,3,opt,name=options"`
245 XXX_unrecognized []byte
248 func (this *EnumValueDescriptorProto) Reset() { *this = EnumValueDescriptorProto{} }
249 func (this *EnumValueDescriptorProto) String() string { return proto.CompactTextString(this) }
251 type ServiceDescriptorProto struct {
252 Name *string `protobuf:"bytes,1,opt,name=name"`
253 Method []*MethodDescriptorProto `protobuf:"bytes,2,rep,name=method"`
254 Options *ServiceOptions `protobuf:"bytes,3,opt,name=options"`
255 XXX_unrecognized []byte
258 func (this *ServiceDescriptorProto) Reset() { *this = ServiceDescriptorProto{} }
259 func (this *ServiceDescriptorProto) String() string { return proto.CompactTextString(this) }
261 type MethodDescriptorProto struct {
262 Name *string `protobuf:"bytes,1,opt,name=name"`
263 InputType *string `protobuf:"bytes,2,opt,name=input_type"`
264 OutputType *string `protobuf:"bytes,3,opt,name=output_type"`
265 Options *MethodOptions `protobuf:"bytes,4,opt,name=options"`
266 XXX_unrecognized []byte
269 func (this *MethodDescriptorProto) Reset() { *this = MethodDescriptorProto{} }
270 func (this *MethodDescriptorProto) String() string { return proto.CompactTextString(this) }
272 type FileOptions struct {
273 JavaPackage *string `protobuf:"bytes,1,opt,name=java_package"`
274 JavaOuterClassname *string `protobuf:"bytes,8,opt,name=java_outer_classname"`
275 JavaMultipleFiles *bool `protobuf:"varint,10,opt,name=java_multiple_files,def=0"`
276 OptimizeFor *FileOptions_OptimizeMode `protobuf:"varint,9,opt,name=optimize_for,enum=google_protobuf.FileOptions_OptimizeMode,def=1"`
277 CcGenericServices *bool `protobuf:"varint,16,opt,name=cc_generic_services,def=1"`
278 JavaGenericServices *bool `protobuf:"varint,17,opt,name=java_generic_services,def=1"`
279 PyGenericServices *bool `protobuf:"varint,18,opt,name=py_generic_services,def=1"`
280 UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"`
281 XXX_extensions map[int32][]byte
282 XXX_unrecognized []byte
285 func (this *FileOptions) Reset() { *this = FileOptions{} }
286 func (this *FileOptions) String() string { return proto.CompactTextString(this) }
288 var extRange_FileOptions = []proto.ExtensionRange{
289 proto.ExtensionRange{1000, 536870911},
292 func (*FileOptions) ExtensionRangeArray() []proto.ExtensionRange {
293 return extRange_FileOptions
295 func (this *FileOptions) ExtensionMap() map[int32][]byte {
296 if this.XXX_extensions == nil {
297 this.XXX_extensions = make(map[int32][]byte)
299 return this.XXX_extensions
302 const Default_FileOptions_JavaMultipleFiles bool = false
303 const Default_FileOptions_OptimizeFor FileOptions_OptimizeMode = FileOptions_SPEED
304 const Default_FileOptions_CcGenericServices bool = true
305 const Default_FileOptions_JavaGenericServices bool = true
306 const Default_FileOptions_PyGenericServices bool = true
308 type MessageOptions struct {
309 MessageSetWireFormat *bool `protobuf:"varint,1,opt,name=message_set_wire_format,def=0"`
310 NoStandardDescriptorAccessor *bool `protobuf:"varint,2,opt,name=no_standard_descriptor_accessor,def=0"`
311 UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"`
312 XXX_extensions map[int32][]byte
313 XXX_unrecognized []byte
316 func (this *MessageOptions) Reset() { *this = MessageOptions{} }
317 func (this *MessageOptions) String() string { return proto.CompactTextString(this) }
319 var extRange_MessageOptions = []proto.ExtensionRange{
320 proto.ExtensionRange{1000, 536870911},
323 func (*MessageOptions) ExtensionRangeArray() []proto.ExtensionRange {
324 return extRange_MessageOptions
326 func (this *MessageOptions) ExtensionMap() map[int32][]byte {
327 if this.XXX_extensions == nil {
328 this.XXX_extensions = make(map[int32][]byte)
330 return this.XXX_extensions
333 const Default_MessageOptions_MessageSetWireFormat bool = false
334 const Default_MessageOptions_NoStandardDescriptorAccessor bool = false
336 type FieldOptions struct {
337 Ctype *FieldOptions_CType `protobuf:"varint,1,opt,name=ctype,enum=google_protobuf.FieldOptions_CType,def=0"`
338 Packed *bool `protobuf:"varint,2,opt,name=packed"`
339 Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0"`
340 ExperimentalMapKey *string `protobuf:"bytes,9,opt,name=experimental_map_key"`
341 UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"`
342 XXX_extensions map[int32][]byte
343 XXX_unrecognized []byte
346 func (this *FieldOptions) Reset() { *this = FieldOptions{} }
347 func (this *FieldOptions) String() string { return proto.CompactTextString(this) }
349 var extRange_FieldOptions = []proto.ExtensionRange{
350 proto.ExtensionRange{1000, 536870911},
353 func (*FieldOptions) ExtensionRangeArray() []proto.ExtensionRange {
354 return extRange_FieldOptions
356 func (this *FieldOptions) ExtensionMap() map[int32][]byte {
357 if this.XXX_extensions == nil {
358 this.XXX_extensions = make(map[int32][]byte)
360 return this.XXX_extensions
363 const Default_FieldOptions_Ctype FieldOptions_CType = FieldOptions_STRING
364 const Default_FieldOptions_Deprecated bool = false
366 type EnumOptions struct {
367 UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"`
368 XXX_extensions map[int32][]byte
369 XXX_unrecognized []byte
372 func (this *EnumOptions) Reset() { *this = EnumOptions{} }
373 func (this *EnumOptions) String() string { return proto.CompactTextString(this) }
375 var extRange_EnumOptions = []proto.ExtensionRange{
376 proto.ExtensionRange{1000, 536870911},
379 func (*EnumOptions) ExtensionRangeArray() []proto.ExtensionRange {
380 return extRange_EnumOptions
382 func (this *EnumOptions) ExtensionMap() map[int32][]byte {
383 if this.XXX_extensions == nil {
384 this.XXX_extensions = make(map[int32][]byte)
386 return this.XXX_extensions
389 type EnumValueOptions struct {
390 UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"`
391 XXX_extensions map[int32][]byte
392 XXX_unrecognized []byte
395 func (this *EnumValueOptions) Reset() { *this = EnumValueOptions{} }
396 func (this *EnumValueOptions) String() string { return proto.CompactTextString(this) }
398 var extRange_EnumValueOptions = []proto.ExtensionRange{
399 proto.ExtensionRange{1000, 536870911},
402 func (*EnumValueOptions) ExtensionRangeArray() []proto.ExtensionRange {
403 return extRange_EnumValueOptions
405 func (this *EnumValueOptions) ExtensionMap() map[int32][]byte {
406 if this.XXX_extensions == nil {
407 this.XXX_extensions = make(map[int32][]byte)
409 return this.XXX_extensions
412 type ServiceOptions struct {
413 UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"`
414 XXX_extensions map[int32][]byte
415 XXX_unrecognized []byte
418 func (this *ServiceOptions) Reset() { *this = ServiceOptions{} }
419 func (this *ServiceOptions) String() string { return proto.CompactTextString(this) }
421 var extRange_ServiceOptions = []proto.ExtensionRange{
422 proto.ExtensionRange{1000, 536870911},
425 func (*ServiceOptions) ExtensionRangeArray() []proto.ExtensionRange {
426 return extRange_ServiceOptions
428 func (this *ServiceOptions) ExtensionMap() map[int32][]byte {
429 if this.XXX_extensions == nil {
430 this.XXX_extensions = make(map[int32][]byte)
432 return this.XXX_extensions
435 type MethodOptions struct {
436 UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"`
437 XXX_extensions map[int32][]byte
438 XXX_unrecognized []byte
441 func (this *MethodOptions) Reset() { *this = MethodOptions{} }
442 func (this *MethodOptions) String() string { return proto.CompactTextString(this) }
444 var extRange_MethodOptions = []proto.ExtensionRange{
445 proto.ExtensionRange{1000, 536870911},
448 func (*MethodOptions) ExtensionRangeArray() []proto.ExtensionRange {
449 return extRange_MethodOptions
451 func (this *MethodOptions) ExtensionMap() map[int32][]byte {
452 if this.XXX_extensions == nil {
453 this.XXX_extensions = make(map[int32][]byte)
455 return this.XXX_extensions
458 type UninterpretedOption struct {
459 Name []*UninterpretedOption_NamePart `protobuf:"bytes,2,rep,name=name"`
460 IdentifierValue *string `protobuf:"bytes,3,opt,name=identifier_value"`
461 PositiveIntValue *uint64 `protobuf:"varint,4,opt,name=positive_int_value"`
462 NegativeIntValue *int64 `protobuf:"varint,5,opt,name=negative_int_value"`
463 DoubleValue *float64 `protobuf:"fixed64,6,opt,name=double_value"`
464 StringValue []byte `protobuf:"bytes,7,opt,name=string_value"`
465 XXX_unrecognized []byte
468 func (this *UninterpretedOption) Reset() { *this = UninterpretedOption{} }
469 func (this *UninterpretedOption) String() string { return proto.CompactTextString(this) }
471 type UninterpretedOption_NamePart struct {
472 NamePart *string `protobuf:"bytes,1,req,name=name_part"`
473 IsExtension *bool `protobuf:"varint,2,req,name=is_extension"`
474 XXX_unrecognized []byte
477 func (this *UninterpretedOption_NamePart) Reset() { *this = UninterpretedOption_NamePart{} }
478 func (this *UninterpretedOption_NamePart) String() string { return proto.CompactTextString(this) }
481 proto.RegisterEnum("google_protobuf.FieldDescriptorProto_Type", FieldDescriptorProto_Type_name, FieldDescriptorProto_Type_value)
482 proto.RegisterEnum("google_protobuf.FieldDescriptorProto_Label", FieldDescriptorProto_Label_name, FieldDescriptorProto_Label_value)
483 proto.RegisterEnum("google_protobuf.FileOptions_OptimizeMode", FileOptions_OptimizeMode_name, FileOptions_OptimizeMode_value)
484 proto.RegisterEnum("google_protobuf.FieldOptions_CType", FieldOptions_CType_name, FieldOptions_CType_value)