mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-06-11 05:29:10 -04:00
re-generate code
This commit is contained in:
@@ -3,7 +3,7 @@ package freedom
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import v2ray_core_common_protocol1 "v2ray.com/core/common/protocol"
|
||||
import protocol "v2ray.com/core/common/protocol"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
@@ -35,18 +35,42 @@ var Config_DomainStrategy_value = map[string]int32{
|
||||
func (x Config_DomainStrategy) String() string {
|
||||
return proto.EnumName(Config_DomainStrategy_name, int32(x))
|
||||
}
|
||||
func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
|
||||
|
||||
type DestinationOverride struct {
|
||||
Server *v2ray_core_common_protocol1.ServerEndpoint `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"`
|
||||
func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_config_9714d01f3d402353, []int{1, 0}
|
||||
}
|
||||
|
||||
func (m *DestinationOverride) Reset() { *m = DestinationOverride{} }
|
||||
func (m *DestinationOverride) String() string { return proto.CompactTextString(m) }
|
||||
func (*DestinationOverride) ProtoMessage() {}
|
||||
func (*DestinationOverride) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
type DestinationOverride struct {
|
||||
Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DestinationOverride) GetServer() *v2ray_core_common_protocol1.ServerEndpoint {
|
||||
func (m *DestinationOverride) Reset() { *m = DestinationOverride{} }
|
||||
func (m *DestinationOverride) String() string { return proto.CompactTextString(m) }
|
||||
func (*DestinationOverride) ProtoMessage() {}
|
||||
func (*DestinationOverride) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_config_9714d01f3d402353, []int{0}
|
||||
}
|
||||
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)
|
||||
}
|
||||
func (dst *DestinationOverride) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DestinationOverride.Merge(dst, src)
|
||||
}
|
||||
func (m *DestinationOverride) XXX_Size() int {
|
||||
return xxx_messageInfo_DestinationOverride.Size(m)
|
||||
}
|
||||
func (m *DestinationOverride) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DestinationOverride.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DestinationOverride proto.InternalMessageInfo
|
||||
|
||||
func (m *DestinationOverride) GetServer() *protocol.ServerEndpoint {
|
||||
if m != nil {
|
||||
return m.Server
|
||||
}
|
||||
@@ -54,16 +78,38 @@ func (m *DestinationOverride) GetServer() *v2ray_core_common_protocol1.ServerEnd
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,enum=v2ray.core.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"`
|
||||
Timeout uint32 `protobuf:"varint,2,opt,name=timeout" json:"timeout,omitempty"`
|
||||
DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride" json:"destination_override,omitempty"`
|
||||
UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel" json:"user_level,omitempty"`
|
||||
DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,enum=v2ray.core.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"`
|
||||
Timeout uint32 `protobuf:"varint,2,opt,name=timeout" json:"timeout,omitempty"` // Deprecated: Do not use.
|
||||
DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride" json:"destination_override,omitempty"`
|
||||
UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel" json:"user_level,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Config) Reset() { *m = Config{} }
|
||||
func (m *Config) String() string { return proto.CompactTextString(m) }
|
||||
func (*Config) ProtoMessage() {}
|
||||
func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
func (m *Config) Reset() { *m = Config{} }
|
||||
func (m *Config) String() string { return proto.CompactTextString(m) }
|
||||
func (*Config) ProtoMessage() {}
|
||||
func (*Config) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_config_9714d01f3d402353, []int{1}
|
||||
}
|
||||
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)
|
||||
}
|
||||
func (dst *Config) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Config.Merge(dst, src)
|
||||
}
|
||||
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
|
||||
|
||||
func (m *Config) GetDomainStrategy() Config_DomainStrategy {
|
||||
if m != nil {
|
||||
@@ -72,6 +118,7 @@ func (m *Config) GetDomainStrategy() Config_DomainStrategy {
|
||||
return Config_AS_IS
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (m *Config) GetTimeout() uint32 {
|
||||
if m != nil {
|
||||
return m.Timeout
|
||||
@@ -99,9 +146,11 @@ func init() {
|
||||
proto.RegisterEnum("v2ray.core.proxy.freedom.Config_DomainStrategy", Config_DomainStrategy_name, Config_DomainStrategy_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("v2ray.com/core/proxy/freedom/config.proto", fileDescriptor0) }
|
||||
func init() {
|
||||
proto.RegisterFile("v2ray.com/core/proxy/freedom/config.proto", fileDescriptor_config_9714d01f3d402353)
|
||||
}
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
var fileDescriptor_config_9714d01f3d402353 = []byte{
|
||||
// 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,
|
||||
|
||||
Reference in New Issue
Block a user