github.com/EagleQL/Xray-core@v1.4.3/proxy/freedom/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.14.0
     5  // source: proxy/freedom/config.proto
     6  
     7  package freedom
     8  
     9  import (
    10  	proto "github.com/golang/protobuf/proto"
    11  	protocol "github.com/xtls/xray-core/common/protocol"
    12  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    13  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    14  	reflect "reflect"
    15  	sync "sync"
    16  )
    17  
    18  const (
    19  	// Verify that this generated code is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    23  )
    24  
    25  // This is a compile-time assertion that a sufficiently up-to-date version
    26  // of the legacy proto package is being used.
    27  const _ = proto.ProtoPackageIsVersion4
    28  
    29  type Config_DomainStrategy int32
    30  
    31  const (
    32  	Config_AS_IS   Config_DomainStrategy = 0
    33  	Config_USE_IP  Config_DomainStrategy = 1
    34  	Config_USE_IP4 Config_DomainStrategy = 2
    35  	Config_USE_IP6 Config_DomainStrategy = 3
    36  )
    37  
    38  // Enum value maps for Config_DomainStrategy.
    39  var (
    40  	Config_DomainStrategy_name = map[int32]string{
    41  		0: "AS_IS",
    42  		1: "USE_IP",
    43  		2: "USE_IP4",
    44  		3: "USE_IP6",
    45  	}
    46  	Config_DomainStrategy_value = map[string]int32{
    47  		"AS_IS":   0,
    48  		"USE_IP":  1,
    49  		"USE_IP4": 2,
    50  		"USE_IP6": 3,
    51  	}
    52  )
    53  
    54  func (x Config_DomainStrategy) Enum() *Config_DomainStrategy {
    55  	p := new(Config_DomainStrategy)
    56  	*p = x
    57  	return p
    58  }
    59  
    60  func (x Config_DomainStrategy) String() string {
    61  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    62  }
    63  
    64  func (Config_DomainStrategy) Descriptor() protoreflect.EnumDescriptor {
    65  	return file_proxy_freedom_config_proto_enumTypes[0].Descriptor()
    66  }
    67  
    68  func (Config_DomainStrategy) Type() protoreflect.EnumType {
    69  	return &file_proxy_freedom_config_proto_enumTypes[0]
    70  }
    71  
    72  func (x Config_DomainStrategy) Number() protoreflect.EnumNumber {
    73  	return protoreflect.EnumNumber(x)
    74  }
    75  
    76  // Deprecated: Use Config_DomainStrategy.Descriptor instead.
    77  func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
    78  	return file_proxy_freedom_config_proto_rawDescGZIP(), []int{1, 0}
    79  }
    80  
    81  type DestinationOverride struct {
    82  	state         protoimpl.MessageState
    83  	sizeCache     protoimpl.SizeCache
    84  	unknownFields protoimpl.UnknownFields
    85  
    86  	Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
    87  }
    88  
    89  func (x *DestinationOverride) Reset() {
    90  	*x = DestinationOverride{}
    91  	if protoimpl.UnsafeEnabled {
    92  		mi := &file_proxy_freedom_config_proto_msgTypes[0]
    93  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    94  		ms.StoreMessageInfo(mi)
    95  	}
    96  }
    97  
    98  func (x *DestinationOverride) String() string {
    99  	return protoimpl.X.MessageStringOf(x)
   100  }
   101  
   102  func (*DestinationOverride) ProtoMessage() {}
   103  
   104  func (x *DestinationOverride) ProtoReflect() protoreflect.Message {
   105  	mi := &file_proxy_freedom_config_proto_msgTypes[0]
   106  	if protoimpl.UnsafeEnabled && x != nil {
   107  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   108  		if ms.LoadMessageInfo() == nil {
   109  			ms.StoreMessageInfo(mi)
   110  		}
   111  		return ms
   112  	}
   113  	return mi.MessageOf(x)
   114  }
   115  
   116  // Deprecated: Use DestinationOverride.ProtoReflect.Descriptor instead.
   117  func (*DestinationOverride) Descriptor() ([]byte, []int) {
   118  	return file_proxy_freedom_config_proto_rawDescGZIP(), []int{0}
   119  }
   120  
   121  func (x *DestinationOverride) GetServer() *protocol.ServerEndpoint {
   122  	if x != nil {
   123  		return x.Server
   124  	}
   125  	return nil
   126  }
   127  
   128  type Config struct {
   129  	state         protoimpl.MessageState
   130  	sizeCache     protoimpl.SizeCache
   131  	unknownFields protoimpl.UnknownFields
   132  
   133  	DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=xray.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"`
   134  	// Deprecated: Do not use.
   135  	Timeout             uint32               `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
   136  	DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
   137  	UserLevel           uint32               `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
   138  }
   139  
   140  func (x *Config) Reset() {
   141  	*x = Config{}
   142  	if protoimpl.UnsafeEnabled {
   143  		mi := &file_proxy_freedom_config_proto_msgTypes[1]
   144  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   145  		ms.StoreMessageInfo(mi)
   146  	}
   147  }
   148  
   149  func (x *Config) String() string {
   150  	return protoimpl.X.MessageStringOf(x)
   151  }
   152  
   153  func (*Config) ProtoMessage() {}
   154  
   155  func (x *Config) ProtoReflect() protoreflect.Message {
   156  	mi := &file_proxy_freedom_config_proto_msgTypes[1]
   157  	if protoimpl.UnsafeEnabled && x != nil {
   158  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   159  		if ms.LoadMessageInfo() == nil {
   160  			ms.StoreMessageInfo(mi)
   161  		}
   162  		return ms
   163  	}
   164  	return mi.MessageOf(x)
   165  }
   166  
   167  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
   168  func (*Config) Descriptor() ([]byte, []int) {
   169  	return file_proxy_freedom_config_proto_rawDescGZIP(), []int{1}
   170  }
   171  
   172  func (x *Config) GetDomainStrategy() Config_DomainStrategy {
   173  	if x != nil {
   174  		return x.DomainStrategy
   175  	}
   176  	return Config_AS_IS
   177  }
   178  
   179  // Deprecated: Do not use.
   180  func (x *Config) GetTimeout() uint32 {
   181  	if x != nil {
   182  		return x.Timeout
   183  	}
   184  	return 0
   185  }
   186  
   187  func (x *Config) GetDestinationOverride() *DestinationOverride {
   188  	if x != nil {
   189  		return x.DestinationOverride
   190  	}
   191  	return nil
   192  }
   193  
   194  func (x *Config) GetUserLevel() uint32 {
   195  	if x != nil {
   196  		return x.UserLevel
   197  	}
   198  	return 0
   199  }
   200  
   201  var File_proxy_freedom_config_proto protoreflect.FileDescriptor
   202  
   203  var file_proxy_freedom_config_proto_rawDesc = []byte{
   204  	0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2f,
   205  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x78, 0x72,
   206  	0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d,
   207  	0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
   208  	0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
   209  	0x6f, 0x74, 0x6f, 0x22, 0x53, 0x0a, 0x13, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69,
   210  	0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x65,
   211  	0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61,
   212  	0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
   213  	0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
   214  	0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0xb8, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
   215  	0x66, 0x69, 0x67, 0x12, 0x52, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74,
   216  	0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x78,
   217  	0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f,
   218  	0x6d, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
   219  	0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
   220  	0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f,
   221  	0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x74, 0x69,
   222  	0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x5a, 0x0a, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61,
   223  	0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x03, 0x20,
   224  	0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
   225  	0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2e, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61,
   226  	0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x13, 0x64, 0x65,
   227  	0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64,
   228  	0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
   229  	0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c,
   230  	0x22, 0x41, 0x0a, 0x0e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65,
   231  	0x67, 0x79, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x53, 0x5f, 0x49, 0x53, 0x10, 0x00, 0x12, 0x0a, 0x0a,
   232  	0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45,
   233  	0x5f, 0x49, 0x50, 0x34, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50,
   234  	0x36, 0x10, 0x03, 0x42, 0x58, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
   235  	0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x50, 0x01, 0x5a,
   236  	0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73,
   237  	0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79,
   238  	0x2f, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0xaa, 0x02, 0x12, 0x58, 0x72, 0x61, 0x79, 0x2e,
   239  	0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x46, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x62, 0x06, 0x70,
   240  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   241  }
   242  
   243  var (
   244  	file_proxy_freedom_config_proto_rawDescOnce sync.Once
   245  	file_proxy_freedom_config_proto_rawDescData = file_proxy_freedom_config_proto_rawDesc
   246  )
   247  
   248  func file_proxy_freedom_config_proto_rawDescGZIP() []byte {
   249  	file_proxy_freedom_config_proto_rawDescOnce.Do(func() {
   250  		file_proxy_freedom_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_freedom_config_proto_rawDescData)
   251  	})
   252  	return file_proxy_freedom_config_proto_rawDescData
   253  }
   254  
   255  var file_proxy_freedom_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   256  var file_proxy_freedom_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   257  var file_proxy_freedom_config_proto_goTypes = []interface{}{
   258  	(Config_DomainStrategy)(0),      // 0: xray.proxy.freedom.Config.DomainStrategy
   259  	(*DestinationOverride)(nil),     // 1: xray.proxy.freedom.DestinationOverride
   260  	(*Config)(nil),                  // 2: xray.proxy.freedom.Config
   261  	(*protocol.ServerEndpoint)(nil), // 3: xray.common.protocol.ServerEndpoint
   262  }
   263  var file_proxy_freedom_config_proto_depIdxs = []int32{
   264  	3, // 0: xray.proxy.freedom.DestinationOverride.server:type_name -> xray.common.protocol.ServerEndpoint
   265  	0, // 1: xray.proxy.freedom.Config.domain_strategy:type_name -> xray.proxy.freedom.Config.DomainStrategy
   266  	1, // 2: xray.proxy.freedom.Config.destination_override:type_name -> xray.proxy.freedom.DestinationOverride
   267  	3, // [3:3] is the sub-list for method output_type
   268  	3, // [3:3] is the sub-list for method input_type
   269  	3, // [3:3] is the sub-list for extension type_name
   270  	3, // [3:3] is the sub-list for extension extendee
   271  	0, // [0:3] is the sub-list for field type_name
   272  }
   273  
   274  func init() { file_proxy_freedom_config_proto_init() }
   275  func file_proxy_freedom_config_proto_init() {
   276  	if File_proxy_freedom_config_proto != nil {
   277  		return
   278  	}
   279  	if !protoimpl.UnsafeEnabled {
   280  		file_proxy_freedom_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   281  			switch v := v.(*DestinationOverride); i {
   282  			case 0:
   283  				return &v.state
   284  			case 1:
   285  				return &v.sizeCache
   286  			case 2:
   287  				return &v.unknownFields
   288  			default:
   289  				return nil
   290  			}
   291  		}
   292  		file_proxy_freedom_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   293  			switch v := v.(*Config); i {
   294  			case 0:
   295  				return &v.state
   296  			case 1:
   297  				return &v.sizeCache
   298  			case 2:
   299  				return &v.unknownFields
   300  			default:
   301  				return nil
   302  			}
   303  		}
   304  	}
   305  	type x struct{}
   306  	out := protoimpl.TypeBuilder{
   307  		File: protoimpl.DescBuilder{
   308  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   309  			RawDescriptor: file_proxy_freedom_config_proto_rawDesc,
   310  			NumEnums:      1,
   311  			NumMessages:   2,
   312  			NumExtensions: 0,
   313  			NumServices:   0,
   314  		},
   315  		GoTypes:           file_proxy_freedom_config_proto_goTypes,
   316  		DependencyIndexes: file_proxy_freedom_config_proto_depIdxs,
   317  		EnumInfos:         file_proxy_freedom_config_proto_enumTypes,
   318  		MessageInfos:      file_proxy_freedom_config_proto_msgTypes,
   319  	}.Build()
   320  	File_proxy_freedom_config_proto = out.File
   321  	file_proxy_freedom_config_proto_rawDesc = nil
   322  	file_proxy_freedom_config_proto_goTypes = nil
   323  	file_proxy_freedom_config_proto_depIdxs = nil
   324  }