config.pb.go 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.13.0
  5. // source: app/commander/config.proto
  6. package commander
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. serial "v2ray.com/core/common/serial"
  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. var File_app_commander_config_proto protoreflect.FileDescriptor
  75. var file_app_commander_config_proto_rawDesc = []byte{
  76. 0x0a, 0x1a, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x2f,
  77. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x76, 0x32,
  78. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d,
  79. 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73,
  80. 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73,
  81. 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
  82. 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  83. 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x40, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  84. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  85. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61,
  86. 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07,
  87. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x59, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
  88. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f,
  89. 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x1c, 0x76, 0x32, 0x72, 0x61, 0x79,
  90. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f,
  91. 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0xaa, 0x02, 0x18, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e,
  92. 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
  93. 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  94. }
  95. var (
  96. file_app_commander_config_proto_rawDescOnce sync.Once
  97. file_app_commander_config_proto_rawDescData = file_app_commander_config_proto_rawDesc
  98. )
  99. func file_app_commander_config_proto_rawDescGZIP() []byte {
  100. file_app_commander_config_proto_rawDescOnce.Do(func() {
  101. file_app_commander_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_commander_config_proto_rawDescData)
  102. })
  103. return file_app_commander_config_proto_rawDescData
  104. }
  105. var file_app_commander_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  106. var file_app_commander_config_proto_goTypes = []interface{}{
  107. (*Config)(nil), // 0: v2ray.core.app.commander.Config
  108. (*serial.TypedMessage)(nil), // 1: v2ray.core.common.serial.TypedMessage
  109. }
  110. var file_app_commander_config_proto_depIdxs = []int32{
  111. 1, // 0: v2ray.core.app.commander.Config.service:type_name -> v2ray.core.common.serial.TypedMessage
  112. 1, // [1:1] is the sub-list for method output_type
  113. 1, // [1:1] is the sub-list for method input_type
  114. 1, // [1:1] is the sub-list for extension type_name
  115. 1, // [1:1] is the sub-list for extension extendee
  116. 0, // [0:1] is the sub-list for field type_name
  117. }
  118. func init() { file_app_commander_config_proto_init() }
  119. func file_app_commander_config_proto_init() {
  120. if File_app_commander_config_proto != nil {
  121. return
  122. }
  123. if !protoimpl.UnsafeEnabled {
  124. file_app_commander_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  125. switch v := v.(*Config); i {
  126. case 0:
  127. return &v.state
  128. case 1:
  129. return &v.sizeCache
  130. case 2:
  131. return &v.unknownFields
  132. default:
  133. return nil
  134. }
  135. }
  136. }
  137. type x struct{}
  138. out := protoimpl.TypeBuilder{
  139. File: protoimpl.DescBuilder{
  140. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  141. RawDescriptor: file_app_commander_config_proto_rawDesc,
  142. NumEnums: 0,
  143. NumMessages: 1,
  144. NumExtensions: 0,
  145. NumServices: 0,
  146. },
  147. GoTypes: file_app_commander_config_proto_goTypes,
  148. DependencyIndexes: file_app_commander_config_proto_depIdxs,
  149. MessageInfos: file_app_commander_config_proto_msgTypes,
  150. }.Build()
  151. File_app_commander_config_proto = out.File
  152. file_app_commander_config_proto_rawDesc = nil
  153. file_app_commander_config_proto_goTypes = nil
  154. file_app_commander_config_proto_depIdxs = nil
  155. }