github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/proxy/vmess/outbound/config.pb.go (about) 1 package outbound 2 3 import ( 4 net "github.com/v2fly/v2ray-core/v5/common/net" 5 protocol "github.com/v2fly/v2ray-core/v5/common/protocol" 6 _ "github.com/v2fly/v2ray-core/v5/common/protoext" 7 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 9 reflect "reflect" 10 sync "sync" 11 ) 12 13 const ( 14 // Verify that this generated code is sufficiently up-to-date. 15 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 16 // Verify that runtime/protoimpl is sufficiently up-to-date. 17 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 18 ) 19 20 type Config struct { 21 state protoimpl.MessageState 22 sizeCache protoimpl.SizeCache 23 unknownFields protoimpl.UnknownFields 24 25 Receiver []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=Receiver,proto3" json:"Receiver,omitempty"` 26 } 27 28 func (x *Config) Reset() { 29 *x = Config{} 30 if protoimpl.UnsafeEnabled { 31 mi := &file_proxy_vmess_outbound_config_proto_msgTypes[0] 32 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 33 ms.StoreMessageInfo(mi) 34 } 35 } 36 37 func (x *Config) String() string { 38 return protoimpl.X.MessageStringOf(x) 39 } 40 41 func (*Config) ProtoMessage() {} 42 43 func (x *Config) ProtoReflect() protoreflect.Message { 44 mi := &file_proxy_vmess_outbound_config_proto_msgTypes[0] 45 if protoimpl.UnsafeEnabled && x != nil { 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 if ms.LoadMessageInfo() == nil { 48 ms.StoreMessageInfo(mi) 49 } 50 return ms 51 } 52 return mi.MessageOf(x) 53 } 54 55 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 56 func (*Config) Descriptor() ([]byte, []int) { 57 return file_proxy_vmess_outbound_config_proto_rawDescGZIP(), []int{0} 58 } 59 60 func (x *Config) GetReceiver() []*protocol.ServerEndpoint { 61 if x != nil { 62 return x.Receiver 63 } 64 return nil 65 } 66 67 type SimplifiedConfig struct { 68 state protoimpl.MessageState 69 sizeCache protoimpl.SizeCache 70 unknownFields protoimpl.UnknownFields 71 72 Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 73 Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` 74 Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"` 75 } 76 77 func (x *SimplifiedConfig) Reset() { 78 *x = SimplifiedConfig{} 79 if protoimpl.UnsafeEnabled { 80 mi := &file_proxy_vmess_outbound_config_proto_msgTypes[1] 81 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 82 ms.StoreMessageInfo(mi) 83 } 84 } 85 86 func (x *SimplifiedConfig) String() string { 87 return protoimpl.X.MessageStringOf(x) 88 } 89 90 func (*SimplifiedConfig) ProtoMessage() {} 91 92 func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message { 93 mi := &file_proxy_vmess_outbound_config_proto_msgTypes[1] 94 if protoimpl.UnsafeEnabled && x != nil { 95 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 96 if ms.LoadMessageInfo() == nil { 97 ms.StoreMessageInfo(mi) 98 } 99 return ms 100 } 101 return mi.MessageOf(x) 102 } 103 104 // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead. 105 func (*SimplifiedConfig) Descriptor() ([]byte, []int) { 106 return file_proxy_vmess_outbound_config_proto_rawDescGZIP(), []int{1} 107 } 108 109 func (x *SimplifiedConfig) GetAddress() *net.IPOrDomain { 110 if x != nil { 111 return x.Address 112 } 113 return nil 114 } 115 116 func (x *SimplifiedConfig) GetPort() uint32 { 117 if x != nil { 118 return x.Port 119 } 120 return 0 121 } 122 123 func (x *SimplifiedConfig) GetUuid() string { 124 if x != nil { 125 return x.Uuid 126 } 127 return "" 128 } 129 130 var File_proxy_vmess_outbound_config_proto protoreflect.FileDescriptor 131 132 var file_proxy_vmess_outbound_config_proto_rawDesc = []byte{ 133 0x0a, 0x21, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x6f, 0x75, 134 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 135 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 136 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x6f, 0x75, 0x74, 0x62, 137 0x6f, 0x75, 0x6e, 0x64, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 138 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 139 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 140 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 141 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 142 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 143 0x6f, 0x74, 0x6f, 0x22, 0x50, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x46, 0x0a, 144 0x08, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 145 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 146 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 147 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x08, 0x52, 0x65, 0x63, 148 0x65, 0x69, 0x76, 0x65, 0x72, 0x22, 0x92, 0x01, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 149 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 150 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 151 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 152 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 153 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 154 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 155 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x3a, 156 0x19, 0x82, 0xb5, 0x18, 0x15, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 157 0x05, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x90, 0xff, 0x29, 0x01, 0x42, 0x7e, 0x0a, 0x23, 0x63, 0x6f, 158 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 159 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 160 0x64, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 161 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 162 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 163 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1f, 0x56, 0x32, 0x52, 0x61, 0x79, 164 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 165 0x73, 0x2e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 166 0x6f, 0x33, 167 } 168 169 var ( 170 file_proxy_vmess_outbound_config_proto_rawDescOnce sync.Once 171 file_proxy_vmess_outbound_config_proto_rawDescData = file_proxy_vmess_outbound_config_proto_rawDesc 172 ) 173 174 func file_proxy_vmess_outbound_config_proto_rawDescGZIP() []byte { 175 file_proxy_vmess_outbound_config_proto_rawDescOnce.Do(func() { 176 file_proxy_vmess_outbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_outbound_config_proto_rawDescData) 177 }) 178 return file_proxy_vmess_outbound_config_proto_rawDescData 179 } 180 181 var file_proxy_vmess_outbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 182 var file_proxy_vmess_outbound_config_proto_goTypes = []interface{}{ 183 (*Config)(nil), // 0: v2ray.core.proxy.vmess.outbound.Config 184 (*SimplifiedConfig)(nil), // 1: v2ray.core.proxy.vmess.outbound.SimplifiedConfig 185 (*protocol.ServerEndpoint)(nil), // 2: v2ray.core.common.protocol.ServerEndpoint 186 (*net.IPOrDomain)(nil), // 3: v2ray.core.common.net.IPOrDomain 187 } 188 var file_proxy_vmess_outbound_config_proto_depIdxs = []int32{ 189 2, // 0: v2ray.core.proxy.vmess.outbound.Config.Receiver:type_name -> v2ray.core.common.protocol.ServerEndpoint 190 3, // 1: v2ray.core.proxy.vmess.outbound.SimplifiedConfig.address:type_name -> v2ray.core.common.net.IPOrDomain 191 2, // [2:2] is the sub-list for method output_type 192 2, // [2:2] is the sub-list for method input_type 193 2, // [2:2] is the sub-list for extension type_name 194 2, // [2:2] is the sub-list for extension extendee 195 0, // [0:2] is the sub-list for field type_name 196 } 197 198 func init() { file_proxy_vmess_outbound_config_proto_init() } 199 func file_proxy_vmess_outbound_config_proto_init() { 200 if File_proxy_vmess_outbound_config_proto != nil { 201 return 202 } 203 if !protoimpl.UnsafeEnabled { 204 file_proxy_vmess_outbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 205 switch v := v.(*Config); i { 206 case 0: 207 return &v.state 208 case 1: 209 return &v.sizeCache 210 case 2: 211 return &v.unknownFields 212 default: 213 return nil 214 } 215 } 216 file_proxy_vmess_outbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 217 switch v := v.(*SimplifiedConfig); i { 218 case 0: 219 return &v.state 220 case 1: 221 return &v.sizeCache 222 case 2: 223 return &v.unknownFields 224 default: 225 return nil 226 } 227 } 228 } 229 type x struct{} 230 out := protoimpl.TypeBuilder{ 231 File: protoimpl.DescBuilder{ 232 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 233 RawDescriptor: file_proxy_vmess_outbound_config_proto_rawDesc, 234 NumEnums: 0, 235 NumMessages: 2, 236 NumExtensions: 0, 237 NumServices: 0, 238 }, 239 GoTypes: file_proxy_vmess_outbound_config_proto_goTypes, 240 DependencyIndexes: file_proxy_vmess_outbound_config_proto_depIdxs, 241 MessageInfos: file_proxy_vmess_outbound_config_proto_msgTypes, 242 }.Build() 243 File_proxy_vmess_outbound_config_proto = out.File 244 file_proxy_vmess_outbound_config_proto_rawDesc = nil 245 file_proxy_vmess_outbound_config_proto_goTypes = nil 246 file_proxy_vmess_outbound_config_proto_depIdxs = nil 247 }