config.pb.go 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.15.3
  5. // source: app/commander/config.proto
  6. package commander
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. serial "github.com/v2fly/v2ray-core/v4/common/serial"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. reflect "reflect"
  13. sync "sync"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  22. // of the legacy proto package is being used.
  23. const _ = proto.ProtoPackageIsVersion4
  24. // Config is the settings for Commander.
  25. type Config struct {
  26. state protoimpl.MessageState
  27. sizeCache protoimpl.SizeCache
  28. unknownFields protoimpl.UnknownFields
  29. // Tag of the outbound handler that handles grpc connections.
  30. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  31. // Services that supported by this server. All services must implement Service
  32. // interface.
  33. Service []*serial.TypedMessage `protobuf:"bytes,2,rep,name=service,proto3" json:"service,omitempty"`
  34. }
  35. func (x *Config) Reset() {
  36. *x = Config{}
  37. if protoimpl.UnsafeEnabled {
  38. mi := &file_app_commander_config_proto_msgTypes[0]
  39. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40. ms.StoreMessageInfo(mi)
  41. }
  42. }
  43. func (x *Config) String() string {
  44. return protoimpl.X.MessageStringOf(x)
  45. }
  46. func (*Config) ProtoMessage() {}
  47. func (x *Config) ProtoReflect() protoreflect.Message {
  48. mi := &file_app_commander_config_proto_msgTypes[0]
  49. if protoimpl.UnsafeEnabled && x != nil {
  50. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  51. if ms.LoadMessageInfo() == nil {
  52. ms.StoreMessageInfo(mi)
  53. }
  54. return ms
  55. }
  56. return mi.MessageOf(x)
  57. }
  58. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  59. func (*Config) Descriptor() ([]byte, []int) {
  60. return file_app_commander_config_proto_rawDescGZIP(), []int{0}
  61. }
  62. func (x *Config) GetTag() string {
  63. if x != nil {
  64. return x.Tag
  65. }
  66. return ""
  67. }
  68. func (x *Config) GetService() []*serial.TypedMessage {
  69. if x != nil {
  70. return x.Service
  71. }
  72. return nil
  73. }
  74. // ReflectionConfig is the placeholder config for ReflectionService.
  75. type ReflectionConfig struct {
  76. state protoimpl.MessageState
  77. sizeCache protoimpl.SizeCache
  78. unknownFields protoimpl.UnknownFields
  79. }
  80. func (x *ReflectionConfig) Reset() {
  81. *x = ReflectionConfig{}
  82. if protoimpl.UnsafeEnabled {
  83. mi := &file_app_commander_config_proto_msgTypes[1]
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. ms.StoreMessageInfo(mi)
  86. }
  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 protoimpl.UnsafeEnabled && 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, 0x18, 0x76, 0x32,
  111. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d,
  112. 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73,
  113. 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73,
  114. 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
  115. 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  116. 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x40, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  117. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  118. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61,
  119. 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07,
  120. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x52, 0x65, 0x66, 0x6c, 0x65,
  121. 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x69, 0x0a, 0x1c, 0x63,
  122. 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  123. 0x70, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x2c, 0x67,
  124. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f,
  125. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70,
  126. 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0xaa, 0x02, 0x18, 0x56, 0x32,
  127. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x43, 0x6f, 0x6d,
  128. 0x6d, 0x61, 0x6e, 0x64, 0x65, 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 = []interface{}{
  142. (*Config)(nil), // 0: v2ray.core.app.commander.Config
  143. (*ReflectionConfig)(nil), // 1: v2ray.core.app.commander.ReflectionConfig
  144. (*serial.TypedMessage)(nil), // 2: v2ray.core.common.serial.TypedMessage
  145. }
  146. var file_app_commander_config_proto_depIdxs = []int32{
  147. 2, // 0: v2ray.core.app.commander.Config.service:type_name -> v2ray.core.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. if !protoimpl.UnsafeEnabled {
  160. file_app_commander_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  161. switch v := v.(*Config); i {
  162. case 0:
  163. return &v.state
  164. case 1:
  165. return &v.sizeCache
  166. case 2:
  167. return &v.unknownFields
  168. default:
  169. return nil
  170. }
  171. }
  172. file_app_commander_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  173. switch v := v.(*ReflectionConfig); i {
  174. case 0:
  175. return &v.state
  176. case 1:
  177. return &v.sizeCache
  178. case 2:
  179. return &v.unknownFields
  180. default:
  181. return nil
  182. }
  183. }
  184. }
  185. type x struct{}
  186. out := protoimpl.TypeBuilder{
  187. File: protoimpl.DescBuilder{
  188. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  189. RawDescriptor: file_app_commander_config_proto_rawDesc,
  190. NumEnums: 0,
  191. NumMessages: 2,
  192. NumExtensions: 0,
  193. NumServices: 0,
  194. },
  195. GoTypes: file_app_commander_config_proto_goTypes,
  196. DependencyIndexes: file_app_commander_config_proto_depIdxs,
  197. MessageInfos: file_app_commander_config_proto_msgTypes,
  198. }.Build()
  199. File_app_commander_config_proto = out.File
  200. file_app_commander_config_proto_rawDesc = nil
  201. file_app_commander_config_proto_goTypes = nil
  202. file_app_commander_config_proto_depIdxs = nil
  203. }