config.pb.go 7.9 KB

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