descriptor_gen.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. // Copyright 2019 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style.
  3. // license that can be found in the LICENSE file.
  4. // Code generated by generate-protos. DO NOT EDIT.
  5. package fieldnum
  6. // Field numbers for google.protobuf.FileDescriptorSet.
  7. const (
  8. FileDescriptorSet_File = 1 // repeated google.protobuf.FileDescriptorProto
  9. )
  10. // Field numbers for google.protobuf.FileDescriptorProto.
  11. const (
  12. FileDescriptorProto_Name = 1 // optional string
  13. FileDescriptorProto_Package = 2 // optional string
  14. FileDescriptorProto_Dependency = 3 // repeated string
  15. FileDescriptorProto_PublicDependency = 10 // repeated int32
  16. FileDescriptorProto_WeakDependency = 11 // repeated int32
  17. FileDescriptorProto_MessageType = 4 // repeated google.protobuf.DescriptorProto
  18. FileDescriptorProto_EnumType = 5 // repeated google.protobuf.EnumDescriptorProto
  19. FileDescriptorProto_Service = 6 // repeated google.protobuf.ServiceDescriptorProto
  20. FileDescriptorProto_Extension = 7 // repeated google.protobuf.FieldDescriptorProto
  21. FileDescriptorProto_Options = 8 // optional google.protobuf.FileOptions
  22. FileDescriptorProto_SourceCodeInfo = 9 // optional google.protobuf.SourceCodeInfo
  23. FileDescriptorProto_Syntax = 12 // optional string
  24. )
  25. // Field numbers for google.protobuf.DescriptorProto.
  26. const (
  27. DescriptorProto_Name = 1 // optional string
  28. DescriptorProto_Field = 2 // repeated google.protobuf.FieldDescriptorProto
  29. DescriptorProto_Extension = 6 // repeated google.protobuf.FieldDescriptorProto
  30. DescriptorProto_NestedType = 3 // repeated google.protobuf.DescriptorProto
  31. DescriptorProto_EnumType = 4 // repeated google.protobuf.EnumDescriptorProto
  32. DescriptorProto_ExtensionRange = 5 // repeated google.protobuf.DescriptorProto.ExtensionRange
  33. DescriptorProto_OneofDecl = 8 // repeated google.protobuf.OneofDescriptorProto
  34. DescriptorProto_Options = 7 // optional google.protobuf.MessageOptions
  35. DescriptorProto_ReservedRange = 9 // repeated google.protobuf.DescriptorProto.ReservedRange
  36. DescriptorProto_ReservedName = 10 // repeated string
  37. )
  38. // Field numbers for google.protobuf.DescriptorProto.ExtensionRange.
  39. const (
  40. DescriptorProto_ExtensionRange_Start = 1 // optional int32
  41. DescriptorProto_ExtensionRange_End = 2 // optional int32
  42. DescriptorProto_ExtensionRange_Options = 3 // optional google.protobuf.ExtensionRangeOptions
  43. )
  44. // Field numbers for google.protobuf.DescriptorProto.ReservedRange.
  45. const (
  46. DescriptorProto_ReservedRange_Start = 1 // optional int32
  47. DescriptorProto_ReservedRange_End = 2 // optional int32
  48. )
  49. // Field numbers for google.protobuf.ExtensionRangeOptions.
  50. const (
  51. ExtensionRangeOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
  52. )
  53. // Field numbers for google.protobuf.FieldDescriptorProto.
  54. const (
  55. FieldDescriptorProto_Name = 1 // optional string
  56. FieldDescriptorProto_Number = 3 // optional int32
  57. FieldDescriptorProto_Label = 4 // optional google.protobuf.FieldDescriptorProto.Label
  58. FieldDescriptorProto_Type = 5 // optional google.protobuf.FieldDescriptorProto.Type
  59. FieldDescriptorProto_TypeName = 6 // optional string
  60. FieldDescriptorProto_Extendee = 2 // optional string
  61. FieldDescriptorProto_DefaultValue = 7 // optional string
  62. FieldDescriptorProto_OneofIndex = 9 // optional int32
  63. FieldDescriptorProto_JsonName = 10 // optional string
  64. FieldDescriptorProto_Options = 8 // optional google.protobuf.FieldOptions
  65. )
  66. // Field numbers for google.protobuf.OneofDescriptorProto.
  67. const (
  68. OneofDescriptorProto_Name = 1 // optional string
  69. OneofDescriptorProto_Options = 2 // optional google.protobuf.OneofOptions
  70. )
  71. // Field numbers for google.protobuf.EnumDescriptorProto.
  72. const (
  73. EnumDescriptorProto_Name = 1 // optional string
  74. EnumDescriptorProto_Value = 2 // repeated google.protobuf.EnumValueDescriptorProto
  75. EnumDescriptorProto_Options = 3 // optional google.protobuf.EnumOptions
  76. EnumDescriptorProto_ReservedRange = 4 // repeated google.protobuf.EnumDescriptorProto.EnumReservedRange
  77. EnumDescriptorProto_ReservedName = 5 // repeated string
  78. )
  79. // Field numbers for google.protobuf.EnumDescriptorProto.EnumReservedRange.
  80. const (
  81. EnumDescriptorProto_EnumReservedRange_Start = 1 // optional int32
  82. EnumDescriptorProto_EnumReservedRange_End = 2 // optional int32
  83. )
  84. // Field numbers for google.protobuf.EnumValueDescriptorProto.
  85. const (
  86. EnumValueDescriptorProto_Name = 1 // optional string
  87. EnumValueDescriptorProto_Number = 2 // optional int32
  88. EnumValueDescriptorProto_Options = 3 // optional google.protobuf.EnumValueOptions
  89. )
  90. // Field numbers for google.protobuf.ServiceDescriptorProto.
  91. const (
  92. ServiceDescriptorProto_Name = 1 // optional string
  93. ServiceDescriptorProto_Method = 2 // repeated google.protobuf.MethodDescriptorProto
  94. ServiceDescriptorProto_Options = 3 // optional google.protobuf.ServiceOptions
  95. )
  96. // Field numbers for google.protobuf.MethodDescriptorProto.
  97. const (
  98. MethodDescriptorProto_Name = 1 // optional string
  99. MethodDescriptorProto_InputType = 2 // optional string
  100. MethodDescriptorProto_OutputType = 3 // optional string
  101. MethodDescriptorProto_Options = 4 // optional google.protobuf.MethodOptions
  102. MethodDescriptorProto_ClientStreaming = 5 // optional bool
  103. MethodDescriptorProto_ServerStreaming = 6 // optional bool
  104. )
  105. // Field numbers for google.protobuf.FileOptions.
  106. const (
  107. FileOptions_JavaPackage = 1 // optional string
  108. FileOptions_JavaOuterClassname = 8 // optional string
  109. FileOptions_JavaMultipleFiles = 10 // optional bool
  110. FileOptions_JavaGenerateEqualsAndHash = 20 // optional bool
  111. FileOptions_JavaStringCheckUtf8 = 27 // optional bool
  112. FileOptions_OptimizeFor = 9 // optional google.protobuf.FileOptions.OptimizeMode
  113. FileOptions_GoPackage = 11 // optional string
  114. FileOptions_CcGenericServices = 16 // optional bool
  115. FileOptions_JavaGenericServices = 17 // optional bool
  116. FileOptions_PyGenericServices = 18 // optional bool
  117. FileOptions_PhpGenericServices = 42 // optional bool
  118. FileOptions_Deprecated = 23 // optional bool
  119. FileOptions_CcEnableArenas = 31 // optional bool
  120. FileOptions_ObjcClassPrefix = 36 // optional string
  121. FileOptions_CsharpNamespace = 37 // optional string
  122. FileOptions_SwiftPrefix = 39 // optional string
  123. FileOptions_PhpClassPrefix = 40 // optional string
  124. FileOptions_PhpNamespace = 41 // optional string
  125. FileOptions_PhpMetadataNamespace = 44 // optional string
  126. FileOptions_RubyPackage = 45 // optional string
  127. FileOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
  128. )
  129. // Field numbers for google.protobuf.MessageOptions.
  130. const (
  131. MessageOptions_MessageSetWireFormat = 1 // optional bool
  132. MessageOptions_NoStandardDescriptorAccessor = 2 // optional bool
  133. MessageOptions_Deprecated = 3 // optional bool
  134. MessageOptions_MapEntry = 7 // optional bool
  135. MessageOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
  136. )
  137. // Field numbers for google.protobuf.FieldOptions.
  138. const (
  139. FieldOptions_Ctype = 1 // optional google.protobuf.FieldOptions.CType
  140. FieldOptions_Packed = 2 // optional bool
  141. FieldOptions_Jstype = 6 // optional google.protobuf.FieldOptions.JSType
  142. FieldOptions_Lazy = 5 // optional bool
  143. FieldOptions_Deprecated = 3 // optional bool
  144. FieldOptions_Weak = 10 // optional bool
  145. FieldOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
  146. )
  147. // Field numbers for google.protobuf.OneofOptions.
  148. const (
  149. OneofOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
  150. )
  151. // Field numbers for google.protobuf.EnumOptions.
  152. const (
  153. EnumOptions_AllowAlias = 2 // optional bool
  154. EnumOptions_Deprecated = 3 // optional bool
  155. EnumOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
  156. )
  157. // Field numbers for google.protobuf.EnumValueOptions.
  158. const (
  159. EnumValueOptions_Deprecated = 1 // optional bool
  160. EnumValueOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
  161. )
  162. // Field numbers for google.protobuf.ServiceOptions.
  163. const (
  164. ServiceOptions_Deprecated = 33 // optional bool
  165. ServiceOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
  166. )
  167. // Field numbers for google.protobuf.MethodOptions.
  168. const (
  169. MethodOptions_Deprecated = 33 // optional bool
  170. MethodOptions_IdempotencyLevel = 34 // optional google.protobuf.MethodOptions.IdempotencyLevel
  171. MethodOptions_UninterpretedOption = 999 // repeated google.protobuf.UninterpretedOption
  172. )
  173. // Field numbers for google.protobuf.UninterpretedOption.
  174. const (
  175. UninterpretedOption_Name = 2 // repeated google.protobuf.UninterpretedOption.NamePart
  176. UninterpretedOption_IdentifierValue = 3 // optional string
  177. UninterpretedOption_PositiveIntValue = 4 // optional uint64
  178. UninterpretedOption_NegativeIntValue = 5 // optional int64
  179. UninterpretedOption_DoubleValue = 6 // optional double
  180. UninterpretedOption_StringValue = 7 // optional bytes
  181. UninterpretedOption_AggregateValue = 8 // optional string
  182. )
  183. // Field numbers for google.protobuf.UninterpretedOption.NamePart.
  184. const (
  185. UninterpretedOption_NamePart_NamePart = 1 // required string
  186. UninterpretedOption_NamePart_IsExtension = 2 // required bool
  187. )
  188. // Field numbers for google.protobuf.SourceCodeInfo.
  189. const (
  190. SourceCodeInfo_Location = 1 // repeated google.protobuf.SourceCodeInfo.Location
  191. )
  192. // Field numbers for google.protobuf.SourceCodeInfo.Location.
  193. const (
  194. SourceCodeInfo_Location_Path = 1 // repeated int32
  195. SourceCodeInfo_Location_Span = 2 // repeated int32
  196. SourceCodeInfo_Location_LeadingComments = 3 // optional string
  197. SourceCodeInfo_Location_TrailingComments = 4 // optional string
  198. SourceCodeInfo_Location_LeadingDetachedComments = 6 // repeated string
  199. )
  200. // Field numbers for google.protobuf.GeneratedCodeInfo.
  201. const (
  202. GeneratedCodeInfo_Annotation = 1 // repeated google.protobuf.GeneratedCodeInfo.Annotation
  203. )
  204. // Field numbers for google.protobuf.GeneratedCodeInfo.Annotation.
  205. const (
  206. GeneratedCodeInfo_Annotation_Path = 1 // repeated int32
  207. GeneratedCodeInfo_Annotation_SourceFile = 2 // optional string
  208. GeneratedCodeInfo_Annotation_Begin = 3 // optional int32
  209. GeneratedCodeInfo_Annotation_End = 4 // optional int32
  210. )