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