config.pb.go 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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. Config_USE_IP4 Config_DomainStrategy = 2
  22. Config_USE_IP6 Config_DomainStrategy = 3
  23. )
  24. var Config_DomainStrategy_name = map[int32]string{
  25. 0: "AS_IS",
  26. 1: "USE_IP",
  27. 2: "USE_IP4",
  28. 3: "USE_IP6",
  29. }
  30. var Config_DomainStrategy_value = map[string]int32{
  31. "AS_IS": 0,
  32. "USE_IP": 1,
  33. "USE_IP4": 2,
  34. "USE_IP6": 3,
  35. }
  36. func (x Config_DomainStrategy) String() string {
  37. return proto.EnumName(Config_DomainStrategy_name, int32(x))
  38. }
  39. func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
  40. return fileDescriptor_66807b6fe2cca4da, []int{1, 0}
  41. }
  42. type DestinationOverride struct {
  43. Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  44. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  45. XXX_unrecognized []byte `json:"-"`
  46. XXX_sizecache int32 `json:"-"`
  47. }
  48. func (m *DestinationOverride) Reset() { *m = DestinationOverride{} }
  49. func (m *DestinationOverride) String() string { return proto.CompactTextString(m) }
  50. func (*DestinationOverride) ProtoMessage() {}
  51. func (*DestinationOverride) Descriptor() ([]byte, []int) {
  52. return fileDescriptor_66807b6fe2cca4da, []int{0}
  53. }
  54. func (m *DestinationOverride) XXX_Unmarshal(b []byte) error {
  55. return xxx_messageInfo_DestinationOverride.Unmarshal(m, b)
  56. }
  57. func (m *DestinationOverride) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  58. return xxx_messageInfo_DestinationOverride.Marshal(b, m, deterministic)
  59. }
  60. func (m *DestinationOverride) XXX_Merge(src proto.Message) {
  61. xxx_messageInfo_DestinationOverride.Merge(m, src)
  62. }
  63. func (m *DestinationOverride) XXX_Size() int {
  64. return xxx_messageInfo_DestinationOverride.Size(m)
  65. }
  66. func (m *DestinationOverride) XXX_DiscardUnknown() {
  67. xxx_messageInfo_DestinationOverride.DiscardUnknown(m)
  68. }
  69. var xxx_messageInfo_DestinationOverride proto.InternalMessageInfo
  70. func (m *DestinationOverride) GetServer() *protocol.ServerEndpoint {
  71. if m != nil {
  72. return m.Server
  73. }
  74. return nil
  75. }
  76. type Config struct {
  77. DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"`
  78. Timeout uint32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // Deprecated: Do not use.
  79. DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
  80. UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  81. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  82. XXX_unrecognized []byte `json:"-"`
  83. XXX_sizecache int32 `json:"-"`
  84. }
  85. func (m *Config) Reset() { *m = Config{} }
  86. func (m *Config) String() string { return proto.CompactTextString(m) }
  87. func (*Config) ProtoMessage() {}
  88. func (*Config) Descriptor() ([]byte, []int) {
  89. return fileDescriptor_66807b6fe2cca4da, []int{1}
  90. }
  91. func (m *Config) XXX_Unmarshal(b []byte) error {
  92. return xxx_messageInfo_Config.Unmarshal(m, b)
  93. }
  94. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  95. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  96. }
  97. func (m *Config) XXX_Merge(src proto.Message) {
  98. xxx_messageInfo_Config.Merge(m, src)
  99. }
  100. func (m *Config) XXX_Size() int {
  101. return xxx_messageInfo_Config.Size(m)
  102. }
  103. func (m *Config) XXX_DiscardUnknown() {
  104. xxx_messageInfo_Config.DiscardUnknown(m)
  105. }
  106. var xxx_messageInfo_Config proto.InternalMessageInfo
  107. func (m *Config) GetDomainStrategy() Config_DomainStrategy {
  108. if m != nil {
  109. return m.DomainStrategy
  110. }
  111. return Config_AS_IS
  112. }
  113. // Deprecated: Do not use.
  114. func (m *Config) GetTimeout() uint32 {
  115. if m != nil {
  116. return m.Timeout
  117. }
  118. return 0
  119. }
  120. func (m *Config) GetDestinationOverride() *DestinationOverride {
  121. if m != nil {
  122. return m.DestinationOverride
  123. }
  124. return nil
  125. }
  126. func (m *Config) GetUserLevel() uint32 {
  127. if m != nil {
  128. return m.UserLevel
  129. }
  130. return 0
  131. }
  132. func init() {
  133. proto.RegisterEnum("v2ray.core.proxy.freedom.Config_DomainStrategy", Config_DomainStrategy_name, Config_DomainStrategy_value)
  134. proto.RegisterType((*DestinationOverride)(nil), "v2ray.core.proxy.freedom.DestinationOverride")
  135. proto.RegisterType((*Config)(nil), "v2ray.core.proxy.freedom.Config")
  136. }
  137. func init() {
  138. proto.RegisterFile("v2ray.com/core/proxy/freedom/config.proto", fileDescriptor_66807b6fe2cca4da)
  139. }
  140. var fileDescriptor_66807b6fe2cca4da = []byte{
  141. // 357 bytes of a gzipped FileDescriptorProto
  142. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x51, 0x5d, 0x4b, 0xeb, 0x40,
  143. 0x10, 0xbd, 0x49, 0xef, 0x4d, 0xe9, 0x94, 0xdb, 0x1b, 0xb6, 0xf7, 0x21, 0x48, 0x85, 0xd2, 0xa7,
  144. 0x2a, 0xb8, 0x91, 0x28, 0xbe, 0xf7, 0x4b, 0x28, 0x08, 0x96, 0x04, 0x45, 0x7d, 0x89, 0x31, 0x99,
  145. 0x96, 0x40, 0xb3, 0x1b, 0x36, 0xdb, 0x60, 0xfe, 0x92, 0xbf, 0xc3, 0x1f, 0x26, 0xd9, 0xa4, 0xd4,
  146. 0x4a, 0xfb, 0x36, 0x73, 0xf6, 0x9c, 0x33, 0x73, 0x66, 0xe1, 0x2c, 0x77, 0x44, 0x50, 0xd0, 0x90,
  147. 0x27, 0x76, 0xc8, 0x05, 0xda, 0xa9, 0xe0, 0xef, 0x85, 0xbd, 0x14, 0x88, 0x91, 0x82, 0xd8, 0x32,
  148. 0x5e, 0xd1, 0x54, 0x70, 0xc9, 0x89, 0xb5, 0xa5, 0x0a, 0xa4, 0x8a, 0x46, 0x6b, 0xda, 0xc9, 0xe5,
  149. 0x0f, 0x93, 0x90, 0x27, 0x09, 0x67, 0xb6, 0x92, 0x85, 0x7c, 0x6d, 0x67, 0x28, 0x72, 0x14, 0x7e,
  150. 0x96, 0x62, 0x58, 0x79, 0x0d, 0x9e, 0xa1, 0x3b, 0xc5, 0x4c, 0xc6, 0x2c, 0x90, 0x31, 0x67, 0xf7,
  151. 0x39, 0x0a, 0x11, 0x47, 0x48, 0xc6, 0x60, 0x54, 0x5c, 0x4b, 0xeb, 0x6b, 0xc3, 0xb6, 0x73, 0x4e,
  152. 0xbf, 0xcd, 0xac, 0x5c, 0xe9, 0xd6, 0x95, 0x7a, 0x8a, 0x39, 0x63, 0x51, 0xca, 0x63, 0x26, 0xdd,
  153. 0x5a, 0x39, 0xf8, 0xd4, 0xc1, 0x98, 0xa8, 0xbd, 0xc9, 0x13, 0xfc, 0x8b, 0x78, 0x12, 0xc4, 0xcc,
  154. 0xcf, 0xa4, 0x08, 0x24, 0xae, 0x0a, 0xe5, 0xdb, 0x71, 0x6c, 0x7a, 0x2c, 0x0b, 0xad, 0xa4, 0x74,
  155. 0xaa, 0x74, 0x5e, 0x2d, 0x73, 0x3b, 0xd1, 0x5e, 0x4f, 0x7a, 0xd0, 0x94, 0x71, 0x82, 0x7c, 0x23,
  156. 0x2d, 0xbd, 0xaf, 0x0d, 0xff, 0x8e, 0x75, 0x4b, 0x73, 0xb7, 0x10, 0x79, 0x85, 0xff, 0xd1, 0x2e,
  157. 0x9d, 0xcf, 0xeb, 0x78, 0x56, 0x43, 0x85, 0xba, 0x38, 0x3e, 0xfc, 0xc0, 0x4d, 0xdc, 0x6e, 0x74,
  158. 0xe0, 0x50, 0xa7, 0x00, 0x9b, 0x0c, 0x85, 0xbf, 0xc6, 0x1c, 0xd7, 0xd6, 0xef, 0x72, 0x05, 0xb7,
  159. 0x55, 0x22, 0x77, 0x25, 0x30, 0x18, 0x41, 0x67, 0x3f, 0x00, 0x69, 0xc1, 0x9f, 0x91, 0xe7, 0xcf,
  160. 0x3d, 0xf3, 0x17, 0x01, 0x30, 0x1e, 0xbc, 0x99, 0x3f, 0x5f, 0x98, 0x1a, 0x69, 0x43, 0xb3, 0xaa,
  161. 0xaf, 0x4d, 0x7d, 0xd7, 0xdc, 0x98, 0x8d, 0xf1, 0x14, 0x7a, 0x21, 0x4f, 0x8e, 0xae, 0xba, 0xd0,
  162. 0x5e, 0x9a, 0x75, 0xf9, 0xa1, 0x5b, 0x8f, 0x8e, 0x1b, 0x14, 0x74, 0x52, 0xb2, 0x16, 0x8a, 0x75,
  163. 0x5b, 0x3d, 0xbd, 0x19, 0xea, 0xb7, 0xae, 0xbe, 0x02, 0x00, 0x00, 0xff, 0xff, 0x72, 0x98, 0x5b,
  164. 0x40, 0x67, 0x02, 0x00, 0x00,
  165. }