extensions.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. package protoext
  2. import (
  3. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  4. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  5. descriptorpb "google.golang.org/protobuf/types/descriptorpb"
  6. reflect "reflect"
  7. sync "sync"
  8. )
  9. const (
  10. // Verify that this generated code is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  14. )
  15. type MessageOpt struct {
  16. state protoimpl.MessageState
  17. sizeCache protoimpl.SizeCache
  18. unknownFields protoimpl.UnknownFields
  19. Type []string `protobuf:"bytes,1,rep,name=type,proto3" json:"type,omitempty"`
  20. ShortName []string `protobuf:"bytes,2,rep,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`
  21. TransportOriginalName string `protobuf:"bytes,86001,opt,name=transport_original_name,json=transportOriginalName,proto3" json:"transport_original_name,omitempty"`
  22. // allow_restricted_mode_load allow this config to be loaded in restricted mode
  23. // this is typically used when a an attacker can control the content
  24. AllowRestrictedModeLoad bool `protobuf:"varint,86002,opt,name=allow_restricted_mode_load,json=allowRestrictedModeLoad,proto3" json:"allow_restricted_mode_load,omitempty"`
  25. }
  26. func (x *MessageOpt) Reset() {
  27. *x = MessageOpt{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_common_protoext_extensions_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *MessageOpt) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*MessageOpt) ProtoMessage() {}
  38. func (x *MessageOpt) ProtoReflect() protoreflect.Message {
  39. mi := &file_common_protoext_extensions_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use MessageOpt.ProtoReflect.Descriptor instead.
  50. func (*MessageOpt) Descriptor() ([]byte, []int) {
  51. return file_common_protoext_extensions_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *MessageOpt) GetType() []string {
  54. if x != nil {
  55. return x.Type
  56. }
  57. return nil
  58. }
  59. func (x *MessageOpt) GetShortName() []string {
  60. if x != nil {
  61. return x.ShortName
  62. }
  63. return nil
  64. }
  65. func (x *MessageOpt) GetTransportOriginalName() string {
  66. if x != nil {
  67. return x.TransportOriginalName
  68. }
  69. return ""
  70. }
  71. func (x *MessageOpt) GetAllowRestrictedModeLoad() bool {
  72. if x != nil {
  73. return x.AllowRestrictedModeLoad
  74. }
  75. return false
  76. }
  77. type FieldOpt struct {
  78. state protoimpl.MessageState
  79. sizeCache protoimpl.SizeCache
  80. unknownFields protoimpl.UnknownFields
  81. AnyWants []string `protobuf:"bytes,1,rep,name=any_wants,json=anyWants,proto3" json:"any_wants,omitempty"`
  82. AllowedValues []string `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"`
  83. AllowedValueTypes []string `protobuf:"bytes,3,rep,name=allowed_value_types,json=allowedValueTypes,proto3" json:"allowed_value_types,omitempty"`
  84. // convert_time_read_file_into read a file into another field, and clear this field during input parsing
  85. ConvertTimeReadFileInto string `protobuf:"bytes,4,opt,name=convert_time_read_file_into,json=convertTimeReadFileInto,proto3" json:"convert_time_read_file_into,omitempty"`
  86. // forbidden marks a boolean to be inaccessible to user
  87. Forbidden bool `protobuf:"varint,5,opt,name=forbidden,proto3" json:"forbidden,omitempty"`
  88. // convert_time_resource_loading read a file, and place its resource hash into another field
  89. ConvertTimeResourceLoading string `protobuf:"bytes,6,opt,name=convert_time_resource_loading,json=convertTimeResourceLoading,proto3" json:"convert_time_resource_loading,omitempty"`
  90. // convert_time_parse_ip parse a string ip address, and put its binary representation into another field
  91. ConvertTimeParseIp string `protobuf:"bytes,7,opt,name=convert_time_parse_ip,json=convertTimeParseIp,proto3" json:"convert_time_parse_ip,omitempty"`
  92. }
  93. func (x *FieldOpt) Reset() {
  94. *x = FieldOpt{}
  95. if protoimpl.UnsafeEnabled {
  96. mi := &file_common_protoext_extensions_proto_msgTypes[1]
  97. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  98. ms.StoreMessageInfo(mi)
  99. }
  100. }
  101. func (x *FieldOpt) String() string {
  102. return protoimpl.X.MessageStringOf(x)
  103. }
  104. func (*FieldOpt) ProtoMessage() {}
  105. func (x *FieldOpt) ProtoReflect() protoreflect.Message {
  106. mi := &file_common_protoext_extensions_proto_msgTypes[1]
  107. if protoimpl.UnsafeEnabled && x != nil {
  108. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  109. if ms.LoadMessageInfo() == nil {
  110. ms.StoreMessageInfo(mi)
  111. }
  112. return ms
  113. }
  114. return mi.MessageOf(x)
  115. }
  116. // Deprecated: Use FieldOpt.ProtoReflect.Descriptor instead.
  117. func (*FieldOpt) Descriptor() ([]byte, []int) {
  118. return file_common_protoext_extensions_proto_rawDescGZIP(), []int{1}
  119. }
  120. func (x *FieldOpt) GetAnyWants() []string {
  121. if x != nil {
  122. return x.AnyWants
  123. }
  124. return nil
  125. }
  126. func (x *FieldOpt) GetAllowedValues() []string {
  127. if x != nil {
  128. return x.AllowedValues
  129. }
  130. return nil
  131. }
  132. func (x *FieldOpt) GetAllowedValueTypes() []string {
  133. if x != nil {
  134. return x.AllowedValueTypes
  135. }
  136. return nil
  137. }
  138. func (x *FieldOpt) GetConvertTimeReadFileInto() string {
  139. if x != nil {
  140. return x.ConvertTimeReadFileInto
  141. }
  142. return ""
  143. }
  144. func (x *FieldOpt) GetForbidden() bool {
  145. if x != nil {
  146. return x.Forbidden
  147. }
  148. return false
  149. }
  150. func (x *FieldOpt) GetConvertTimeResourceLoading() string {
  151. if x != nil {
  152. return x.ConvertTimeResourceLoading
  153. }
  154. return ""
  155. }
  156. func (x *FieldOpt) GetConvertTimeParseIp() string {
  157. if x != nil {
  158. return x.ConvertTimeParseIp
  159. }
  160. return ""
  161. }
  162. var file_common_protoext_extensions_proto_extTypes = []protoimpl.ExtensionInfo{
  163. {
  164. ExtendedType: (*descriptorpb.MessageOptions)(nil),
  165. ExtensionType: (*MessageOpt)(nil),
  166. Field: 50000,
  167. Name: "v2ray.core.common.protoext.message_opt",
  168. Tag: "bytes,50000,opt,name=message_opt",
  169. Filename: "common/protoext/extensions.proto",
  170. },
  171. {
  172. ExtendedType: (*descriptorpb.FieldOptions)(nil),
  173. ExtensionType: (*FieldOpt)(nil),
  174. Field: 50000,
  175. Name: "v2ray.core.common.protoext.field_opt",
  176. Tag: "bytes,50000,opt,name=field_opt",
  177. Filename: "common/protoext/extensions.proto",
  178. },
  179. }
  180. // Extension fields to descriptorpb.MessageOptions.
  181. var (
  182. // optional v2ray.core.common.protoext.MessageOpt message_opt = 50000;
  183. E_MessageOpt = &file_common_protoext_extensions_proto_extTypes[0]
  184. )
  185. // Extension fields to descriptorpb.FieldOptions.
  186. var (
  187. // optional v2ray.core.common.protoext.FieldOpt field_opt = 50000;
  188. E_FieldOpt = &file_common_protoext_extensions_proto_extTypes[1]
  189. )
  190. var File_common_protoext_extensions_proto protoreflect.FileDescriptor
  191. var file_common_protoext_extensions_proto_rawDesc = []byte{
  192. 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78,
  193. 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  194. 0x74, 0x6f, 0x12, 0x1a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
  195. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x1a, 0x20,
  196. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
  197. 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  198. 0x22, 0xb8, 0x01, 0x0a, 0x0a, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x12,
  199. 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74,
  200. 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x6e, 0x61, 0x6d,
  201. 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61,
  202. 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x17, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f,
  203. 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0xf1, 0x9f,
  204. 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  205. 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x1a,
  206. 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x65, 0x64,
  207. 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0xf2, 0x9f, 0x05, 0x20, 0x01,
  208. 0x28, 0x08, 0x52, 0x17, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63,
  209. 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x61, 0x64, 0x22, 0xd0, 0x02, 0x0a, 0x08,
  210. 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x6e, 0x79, 0x5f,
  211. 0x77, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x6e, 0x79,
  212. 0x57, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64,
  213. 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x61,
  214. 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13,
  215. 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79,
  216. 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
  217. 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x1b,
  218. 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x65, 0x61,
  219. 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28,
  220. 0x09, 0x52, 0x17, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65,
  221. 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x6f,
  222. 0x72, 0x62, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x66,
  223. 0x6f, 0x72, 0x62, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x12, 0x41, 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x76,
  224. 0x65, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  225. 0x65, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
  226. 0x1a, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x6f,
  227. 0x75, 0x72, 0x63, 0x65, 0x4c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x31, 0x0a, 0x15, 0x63,
  228. 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73,
  229. 0x65, 0x5f, 0x69, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x76,
  230. 0x65, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x73, 0x65, 0x49, 0x70, 0x3a, 0x6a,
  231. 0x0a, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x12, 0x1f, 0x2e,
  232. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  233. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd0,
  234. 0x86, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  235. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  236. 0x65, 0x78, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x52, 0x0a,
  237. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x3a, 0x62, 0x0a, 0x09, 0x66, 0x69,
  238. 0x65, 0x6c, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  239. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f,
  240. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd0, 0x86, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24,
  241. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  242. 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c,
  243. 0x64, 0x4f, 0x70, 0x74, 0x52, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x42, 0x6f,
  244. 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  245. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74,
  246. 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76,
  247. 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f,
  248. 0x76, 0x35, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65,
  249. 0x78, 0x74, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e,
  250. 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x45, 0x78, 0x74, 0x62,
  251. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  252. }
  253. var (
  254. file_common_protoext_extensions_proto_rawDescOnce sync.Once
  255. file_common_protoext_extensions_proto_rawDescData = file_common_protoext_extensions_proto_rawDesc
  256. )
  257. func file_common_protoext_extensions_proto_rawDescGZIP() []byte {
  258. file_common_protoext_extensions_proto_rawDescOnce.Do(func() {
  259. file_common_protoext_extensions_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_protoext_extensions_proto_rawDescData)
  260. })
  261. return file_common_protoext_extensions_proto_rawDescData
  262. }
  263. var file_common_protoext_extensions_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  264. var file_common_protoext_extensions_proto_goTypes = []interface{}{
  265. (*MessageOpt)(nil), // 0: v2ray.core.common.protoext.MessageOpt
  266. (*FieldOpt)(nil), // 1: v2ray.core.common.protoext.FieldOpt
  267. (*descriptorpb.MessageOptions)(nil), // 2: google.protobuf.MessageOptions
  268. (*descriptorpb.FieldOptions)(nil), // 3: google.protobuf.FieldOptions
  269. }
  270. var file_common_protoext_extensions_proto_depIdxs = []int32{
  271. 2, // 0: v2ray.core.common.protoext.message_opt:extendee -> google.protobuf.MessageOptions
  272. 3, // 1: v2ray.core.common.protoext.field_opt:extendee -> google.protobuf.FieldOptions
  273. 0, // 2: v2ray.core.common.protoext.message_opt:type_name -> v2ray.core.common.protoext.MessageOpt
  274. 1, // 3: v2ray.core.common.protoext.field_opt:type_name -> v2ray.core.common.protoext.FieldOpt
  275. 4, // [4:4] is the sub-list for method output_type
  276. 4, // [4:4] is the sub-list for method input_type
  277. 2, // [2:4] is the sub-list for extension type_name
  278. 0, // [0:2] is the sub-list for extension extendee
  279. 0, // [0:0] is the sub-list for field type_name
  280. }
  281. func init() { file_common_protoext_extensions_proto_init() }
  282. func file_common_protoext_extensions_proto_init() {
  283. if File_common_protoext_extensions_proto != nil {
  284. return
  285. }
  286. if !protoimpl.UnsafeEnabled {
  287. file_common_protoext_extensions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  288. switch v := v.(*MessageOpt); i {
  289. case 0:
  290. return &v.state
  291. case 1:
  292. return &v.sizeCache
  293. case 2:
  294. return &v.unknownFields
  295. default:
  296. return nil
  297. }
  298. }
  299. file_common_protoext_extensions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  300. switch v := v.(*FieldOpt); i {
  301. case 0:
  302. return &v.state
  303. case 1:
  304. return &v.sizeCache
  305. case 2:
  306. return &v.unknownFields
  307. default:
  308. return nil
  309. }
  310. }
  311. }
  312. type x struct{}
  313. out := protoimpl.TypeBuilder{
  314. File: protoimpl.DescBuilder{
  315. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  316. RawDescriptor: file_common_protoext_extensions_proto_rawDesc,
  317. NumEnums: 0,
  318. NumMessages: 2,
  319. NumExtensions: 2,
  320. NumServices: 0,
  321. },
  322. GoTypes: file_common_protoext_extensions_proto_goTypes,
  323. DependencyIndexes: file_common_protoext_extensions_proto_depIdxs,
  324. MessageInfos: file_common_protoext_extensions_proto_msgTypes,
  325. ExtensionInfos: file_common_protoext_extensions_proto_extTypes,
  326. }.Build()
  327. File_common_protoext_extensions_proto = out.File
  328. file_common_protoext_extensions_proto_rawDesc = nil
  329. file_common_protoext_extensions_proto_goTypes = nil
  330. file_common_protoext_extensions_proto_depIdxs = nil
  331. }