extensions.pb.go 13 KB

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