config.pb.go 10 KB

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