config.pb.go 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. package freedom
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import protocol "v2ray.com/core/common/protocol"
  6. // Reference imports to suppress errors if they are not otherwise used.
  7. var _ = proto.Marshal
  8. var _ = fmt.Errorf
  9. var _ = math.Inf
  10. // This is a compile-time assertion to ensure that this generated file
  11. // is compatible with the proto package it is being compiled against.
  12. // A compilation error at this line likely means your copy of the
  13. // proto package needs to be updated.
  14. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  15. type Config_DomainStrategy int32
  16. const (
  17. Config_AS_IS Config_DomainStrategy = 0
  18. Config_USE_IP Config_DomainStrategy = 1
  19. )
  20. var Config_DomainStrategy_name = map[int32]string{
  21. 0: "AS_IS",
  22. 1: "USE_IP",
  23. }
  24. var Config_DomainStrategy_value = map[string]int32{
  25. "AS_IS": 0,
  26. "USE_IP": 1,
  27. }
  28. func (x Config_DomainStrategy) String() string {
  29. return proto.EnumName(Config_DomainStrategy_name, int32(x))
  30. }
  31. func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
  32. return fileDescriptor_config_9714d01f3d402353, []int{1, 0}
  33. }
  34. type DestinationOverride struct {
  35. Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"`
  36. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  37. XXX_unrecognized []byte `json:"-"`
  38. XXX_sizecache int32 `json:"-"`
  39. }
  40. func (m *DestinationOverride) Reset() { *m = DestinationOverride{} }
  41. func (m *DestinationOverride) String() string { return proto.CompactTextString(m) }
  42. func (*DestinationOverride) ProtoMessage() {}
  43. func (*DestinationOverride) Descriptor() ([]byte, []int) {
  44. return fileDescriptor_config_9714d01f3d402353, []int{0}
  45. }
  46. func (m *DestinationOverride) XXX_Unmarshal(b []byte) error {
  47. return xxx_messageInfo_DestinationOverride.Unmarshal(m, b)
  48. }
  49. func (m *DestinationOverride) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  50. return xxx_messageInfo_DestinationOverride.Marshal(b, m, deterministic)
  51. }
  52. func (dst *DestinationOverride) XXX_Merge(src proto.Message) {
  53. xxx_messageInfo_DestinationOverride.Merge(dst, src)
  54. }
  55. func (m *DestinationOverride) XXX_Size() int {
  56. return xxx_messageInfo_DestinationOverride.Size(m)
  57. }
  58. func (m *DestinationOverride) XXX_DiscardUnknown() {
  59. xxx_messageInfo_DestinationOverride.DiscardUnknown(m)
  60. }
  61. var xxx_messageInfo_DestinationOverride proto.InternalMessageInfo
  62. func (m *DestinationOverride) GetServer() *protocol.ServerEndpoint {
  63. if m != nil {
  64. return m.Server
  65. }
  66. return nil
  67. }
  68. type Config struct {
  69. DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,enum=v2ray.core.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"`
  70. Timeout uint32 `protobuf:"varint,2,opt,name=timeout" json:"timeout,omitempty"` // Deprecated: Do not use.
  71. DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride" json:"destination_override,omitempty"`
  72. UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel" json:"user_level,omitempty"`
  73. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  74. XXX_unrecognized []byte `json:"-"`
  75. XXX_sizecache int32 `json:"-"`
  76. }
  77. func (m *Config) Reset() { *m = Config{} }
  78. func (m *Config) String() string { return proto.CompactTextString(m) }
  79. func (*Config) ProtoMessage() {}
  80. func (*Config) Descriptor() ([]byte, []int) {
  81. return fileDescriptor_config_9714d01f3d402353, []int{1}
  82. }
  83. func (m *Config) XXX_Unmarshal(b []byte) error {
  84. return xxx_messageInfo_Config.Unmarshal(m, b)
  85. }
  86. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  87. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  88. }
  89. func (dst *Config) XXX_Merge(src proto.Message) {
  90. xxx_messageInfo_Config.Merge(dst, src)
  91. }
  92. func (m *Config) XXX_Size() int {
  93. return xxx_messageInfo_Config.Size(m)
  94. }
  95. func (m *Config) XXX_DiscardUnknown() {
  96. xxx_messageInfo_Config.DiscardUnknown(m)
  97. }
  98. var xxx_messageInfo_Config proto.InternalMessageInfo
  99. func (m *Config) GetDomainStrategy() Config_DomainStrategy {
  100. if m != nil {
  101. return m.DomainStrategy
  102. }
  103. return Config_AS_IS
  104. }
  105. // Deprecated: Do not use.
  106. func (m *Config) GetTimeout() uint32 {
  107. if m != nil {
  108. return m.Timeout
  109. }
  110. return 0
  111. }
  112. func (m *Config) GetDestinationOverride() *DestinationOverride {
  113. if m != nil {
  114. return m.DestinationOverride
  115. }
  116. return nil
  117. }
  118. func (m *Config) GetUserLevel() uint32 {
  119. if m != nil {
  120. return m.UserLevel
  121. }
  122. return 0
  123. }
  124. func init() {
  125. proto.RegisterType((*DestinationOverride)(nil), "v2ray.core.proxy.freedom.DestinationOverride")
  126. proto.RegisterType((*Config)(nil), "v2ray.core.proxy.freedom.Config")
  127. proto.RegisterEnum("v2ray.core.proxy.freedom.Config_DomainStrategy", Config_DomainStrategy_name, Config_DomainStrategy_value)
  128. }
  129. func init() {
  130. proto.RegisterFile("v2ray.com/core/proxy/freedom/config.proto", fileDescriptor_config_9714d01f3d402353)
  131. }
  132. var fileDescriptor_config_9714d01f3d402353 = []byte{
  133. // 340 bytes of a gzipped FileDescriptorProto
  134. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x6f, 0x4b, 0x83, 0x50,
  135. 0x14, 0xc6, 0xd3, 0xca, 0xb1, 0x13, 0xad, 0xe1, 0x7a, 0x21, 0xb1, 0x60, 0xec, 0x4d, 0x2b, 0xe8,
  136. 0x1a, 0xf6, 0x09, 0xda, 0x9f, 0x60, 0x10, 0x34, 0x94, 0xa2, 0x7a, 0x63, 0xa6, 0x67, 0x43, 0x98,
  137. 0xf7, 0xc8, 0xf5, 0x4e, 0xf2, 0x2b, 0xed, 0x53, 0x86, 0x57, 0x47, 0x2d, 0xb6, 0x77, 0xfa, 0xf8,
  138. 0x7b, 0x9e, 0x73, 0x9e, 0x23, 0x5c, 0xe7, 0x8e, 0x08, 0x0a, 0x16, 0x52, 0x62, 0x87, 0x24, 0xd0,
  139. 0x4e, 0x05, 0x7d, 0x17, 0xf6, 0x5c, 0x20, 0x46, 0x4a, 0xe2, 0xf3, 0x78, 0xc1, 0x52, 0x41, 0x92,
  140. 0x4c, 0x6b, 0x83, 0x0a, 0x64, 0x0a, 0x63, 0x35, 0x76, 0x71, 0xf7, 0x2f, 0x24, 0xa4, 0x24, 0x21,
  141. 0x6e, 0x2b, 0x5b, 0x48, 0x4b, 0x3b, 0x43, 0x91, 0xa3, 0xf0, 0xb3, 0x14, 0xc3, 0x2a, 0xab, 0xff,
  142. 0x0e, 0x9d, 0x31, 0x66, 0x32, 0xe6, 0x81, 0x8c, 0x89, 0x3f, 0xe7, 0x28, 0x44, 0x1c, 0xa1, 0x39,
  143. 0x04, 0xa3, 0x62, 0x2d, 0xad, 0xa7, 0x0d, 0x4e, 0x9c, 0x1b, 0xf6, 0x67, 0x66, 0x95, 0xca, 0x36,
  144. 0xa9, 0xcc, 0x53, 0xe4, 0x84, 0x47, 0x29, 0xc5, 0x5c, 0xba, 0xb5, 0xb3, 0xbf, 0xd6, 0xc1, 0x18,
  145. 0xa9, 0xbd, 0xcd, 0x37, 0x38, 0x8b, 0x28, 0x09, 0x62, 0xee, 0x67, 0x52, 0x04, 0x12, 0x17, 0x85,
  146. 0xca, 0x6d, 0x39, 0x36, 0xdb, 0xd7, 0x85, 0x55, 0x56, 0x36, 0x56, 0x3e, 0xaf, 0xb6, 0xb9, 0xad,
  147. 0x68, 0xeb, 0xdd, 0xec, 0x42, 0x43, 0xc6, 0x09, 0xd2, 0x4a, 0x5a, 0x7a, 0x4f, 0x1b, 0x9c, 0x0e,
  148. 0x75, 0x4b, 0x73, 0x37, 0x92, 0xf9, 0x09, 0xe7, 0xd1, 0x6f, 0x3b, 0x9f, 0xea, 0x7a, 0xd6, 0xa1,
  149. 0x2a, 0x75, 0xbb, 0x7f, 0xf8, 0x8e, 0x9b, 0xb8, 0x9d, 0x68, 0xc7, 0xa1, 0x2e, 0x01, 0x56, 0x19,
  150. 0x0a, 0x7f, 0x89, 0x39, 0x2e, 0xad, 0xa3, 0x72, 0x05, 0xb7, 0x59, 0x2a, 0x4f, 0xa5, 0xd0, 0xbf,
  151. 0x82, 0xd6, 0x76, 0x01, 0xb3, 0x09, 0xc7, 0x0f, 0x9e, 0x3f, 0xf5, 0xda, 0x07, 0x26, 0x80, 0xf1,
  152. 0xe2, 0x4d, 0xfc, 0xe9, 0xac, 0xad, 0x0d, 0xc7, 0xd0, 0x0d, 0x29, 0xd9, 0xbb, 0xd0, 0x4c, 0xfb,
  153. 0x68, 0xd4, 0x8f, 0x6b, 0xdd, 0x7a, 0x75, 0xdc, 0xa0, 0x60, 0xa3, 0x92, 0x9a, 0x29, 0xea, 0xb1,
  154. 0xfa, 0xf4, 0x65, 0xa8, 0x7f, 0x72, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xb7, 0x5e, 0xda, 0x4d,
  155. 0x4d, 0x02, 0x00, 0x00,
  156. }