config.pb.go 7.5 KB

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