config.pb.go 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // Config is the settings for Commander.
  22. type Config struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // Tag of the outbound handler that handles grpc connections.
  25. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  26. // Network address of commander grpc service.
  27. Listen string `protobuf:"bytes,3,opt,name=listen,proto3" json:"listen,omitempty"`
  28. // Services that supported by this server. All services must implement Service
  29. // interface.
  30. Service []*serial.TypedMessage `protobuf:"bytes,2,rep,name=service,proto3" json:"service,omitempty"`
  31. unknownFields protoimpl.UnknownFields
  32. sizeCache protoimpl.SizeCache
  33. }
  34. func (x *Config) Reset() {
  35. *x = Config{}
  36. mi := &file_app_commander_config_proto_msgTypes[0]
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. ms.StoreMessageInfo(mi)
  39. }
  40. func (x *Config) String() string {
  41. return protoimpl.X.MessageStringOf(x)
  42. }
  43. func (*Config) ProtoMessage() {}
  44. func (x *Config) ProtoReflect() protoreflect.Message {
  45. mi := &file_app_commander_config_proto_msgTypes[0]
  46. if x != nil {
  47. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  48. if ms.LoadMessageInfo() == nil {
  49. ms.StoreMessageInfo(mi)
  50. }
  51. return ms
  52. }
  53. return mi.MessageOf(x)
  54. }
  55. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  56. func (*Config) Descriptor() ([]byte, []int) {
  57. return file_app_commander_config_proto_rawDescGZIP(), []int{0}
  58. }
  59. func (x *Config) GetTag() string {
  60. if x != nil {
  61. return x.Tag
  62. }
  63. return ""
  64. }
  65. func (x *Config) GetListen() string {
  66. if x != nil {
  67. return x.Listen
  68. }
  69. return ""
  70. }
  71. func (x *Config) GetService() []*serial.TypedMessage {
  72. if x != nil {
  73. return x.Service
  74. }
  75. return nil
  76. }
  77. // ReflectionConfig is the placeholder config for ReflectionService.
  78. type ReflectionConfig struct {
  79. state protoimpl.MessageState `protogen:"open.v1"`
  80. unknownFields protoimpl.UnknownFields
  81. sizeCache protoimpl.SizeCache
  82. }
  83. func (x *ReflectionConfig) Reset() {
  84. *x = ReflectionConfig{}
  85. mi := &file_app_commander_config_proto_msgTypes[1]
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. ms.StoreMessageInfo(mi)
  88. }
  89. func (x *ReflectionConfig) String() string {
  90. return protoimpl.X.MessageStringOf(x)
  91. }
  92. func (*ReflectionConfig) ProtoMessage() {}
  93. func (x *ReflectionConfig) ProtoReflect() protoreflect.Message {
  94. mi := &file_app_commander_config_proto_msgTypes[1]
  95. if x != nil {
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. if ms.LoadMessageInfo() == nil {
  98. ms.StoreMessageInfo(mi)
  99. }
  100. return ms
  101. }
  102. return mi.MessageOf(x)
  103. }
  104. // Deprecated: Use ReflectionConfig.ProtoReflect.Descriptor instead.
  105. func (*ReflectionConfig) Descriptor() ([]byte, []int) {
  106. return file_app_commander_config_proto_rawDescGZIP(), []int{1}
  107. }
  108. var File_app_commander_config_proto protoreflect.FileDescriptor
  109. const file_app_commander_config_proto_rawDesc = "" +
  110. "\n" +
  111. "\x1aapp/commander/config.proto\x12\x12xray.app.commander\x1a!common/serial/typed_message.proto\"n\n" +
  112. "\x06Config\x12\x10\n" +
  113. "\x03tag\x18\x01 \x01(\tR\x03tag\x12\x16\n" +
  114. "\x06listen\x18\x03 \x01(\tR\x06listen\x12:\n" +
  115. "\aservice\x18\x02 \x03(\v2 .xray.common.serial.TypedMessageR\aservice\"\x12\n" +
  116. "\x10ReflectionConfigBX\n" +
  117. "\x16com.xray.app.commanderP\x01Z'github.com/xtls/xray-core/app/commander\xaa\x02\x12Xray.App.Commanderb\x06proto3"
  118. var (
  119. file_app_commander_config_proto_rawDescOnce sync.Once
  120. file_app_commander_config_proto_rawDescData []byte
  121. )
  122. func file_app_commander_config_proto_rawDescGZIP() []byte {
  123. file_app_commander_config_proto_rawDescOnce.Do(func() {
  124. 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)))
  125. })
  126. return file_app_commander_config_proto_rawDescData
  127. }
  128. var file_app_commander_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  129. var file_app_commander_config_proto_goTypes = []any{
  130. (*Config)(nil), // 0: xray.app.commander.Config
  131. (*ReflectionConfig)(nil), // 1: xray.app.commander.ReflectionConfig
  132. (*serial.TypedMessage)(nil), // 2: xray.common.serial.TypedMessage
  133. }
  134. var file_app_commander_config_proto_depIdxs = []int32{
  135. 2, // 0: xray.app.commander.Config.service:type_name -> xray.common.serial.TypedMessage
  136. 1, // [1:1] is the sub-list for method output_type
  137. 1, // [1:1] is the sub-list for method input_type
  138. 1, // [1:1] is the sub-list for extension type_name
  139. 1, // [1:1] is the sub-list for extension extendee
  140. 0, // [0:1] is the sub-list for field type_name
  141. }
  142. func init() { file_app_commander_config_proto_init() }
  143. func file_app_commander_config_proto_init() {
  144. if File_app_commander_config_proto != nil {
  145. return
  146. }
  147. type x struct{}
  148. out := protoimpl.TypeBuilder{
  149. File: protoimpl.DescBuilder{
  150. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  151. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_commander_config_proto_rawDesc), len(file_app_commander_config_proto_rawDesc)),
  152. NumEnums: 0,
  153. NumMessages: 2,
  154. NumExtensions: 0,
  155. NumServices: 0,
  156. },
  157. GoTypes: file_app_commander_config_proto_goTypes,
  158. DependencyIndexes: file_app_commander_config_proto_depIdxs,
  159. MessageInfos: file_app_commander_config_proto_msgTypes,
  160. }.Build()
  161. File_app_commander_config_proto = out.File
  162. file_app_commander_config_proto_goTypes = nil
  163. file_app_commander_config_proto_depIdxs = nil
  164. }