1// Code generated by protoc-gen-go. DO NOT EDIT. 2// versions: 3// protoc-gen-go v1.25.0 4// protoc v3.14.0 5// source: envoy/config/filter/http/squash/v2/squash.proto 6 7package envoy_config_filter_http_squash_v2 8 9import ( 10 _ "github.com/cncf/udpa/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 duration "github.com/golang/protobuf/ptypes/duration" 14 _struct "github.com/golang/protobuf/ptypes/struct" 15 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 16 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 17 reflect "reflect" 18 sync "sync" 19) 20 21const ( 22 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26) 27 28// This is a compile-time assertion that a sufficiently up-to-date version 29// of the legacy proto package is being used. 30const _ = proto.ProtoPackageIsVersion4 31 32// [#next-free-field: 6] 33type Squash struct { 34 state protoimpl.MessageState 35 sizeCache protoimpl.SizeCache 36 unknownFields protoimpl.UnknownFields 37 38 // The name of the cluster that hosts the Squash server. 39 Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` 40 // When the filter requests the Squash server to create a DebugAttachment, it will use this 41 // structure as template for the body of the request. It can contain reference to environment 42 // variables in the form of '{{ ENV_VAR_NAME }}'. These can be used to provide the Squash server 43 // with more information to find the process to attach the debugger to. For example, in a 44 // Istio/k8s environment, this will contain information on the pod: 45 // 46 // .. code-block:: json 47 // 48 // { 49 // "spec": { 50 // "attachment": { 51 // "pod": "{{ POD_NAME }}", 52 // "namespace": "{{ POD_NAMESPACE }}" 53 // }, 54 // "match_request": true 55 // } 56 // } 57 // 58 // (where POD_NAME, POD_NAMESPACE are configured in the pod via the Downward API) 59 AttachmentTemplate *_struct.Struct `protobuf:"bytes,2,opt,name=attachment_template,json=attachmentTemplate,proto3" json:"attachment_template,omitempty"` 60 // The timeout for individual requests sent to the Squash cluster. Defaults to 1 second. 61 RequestTimeout *duration.Duration `protobuf:"bytes,3,opt,name=request_timeout,json=requestTimeout,proto3" json:"request_timeout,omitempty"` 62 // The total timeout Squash will delay a request and wait for it to be attached. Defaults to 60 63 // seconds. 64 AttachmentTimeout *duration.Duration `protobuf:"bytes,4,opt,name=attachment_timeout,json=attachmentTimeout,proto3" json:"attachment_timeout,omitempty"` 65 // Amount of time to poll for the status of the attachment object in the Squash server 66 // (to check if has been attached). Defaults to 1 second. 67 AttachmentPollPeriod *duration.Duration `protobuf:"bytes,5,opt,name=attachment_poll_period,json=attachmentPollPeriod,proto3" json:"attachment_poll_period,omitempty"` 68} 69 70func (x *Squash) Reset() { 71 *x = Squash{} 72 if protoimpl.UnsafeEnabled { 73 mi := &file_envoy_config_filter_http_squash_v2_squash_proto_msgTypes[0] 74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 75 ms.StoreMessageInfo(mi) 76 } 77} 78 79func (x *Squash) String() string { 80 return protoimpl.X.MessageStringOf(x) 81} 82 83func (*Squash) ProtoMessage() {} 84 85func (x *Squash) ProtoReflect() protoreflect.Message { 86 mi := &file_envoy_config_filter_http_squash_v2_squash_proto_msgTypes[0] 87 if protoimpl.UnsafeEnabled && x != nil { 88 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 89 if ms.LoadMessageInfo() == nil { 90 ms.StoreMessageInfo(mi) 91 } 92 return ms 93 } 94 return mi.MessageOf(x) 95} 96 97// Deprecated: Use Squash.ProtoReflect.Descriptor instead. 98func (*Squash) Descriptor() ([]byte, []int) { 99 return file_envoy_config_filter_http_squash_v2_squash_proto_rawDescGZIP(), []int{0} 100} 101 102func (x *Squash) GetCluster() string { 103 if x != nil { 104 return x.Cluster 105 } 106 return "" 107} 108 109func (x *Squash) GetAttachmentTemplate() *_struct.Struct { 110 if x != nil { 111 return x.AttachmentTemplate 112 } 113 return nil 114} 115 116func (x *Squash) GetRequestTimeout() *duration.Duration { 117 if x != nil { 118 return x.RequestTimeout 119 } 120 return nil 121} 122 123func (x *Squash) GetAttachmentTimeout() *duration.Duration { 124 if x != nil { 125 return x.AttachmentTimeout 126 } 127 return nil 128} 129 130func (x *Squash) GetAttachmentPollPeriod() *duration.Duration { 131 if x != nil { 132 return x.AttachmentPollPeriod 133 } 134 return nil 135} 136 137var File_envoy_config_filter_http_squash_v2_squash_proto protoreflect.FileDescriptor 138 139var file_envoy_config_filter_http_squash_v2_squash_proto_rawDesc = []byte{ 140 0x0a, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x66, 141 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x73, 0x71, 0x75, 0x61, 0x73, 142 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x71, 0x75, 0x61, 0x73, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 143 0x6f, 0x12, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 144 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x73, 0x71, 0x75, 0x61, 145 0x73, 0x68, 0x2e, 0x76, 0x32, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 146 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 147 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 148 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 149 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 150 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 151 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 152 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 153 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 154 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd4, 0x02, 0x0a, 0x06, 155 0x53, 0x71, 0x75, 0x61, 0x73, 0x68, 0x12, 0x21, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 156 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 157 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x13, 0x61, 0x74, 0x74, 158 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 159 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 160 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 161 0x12, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 162 0x61, 0x74, 0x65, 0x12, 0x42, 0x0a, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 163 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 164 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 165 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 166 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x48, 0x0a, 0x12, 0x61, 0x74, 0x74, 0x61, 0x63, 167 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, 168 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 169 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 170 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 171 0x74, 0x12, 0x4f, 0x0a, 0x16, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 172 0x70, 0x6f, 0x6c, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 173 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 174 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x61, 0x74, 175 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x6c, 0x6c, 0x50, 0x65, 0x72, 0x69, 176 0x6f, 0x64, 0x42, 0x78, 0x0a, 0x30, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 177 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 178 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x73, 0x71, 0x75, 179 0x61, 0x73, 0x68, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x53, 0x71, 0x75, 0x61, 0x73, 0x68, 0x50, 0x72, 180 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x29, 0x12, 0x27, 0x65, 0x6e, 0x76, 181 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 182 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x73, 0x71, 0x75, 0x61, 0x73, 183 0x68, 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 184 0x6f, 0x74, 0x6f, 0x33, 185} 186 187var ( 188 file_envoy_config_filter_http_squash_v2_squash_proto_rawDescOnce sync.Once 189 file_envoy_config_filter_http_squash_v2_squash_proto_rawDescData = file_envoy_config_filter_http_squash_v2_squash_proto_rawDesc 190) 191 192func file_envoy_config_filter_http_squash_v2_squash_proto_rawDescGZIP() []byte { 193 file_envoy_config_filter_http_squash_v2_squash_proto_rawDescOnce.Do(func() { 194 file_envoy_config_filter_http_squash_v2_squash_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_filter_http_squash_v2_squash_proto_rawDescData) 195 }) 196 return file_envoy_config_filter_http_squash_v2_squash_proto_rawDescData 197} 198 199var file_envoy_config_filter_http_squash_v2_squash_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 200var file_envoy_config_filter_http_squash_v2_squash_proto_goTypes = []interface{}{ 201 (*Squash)(nil), // 0: envoy.config.filter.http.squash.v2.Squash 202 (*_struct.Struct)(nil), // 1: google.protobuf.Struct 203 (*duration.Duration)(nil), // 2: google.protobuf.Duration 204} 205var file_envoy_config_filter_http_squash_v2_squash_proto_depIdxs = []int32{ 206 1, // 0: envoy.config.filter.http.squash.v2.Squash.attachment_template:type_name -> google.protobuf.Struct 207 2, // 1: envoy.config.filter.http.squash.v2.Squash.request_timeout:type_name -> google.protobuf.Duration 208 2, // 2: envoy.config.filter.http.squash.v2.Squash.attachment_timeout:type_name -> google.protobuf.Duration 209 2, // 3: envoy.config.filter.http.squash.v2.Squash.attachment_poll_period:type_name -> google.protobuf.Duration 210 4, // [4:4] is the sub-list for method output_type 211 4, // [4:4] is the sub-list for method input_type 212 4, // [4:4] is the sub-list for extension type_name 213 4, // [4:4] is the sub-list for extension extendee 214 0, // [0:4] is the sub-list for field type_name 215} 216 217func init() { file_envoy_config_filter_http_squash_v2_squash_proto_init() } 218func file_envoy_config_filter_http_squash_v2_squash_proto_init() { 219 if File_envoy_config_filter_http_squash_v2_squash_proto != nil { 220 return 221 } 222 if !protoimpl.UnsafeEnabled { 223 file_envoy_config_filter_http_squash_v2_squash_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 224 switch v := v.(*Squash); i { 225 case 0: 226 return &v.state 227 case 1: 228 return &v.sizeCache 229 case 2: 230 return &v.unknownFields 231 default: 232 return nil 233 } 234 } 235 } 236 type x struct{} 237 out := protoimpl.TypeBuilder{ 238 File: protoimpl.DescBuilder{ 239 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 240 RawDescriptor: file_envoy_config_filter_http_squash_v2_squash_proto_rawDesc, 241 NumEnums: 0, 242 NumMessages: 1, 243 NumExtensions: 0, 244 NumServices: 0, 245 }, 246 GoTypes: file_envoy_config_filter_http_squash_v2_squash_proto_goTypes, 247 DependencyIndexes: file_envoy_config_filter_http_squash_v2_squash_proto_depIdxs, 248 MessageInfos: file_envoy_config_filter_http_squash_v2_squash_proto_msgTypes, 249 }.Build() 250 File_envoy_config_filter_http_squash_v2_squash_proto = out.File 251 file_envoy_config_filter_http_squash_v2_squash_proto_rawDesc = nil 252 file_envoy_config_filter_http_squash_v2_squash_proto_goTypes = nil 253 file_envoy_config_filter_http_squash_v2_squash_proto_depIdxs = nil 254} 255