config.pb.go 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. package core
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import v2ray_core_app_proxyman "v2ray.com/core/app/proxyman"
  6. import v2ray_core_common_serial "v2ray.com/core/common/serial"
  7. import v2ray_core_common_log "v2ray.com/core/common/log"
  8. import v2ray_core_transport "v2ray.com/core/transport"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // Configuration serialization format.
  19. type ConfigFormat int32
  20. const (
  21. ConfigFormat_Protobuf ConfigFormat = 0
  22. ConfigFormat_JSON ConfigFormat = 1
  23. )
  24. var ConfigFormat_name = map[int32]string{
  25. 0: "Protobuf",
  26. 1: "JSON",
  27. }
  28. var ConfigFormat_value = map[string]int32{
  29. "Protobuf": 0,
  30. "JSON": 1,
  31. }
  32. func (x ConfigFormat) String() string {
  33. return proto.EnumName(ConfigFormat_name, int32(x))
  34. }
  35. func (ConfigFormat) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  36. type Config struct {
  37. // Inbound handler configurations. Must have at least one item.
  38. Inbound []*v2ray_core_app_proxyman.InboundHandlerConfig `protobuf:"bytes,1,rep,name=inbound" json:"inbound,omitempty"`
  39. // Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
  40. Outbound []*v2ray_core_app_proxyman.OutboundHandlerConfig `protobuf:"bytes,2,rep,name=outbound" json:"outbound,omitempty"`
  41. Log *v2ray_core_common_log.Config `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
  42. // App configuration. Must be one in the app directory.
  43. App []*v2ray_core_common_serial.TypedMessage `protobuf:"bytes,4,rep,name=app" json:"app,omitempty"`
  44. Transport *v2ray_core_transport.Config `protobuf:"bytes,5,opt,name=transport" json:"transport,omitempty"`
  45. }
  46. func (m *Config) Reset() { *m = Config{} }
  47. func (m *Config) String() string { return proto.CompactTextString(m) }
  48. func (*Config) ProtoMessage() {}
  49. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  50. func (m *Config) GetInbound() []*v2ray_core_app_proxyman.InboundHandlerConfig {
  51. if m != nil {
  52. return m.Inbound
  53. }
  54. return nil
  55. }
  56. func (m *Config) GetOutbound() []*v2ray_core_app_proxyman.OutboundHandlerConfig {
  57. if m != nil {
  58. return m.Outbound
  59. }
  60. return nil
  61. }
  62. func (m *Config) GetLog() *v2ray_core_common_log.Config {
  63. if m != nil {
  64. return m.Log
  65. }
  66. return nil
  67. }
  68. func (m *Config) GetApp() []*v2ray_core_common_serial.TypedMessage {
  69. if m != nil {
  70. return m.App
  71. }
  72. return nil
  73. }
  74. func (m *Config) GetTransport() *v2ray_core_transport.Config {
  75. if m != nil {
  76. return m.Transport
  77. }
  78. return nil
  79. }
  80. func init() {
  81. proto.RegisterType((*Config)(nil), "v2ray.core.Config")
  82. proto.RegisterEnum("v2ray.core.ConfigFormat", ConfigFormat_name, ConfigFormat_value)
  83. }
  84. func init() { proto.RegisterFile("v2ray.com/core/config.proto", fileDescriptor0) }
  85. var fileDescriptor0 = []byte{
  86. // 338 bytes of a gzipped FileDescriptorProto
  87. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x91, 0xdf, 0x4a, 0x02, 0x41,
  88. 0x14, 0xc6, 0xd3, 0x35, 0xb3, 0xa3, 0x84, 0xcc, 0xd5, 0x62, 0x05, 0x12, 0x24, 0x12, 0x34, 0x2b,
  89. 0xdb, 0x4d, 0x74, 0xa9, 0xd0, 0x1f, 0xa1, 0x0c, 0x8b, 0x2e, 0xba, 0x89, 0x71, 0x1d, 0x17, 0x61,
  90. 0x67, 0xce, 0x30, 0xbb, 0x46, 0xfb, 0x4a, 0x3d, 0x47, 0x0f, 0x16, 0x3b, 0xe3, 0xaa, 0x6b, 0x76,
  91. 0x7b, 0xe6, 0xfb, 0xfd, 0x0e, 0xe7, 0x1b, 0x38, 0xfe, 0xf4, 0x35, 0x4b, 0x69, 0x80, 0xc2, 0x0b,
  92. 0x50, 0x73, 0x2f, 0x40, 0x39, 0x9b, 0x87, 0x54, 0x69, 0x4c, 0x90, 0x40, 0xfe, 0xa8, 0x79, 0xab,
  93. 0xbb, 0x15, 0x64, 0x4a, 0x79, 0x4a, 0xe3, 0x57, 0x2a, 0x98, 0x2c, 0x50, 0xad, 0xde, 0x1f, 0xa5,
  94. 0x10, 0x28, 0xbd, 0x98, 0xeb, 0x39, 0x8b, 0xbc, 0x24, 0x55, 0x7c, 0xfa, 0x21, 0x78, 0x1c, 0xb3,
  95. 0x90, 0x2f, 0x89, 0xce, 0x6e, 0x22, 0xc2, 0xb0, 0x68, 0x3e, 0xdf, 0xca, 0x25, 0x9a, 0xc9, 0x58,
  96. 0xa1, 0x4e, 0x0a, 0xb1, 0xb3, 0x9f, 0x32, 0x54, 0x07, 0x66, 0x40, 0xee, 0xe0, 0x60, 0x2e, 0x27,
  97. 0xb8, 0x90, 0x53, 0xb7, 0xd4, 0x76, 0xba, 0x75, 0xff, 0x92, 0xae, 0x6f, 0xa2, 0x4c, 0x29, 0x9a,
  98. 0xdf, 0x40, 0x1f, 0x6c, 0xee, 0x9e, 0xc9, 0x69, 0xc4, 0xb5, 0xe5, 0xc7, 0x39, 0x4d, 0x86, 0x50,
  99. 0xc3, 0x45, 0x62, 0x4d, 0x65, 0x63, 0xa2, 0xff, 0x9a, 0x46, 0xcb, 0x60, 0x51, 0xb5, 0xe2, 0x89,
  100. 0x07, 0x4e, 0x84, 0xa1, 0xeb, 0xb4, 0x4b, 0xdd, 0xba, 0x7f, 0xba, 0xa9, 0xb1, 0x87, 0xd3, 0x08,
  101. 0x43, 0xba, 0xa4, 0xb2, 0x24, 0xb9, 0x06, 0x87, 0x29, 0xe5, 0x56, 0xcc, 0xde, 0xce, 0x0e, 0xc0,
  102. 0x76, 0x4b, 0x5f, 0xb3, 0x6e, 0x1f, 0x6d, 0xb5, 0xe3, 0x0c, 0x21, 0x37, 0x70, 0xb8, 0x2a, 0xc9,
  103. 0xdd, 0x37, 0x0b, 0x4f, 0x36, 0xf9, 0xd5, 0x63, 0xbe, 0x6f, 0x1d, 0xbf, 0xe8, 0x40, 0xc3, 0x0e,
  104. 0x6f, 0x51, 0x0b, 0x96, 0x90, 0x06, 0xd4, 0x9e, 0xb3, 0x7e, 0x27, 0x8b, 0x59, 0x73, 0x8f, 0xd4,
  105. 0xa0, 0x32, 0x7c, 0x19, 0x3d, 0x35, 0x4b, 0xfd, 0x1e, 0x1c, 0x05, 0x28, 0x36, 0xac, 0xfd, 0xba,
  106. 0xe5, 0x4c, 0xfa, 0xbd, 0x92, 0x8d, 0xbe, 0xcb, 0xf0, 0xe6, 0x8f, 0x59, 0x4a, 0x07, 0xa8, 0xf9,
  107. 0xa4, 0x6a, 0xfe, 0xe9, 0xea, 0x37, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x35, 0x52, 0xbd, 0x7d, 0x02,
  108. 0x00, 0x00,
  109. }