1// Code generated by protoc-gen-go. DO NOT EDIT. 2// versions: 3// protoc-gen-go v1.25.0 4// protoc v3.16.0 5// source: envoy/extensions/filters/http/kill_request/v3/kill_request.proto 6 7package envoy_extensions_filters_http_kill_request_v3 8 9import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3" 12 _ "github.com/envoyproxy/protoc-gen-validate/validate" 13 proto "github.com/golang/protobuf/proto" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18) 19 20const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25) 26 27// This is a compile-time assertion that a sufficiently up-to-date version 28// of the legacy proto package is being used. 29const _ = proto.ProtoPackageIsVersion4 30 31// On which direction should the filter check for the `kill_request_header`. 32// Default to `REQUEST` if unspecified. 33type KillRequest_Direction int32 34 35const ( 36 KillRequest_REQUEST KillRequest_Direction = 0 37 KillRequest_RESPONSE KillRequest_Direction = 1 38) 39 40// Enum value maps for KillRequest_Direction. 41var ( 42 KillRequest_Direction_name = map[int32]string{ 43 0: "REQUEST", 44 1: "RESPONSE", 45 } 46 KillRequest_Direction_value = map[string]int32{ 47 "REQUEST": 0, 48 "RESPONSE": 1, 49 } 50) 51 52func (x KillRequest_Direction) Enum() *KillRequest_Direction { 53 p := new(KillRequest_Direction) 54 *p = x 55 return p 56} 57 58func (x KillRequest_Direction) String() string { 59 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 60} 61 62func (KillRequest_Direction) Descriptor() protoreflect.EnumDescriptor { 63 return file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_enumTypes[0].Descriptor() 64} 65 66func (KillRequest_Direction) Type() protoreflect.EnumType { 67 return &file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_enumTypes[0] 68} 69 70func (x KillRequest_Direction) Number() protoreflect.EnumNumber { 71 return protoreflect.EnumNumber(x) 72} 73 74// Deprecated: Use KillRequest_Direction.Descriptor instead. 75func (KillRequest_Direction) EnumDescriptor() ([]byte, []int) { 76 return file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDescGZIP(), []int{0, 0} 77} 78 79// Configuration for KillRequest filter. 80type KillRequest struct { 81 state protoimpl.MessageState 82 sizeCache protoimpl.SizeCache 83 unknownFields protoimpl.UnknownFields 84 85 // The probability that a Kill request will be triggered. 86 Probability *v3.FractionalPercent `protobuf:"bytes,1,opt,name=probability,proto3" json:"probability,omitempty"` 87 // The name of the kill request header. If this field is not empty, it will override the :ref:`default header <config_http_filters_kill_request_http_header>` name. Otherwise the default header name will be used. 88 KillRequestHeader string `protobuf:"bytes,2,opt,name=kill_request_header,json=killRequestHeader,proto3" json:"kill_request_header,omitempty"` 89 Direction KillRequest_Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=envoy.extensions.filters.http.kill_request.v3.KillRequest_Direction" json:"direction,omitempty"` 90} 91 92func (x *KillRequest) Reset() { 93 *x = KillRequest{} 94 if protoimpl.UnsafeEnabled { 95 mi := &file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_msgTypes[0] 96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 ms.StoreMessageInfo(mi) 98 } 99} 100 101func (x *KillRequest) String() string { 102 return protoimpl.X.MessageStringOf(x) 103} 104 105func (*KillRequest) ProtoMessage() {} 106 107func (x *KillRequest) ProtoReflect() protoreflect.Message { 108 mi := &file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_msgTypes[0] 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 KillRequest.ProtoReflect.Descriptor instead. 120func (*KillRequest) Descriptor() ([]byte, []int) { 121 return file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDescGZIP(), []int{0} 122} 123 124func (x *KillRequest) GetProbability() *v3.FractionalPercent { 125 if x != nil { 126 return x.Probability 127 } 128 return nil 129} 130 131func (x *KillRequest) GetKillRequestHeader() string { 132 if x != nil { 133 return x.KillRequestHeader 134 } 135 return "" 136} 137 138func (x *KillRequest) GetDirection() KillRequest_Direction { 139 if x != nil { 140 return x.Direction 141 } 142 return KillRequest_REQUEST 143} 144 145var File_envoy_extensions_filters_http_kill_request_v3_kill_request_proto protoreflect.FileDescriptor 146 147var file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDesc = []byte{ 148 0x0a, 0x40, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 149 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 150 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2f, 0x76, 0x33, 0x2f, 151 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 152 0x74, 0x6f, 0x12, 0x2d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 153 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 154 0x70, 0x2e, 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x76, 155 0x33, 0x1a, 0x1b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x76, 0x33, 156 0x2f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 157 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 158 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 159 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 160 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4, 0x02, 0x0a, 0x0b, 0x4b, 0x69, 0x6c, 0x6c, 0x52, 161 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x62, 162 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6e, 163 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x46, 0x72, 0x61, 0x63, 164 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x70, 165 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x3b, 0x0a, 0x13, 0x6b, 0x69, 166 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 167 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xfa, 0x42, 0x08, 0x72, 0x06, 0xc0, 0x01, 168 0x02, 0xc8, 0x01, 0x00, 0x52, 0x11, 0x6b, 0x69, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 169 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x6c, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 170 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x44, 0x2e, 0x65, 0x6e, 0x76, 171 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 172 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 173 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x4b, 0x69, 0x6c, 0x6c, 0x52, 174 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 175 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 176 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x26, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 177 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x00, 0x12, 178 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x01, 0x42, 0x59, 0x0a, 179 0x3b, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 180 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 181 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x6b, 0x69, 0x6c, 182 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x33, 0x42, 0x10, 0x4b, 0x69, 183 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 184 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 185} 186 187var ( 188 file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDescOnce sync.Once 189 file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDescData = file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDesc 190) 191 192func file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDescGZIP() []byte { 193 file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDescOnce.Do(func() { 194 file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDescData) 195 }) 196 return file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDescData 197} 198 199var file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 200var file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 201var file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_goTypes = []interface{}{ 202 (KillRequest_Direction)(0), // 0: envoy.extensions.filters.http.kill_request.v3.KillRequest.Direction 203 (*KillRequest)(nil), // 1: envoy.extensions.filters.http.kill_request.v3.KillRequest 204 (*v3.FractionalPercent)(nil), // 2: envoy.type.v3.FractionalPercent 205} 206var file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_depIdxs = []int32{ 207 2, // 0: envoy.extensions.filters.http.kill_request.v3.KillRequest.probability:type_name -> envoy.type.v3.FractionalPercent 208 0, // 1: envoy.extensions.filters.http.kill_request.v3.KillRequest.direction:type_name -> envoy.extensions.filters.http.kill_request.v3.KillRequest.Direction 209 2, // [2:2] is the sub-list for method output_type 210 2, // [2:2] is the sub-list for method input_type 211 2, // [2:2] is the sub-list for extension type_name 212 2, // [2:2] is the sub-list for extension extendee 213 0, // [0:2] is the sub-list for field type_name 214} 215 216func init() { file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_init() } 217func file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_init() { 218 if File_envoy_extensions_filters_http_kill_request_v3_kill_request_proto != nil { 219 return 220 } 221 if !protoimpl.UnsafeEnabled { 222 file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 223 switch v := v.(*KillRequest); i { 224 case 0: 225 return &v.state 226 case 1: 227 return &v.sizeCache 228 case 2: 229 return &v.unknownFields 230 default: 231 return nil 232 } 233 } 234 } 235 type x struct{} 236 out := protoimpl.TypeBuilder{ 237 File: protoimpl.DescBuilder{ 238 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 239 RawDescriptor: file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDesc, 240 NumEnums: 1, 241 NumMessages: 1, 242 NumExtensions: 0, 243 NumServices: 0, 244 }, 245 GoTypes: file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_goTypes, 246 DependencyIndexes: file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_depIdxs, 247 EnumInfos: file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_enumTypes, 248 MessageInfos: file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_msgTypes, 249 }.Build() 250 File_envoy_extensions_filters_http_kill_request_v3_kill_request_proto = out.File 251 file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_rawDesc = nil 252 file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_goTypes = nil 253 file_envoy_extensions_filters_http_kill_request_v3_kill_request_proto_depIdxs = nil 254} 255