github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/proxy/shadowsocks2022/config.pb.go (about)

     1  package shadowsocks2022
     2  
     3  import (
     4  	net "github.com/v2fly/v2ray-core/v5/common/net"
     5  	_ "github.com/v2fly/v2ray-core/v5/common/protoext"
     6  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
     7  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
     8  	reflect "reflect"
     9  	sync "sync"
    10  )
    11  
    12  const (
    13  	// Verify that this generated code is sufficiently up-to-date.
    14  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    15  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    16  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    17  )
    18  
    19  type ClientConfig struct {
    20  	state         protoimpl.MessageState
    21  	sizeCache     protoimpl.SizeCache
    22  	unknownFields protoimpl.UnknownFields
    23  
    24  	Method  string          `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
    25  	Psk     []byte          `protobuf:"bytes,2,opt,name=psk,proto3" json:"psk,omitempty"`
    26  	Ipsk    [][]byte        `protobuf:"bytes,4,rep,name=ipsk,proto3" json:"ipsk,omitempty"`
    27  	Address *net.IPOrDomain `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
    28  	Port    uint32          `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
    29  }
    30  
    31  func (x *ClientConfig) Reset() {
    32  	*x = ClientConfig{}
    33  	if protoimpl.UnsafeEnabled {
    34  		mi := &file_proxy_shadowsocks2022_config_proto_msgTypes[0]
    35  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    36  		ms.StoreMessageInfo(mi)
    37  	}
    38  }
    39  
    40  func (x *ClientConfig) String() string {
    41  	return protoimpl.X.MessageStringOf(x)
    42  }
    43  
    44  func (*ClientConfig) ProtoMessage() {}
    45  
    46  func (x *ClientConfig) ProtoReflect() protoreflect.Message {
    47  	mi := &file_proxy_shadowsocks2022_config_proto_msgTypes[0]
    48  	if protoimpl.UnsafeEnabled && x != nil {
    49  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    50  		if ms.LoadMessageInfo() == nil {
    51  			ms.StoreMessageInfo(mi)
    52  		}
    53  		return ms
    54  	}
    55  	return mi.MessageOf(x)
    56  }
    57  
    58  // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
    59  func (*ClientConfig) Descriptor() ([]byte, []int) {
    60  	return file_proxy_shadowsocks2022_config_proto_rawDescGZIP(), []int{0}
    61  }
    62  
    63  func (x *ClientConfig) GetMethod() string {
    64  	if x != nil {
    65  		return x.Method
    66  	}
    67  	return ""
    68  }
    69  
    70  func (x *ClientConfig) GetPsk() []byte {
    71  	if x != nil {
    72  		return x.Psk
    73  	}
    74  	return nil
    75  }
    76  
    77  func (x *ClientConfig) GetIpsk() [][]byte {
    78  	if x != nil {
    79  		return x.Ipsk
    80  	}
    81  	return nil
    82  }
    83  
    84  func (x *ClientConfig) GetAddress() *net.IPOrDomain {
    85  	if x != nil {
    86  		return x.Address
    87  	}
    88  	return nil
    89  }
    90  
    91  func (x *ClientConfig) GetPort() uint32 {
    92  	if x != nil {
    93  		return x.Port
    94  	}
    95  	return 0
    96  }
    97  
    98  var File_proxy_shadowsocks2022_config_proto protoreflect.FileDescriptor
    99  
   100  var file_proxy_shadowsocks2022_config_proto_rawDesc = []byte{
   101  	0x0a, 0x22, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
   102  	0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
   103  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
   104  	0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63,
   105  	0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e,
   106  	0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   107  	0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78,
   108  	0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
   109  	0x74, 0x6f, 0x22, 0xc2, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,
   110  	0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20,
   111  	0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x70,
   112  	0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x70, 0x73, 0x6b, 0x12, 0x12, 0x0a,
   113  	0x04, 0x69, 0x70, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x69, 0x70, 0x73,
   114  	0x6b, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01,
   115  	0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
   116  	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44,
   117  	0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12,
   118  	0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f,
   119  	0x72, 0x74, 0x3a, 0x23, 0x82, 0xb5, 0x18, 0x1f, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75,
   120  	0x6e, 0x64, 0x12, 0x0f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x32,
   121  	0x30, 0x32, 0x32, 0x90, 0xff, 0x29, 0x01, 0x42, 0x81, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e,
   122  	0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
   123  	0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32,
   124  	0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76,
   125  	0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f,
   126  	0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73,
   127  	0x6f, 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0xaa, 0x02, 0x20, 0x56, 0x32, 0x52, 0x61, 0x79,
   128  	0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x68, 0x61, 0x64,
   129  	0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f,
   130  	0x74, 0x6f, 0x33,
   131  }
   132  
   133  var (
   134  	file_proxy_shadowsocks2022_config_proto_rawDescOnce sync.Once
   135  	file_proxy_shadowsocks2022_config_proto_rawDescData = file_proxy_shadowsocks2022_config_proto_rawDesc
   136  )
   137  
   138  func file_proxy_shadowsocks2022_config_proto_rawDescGZIP() []byte {
   139  	file_proxy_shadowsocks2022_config_proto_rawDescOnce.Do(func() {
   140  		file_proxy_shadowsocks2022_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_shadowsocks2022_config_proto_rawDescData)
   141  	})
   142  	return file_proxy_shadowsocks2022_config_proto_rawDescData
   143  }
   144  
   145  var file_proxy_shadowsocks2022_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   146  var file_proxy_shadowsocks2022_config_proto_goTypes = []interface{}{
   147  	(*ClientConfig)(nil),   // 0: v2ray.core.proxy.shadowsocks2022.ClientConfig
   148  	(*net.IPOrDomain)(nil), // 1: v2ray.core.common.net.IPOrDomain
   149  }
   150  var file_proxy_shadowsocks2022_config_proto_depIdxs = []int32{
   151  	1, // 0: v2ray.core.proxy.shadowsocks2022.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
   152  	1, // [1:1] is the sub-list for method output_type
   153  	1, // [1:1] is the sub-list for method input_type
   154  	1, // [1:1] is the sub-list for extension type_name
   155  	1, // [1:1] is the sub-list for extension extendee
   156  	0, // [0:1] is the sub-list for field type_name
   157  }
   158  
   159  func init() { file_proxy_shadowsocks2022_config_proto_init() }
   160  func file_proxy_shadowsocks2022_config_proto_init() {
   161  	if File_proxy_shadowsocks2022_config_proto != nil {
   162  		return
   163  	}
   164  	if !protoimpl.UnsafeEnabled {
   165  		file_proxy_shadowsocks2022_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   166  			switch v := v.(*ClientConfig); i {
   167  			case 0:
   168  				return &v.state
   169  			case 1:
   170  				return &v.sizeCache
   171  			case 2:
   172  				return &v.unknownFields
   173  			default:
   174  				return nil
   175  			}
   176  		}
   177  	}
   178  	type x struct{}
   179  	out := protoimpl.TypeBuilder{
   180  		File: protoimpl.DescBuilder{
   181  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   182  			RawDescriptor: file_proxy_shadowsocks2022_config_proto_rawDesc,
   183  			NumEnums:      0,
   184  			NumMessages:   1,
   185  			NumExtensions: 0,
   186  			NumServices:   0,
   187  		},
   188  		GoTypes:           file_proxy_shadowsocks2022_config_proto_goTypes,
   189  		DependencyIndexes: file_proxy_shadowsocks2022_config_proto_depIdxs,
   190  		MessageInfos:      file_proxy_shadowsocks2022_config_proto_msgTypes,
   191  	}.Build()
   192  	File_proxy_shadowsocks2022_config_proto = out.File
   193  	file_proxy_shadowsocks2022_config_proto_rawDesc = nil
   194  	file_proxy_shadowsocks2022_config_proto_goTypes = nil
   195  	file_proxy_shadowsocks2022_config_proto_depIdxs = nil
   196  }