config.pb.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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_transport "v2ray.com/core/transport"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // Configuration serialization format.
  18. type ConfigFormat int32
  19. const (
  20. ConfigFormat_Protobuf ConfigFormat = 0
  21. ConfigFormat_JSON ConfigFormat = 1
  22. )
  23. var ConfigFormat_name = map[int32]string{
  24. 0: "Protobuf",
  25. 1: "JSON",
  26. }
  27. var ConfigFormat_value = map[string]int32{
  28. "Protobuf": 0,
  29. "JSON": 1,
  30. }
  31. func (x ConfigFormat) String() string {
  32. return proto.EnumName(ConfigFormat_name, int32(x))
  33. }
  34. func (ConfigFormat) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  35. type Config struct {
  36. // Inbound handler configurations. Must have at least one item.
  37. Inbound []*v2ray_core_app_proxyman.InboundHandlerConfig `protobuf:"bytes,1,rep,name=inbound" json:"inbound,omitempty"`
  38. // Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
  39. Outbound []*v2ray_core_app_proxyman.OutboundHandlerConfig `protobuf:"bytes,2,rep,name=outbound" json:"outbound,omitempty"`
  40. // App configuration. Must be one in the app directory.
  41. App []*v2ray_core_common_serial.TypedMessage `protobuf:"bytes,4,rep,name=app" json:"app,omitempty"`
  42. Transport *v2ray_core_transport.Config `protobuf:"bytes,5,opt,name=transport" json:"transport,omitempty"`
  43. }
  44. func (m *Config) Reset() { *m = Config{} }
  45. func (m *Config) String() string { return proto.CompactTextString(m) }
  46. func (*Config) ProtoMessage() {}
  47. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  48. func (m *Config) GetInbound() []*v2ray_core_app_proxyman.InboundHandlerConfig {
  49. if m != nil {
  50. return m.Inbound
  51. }
  52. return nil
  53. }
  54. func (m *Config) GetOutbound() []*v2ray_core_app_proxyman.OutboundHandlerConfig {
  55. if m != nil {
  56. return m.Outbound
  57. }
  58. return nil
  59. }
  60. func (m *Config) GetApp() []*v2ray_core_common_serial.TypedMessage {
  61. if m != nil {
  62. return m.App
  63. }
  64. return nil
  65. }
  66. func (m *Config) GetTransport() *v2ray_core_transport.Config {
  67. if m != nil {
  68. return m.Transport
  69. }
  70. return nil
  71. }
  72. func init() {
  73. proto.RegisterType((*Config)(nil), "v2ray.core.Config")
  74. proto.RegisterEnum("v2ray.core.ConfigFormat", ConfigFormat_name, ConfigFormat_value)
  75. }
  76. func init() { proto.RegisterFile("v2ray.com/core/config.proto", fileDescriptor0) }
  77. var fileDescriptor0 = []byte{
  78. // 321 bytes of a gzipped FileDescriptorProto
  79. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x90, 0xcd, 0x4a, 0xf3, 0x40,
  80. 0x14, 0x86, 0xbf, 0xb6, 0xf9, 0x6a, 0x3c, 0x2d, 0x52, 0x66, 0x55, 0xaa, 0x8b, 0x22, 0x58, 0x8a,
  81. 0xe0, 0xa4, 0xc4, 0x8d, 0xb8, 0x6c, 0xc1, 0x9f, 0x82, 0x56, 0xaa, 0xb8, 0x70, 0x23, 0xd3, 0x74,
  82. 0x5a, 0x0a, 0x9d, 0x39, 0xc3, 0x64, 0x22, 0xe6, 0x52, 0xbc, 0x05, 0xaf, 0x52, 0x92, 0x49, 0xd2,
  83. 0xa4, 0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