1// Code generated by protoc-gen-go. DO NOT EDIT. 2// versions: 3// protoc-gen-go v1.25.0 4// protoc v3.19.1 5// source: envoy/type/matcher/v3/http_inputs.proto 6 7package envoy_type_matcher_v3 8 9import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17) 18 19const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24) 25 26// This is a compile-time assertion that a sufficiently up-to-date version 27// of the legacy proto package is being used. 28const _ = proto.ProtoPackageIsVersion4 29 30// Match input indicates that matching should be done on a specific request header. 31// The resulting input string will be all headers for the given key joined by a comma, 32// e.g. if the request contains two 'foo' headers with value 'bar' and 'baz', the input 33// string will be 'bar,baz'. 34// [#comment:TODO(snowp): Link to unified matching docs.] 35type HttpRequestHeaderMatchInput struct { 36 state protoimpl.MessageState 37 sizeCache protoimpl.SizeCache 38 unknownFields protoimpl.UnknownFields 39 40 // The request header to match on. 41 HeaderName string `protobuf:"bytes,1,opt,name=header_name,json=headerName,proto3" json:"header_name,omitempty"` 42} 43 44func (x *HttpRequestHeaderMatchInput) Reset() { 45 *x = HttpRequestHeaderMatchInput{} 46 if protoimpl.UnsafeEnabled { 47 mi := &file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[0] 48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 49 ms.StoreMessageInfo(mi) 50 } 51} 52 53func (x *HttpRequestHeaderMatchInput) String() string { 54 return protoimpl.X.MessageStringOf(x) 55} 56 57func (*HttpRequestHeaderMatchInput) ProtoMessage() {} 58 59func (x *HttpRequestHeaderMatchInput) ProtoReflect() protoreflect.Message { 60 mi := &file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[0] 61 if protoimpl.UnsafeEnabled && x != nil { 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 if ms.LoadMessageInfo() == nil { 64 ms.StoreMessageInfo(mi) 65 } 66 return ms 67 } 68 return mi.MessageOf(x) 69} 70 71// Deprecated: Use HttpRequestHeaderMatchInput.ProtoReflect.Descriptor instead. 72func (*HttpRequestHeaderMatchInput) Descriptor() ([]byte, []int) { 73 return file_envoy_type_matcher_v3_http_inputs_proto_rawDescGZIP(), []int{0} 74} 75 76func (x *HttpRequestHeaderMatchInput) GetHeaderName() string { 77 if x != nil { 78 return x.HeaderName 79 } 80 return "" 81} 82 83// Match input indicates that matching should be done on a specific request trailer. 84// The resulting input string will be all headers for the given key joined by a comma, 85// e.g. if the request contains two 'foo' headers with value 'bar' and 'baz', the input 86// string will be 'bar,baz'. 87// [#comment:TODO(snowp): Link to unified matching docs.] 88type HttpRequestTrailerMatchInput struct { 89 state protoimpl.MessageState 90 sizeCache protoimpl.SizeCache 91 unknownFields protoimpl.UnknownFields 92 93 // The request trailer to match on. 94 HeaderName string `protobuf:"bytes,1,opt,name=header_name,json=headerName,proto3" json:"header_name,omitempty"` 95} 96 97func (x *HttpRequestTrailerMatchInput) Reset() { 98 *x = HttpRequestTrailerMatchInput{} 99 if protoimpl.UnsafeEnabled { 100 mi := &file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[1] 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 ms.StoreMessageInfo(mi) 103 } 104} 105 106func (x *HttpRequestTrailerMatchInput) String() string { 107 return protoimpl.X.MessageStringOf(x) 108} 109 110func (*HttpRequestTrailerMatchInput) ProtoMessage() {} 111 112func (x *HttpRequestTrailerMatchInput) ProtoReflect() protoreflect.Message { 113 mi := &file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[1] 114 if protoimpl.UnsafeEnabled && x != nil { 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 116 if ms.LoadMessageInfo() == nil { 117 ms.StoreMessageInfo(mi) 118 } 119 return ms 120 } 121 return mi.MessageOf(x) 122} 123 124// Deprecated: Use HttpRequestTrailerMatchInput.ProtoReflect.Descriptor instead. 125func (*HttpRequestTrailerMatchInput) Descriptor() ([]byte, []int) { 126 return file_envoy_type_matcher_v3_http_inputs_proto_rawDescGZIP(), []int{1} 127} 128 129func (x *HttpRequestTrailerMatchInput) GetHeaderName() string { 130 if x != nil { 131 return x.HeaderName 132 } 133 return "" 134} 135 136// Match input indicating that matching should be done on a specific response header. 137// The resulting input string will be all headers for the given key joined by a comma, 138// e.g. if the response contains two 'foo' headers with value 'bar' and 'baz', the input 139// string will be 'bar,baz'. 140// [#comment:TODO(snowp): Link to unified matching docs.] 141type HttpResponseHeaderMatchInput struct { 142 state protoimpl.MessageState 143 sizeCache protoimpl.SizeCache 144 unknownFields protoimpl.UnknownFields 145 146 // The response header to match on. 147 HeaderName string `protobuf:"bytes,1,opt,name=header_name,json=headerName,proto3" json:"header_name,omitempty"` 148} 149 150func (x *HttpResponseHeaderMatchInput) Reset() { 151 *x = HttpResponseHeaderMatchInput{} 152 if protoimpl.UnsafeEnabled { 153 mi := &file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[2] 154 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 155 ms.StoreMessageInfo(mi) 156 } 157} 158 159func (x *HttpResponseHeaderMatchInput) String() string { 160 return protoimpl.X.MessageStringOf(x) 161} 162 163func (*HttpResponseHeaderMatchInput) ProtoMessage() {} 164 165func (x *HttpResponseHeaderMatchInput) ProtoReflect() protoreflect.Message { 166 mi := &file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[2] 167 if protoimpl.UnsafeEnabled && x != nil { 168 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 169 if ms.LoadMessageInfo() == nil { 170 ms.StoreMessageInfo(mi) 171 } 172 return ms 173 } 174 return mi.MessageOf(x) 175} 176 177// Deprecated: Use HttpResponseHeaderMatchInput.ProtoReflect.Descriptor instead. 178func (*HttpResponseHeaderMatchInput) Descriptor() ([]byte, []int) { 179 return file_envoy_type_matcher_v3_http_inputs_proto_rawDescGZIP(), []int{2} 180} 181 182func (x *HttpResponseHeaderMatchInput) GetHeaderName() string { 183 if x != nil { 184 return x.HeaderName 185 } 186 return "" 187} 188 189// Match input indicates that matching should be done on a specific response trailer. 190// The resulting input string will be all headers for the given key joined by a comma, 191// e.g. if the request contains two 'foo' headers with value 'bar' and 'baz', the input 192// string will be 'bar,baz'. 193// [#comment:TODO(snowp): Link to unified matching docs.] 194type HttpResponseTrailerMatchInput struct { 195 state protoimpl.MessageState 196 sizeCache protoimpl.SizeCache 197 unknownFields protoimpl.UnknownFields 198 199 // The response trailer to match on. 200 HeaderName string `protobuf:"bytes,1,opt,name=header_name,json=headerName,proto3" json:"header_name,omitempty"` 201} 202 203func (x *HttpResponseTrailerMatchInput) Reset() { 204 *x = HttpResponseTrailerMatchInput{} 205 if protoimpl.UnsafeEnabled { 206 mi := &file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[3] 207 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 208 ms.StoreMessageInfo(mi) 209 } 210} 211 212func (x *HttpResponseTrailerMatchInput) String() string { 213 return protoimpl.X.MessageStringOf(x) 214} 215 216func (*HttpResponseTrailerMatchInput) ProtoMessage() {} 217 218func (x *HttpResponseTrailerMatchInput) ProtoReflect() protoreflect.Message { 219 mi := &file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[3] 220 if protoimpl.UnsafeEnabled && x != nil { 221 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 222 if ms.LoadMessageInfo() == nil { 223 ms.StoreMessageInfo(mi) 224 } 225 return ms 226 } 227 return mi.MessageOf(x) 228} 229 230// Deprecated: Use HttpResponseTrailerMatchInput.ProtoReflect.Descriptor instead. 231func (*HttpResponseTrailerMatchInput) Descriptor() ([]byte, []int) { 232 return file_envoy_type_matcher_v3_http_inputs_proto_rawDescGZIP(), []int{3} 233} 234 235func (x *HttpResponseTrailerMatchInput) GetHeaderName() string { 236 if x != nil { 237 return x.HeaderName 238 } 239 return "" 240} 241 242var File_envoy_type_matcher_v3_http_inputs_proto protoreflect.FileDescriptor 243 244var file_envoy_type_matcher_v3_http_inputs_proto_rawDesc = []byte{ 245 0x0a, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x61, 0x74, 246 0x63, 0x68, 0x65, 0x72, 0x2f, 0x76, 0x33, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x69, 0x6e, 0x70, 247 0x75, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 248 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x76, 0x33, 249 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 250 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 251 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 252 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x1b, 0x48, 0x74, 0x74, 0x70, 253 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4d, 0x61, 0x74, 254 0x63, 0x68, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x2c, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 255 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xfa, 0x42, 256 0x08, 0x72, 0x06, 0xc0, 0x01, 0x01, 0xc8, 0x01, 0x00, 0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x65, 257 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4c, 0x0a, 0x1c, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 258 0x75, 0x65, 0x73, 0x74, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 259 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x2c, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 260 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xfa, 0x42, 0x08, 0x72, 261 0x06, 0xc0, 0x01, 0x01, 0xc8, 0x01, 0x00, 0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 262 0x61, 0x6d, 0x65, 0x22, 0x4c, 0x0a, 0x1c, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 263 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6e, 264 0x70, 0x75, 0x74, 0x12, 0x2c, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x6e, 0x61, 265 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xfa, 0x42, 0x08, 0x72, 0x06, 0xc0, 266 0x01, 0x01, 0xc8, 0x01, 0x00, 0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 267 0x65, 0x22, 0x4d, 0x0a, 0x1d, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 268 0x65, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x70, 269 0x75, 0x74, 0x12, 0x2c, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 270 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xfa, 0x42, 0x08, 0x72, 0x06, 0xc0, 0x01, 271 0x01, 0xc8, 0x01, 0x00, 0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 272 0x42, 0x40, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 273 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 274 0x63, 0x68, 0x65, 0x72, 0x2e, 0x76, 0x33, 0x42, 0x0f, 0x48, 0x74, 0x74, 0x70, 0x49, 0x6e, 0x70, 275 0x75, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 276 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 277} 278 279var ( 280 file_envoy_type_matcher_v3_http_inputs_proto_rawDescOnce sync.Once 281 file_envoy_type_matcher_v3_http_inputs_proto_rawDescData = file_envoy_type_matcher_v3_http_inputs_proto_rawDesc 282) 283 284func file_envoy_type_matcher_v3_http_inputs_proto_rawDescGZIP() []byte { 285 file_envoy_type_matcher_v3_http_inputs_proto_rawDescOnce.Do(func() { 286 file_envoy_type_matcher_v3_http_inputs_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_type_matcher_v3_http_inputs_proto_rawDescData) 287 }) 288 return file_envoy_type_matcher_v3_http_inputs_proto_rawDescData 289} 290 291var file_envoy_type_matcher_v3_http_inputs_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 292var file_envoy_type_matcher_v3_http_inputs_proto_goTypes = []interface{}{ 293 (*HttpRequestHeaderMatchInput)(nil), // 0: envoy.type.matcher.v3.HttpRequestHeaderMatchInput 294 (*HttpRequestTrailerMatchInput)(nil), // 1: envoy.type.matcher.v3.HttpRequestTrailerMatchInput 295 (*HttpResponseHeaderMatchInput)(nil), // 2: envoy.type.matcher.v3.HttpResponseHeaderMatchInput 296 (*HttpResponseTrailerMatchInput)(nil), // 3: envoy.type.matcher.v3.HttpResponseTrailerMatchInput 297} 298var file_envoy_type_matcher_v3_http_inputs_proto_depIdxs = []int32{ 299 0, // [0:0] is the sub-list for method output_type 300 0, // [0:0] is the sub-list for method input_type 301 0, // [0:0] is the sub-list for extension type_name 302 0, // [0:0] is the sub-list for extension extendee 303 0, // [0:0] is the sub-list for field type_name 304} 305 306func init() { file_envoy_type_matcher_v3_http_inputs_proto_init() } 307func file_envoy_type_matcher_v3_http_inputs_proto_init() { 308 if File_envoy_type_matcher_v3_http_inputs_proto != nil { 309 return 310 } 311 if !protoimpl.UnsafeEnabled { 312 file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 313 switch v := v.(*HttpRequestHeaderMatchInput); i { 314 case 0: 315 return &v.state 316 case 1: 317 return &v.sizeCache 318 case 2: 319 return &v.unknownFields 320 default: 321 return nil 322 } 323 } 324 file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 325 switch v := v.(*HttpRequestTrailerMatchInput); i { 326 case 0: 327 return &v.state 328 case 1: 329 return &v.sizeCache 330 case 2: 331 return &v.unknownFields 332 default: 333 return nil 334 } 335 } 336 file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 337 switch v := v.(*HttpResponseHeaderMatchInput); i { 338 case 0: 339 return &v.state 340 case 1: 341 return &v.sizeCache 342 case 2: 343 return &v.unknownFields 344 default: 345 return nil 346 } 347 } 348 file_envoy_type_matcher_v3_http_inputs_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 349 switch v := v.(*HttpResponseTrailerMatchInput); i { 350 case 0: 351 return &v.state 352 case 1: 353 return &v.sizeCache 354 case 2: 355 return &v.unknownFields 356 default: 357 return nil 358 } 359 } 360 } 361 type x struct{} 362 out := protoimpl.TypeBuilder{ 363 File: protoimpl.DescBuilder{ 364 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 365 RawDescriptor: file_envoy_type_matcher_v3_http_inputs_proto_rawDesc, 366 NumEnums: 0, 367 NumMessages: 4, 368 NumExtensions: 0, 369 NumServices: 0, 370 }, 371 GoTypes: file_envoy_type_matcher_v3_http_inputs_proto_goTypes, 372 DependencyIndexes: file_envoy_type_matcher_v3_http_inputs_proto_depIdxs, 373 MessageInfos: file_envoy_type_matcher_v3_http_inputs_proto_msgTypes, 374 }.Build() 375 File_envoy_type_matcher_v3_http_inputs_proto = out.File 376 file_envoy_type_matcher_v3_http_inputs_proto_rawDesc = nil 377 file_envoy_type_matcher_v3_http_inputs_proto_goTypes = nil 378 file_envoy_type_matcher_v3_http_inputs_proto_depIdxs = nil 379} 380