config.pb.go 7.1 KB

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