config.pb.go 9.2 KB

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