github.com/MetalBlockchain/metalgo@v1.11.9/proto/pb/http/responsewriter/responsewriter.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc (unknown) 5 // source: http/responsewriter/responsewriter.proto 6 7 package responsewriter 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 emptypb "google.golang.org/protobuf/types/known/emptypb" 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 Header struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 // key is a element key in a key value pair 30 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 31 // values are a list of strings coresponding to the key 32 Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` 33 } 34 35 func (x *Header) Reset() { 36 *x = Header{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_http_responsewriter_responsewriter_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *Header) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*Header) ProtoMessage() {} 49 50 func (x *Header) ProtoReflect() protoreflect.Message { 51 mi := &file_http_responsewriter_responsewriter_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 Header.ProtoReflect.Descriptor instead. 63 func (*Header) Descriptor() ([]byte, []int) { 64 return file_http_responsewriter_responsewriter_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (x *Header) GetKey() string { 68 if x != nil { 69 return x.Key 70 } 71 return "" 72 } 73 74 func (x *Header) GetValues() []string { 75 if x != nil { 76 return x.Values 77 } 78 return nil 79 } 80 81 type WriteRequest struct { 82 state protoimpl.MessageState 83 sizeCache protoimpl.SizeCache 84 unknownFields protoimpl.UnknownFields 85 86 // headers represents the key-value pairs in an HTTP header 87 Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` 88 // payload is the write request in bytes 89 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` 90 } 91 92 func (x *WriteRequest) Reset() { 93 *x = WriteRequest{} 94 if protoimpl.UnsafeEnabled { 95 mi := &file_http_responsewriter_responsewriter_proto_msgTypes[1] 96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 ms.StoreMessageInfo(mi) 98 } 99 } 100 101 func (x *WriteRequest) String() string { 102 return protoimpl.X.MessageStringOf(x) 103 } 104 105 func (*WriteRequest) ProtoMessage() {} 106 107 func (x *WriteRequest) ProtoReflect() protoreflect.Message { 108 mi := &file_http_responsewriter_responsewriter_proto_msgTypes[1] 109 if protoimpl.UnsafeEnabled && x != nil { 110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 111 if ms.LoadMessageInfo() == nil { 112 ms.StoreMessageInfo(mi) 113 } 114 return ms 115 } 116 return mi.MessageOf(x) 117 } 118 119 // Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead. 120 func (*WriteRequest) Descriptor() ([]byte, []int) { 121 return file_http_responsewriter_responsewriter_proto_rawDescGZIP(), []int{1} 122 } 123 124 func (x *WriteRequest) GetHeaders() []*Header { 125 if x != nil { 126 return x.Headers 127 } 128 return nil 129 } 130 131 func (x *WriteRequest) GetPayload() []byte { 132 if x != nil { 133 return x.Payload 134 } 135 return nil 136 } 137 138 type WriteResponse struct { 139 state protoimpl.MessageState 140 sizeCache protoimpl.SizeCache 141 unknownFields protoimpl.UnknownFields 142 143 // written is the number of bytes written in body 144 Written int32 `protobuf:"varint,1,opt,name=written,proto3" json:"written,omitempty"` 145 } 146 147 func (x *WriteResponse) Reset() { 148 *x = WriteResponse{} 149 if protoimpl.UnsafeEnabled { 150 mi := &file_http_responsewriter_responsewriter_proto_msgTypes[2] 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 ms.StoreMessageInfo(mi) 153 } 154 } 155 156 func (x *WriteResponse) String() string { 157 return protoimpl.X.MessageStringOf(x) 158 } 159 160 func (*WriteResponse) ProtoMessage() {} 161 162 func (x *WriteResponse) ProtoReflect() protoreflect.Message { 163 mi := &file_http_responsewriter_responsewriter_proto_msgTypes[2] 164 if protoimpl.UnsafeEnabled && x != nil { 165 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 166 if ms.LoadMessageInfo() == nil { 167 ms.StoreMessageInfo(mi) 168 } 169 return ms 170 } 171 return mi.MessageOf(x) 172 } 173 174 // Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead. 175 func (*WriteResponse) Descriptor() ([]byte, []int) { 176 return file_http_responsewriter_responsewriter_proto_rawDescGZIP(), []int{2} 177 } 178 179 func (x *WriteResponse) GetWritten() int32 { 180 if x != nil { 181 return x.Written 182 } 183 return 0 184 } 185 186 type WriteHeaderRequest struct { 187 state protoimpl.MessageState 188 sizeCache protoimpl.SizeCache 189 unknownFields protoimpl.UnknownFields 190 191 // headers represents the key-value pairs in an HTTP header 192 Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` 193 // status_code must be a valid HTTP 1xx-5xx status code 194 StatusCode int32 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` 195 } 196 197 func (x *WriteHeaderRequest) Reset() { 198 *x = WriteHeaderRequest{} 199 if protoimpl.UnsafeEnabled { 200 mi := &file_http_responsewriter_responsewriter_proto_msgTypes[3] 201 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 202 ms.StoreMessageInfo(mi) 203 } 204 } 205 206 func (x *WriteHeaderRequest) String() string { 207 return protoimpl.X.MessageStringOf(x) 208 } 209 210 func (*WriteHeaderRequest) ProtoMessage() {} 211 212 func (x *WriteHeaderRequest) ProtoReflect() protoreflect.Message { 213 mi := &file_http_responsewriter_responsewriter_proto_msgTypes[3] 214 if protoimpl.UnsafeEnabled && x != nil { 215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 216 if ms.LoadMessageInfo() == nil { 217 ms.StoreMessageInfo(mi) 218 } 219 return ms 220 } 221 return mi.MessageOf(x) 222 } 223 224 // Deprecated: Use WriteHeaderRequest.ProtoReflect.Descriptor instead. 225 func (*WriteHeaderRequest) Descriptor() ([]byte, []int) { 226 return file_http_responsewriter_responsewriter_proto_rawDescGZIP(), []int{3} 227 } 228 229 func (x *WriteHeaderRequest) GetHeaders() []*Header { 230 if x != nil { 231 return x.Headers 232 } 233 return nil 234 } 235 236 func (x *WriteHeaderRequest) GetStatusCode() int32 { 237 if x != nil { 238 return x.StatusCode 239 } 240 return 0 241 } 242 243 type HijackResponse struct { 244 state protoimpl.MessageState 245 sizeCache protoimpl.SizeCache 246 unknownFields protoimpl.UnknownFields 247 248 // local_network is the name of the network (for example, "tcp", "udp") 249 LocalNetwork string `protobuf:"bytes,1,opt,name=local_network,json=localNetwork,proto3" json:"local_network,omitempty"` 250 // local_string is string form of address 251 LocalString string `protobuf:"bytes,2,opt,name=local_string,json=localString,proto3" json:"local_string,omitempty"` 252 // remote_network is the name of the network (for example, "tcp", "udp") 253 RemoteNetwork string `protobuf:"bytes,3,opt,name=remote_network,json=remoteNetwork,proto3" json:"remote_network,omitempty"` 254 // remote_string is string form of address 255 RemoteString string `protobuf:"bytes,4,opt,name=remote_string,json=remoteString,proto3" json:"remote_string,omitempty"` 256 // server_addr is the address of the gRPC server serving the Conn, Reader 257 // and Writer services which facilitate Hijacking 258 ServerAddr string `protobuf:"bytes,5,opt,name=server_addr,json=serverAddr,proto3" json:"server_addr,omitempty"` 259 } 260 261 func (x *HijackResponse) Reset() { 262 *x = HijackResponse{} 263 if protoimpl.UnsafeEnabled { 264 mi := &file_http_responsewriter_responsewriter_proto_msgTypes[4] 265 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 266 ms.StoreMessageInfo(mi) 267 } 268 } 269 270 func (x *HijackResponse) String() string { 271 return protoimpl.X.MessageStringOf(x) 272 } 273 274 func (*HijackResponse) ProtoMessage() {} 275 276 func (x *HijackResponse) ProtoReflect() protoreflect.Message { 277 mi := &file_http_responsewriter_responsewriter_proto_msgTypes[4] 278 if protoimpl.UnsafeEnabled && x != nil { 279 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 280 if ms.LoadMessageInfo() == nil { 281 ms.StoreMessageInfo(mi) 282 } 283 return ms 284 } 285 return mi.MessageOf(x) 286 } 287 288 // Deprecated: Use HijackResponse.ProtoReflect.Descriptor instead. 289 func (*HijackResponse) Descriptor() ([]byte, []int) { 290 return file_http_responsewriter_responsewriter_proto_rawDescGZIP(), []int{4} 291 } 292 293 func (x *HijackResponse) GetLocalNetwork() string { 294 if x != nil { 295 return x.LocalNetwork 296 } 297 return "" 298 } 299 300 func (x *HijackResponse) GetLocalString() string { 301 if x != nil { 302 return x.LocalString 303 } 304 return "" 305 } 306 307 func (x *HijackResponse) GetRemoteNetwork() string { 308 if x != nil { 309 return x.RemoteNetwork 310 } 311 return "" 312 } 313 314 func (x *HijackResponse) GetRemoteString() string { 315 if x != nil { 316 return x.RemoteString 317 } 318 return "" 319 } 320 321 func (x *HijackResponse) GetServerAddr() string { 322 if x != nil { 323 return x.ServerAddr 324 } 325 return "" 326 } 327 328 var File_http_responsewriter_responsewriter_proto protoreflect.FileDescriptor 329 330 var file_http_responsewriter_responsewriter_proto_rawDesc = []byte{ 331 0x0a, 0x28, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 332 0x72, 0x69, 0x74, 0x65, 0x72, 0x2f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 333 0x69, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x68, 0x74, 0x74, 0x70, 334 0x2e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x1a, 335 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 336 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, 0x0a, 0x06, 337 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 338 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 339 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 340 0x22, 0x5f, 0x0a, 0x0c, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 341 0x12, 0x35, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 342 0x0b, 0x32, 0x1b, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 343 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 344 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 345 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 346 0x64, 0x22, 0x29, 0x0a, 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 347 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x18, 0x01, 0x20, 348 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x22, 0x6c, 0x0a, 0x12, 349 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 350 0x73, 0x74, 0x12, 0x35, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 351 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x72, 0x65, 0x73, 0x70, 0x6f, 352 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 353 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 354 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 355 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0xc5, 0x01, 0x0a, 0x0e, 0x48, 356 0x69, 0x6a, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 357 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 358 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4e, 0x65, 0x74, 0x77, 0x6f, 359 0x72, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 360 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 361 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 362 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 363 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 364 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 365 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 366 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 367 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 368 0x64, 0x72, 0x32, 0xa8, 0x02, 0x0a, 0x06, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x4e, 0x0a, 369 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x21, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x72, 0x65, 370 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x57, 0x72, 0x69, 371 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x68, 0x74, 0x74, 0x70, 372 0x2e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 373 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 374 0x0b, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x68, 375 0x74, 0x74, 0x70, 0x2e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 376 0x65, 0x72, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 377 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 378 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x37, 0x0a, 379 0x05, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 380 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 381 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 382 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x45, 0x0a, 0x06, 0x48, 0x69, 0x6a, 0x61, 0x63, 0x6b, 383 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 384 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x23, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 385 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x48, 386 0x69, 0x6a, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3e, 0x5a, 387 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 388 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 389 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x72, 390 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 391 0x72, 0x6f, 0x74, 0x6f, 0x33, 392 } 393 394 var ( 395 file_http_responsewriter_responsewriter_proto_rawDescOnce sync.Once 396 file_http_responsewriter_responsewriter_proto_rawDescData = file_http_responsewriter_responsewriter_proto_rawDesc 397 ) 398 399 func file_http_responsewriter_responsewriter_proto_rawDescGZIP() []byte { 400 file_http_responsewriter_responsewriter_proto_rawDescOnce.Do(func() { 401 file_http_responsewriter_responsewriter_proto_rawDescData = protoimpl.X.CompressGZIP(file_http_responsewriter_responsewriter_proto_rawDescData) 402 }) 403 return file_http_responsewriter_responsewriter_proto_rawDescData 404 } 405 406 var file_http_responsewriter_responsewriter_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 407 var file_http_responsewriter_responsewriter_proto_goTypes = []interface{}{ 408 (*Header)(nil), // 0: http.responsewriter.Header 409 (*WriteRequest)(nil), // 1: http.responsewriter.WriteRequest 410 (*WriteResponse)(nil), // 2: http.responsewriter.WriteResponse 411 (*WriteHeaderRequest)(nil), // 3: http.responsewriter.WriteHeaderRequest 412 (*HijackResponse)(nil), // 4: http.responsewriter.HijackResponse 413 (*emptypb.Empty)(nil), // 5: google.protobuf.Empty 414 } 415 var file_http_responsewriter_responsewriter_proto_depIdxs = []int32{ 416 0, // 0: http.responsewriter.WriteRequest.headers:type_name -> http.responsewriter.Header 417 0, // 1: http.responsewriter.WriteHeaderRequest.headers:type_name -> http.responsewriter.Header 418 1, // 2: http.responsewriter.Writer.Write:input_type -> http.responsewriter.WriteRequest 419 3, // 3: http.responsewriter.Writer.WriteHeader:input_type -> http.responsewriter.WriteHeaderRequest 420 5, // 4: http.responsewriter.Writer.Flush:input_type -> google.protobuf.Empty 421 5, // 5: http.responsewriter.Writer.Hijack:input_type -> google.protobuf.Empty 422 2, // 6: http.responsewriter.Writer.Write:output_type -> http.responsewriter.WriteResponse 423 5, // 7: http.responsewriter.Writer.WriteHeader:output_type -> google.protobuf.Empty 424 5, // 8: http.responsewriter.Writer.Flush:output_type -> google.protobuf.Empty 425 4, // 9: http.responsewriter.Writer.Hijack:output_type -> http.responsewriter.HijackResponse 426 6, // [6:10] is the sub-list for method output_type 427 2, // [2:6] is the sub-list for method input_type 428 2, // [2:2] is the sub-list for extension type_name 429 2, // [2:2] is the sub-list for extension extendee 430 0, // [0:2] is the sub-list for field type_name 431 } 432 433 func init() { file_http_responsewriter_responsewriter_proto_init() } 434 func file_http_responsewriter_responsewriter_proto_init() { 435 if File_http_responsewriter_responsewriter_proto != nil { 436 return 437 } 438 if !protoimpl.UnsafeEnabled { 439 file_http_responsewriter_responsewriter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 440 switch v := v.(*Header); i { 441 case 0: 442 return &v.state 443 case 1: 444 return &v.sizeCache 445 case 2: 446 return &v.unknownFields 447 default: 448 return nil 449 } 450 } 451 file_http_responsewriter_responsewriter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 452 switch v := v.(*WriteRequest); i { 453 case 0: 454 return &v.state 455 case 1: 456 return &v.sizeCache 457 case 2: 458 return &v.unknownFields 459 default: 460 return nil 461 } 462 } 463 file_http_responsewriter_responsewriter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 464 switch v := v.(*WriteResponse); i { 465 case 0: 466 return &v.state 467 case 1: 468 return &v.sizeCache 469 case 2: 470 return &v.unknownFields 471 default: 472 return nil 473 } 474 } 475 file_http_responsewriter_responsewriter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 476 switch v := v.(*WriteHeaderRequest); i { 477 case 0: 478 return &v.state 479 case 1: 480 return &v.sizeCache 481 case 2: 482 return &v.unknownFields 483 default: 484 return nil 485 } 486 } 487 file_http_responsewriter_responsewriter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 488 switch v := v.(*HijackResponse); i { 489 case 0: 490 return &v.state 491 case 1: 492 return &v.sizeCache 493 case 2: 494 return &v.unknownFields 495 default: 496 return nil 497 } 498 } 499 } 500 type x struct{} 501 out := protoimpl.TypeBuilder{ 502 File: protoimpl.DescBuilder{ 503 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 504 RawDescriptor: file_http_responsewriter_responsewriter_proto_rawDesc, 505 NumEnums: 0, 506 NumMessages: 5, 507 NumExtensions: 0, 508 NumServices: 1, 509 }, 510 GoTypes: file_http_responsewriter_responsewriter_proto_goTypes, 511 DependencyIndexes: file_http_responsewriter_responsewriter_proto_depIdxs, 512 MessageInfos: file_http_responsewriter_responsewriter_proto_msgTypes, 513 }.Build() 514 File_http_responsewriter_responsewriter_proto = out.File 515 file_http_responsewriter_responsewriter_proto_rawDesc = nil 516 file_http_responsewriter_responsewriter_proto_goTypes = nil 517 file_http_responsewriter_responsewriter_proto_depIdxs = nil 518 }