github.com/xraypb/xray-core@v1.6.6/proxy/freedom/config.pb.go (about)

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