config.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. package commander
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. anypb "google.golang.org/protobuf/types/known/anypb"
  7. reflect "reflect"
  8. sync "sync"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. // Config is the settings for Commander.
  17. type Config struct {
  18. state protoimpl.MessageState
  19. sizeCache protoimpl.SizeCache
  20. unknownFields protoimpl.UnknownFields
  21. // Tag of the outbound handler that handles grpc connections.
  22. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  23. // Services that supported by this server. All services must implement Service
  24. // interface.
  25. Service []*anypb.Any `protobuf:"bytes,2,rep,name=service,proto3" json:"service,omitempty"`
  26. }
  27. func (x *Config) Reset() {
  28. *x = Config{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_app_commander_config_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *Config) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*Config) ProtoMessage() {}
  39. func (x *Config) ProtoReflect() protoreflect.Message {
  40. mi := &file_app_commander_config_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 Config.ProtoReflect.Descriptor instead.
  51. func (*Config) Descriptor() ([]byte, []int) {
  52. return file_app_commander_config_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *Config) GetTag() string {
  55. if x != nil {
  56. return x.Tag
  57. }
  58. return ""
  59. }
  60. func (x *Config) GetService() []*anypb.Any {
  61. if x != nil {
  62. return x.Service
  63. }
  64. return nil
  65. }
  66. // ReflectionConfig is the placeholder config for ReflectionService.
  67. type ReflectionConfig struct {
  68. state protoimpl.MessageState
  69. sizeCache protoimpl.SizeCache
  70. unknownFields protoimpl.UnknownFields
  71. }
  72. func (x *ReflectionConfig) Reset() {
  73. *x = ReflectionConfig{}
  74. if protoimpl.UnsafeEnabled {
  75. mi := &file_app_commander_config_proto_msgTypes[1]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. }
  80. func (x *ReflectionConfig) String() string {
  81. return protoimpl.X.MessageStringOf(x)
  82. }
  83. func (*ReflectionConfig) ProtoMessage() {}
  84. func (x *ReflectionConfig) ProtoReflect() protoreflect.Message {
  85. mi := &file_app_commander_config_proto_msgTypes[1]
  86. if protoimpl.UnsafeEnabled && x != nil {
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. if ms.LoadMessageInfo() == nil {
  89. ms.StoreMessageInfo(mi)
  90. }
  91. return ms
  92. }
  93. return mi.MessageOf(x)
  94. }
  95. // Deprecated: Use ReflectionConfig.ProtoReflect.Descriptor instead.
  96. func (*ReflectionConfig) Descriptor() ([]byte, []int) {
  97. return file_app_commander_config_proto_rawDescGZIP(), []int{1}
  98. }
  99. type SimplifiedConfig struct {
  100. state protoimpl.MessageState
  101. sizeCache protoimpl.SizeCache
  102. unknownFields protoimpl.UnknownFields
  103. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  104. Name []string `protobuf:"bytes,2,rep,name=name,proto3" json:"name,omitempty"`
  105. }
  106. func (x *SimplifiedConfig) Reset() {
  107. *x = SimplifiedConfig{}
  108. if protoimpl.UnsafeEnabled {
  109. mi := &file_app_commander_config_proto_msgTypes[2]
  110. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  111. ms.StoreMessageInfo(mi)
  112. }
  113. }
  114. func (x *SimplifiedConfig) String() string {
  115. return protoimpl.X.MessageStringOf(x)
  116. }
  117. func (*SimplifiedConfig) ProtoMessage() {}
  118. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  119. mi := &file_app_commander_config_proto_msgTypes[2]
  120. if protoimpl.UnsafeEnabled && x != nil {
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. if ms.LoadMessageInfo() == nil {
  123. ms.StoreMessageInfo(mi)
  124. }
  125. return ms
  126. }
  127. return mi.MessageOf(x)
  128. }
  129. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  130. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  131. return file_app_commander_config_proto_rawDescGZIP(), []int{2}
  132. }
  133. func (x *SimplifiedConfig) GetTag() string {
  134. if x != nil {
  135. return x.Tag
  136. }
  137. return ""
  138. }
  139. func (x *SimplifiedConfig) GetName() []string {
  140. if x != nil {
  141. return x.Name
  142. }
  143. return nil
  144. }
  145. var File_app_commander_config_proto protoreflect.FileDescriptor
  146. var file_app_commander_config_proto_rawDesc = []byte{
  147. 0x0a, 0x1a, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x2f,
  148. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x76, 0x32,
  149. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d,
  150. 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
  151. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  152. 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65,
  153. 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
  154. 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a,
  155. 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12,
  156. 0x2e, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
  157. 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  158. 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22,
  159. 0x35, 0x0a, 0x10, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e,
  160. 0x66, 0x69, 0x67, 0x3a, 0x21, 0x82, 0xb5, 0x18, 0x0d, 0x0a, 0x0b, 0x67, 0x72, 0x70, 0x63, 0x73,
  161. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18, 0x0c, 0x12, 0x0a, 0x72, 0x65, 0x66, 0x6c,
  162. 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x56, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69,
  163. 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61,
  164. 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04,
  165. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
  166. 0x3a, 0x1c, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82,
  167. 0xb5, 0x18, 0x0b, 0x12, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x69,
  168. 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  169. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x50, 0x01,
  170. 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66,
  171. 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35,
  172. 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0xaa, 0x02,
  173. 0x18, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e,
  174. 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  175. 0x33,
  176. }
  177. var (
  178. file_app_commander_config_proto_rawDescOnce sync.Once
  179. file_app_commander_config_proto_rawDescData = file_app_commander_config_proto_rawDesc
  180. )
  181. func file_app_commander_config_proto_rawDescGZIP() []byte {
  182. file_app_commander_config_proto_rawDescOnce.Do(func() {
  183. file_app_commander_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_commander_config_proto_rawDescData)
  184. })
  185. return file_app_commander_config_proto_rawDescData
  186. }
  187. var file_app_commander_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  188. var file_app_commander_config_proto_goTypes = []interface{}{
  189. (*Config)(nil), // 0: v2ray.core.app.commander.Config
  190. (*ReflectionConfig)(nil), // 1: v2ray.core.app.commander.ReflectionConfig
  191. (*SimplifiedConfig)(nil), // 2: v2ray.core.app.commander.SimplifiedConfig
  192. (*anypb.Any)(nil), // 3: google.protobuf.Any
  193. }
  194. var file_app_commander_config_proto_depIdxs = []int32{
  195. 3, // 0: v2ray.core.app.commander.Config.service:type_name -> google.protobuf.Any
  196. 1, // [1:1] is the sub-list for method output_type
  197. 1, // [1:1] is the sub-list for method input_type
  198. 1, // [1:1] is the sub-list for extension type_name
  199. 1, // [1:1] is the sub-list for extension extendee
  200. 0, // [0:1] is the sub-list for field type_name
  201. }
  202. func init() { file_app_commander_config_proto_init() }
  203. func file_app_commander_config_proto_init() {
  204. if File_app_commander_config_proto != nil {
  205. return
  206. }
  207. if !protoimpl.UnsafeEnabled {
  208. file_app_commander_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  209. switch v := v.(*Config); i {
  210. case 0:
  211. return &v.state
  212. case 1:
  213. return &v.sizeCache
  214. case 2:
  215. return &v.unknownFields
  216. default:
  217. return nil
  218. }
  219. }
  220. file_app_commander_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  221. switch v := v.(*ReflectionConfig); i {
  222. case 0:
  223. return &v.state
  224. case 1:
  225. return &v.sizeCache
  226. case 2:
  227. return &v.unknownFields
  228. default:
  229. return nil
  230. }
  231. }
  232. file_app_commander_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  233. switch v := v.(*SimplifiedConfig); i {
  234. case 0:
  235. return &v.state
  236. case 1:
  237. return &v.sizeCache
  238. case 2:
  239. return &v.unknownFields
  240. default:
  241. return nil
  242. }
  243. }
  244. }
  245. type x struct{}
  246. out := protoimpl.TypeBuilder{
  247. File: protoimpl.DescBuilder{
  248. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  249. RawDescriptor: file_app_commander_config_proto_rawDesc,
  250. NumEnums: 0,
  251. NumMessages: 3,
  252. NumExtensions: 0,
  253. NumServices: 0,
  254. },
  255. GoTypes: file_app_commander_config_proto_goTypes,
  256. DependencyIndexes: file_app_commander_config_proto_depIdxs,
  257. MessageInfos: file_app_commander_config_proto_msgTypes,
  258. }.Build()
  259. File_app_commander_config_proto = out.File
  260. file_app_commander_config_proto_rawDesc = nil
  261. file_app_commander_config_proto_goTypes = nil
  262. file_app_commander_config_proto_depIdxs = nil
  263. }