Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 1 | // Code generated by protoc-gen-go from "google/protobuf/descriptor.proto" |
| 2 | // DO NOT EDIT! |
| 3 | |
| 4 | package google_protobuf |
| 5 | |
| 6 | import "goprotobuf.googlecode.com/hg/proto" |
| 7 | |
| 8 | type FieldDescriptorProto_Type int32 |
| 9 | const ( |
| 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 | ) |
| 29 | var 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 | } |
| 49 | var 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 | } |
| 69 | func NewFieldDescriptorProto_Type(x int32) *FieldDescriptorProto_Type { |
| 70 | e := FieldDescriptorProto_Type(x) |
| 71 | return &e |
| 72 | } |
| 73 | |
| 74 | type FieldDescriptorProto_Label int32 |
| 75 | const ( |
| 76 | FieldDescriptorProto_LABEL_OPTIONAL = 1 |
| 77 | FieldDescriptorProto_LABEL_REQUIRED = 2 |
| 78 | FieldDescriptorProto_LABEL_REPEATED = 3 |
| 79 | ) |
| 80 | var FieldDescriptorProto_Label_name = map[int32] string { |
| 81 | 1: "LABEL_OPTIONAL", |
| 82 | 2: "LABEL_REQUIRED", |
| 83 | 3: "LABEL_REPEATED", |
| 84 | } |
| 85 | var FieldDescriptorProto_Label_value = map[string] int32 { |
| 86 | "LABEL_OPTIONAL": 1, |
| 87 | "LABEL_REQUIRED": 2, |
| 88 | "LABEL_REPEATED": 3, |
| 89 | } |
| 90 | func NewFieldDescriptorProto_Label(x int32) *FieldDescriptorProto_Label { |
| 91 | e := FieldDescriptorProto_Label(x) |
| 92 | return &e |
| 93 | } |
| 94 | |
| 95 | type FileOptions_OptimizeMode int32 |
| 96 | const ( |
| 97 | FileOptions_SPEED = 1 |
| 98 | FileOptions_CODE_SIZE = 2 |
| 99 | FileOptions_LITE_RUNTIME = 3 |
| 100 | ) |
| 101 | var FileOptions_OptimizeMode_name = map[int32] string { |
| 102 | 1: "SPEED", |
| 103 | 2: "CODE_SIZE", |
| 104 | 3: "LITE_RUNTIME", |
| 105 | } |
| 106 | var FileOptions_OptimizeMode_value = map[string] int32 { |
| 107 | "SPEED": 1, |
| 108 | "CODE_SIZE": 2, |
| 109 | "LITE_RUNTIME": 3, |
| 110 | } |
| 111 | func NewFileOptions_OptimizeMode(x int32) *FileOptions_OptimizeMode { |
| 112 | e := FileOptions_OptimizeMode(x) |
| 113 | return &e |
| 114 | } |
| 115 | |
| 116 | type FieldOptions_CType int32 |
| 117 | const ( |
| 118 | FieldOptions_STRING = 0 |
| 119 | FieldOptions_CORD = 1 |
| 120 | FieldOptions_STRING_PIECE = 2 |
| 121 | ) |
| 122 | var FieldOptions_CType_name = map[int32] string { |
| 123 | 0: "STRING", |
| 124 | 1: "CORD", |
| 125 | 2: "STRING_PIECE", |
| 126 | } |
| 127 | var FieldOptions_CType_value = map[string] int32 { |
| 128 | "STRING": 0, |
| 129 | "CORD": 1, |
| 130 | "STRING_PIECE": 2, |
| 131 | } |
| 132 | func NewFieldOptions_CType(x int32) *FieldOptions_CType { |
| 133 | e := FieldOptions_CType(x) |
| 134 | return &e |
| 135 | } |
| 136 | |
| 137 | type FileDescriptorSet struct { |
| 138 | File []*FileDescriptorProto "PB(bytes,1,rep,name=file)" |
| 139 | XXX_unrecognized []byte |
| 140 | } |
| 141 | func (this *FileDescriptorSet) Reset() { |
| 142 | *this = FileDescriptorSet{} |
| 143 | } |
| 144 | func NewFileDescriptorSet() *FileDescriptorSet { |
| 145 | return new(FileDescriptorSet) |
| 146 | } |
| 147 | |
| 148 | type 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 | } |
| 159 | func (this *FileDescriptorProto) Reset() { |
| 160 | *this = FileDescriptorProto{} |
| 161 | } |
| 162 | func NewFileDescriptorProto() *FileDescriptorProto { |
| 163 | return new(FileDescriptorProto) |
| 164 | } |
| 165 | |
| 166 | type 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 | } |
| 176 | func (this *DescriptorProto) Reset() { |
| 177 | *this = DescriptorProto{} |
| 178 | } |
| 179 | func NewDescriptorProto() *DescriptorProto { |
| 180 | return new(DescriptorProto) |
| 181 | } |
| 182 | |
| 183 | type 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 | } |
| 188 | func (this *DescriptorProto_ExtensionRange) Reset() { |
| 189 | *this = DescriptorProto_ExtensionRange{} |
| 190 | } |
| 191 | func NewDescriptorProto_ExtensionRange() *DescriptorProto_ExtensionRange { |
| 192 | return new(DescriptorProto_ExtensionRange) |
| 193 | } |
| 194 | |
| 195 | type 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 | } |
| 206 | func (this *FieldDescriptorProto) Reset() { |
| 207 | *this = FieldDescriptorProto{} |
| 208 | } |
| 209 | func NewFieldDescriptorProto() *FieldDescriptorProto { |
| 210 | return new(FieldDescriptorProto) |
| 211 | } |
| 212 | |
| 213 | type 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 | } |
| 219 | func (this *EnumDescriptorProto) Reset() { |
| 220 | *this = EnumDescriptorProto{} |
| 221 | } |
| 222 | func NewEnumDescriptorProto() *EnumDescriptorProto { |
| 223 | return new(EnumDescriptorProto) |
| 224 | } |
| 225 | |
| 226 | type 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 | } |
| 232 | func (this *EnumValueDescriptorProto) Reset() { |
| 233 | *this = EnumValueDescriptorProto{} |
| 234 | } |
| 235 | func NewEnumValueDescriptorProto() *EnumValueDescriptorProto { |
| 236 | return new(EnumValueDescriptorProto) |
| 237 | } |
| 238 | |
| 239 | type 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 | } |
| 245 | func (this *ServiceDescriptorProto) Reset() { |
| 246 | *this = ServiceDescriptorProto{} |
| 247 | } |
| 248 | func NewServiceDescriptorProto() *ServiceDescriptorProto { |
| 249 | return new(ServiceDescriptorProto) |
| 250 | } |
| 251 | |
| 252 | type 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 | } |
| 259 | func (this *MethodDescriptorProto) Reset() { |
| 260 | *this = MethodDescriptorProto{} |
| 261 | } |
| 262 | func NewMethodDescriptorProto() *MethodDescriptorProto { |
| 263 | return new(MethodDescriptorProto) |
| 264 | } |
| 265 | |
| 266 | type 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 | } |
| 277 | func (this *FileOptions) Reset() { |
| 278 | *this = FileOptions{} |
| 279 | } |
| 280 | func NewFileOptions() *FileOptions { |
| 281 | return new(FileOptions) |
| 282 | } |
| 283 | const Default_FileOptions_JavaMultipleFiles bool = false |
| 284 | const Default_FileOptions_OptimizeFor FileOptions_OptimizeMode = FileOptions_SPEED |
| 285 | const Default_FileOptions_CcGenericServices bool = true |
| 286 | const Default_FileOptions_JavaGenericServices bool = true |
| 287 | const Default_FileOptions_PyGenericServices bool = true |
| 288 | |
| 289 | type 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 | } |
| 295 | func (this *MessageOptions) Reset() { |
| 296 | *this = MessageOptions{} |
| 297 | } |
| 298 | func NewMessageOptions() *MessageOptions { |
| 299 | return new(MessageOptions) |
| 300 | } |
| 301 | const Default_MessageOptions_MessageSetWireFormat bool = false |
| 302 | const Default_MessageOptions_NoStandardDescriptorAccessor bool = false |
| 303 | |
| 304 | type 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 | } |
| 312 | func (this *FieldOptions) Reset() { |
| 313 | *this = FieldOptions{} |
| 314 | } |
| 315 | func NewFieldOptions() *FieldOptions { |
| 316 | return new(FieldOptions) |
| 317 | } |
| 318 | const Default_FieldOptions_Ctype FieldOptions_CType = FieldOptions_STRING |
| 319 | const Default_FieldOptions_Deprecated bool = false |
| 320 | |
| 321 | type EnumOptions struct { |
| 322 | UninterpretedOption []*UninterpretedOption "PB(bytes,999,rep,name=uninterpreted_option)" |
| 323 | XXX_unrecognized []byte |
| 324 | } |
| 325 | func (this *EnumOptions) Reset() { |
| 326 | *this = EnumOptions{} |
| 327 | } |
| 328 | func NewEnumOptions() *EnumOptions { |
| 329 | return new(EnumOptions) |
| 330 | } |
| 331 | |
| 332 | type EnumValueOptions struct { |
| 333 | UninterpretedOption []*UninterpretedOption "PB(bytes,999,rep,name=uninterpreted_option)" |
| 334 | XXX_unrecognized []byte |
| 335 | } |
| 336 | func (this *EnumValueOptions) Reset() { |
| 337 | *this = EnumValueOptions{} |
| 338 | } |
| 339 | func NewEnumValueOptions() *EnumValueOptions { |
| 340 | return new(EnumValueOptions) |
| 341 | } |
| 342 | |
| 343 | type ServiceOptions struct { |
| 344 | UninterpretedOption []*UninterpretedOption "PB(bytes,999,rep,name=uninterpreted_option)" |
| 345 | XXX_unrecognized []byte |
| 346 | } |
| 347 | func (this *ServiceOptions) Reset() { |
| 348 | *this = ServiceOptions{} |
| 349 | } |
| 350 | func NewServiceOptions() *ServiceOptions { |
| 351 | return new(ServiceOptions) |
| 352 | } |
| 353 | |
| 354 | type MethodOptions struct { |
| 355 | UninterpretedOption []*UninterpretedOption "PB(bytes,999,rep,name=uninterpreted_option)" |
| 356 | XXX_unrecognized []byte |
| 357 | } |
| 358 | func (this *MethodOptions) Reset() { |
| 359 | *this = MethodOptions{} |
| 360 | } |
| 361 | func NewMethodOptions() *MethodOptions { |
| 362 | return new(MethodOptions) |
| 363 | } |
| 364 | |
| 365 | type 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 | } |
| 374 | func (this *UninterpretedOption) Reset() { |
| 375 | *this = UninterpretedOption{} |
| 376 | } |
| 377 | func NewUninterpretedOption() *UninterpretedOption { |
| 378 | return new(UninterpretedOption) |
| 379 | } |
| 380 | |
| 381 | type 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 | } |
| 386 | func (this *UninterpretedOption_NamePart) Reset() { |
| 387 | *this = UninterpretedOption_NamePart{} |
| 388 | } |
| 389 | func NewUninterpretedOption_NamePart() *UninterpretedOption_NamePart { |
| 390 | return new(UninterpretedOption_NamePart) |
| 391 | } |
| 392 | |
| 393 | func 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 | } |