descriptor.pb.go 12 KB

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