github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/proxy/vlite/outbound/config.pb.go (about) 1 package outbound 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 UDPProtocolConfig struct { 20 state protoimpl.MessageState 21 sizeCache protoimpl.SizeCache 22 unknownFields protoimpl.UnknownFields 23 24 Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 25 Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` 26 Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` 27 ScramblePacket bool `protobuf:"varint,4,opt,name=scramble_packet,json=scramblePacket,proto3" json:"scramble_packet,omitempty"` 28 EnableFec bool `protobuf:"varint,5,opt,name=enable_fec,json=enableFec,proto3" json:"enable_fec,omitempty"` 29 EnableStabilization bool `protobuf:"varint,6,opt,name=enable_stabilization,json=enableStabilization,proto3" json:"enable_stabilization,omitempty"` 30 EnableRenegotiation bool `protobuf:"varint,7,opt,name=enable_renegotiation,json=enableRenegotiation,proto3" json:"enable_renegotiation,omitempty"` 31 HandshakeMaskingPaddingSize uint32 `protobuf:"varint,8,opt,name=handshake_masking_padding_size,json=handshakeMaskingPaddingSize,proto3" json:"handshake_masking_padding_size,omitempty"` 32 } 33 34 func (x *UDPProtocolConfig) Reset() { 35 *x = UDPProtocolConfig{} 36 if protoimpl.UnsafeEnabled { 37 mi := &file_proxy_vlite_outbound_config_proto_msgTypes[0] 38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 39 ms.StoreMessageInfo(mi) 40 } 41 } 42 43 func (x *UDPProtocolConfig) String() string { 44 return protoimpl.X.MessageStringOf(x) 45 } 46 47 func (*UDPProtocolConfig) ProtoMessage() {} 48 49 func (x *UDPProtocolConfig) ProtoReflect() protoreflect.Message { 50 mi := &file_proxy_vlite_outbound_config_proto_msgTypes[0] 51 if protoimpl.UnsafeEnabled && x != nil { 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 if ms.LoadMessageInfo() == nil { 54 ms.StoreMessageInfo(mi) 55 } 56 return ms 57 } 58 return mi.MessageOf(x) 59 } 60 61 // Deprecated: Use UDPProtocolConfig.ProtoReflect.Descriptor instead. 62 func (*UDPProtocolConfig) Descriptor() ([]byte, []int) { 63 return file_proxy_vlite_outbound_config_proto_rawDescGZIP(), []int{0} 64 } 65 66 func (x *UDPProtocolConfig) GetAddress() *net.IPOrDomain { 67 if x != nil { 68 return x.Address 69 } 70 return nil 71 } 72 73 func (x *UDPProtocolConfig) GetPort() uint32 { 74 if x != nil { 75 return x.Port 76 } 77 return 0 78 } 79 80 func (x *UDPProtocolConfig) GetPassword() string { 81 if x != nil { 82 return x.Password 83 } 84 return "" 85 } 86 87 func (x *UDPProtocolConfig) GetScramblePacket() bool { 88 if x != nil { 89 return x.ScramblePacket 90 } 91 return false 92 } 93 94 func (x *UDPProtocolConfig) GetEnableFec() bool { 95 if x != nil { 96 return x.EnableFec 97 } 98 return false 99 } 100 101 func (x *UDPProtocolConfig) GetEnableStabilization() bool { 102 if x != nil { 103 return x.EnableStabilization 104 } 105 return false 106 } 107 108 func (x *UDPProtocolConfig) GetEnableRenegotiation() bool { 109 if x != nil { 110 return x.EnableRenegotiation 111 } 112 return false 113 } 114 115 func (x *UDPProtocolConfig) GetHandshakeMaskingPaddingSize() uint32 { 116 if x != nil { 117 return x.HandshakeMaskingPaddingSize 118 } 119 return 0 120 } 121 122 var File_proxy_vlite_outbound_config_proto protoreflect.FileDescriptor 123 124 var file_proxy_vlite_outbound_config_proto_rawDesc = []byte{ 125 0x0a, 0x21, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x6f, 0x75, 126 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 127 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 128 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x6f, 0x75, 0x74, 0x62, 129 0x6f, 0x75, 0x6e, 0x64, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 130 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 131 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 132 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 133 0x22, 0x8b, 0x03, 0x0a, 0x11, 0x55, 0x44, 0x50, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 134 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 135 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 136 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 137 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 138 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 139 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 140 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 141 0x6f, 0x72, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x63, 0x72, 0x61, 0x6d, 0x62, 0x6c, 0x65, 0x5f, 142 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x73, 0x63, 143 0x72, 0x61, 0x6d, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 144 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x65, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 145 0x52, 0x09, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x65, 0x63, 0x12, 0x31, 0x0a, 0x14, 0x65, 146 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 147 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 148 0x65, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 149 0x0a, 0x14, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x6e, 0x65, 0x67, 0x6f, 0x74, 150 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x65, 0x6e, 151 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x6e, 0x65, 0x67, 0x6f, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 152 0x6e, 0x12, 0x43, 0x0a, 0x1e, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x5f, 0x6d, 153 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x73, 154 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1b, 0x68, 0x61, 0x6e, 0x64, 0x73, 155 0x68, 0x61, 0x6b, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x64, 0x64, 0x69, 156 0x6e, 0x67, 0x53, 0x69, 0x7a, 0x65, 0x3a, 0x16, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x08, 0x6f, 0x75, 157 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x06, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x75, 0x42, 0x7e, 158 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 159 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x6f, 0x75, 0x74, 160 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 161 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 162 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 163 0x69, 0x74, 0x65, 0x2f, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1f, 0x56, 164 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 165 0x56, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 166 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 167 } 168 169 var ( 170 file_proxy_vlite_outbound_config_proto_rawDescOnce sync.Once 171 file_proxy_vlite_outbound_config_proto_rawDescData = file_proxy_vlite_outbound_config_proto_rawDesc 172 ) 173 174 func file_proxy_vlite_outbound_config_proto_rawDescGZIP() []byte { 175 file_proxy_vlite_outbound_config_proto_rawDescOnce.Do(func() { 176 file_proxy_vlite_outbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vlite_outbound_config_proto_rawDescData) 177 }) 178 return file_proxy_vlite_outbound_config_proto_rawDescData 179 } 180 181 var file_proxy_vlite_outbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 182 var file_proxy_vlite_outbound_config_proto_goTypes = []interface{}{ 183 (*UDPProtocolConfig)(nil), // 0: v2ray.core.proxy.vlite.outbound.UDPProtocolConfig 184 (*net.IPOrDomain)(nil), // 1: v2ray.core.common.net.IPOrDomain 185 } 186 var file_proxy_vlite_outbound_config_proto_depIdxs = []int32{ 187 1, // 0: v2ray.core.proxy.vlite.outbound.UDPProtocolConfig.address:type_name -> v2ray.core.common.net.IPOrDomain 188 1, // [1:1] is the sub-list for method output_type 189 1, // [1:1] is the sub-list for method input_type 190 1, // [1:1] is the sub-list for extension type_name 191 1, // [1:1] is the sub-list for extension extendee 192 0, // [0:1] is the sub-list for field type_name 193 } 194 195 func init() { file_proxy_vlite_outbound_config_proto_init() } 196 func file_proxy_vlite_outbound_config_proto_init() { 197 if File_proxy_vlite_outbound_config_proto != nil { 198 return 199 } 200 if !protoimpl.UnsafeEnabled { 201 file_proxy_vlite_outbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 202 switch v := v.(*UDPProtocolConfig); i { 203 case 0: 204 return &v.state 205 case 1: 206 return &v.sizeCache 207 case 2: 208 return &v.unknownFields 209 default: 210 return nil 211 } 212 } 213 } 214 type x struct{} 215 out := protoimpl.TypeBuilder{ 216 File: protoimpl.DescBuilder{ 217 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 218 RawDescriptor: file_proxy_vlite_outbound_config_proto_rawDesc, 219 NumEnums: 0, 220 NumMessages: 1, 221 NumExtensions: 0, 222 NumServices: 0, 223 }, 224 GoTypes: file_proxy_vlite_outbound_config_proto_goTypes, 225 DependencyIndexes: file_proxy_vlite_outbound_config_proto_depIdxs, 226 MessageInfos: file_proxy_vlite_outbound_config_proto_msgTypes, 227 }.Build() 228 File_proxy_vlite_outbound_config_proto = out.File 229 file_proxy_vlite_outbound_config_proto_rawDesc = nil 230 file_proxy_vlite_outbound_config_proto_goTypes = nil 231 file_proxy_vlite_outbound_config_proto_depIdxs = nil 232 }