github.com/v2fly/v2ray-core/v4@v4.45.2/transport/internet/http/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: transport/internet/http/config.proto 6 7 package http 8 9 import ( 10 http "github.com/v2fly/v2ray-core/v4/transport/internet/headers/http" 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 struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 Host []string `protobuf:"bytes,1,rep,name=host,proto3" json:"host,omitempty"` 30 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 31 Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` 32 Header []*http.Header `protobuf:"bytes,4,rep,name=header,proto3" json:"header,omitempty"` 33 } 34 35 func (x *Config) Reset() { 36 *x = Config{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_transport_internet_http_config_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *Config) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*Config) ProtoMessage() {} 49 50 func (x *Config) ProtoReflect() protoreflect.Message { 51 mi := &file_transport_internet_http_config_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 63 func (*Config) Descriptor() ([]byte, []int) { 64 return file_transport_internet_http_config_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (x *Config) GetHost() []string { 68 if x != nil { 69 return x.Host 70 } 71 return nil 72 } 73 74 func (x *Config) GetPath() string { 75 if x != nil { 76 return x.Path 77 } 78 return "" 79 } 80 81 func (x *Config) GetMethod() string { 82 if x != nil { 83 return x.Method 84 } 85 return "" 86 } 87 88 func (x *Config) GetHeader() []*http.Header { 89 if x != nil { 90 return x.Header 91 } 92 return nil 93 } 94 95 var File_transport_internet_http_config_proto protoreflect.FileDescriptor 96 97 var file_transport_internet_http_config_proto_rawDesc = []byte{ 98 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 99 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 100 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 101 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 102 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x1a, 0x2c, 0x74, 0x72, 0x61, 0x6e, 103 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 104 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 105 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 106 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 107 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 108 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x6d, 109 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 110 0x68, 0x6f, 0x64, 0x12, 0x4a, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 111 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 112 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 113 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 114 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 115 0x87, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 116 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 117 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 118 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 119 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x74, 0x72, 0x61, 120 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 121 0x68, 0x74, 0x74, 0x70, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 122 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 123 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 124 0x33, 125 } 126 127 var ( 128 file_transport_internet_http_config_proto_rawDescOnce sync.Once 129 file_transport_internet_http_config_proto_rawDescData = file_transport_internet_http_config_proto_rawDesc 130 ) 131 132 func file_transport_internet_http_config_proto_rawDescGZIP() []byte { 133 file_transport_internet_http_config_proto_rawDescOnce.Do(func() { 134 file_transport_internet_http_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_http_config_proto_rawDescData) 135 }) 136 return file_transport_internet_http_config_proto_rawDescData 137 } 138 139 var file_transport_internet_http_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 140 var file_transport_internet_http_config_proto_goTypes = []interface{}{ 141 (*Config)(nil), // 0: v2ray.core.transport.internet.http.Config 142 (*http.Header)(nil), // 1: v2ray.core.transport.internet.headers.http.Header 143 } 144 var file_transport_internet_http_config_proto_depIdxs = []int32{ 145 1, // 0: v2ray.core.transport.internet.http.Config.header:type_name -> v2ray.core.transport.internet.headers.http.Header 146 1, // [1:1] is the sub-list for method output_type 147 1, // [1:1] is the sub-list for method input_type 148 1, // [1:1] is the sub-list for extension type_name 149 1, // [1:1] is the sub-list for extension extendee 150 0, // [0:1] is the sub-list for field type_name 151 } 152 153 func init() { file_transport_internet_http_config_proto_init() } 154 func file_transport_internet_http_config_proto_init() { 155 if File_transport_internet_http_config_proto != nil { 156 return 157 } 158 if !protoimpl.UnsafeEnabled { 159 file_transport_internet_http_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 160 switch v := v.(*Config); i { 161 case 0: 162 return &v.state 163 case 1: 164 return &v.sizeCache 165 case 2: 166 return &v.unknownFields 167 default: 168 return nil 169 } 170 } 171 } 172 type x struct{} 173 out := protoimpl.TypeBuilder{ 174 File: protoimpl.DescBuilder{ 175 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 176 RawDescriptor: file_transport_internet_http_config_proto_rawDesc, 177 NumEnums: 0, 178 NumMessages: 1, 179 NumExtensions: 0, 180 NumServices: 0, 181 }, 182 GoTypes: file_transport_internet_http_config_proto_goTypes, 183 DependencyIndexes: file_transport_internet_http_config_proto_depIdxs, 184 MessageInfos: file_transport_internet_http_config_proto_msgTypes, 185 }.Build() 186 File_transport_internet_http_config_proto = out.File 187 file_transport_internet_http_config_proto_rawDesc = nil 188 file_transport_internet_http_config_proto_goTypes = nil 189 file_transport_internet_http_config_proto_depIdxs = nil 190 }