config.pb.go 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.28.2
  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. mi := &file_app_commander_config_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. func (x *Config) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*Config) ProtoMessage() {}
  43. func (x *Config) ProtoReflect() protoreflect.Message {
  44. mi := &file_app_commander_config_proto_msgTypes[0]
  45. if x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  55. func (*Config) Descriptor() ([]byte, []int) {
  56. return file_app_commander_config_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *Config) GetTag() string {
  59. if x != nil {
  60. return x.Tag
  61. }
  62. return ""
  63. }
  64. func (x *Config) GetListen() string {
  65. if x != nil {
  66. return x.Listen
  67. }
  68. return ""
  69. }
  70. func (x *Config) GetService() []*serial.TypedMessage {
  71. if x != nil {
  72. return x.Service
  73. }
  74. return nil
  75. }
  76. // ReflectionConfig is the placeholder config for ReflectionService.
  77. type ReflectionConfig struct {
  78. state protoimpl.MessageState
  79. sizeCache protoimpl.SizeCache
  80. unknownFields protoimpl.UnknownFields
  81. }
  82. func (x *ReflectionConfig) Reset() {
  83. *x = ReflectionConfig{}
  84. mi := &file_app_commander_config_proto_msgTypes[1]
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. ms.StoreMessageInfo(mi)
  87. }
  88. func (x *ReflectionConfig) String() string {
  89. return protoimpl.X.MessageStringOf(x)
  90. }
  91. func (*ReflectionConfig) ProtoMessage() {}
  92. func (x *ReflectionConfig) ProtoReflect() protoreflect.Message {
  93. mi := &file_app_commander_config_proto_msgTypes[1]
  94. if x != nil {
  95. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96. if ms.LoadMessageInfo() == nil {
  97. ms.StoreMessageInfo(mi)
  98. }
  99. return ms
  100. }
  101. return mi.MessageOf(x)
  102. }
  103. // Deprecated: Use ReflectionConfig.ProtoReflect.Descriptor instead.
  104. func (*ReflectionConfig) Descriptor() ([]byte, []int) {
  105. return file_app_commander_config_proto_rawDescGZIP(), []int{1}
  106. }
  107. var File_app_commander_config_proto protoreflect.FileDescriptor
  108. var file_app_commander_config_proto_rawDesc = []byte{
  109. 0x0a, 0x1a, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x2f,
  110. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x78, 0x72,
  111. 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72,
  112. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f,
  113. 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
  114. 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a,
  115. 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12,
  116. 0x16, 0x0a, 0x06, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  117. 0x06, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x12, 0x3a, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
  118. 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  119. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79,
  120. 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76,
  121. 0x69, 0x63, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f,
  122. 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x58, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78,
  123. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65,
  124. 0x72, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  125. 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61,
  126. 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0xaa, 0x02, 0x12, 0x58,
  127. 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65,
  128. 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  129. }
  130. var (
  131. file_app_commander_config_proto_rawDescOnce sync.Once
  132. file_app_commander_config_proto_rawDescData = file_app_commander_config_proto_rawDesc
  133. )
  134. func file_app_commander_config_proto_rawDescGZIP() []byte {
  135. file_app_commander_config_proto_rawDescOnce.Do(func() {
  136. file_app_commander_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_commander_config_proto_rawDescData)
  137. })
  138. return file_app_commander_config_proto_rawDescData
  139. }
  140. var file_app_commander_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  141. var file_app_commander_config_proto_goTypes = []any{
  142. (*Config)(nil), // 0: xray.app.commander.Config
  143. (*ReflectionConfig)(nil), // 1: xray.app.commander.ReflectionConfig
  144. (*serial.TypedMessage)(nil), // 2: xray.common.serial.TypedMessage
  145. }
  146. var file_app_commander_config_proto_depIdxs = []int32{
  147. 2, // 0: xray.app.commander.Config.service:type_name -> xray.common.serial.TypedMessage
  148. 1, // [1:1] is the sub-list for method output_type
  149. 1, // [1:1] is the sub-list for method input_type
  150. 1, // [1:1] is the sub-list for extension type_name
  151. 1, // [1:1] is the sub-list for extension extendee
  152. 0, // [0:1] is the sub-list for field type_name
  153. }
  154. func init() { file_app_commander_config_proto_init() }
  155. func file_app_commander_config_proto_init() {
  156. if File_app_commander_config_proto != nil {
  157. return
  158. }
  159. type x struct{}
  160. out := protoimpl.TypeBuilder{
  161. File: protoimpl.DescBuilder{
  162. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  163. RawDescriptor: file_app_commander_config_proto_rawDesc,
  164. NumEnums: 0,
  165. NumMessages: 2,
  166. NumExtensions: 0,
  167. NumServices: 0,
  168. },
  169. GoTypes: file_app_commander_config_proto_goTypes,
  170. DependencyIndexes: file_app_commander_config_proto_depIdxs,
  171. MessageInfos: file_app_commander_config_proto_msgTypes,
  172. }.Build()
  173. File_app_commander_config_proto = out.File
  174. file_app_commander_config_proto_rawDesc = nil
  175. file_app_commander_config_proto_goTypes = nil
  176. file_app_commander_config_proto_depIdxs = nil
  177. }