1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/proxy/freedom/config.pb.go

184 lines
7.1 KiB
Go
Raw Normal View History

2017-01-02 14:52:45 -05:00
package freedom
2018-09-17 09:12:58 -04:00
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
protocol "v2ray.com/core/common/protocol"
)
2017-01-02 14:52:45 -05:00
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Config_DomainStrategy int32
const (
Config_AS_IS Config_DomainStrategy = 0
Config_USE_IP Config_DomainStrategy = 1
)
var Config_DomainStrategy_name = map[int32]string{
0: "AS_IS",
1: "USE_IP",
}
2018-09-14 05:00:59 -04:00
2017-01-02 14:52:45 -05:00
var Config_DomainStrategy_value = map[string]int32{
"AS_IS": 0,
"USE_IP": 1,
}
func (x Config_DomainStrategy) String() string {
return proto.EnumName(Config_DomainStrategy_name, int32(x))
}
2018-09-14 05:00:59 -04:00
2018-05-25 05:56:01 -04:00
func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
2018-09-14 05:00:59 -04:00
return fileDescriptor_66807b6fe2cca4da, []int{1, 0}
2018-05-25 05:56:01 -04:00
}
type DestinationOverride struct {
2018-06-26 10:28:54 -04:00
Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
2018-05-25 05:56:01 -04:00
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2018-05-25 05:56:01 -04:00
func (m *DestinationOverride) Reset() { *m = DestinationOverride{} }
func (m *DestinationOverride) String() string { return proto.CompactTextString(m) }
func (*DestinationOverride) ProtoMessage() {}
func (*DestinationOverride) Descriptor() ([]byte, []int) {
2018-09-14 05:00:59 -04:00
return fileDescriptor_66807b6fe2cca4da, []int{0}
2018-05-25 05:56:01 -04:00
}
2018-09-30 12:39:28 -04:00
2018-05-25 05:56:01 -04:00
func (m *DestinationOverride) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DestinationOverride.Unmarshal(m, b)
}
func (m *DestinationOverride) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DestinationOverride.Marshal(b, m, deterministic)
}
2018-09-14 05:00:59 -04:00
func (m *DestinationOverride) XXX_Merge(src proto.Message) {
xxx_messageInfo_DestinationOverride.Merge(m, src)
2018-05-25 05:56:01 -04:00
}
func (m *DestinationOverride) XXX_Size() int {
return xxx_messageInfo_DestinationOverride.Size(m)
}
func (m *DestinationOverride) XXX_DiscardUnknown() {
xxx_messageInfo_DestinationOverride.DiscardUnknown(m)
}
2018-05-25 05:56:01 -04:00
var xxx_messageInfo_DestinationOverride proto.InternalMessageInfo
func (m *DestinationOverride) GetServer() *protocol.ServerEndpoint {
if m != nil {
return m.Server
}
return nil
}
2017-01-02 14:52:45 -05:00
type Config struct {
2018-06-26 10:28:54 -04:00
DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"`
Timeout uint32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // Deprecated: Do not use.
DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
2018-05-25 05:56:01 -04:00
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2017-01-02 14:52:45 -05:00
}
2018-05-25 05:56:01 -04:00
func (m *Config) Reset() { *m = Config{} }
func (m *Config) String() string { return proto.CompactTextString(m) }
func (*Config) ProtoMessage() {}
func (*Config) Descriptor() ([]byte, []int) {
2018-09-14 05:00:59 -04:00
return fileDescriptor_66807b6fe2cca4da, []int{1}
2018-05-25 05:56:01 -04:00
}
2018-09-30 12:39:28 -04:00
2018-05-25 05:56:01 -04:00
func (m *Config) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Config.Unmarshal(m, b)
}
func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Config.Marshal(b, m, deterministic)
}
2018-09-14 05:00:59 -04:00
func (m *Config) XXX_Merge(src proto.Message) {
xxx_messageInfo_Config.Merge(m, src)
2018-05-25 05:56:01 -04:00
}
func (m *Config) XXX_Size() int {
return xxx_messageInfo_Config.Size(m)
}
func (m *Config) XXX_DiscardUnknown() {
xxx_messageInfo_Config.DiscardUnknown(m)
}
var xxx_messageInfo_Config proto.InternalMessageInfo
2017-01-02 14:52:45 -05:00
func (m *Config) GetDomainStrategy() Config_DomainStrategy {
if m != nil {
return m.DomainStrategy
}
return Config_AS_IS
}
2018-05-25 05:56:01 -04:00
// Deprecated: Do not use.
2017-01-02 14:52:45 -05:00
func (m *Config) GetTimeout() uint32 {
if m != nil {
return m.Timeout
}
return 0
}
func (m *Config) GetDestinationOverride() *DestinationOverride {
if m != nil {
return m.DestinationOverride
}
return nil
}
2017-11-27 16:09:30 -05:00
func (m *Config) GetUserLevel() uint32 {
if m != nil {
return m.UserLevel
}
return 0
}
2017-01-02 14:52:45 -05:00
func init() {
2018-09-30 12:39:28 -04:00
proto.RegisterEnum("v2ray.core.proxy.freedom.Config_DomainStrategy", Config_DomainStrategy_name, Config_DomainStrategy_value)
proto.RegisterType((*DestinationOverride)(nil), "v2ray.core.proxy.freedom.DestinationOverride")
2017-01-02 14:52:45 -05:00
proto.RegisterType((*Config)(nil), "v2ray.core.proxy.freedom.Config")
}
2018-05-25 05:56:01 -04:00
func init() {
2018-09-14 05:00:59 -04:00
proto.RegisterFile("v2ray.com/core/proxy/freedom/config.proto", fileDescriptor_66807b6fe2cca4da)
2018-05-25 05:56:01 -04:00
}
2017-01-02 14:52:45 -05:00
2018-09-14 05:00:59 -04:00
var fileDescriptor_66807b6fe2cca4da = []byte{
2017-11-27 16:09:30 -05:00
// 340 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x6f, 0x4b, 0x83, 0x50,
0x14, 0xc6, 0xd3, 0xca, 0xb1, 0x13, 0xad, 0xe1, 0x7a, 0x21, 0xb1, 0x60, 0xec, 0x4d, 0x2b, 0xe8,
0x1a, 0xf6, 0x09, 0xda, 0x9f, 0x60, 0x10, 0x34, 0x94, 0xa2, 0x7a, 0x63, 0xa6, 0x67, 0x43, 0x98,
0xf7, 0xc8, 0xf5, 0x4e, 0xf2, 0x2b, 0xed, 0x53, 0x86, 0x57, 0x47, 0x2d, 0xb6, 0x77, 0xfa, 0xf8,
0x7b, 0x9e, 0x73, 0x9e, 0x23, 0x5c, 0xe7, 0x8e, 0x08, 0x0a, 0x16, 0x52, 0x62, 0x87, 0x24, 0xd0,
0x4e, 0x05, 0x7d, 0x17, 0xf6, 0x5c, 0x20, 0x46, 0x4a, 0xe2, 0xf3, 0x78, 0xc1, 0x52, 0x41, 0x92,
0x4c, 0x6b, 0x83, 0x0a, 0x64, 0x0a, 0x63, 0x35, 0x76, 0x71, 0xf7, 0x2f, 0x24, 0xa4, 0x24, 0x21,
0x6e, 0x2b, 0x5b, 0x48, 0x4b, 0x3b, 0x43, 0x91, 0xa3, 0xf0, 0xb3, 0x14, 0xc3, 0x2a, 0xab, 0xff,
0x0e, 0x9d, 0x31, 0x66, 0x32, 0xe6, 0x81, 0x8c, 0x89, 0x3f, 0xe7, 0x28, 0x44, 0x1c, 0xa1, 0x39,
0x04, 0xa3, 0x62, 0x2d, 0xad, 0xa7, 0x0d, 0x4e, 0x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