github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/config.pb.go (about) 1 package transport 2 3 import ( 4 internet "github.com/v2fly/v2ray-core/v5/transport/internet" 5 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 6 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 7 reflect "reflect" 8 sync "sync" 9 ) 10 11 const ( 12 // Verify that this generated code is sufficiently up-to-date. 13 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 14 // Verify that runtime/protoimpl is sufficiently up-to-date. 15 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 16 ) 17 18 // Global transport settings. This affects all type of connections that go 19 // through V2Ray. Deprecated. Use each settings in StreamConfig. 20 // 21 // Deprecated: Marked as deprecated in transport/config.proto. 22 type Config struct { 23 state protoimpl.MessageState 24 sizeCache protoimpl.SizeCache 25 unknownFields protoimpl.UnknownFields 26 27 TransportSettings []*internet.TransportConfig `protobuf:"bytes,1,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"` 28 } 29 30 func (x *Config) Reset() { 31 *x = Config{} 32 if protoimpl.UnsafeEnabled { 33 mi := &file_transport_config_proto_msgTypes[0] 34 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 35 ms.StoreMessageInfo(mi) 36 } 37 } 38 39 func (x *Config) String() string { 40 return protoimpl.X.MessageStringOf(x) 41 } 42 43 func (*Config) ProtoMessage() {} 44 45 func (x *Config) ProtoReflect() protoreflect.Message { 46 mi := &file_transport_config_proto_msgTypes[0] 47 if protoimpl.UnsafeEnabled && x != nil { 48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 49 if ms.LoadMessageInfo() == nil { 50 ms.StoreMessageInfo(mi) 51 } 52 return ms 53 } 54 return mi.MessageOf(x) 55 } 56 57 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 58 func (*Config) Descriptor() ([]byte, []int) { 59 return file_transport_config_proto_rawDescGZIP(), []int{0} 60 } 61 62 func (x *Config) GetTransportSettings() []*internet.TransportConfig { 63 if x != nil { 64 return x.TransportSettings 65 } 66 return nil 67 } 68 69 var File_transport_config_proto protoreflect.FileDescriptor 70 71 var file_transport_config_proto_rawDesc = []byte{ 72 0x0a, 0x16, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 73 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 74 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1f, 75 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 76 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 77 0x6b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5d, 0x0a, 0x12, 0x74, 0x72, 0x61, 78 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 79 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 80 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 81 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 82 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 83 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x3a, 0x02, 0x18, 0x01, 0x42, 0x5d, 0x0a, 0x18, 84 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 85 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 86 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 87 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 88 0x70, 0x6f, 0x72, 0x74, 0xaa, 0x02, 0x14, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 89 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 90 0x74, 0x6f, 0x33, 91 } 92 93 var ( 94 file_transport_config_proto_rawDescOnce sync.Once 95 file_transport_config_proto_rawDescData = file_transport_config_proto_rawDesc 96 ) 97 98 func file_transport_config_proto_rawDescGZIP() []byte { 99 file_transport_config_proto_rawDescOnce.Do(func() { 100 file_transport_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_config_proto_rawDescData) 101 }) 102 return file_transport_config_proto_rawDescData 103 } 104 105 var file_transport_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 106 var file_transport_config_proto_goTypes = []interface{}{ 107 (*Config)(nil), // 0: v2ray.core.transport.Config 108 (*internet.TransportConfig)(nil), // 1: v2ray.core.transport.internet.TransportConfig 109 } 110 var file_transport_config_proto_depIdxs = []int32{ 111 1, // 0: v2ray.core.transport.Config.transport_settings:type_name -> v2ray.core.transport.internet.TransportConfig 112 1, // [1:1] is the sub-list for method output_type 113 1, // [1:1] is the sub-list for method input_type 114 1, // [1:1] is the sub-list for extension type_name 115 1, // [1:1] is the sub-list for extension extendee 116 0, // [0:1] is the sub-list for field type_name 117 } 118 119 func init() { file_transport_config_proto_init() } 120 func file_transport_config_proto_init() { 121 if File_transport_config_proto != nil { 122 return 123 } 124 if !protoimpl.UnsafeEnabled { 125 file_transport_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 126 switch v := v.(*Config); i { 127 case 0: 128 return &v.state 129 case 1: 130 return &v.sizeCache 131 case 2: 132 return &v.unknownFields 133 default: 134 return nil 135 } 136 } 137 } 138 type x struct{} 139 out := protoimpl.TypeBuilder{ 140 File: protoimpl.DescBuilder{ 141 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 142 RawDescriptor: file_transport_config_proto_rawDesc, 143 NumEnums: 0, 144 NumMessages: 1, 145 NumExtensions: 0, 146 NumServices: 0, 147 }, 148 GoTypes: file_transport_config_proto_goTypes, 149 DependencyIndexes: file_transport_config_proto_depIdxs, 150 MessageInfos: file_transport_config_proto_msgTypes, 151 }.Build() 152 File_transport_config_proto = out.File 153 file_transport_config_proto_rawDesc = nil 154 file_transport_config_proto_goTypes = nil 155 file_transport_config_proto_depIdxs = nil 156 }