diff --git a/envoy/COMMIT b/envoy/COMMIT index 667b798440..48a9518484 100644 --- a/envoy/COMMIT +++ b/envoy/COMMIT @@ -1 +1 @@ -67b69c9038402b88953a2ab171ae38cab5cb23ab +16759b97e02131cc9c8ca64d13cf663c75dae047 diff --git a/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.go b/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.go new file mode 100755 index 0000000000..ae0d429a27 --- /dev/null +++ b/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.go @@ -0,0 +1,521 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc v5.26.1 +// source: envoy/extensions/filters/http/proto_message_extraction/v3/config.proto + +package proto_message_extractionv3 + +import ( + _ "github.com/cncf/xds/go/udpa/annotations" + _ "github.com/cncf/xds/go/xds/annotations/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ProtoMessageExtractionConfig_ExtractMode int32 + +const ( + ProtoMessageExtractionConfig_ExtractMode_UNSPECIFIED ProtoMessageExtractionConfig_ExtractMode = 0 + // The filter will extract the first and the last message for + // for streaming cases, containing + // client-side streaming, server-side streaming or bi-directional streaming. + ProtoMessageExtractionConfig_FIRST_AND_LAST ProtoMessageExtractionConfig_ExtractMode = 1 +) + +// Enum value maps for ProtoMessageExtractionConfig_ExtractMode. +var ( + ProtoMessageExtractionConfig_ExtractMode_name = map[int32]string{ + 0: "ExtractMode_UNSPECIFIED", + 1: "FIRST_AND_LAST", + } + ProtoMessageExtractionConfig_ExtractMode_value = map[string]int32{ + "ExtractMode_UNSPECIFIED": 0, + "FIRST_AND_LAST": 1, + } +) + +func (x ProtoMessageExtractionConfig_ExtractMode) Enum() *ProtoMessageExtractionConfig_ExtractMode { + p := new(ProtoMessageExtractionConfig_ExtractMode) + *p = x + return p +} + +func (x ProtoMessageExtractionConfig_ExtractMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProtoMessageExtractionConfig_ExtractMode) Descriptor() protoreflect.EnumDescriptor { + return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes[0].Descriptor() +} + +func (ProtoMessageExtractionConfig_ExtractMode) Type() protoreflect.EnumType { + return &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes[0] +} + +func (x ProtoMessageExtractionConfig_ExtractMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProtoMessageExtractionConfig_ExtractMode.Descriptor instead. +func (ProtoMessageExtractionConfig_ExtractMode) EnumDescriptor() ([]byte, []int) { + return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescGZIP(), []int{0, 0} +} + +type MethodExtraction_ExtractDirective int32 + +const ( + MethodExtraction_ExtractDirective_UNSPECIFIED MethodExtraction_ExtractDirective = 0 + // The value of this field will be extracted. + MethodExtraction_EXTRACT MethodExtraction_ExtractDirective = 1 + // It should be only annotated on Message type fields so if the field isn't + // empty, an empty Struct will be extracted. + MethodExtraction_EXTRACT_REDACT MethodExtraction_ExtractDirective = 2 +) + +// Enum value maps for MethodExtraction_ExtractDirective. +var ( + MethodExtraction_ExtractDirective_name = map[int32]string{ + 0: "ExtractDirective_UNSPECIFIED", + 1: "EXTRACT", + 2: "EXTRACT_REDACT", + } + MethodExtraction_ExtractDirective_value = map[string]int32{ + "ExtractDirective_UNSPECIFIED": 0, + "EXTRACT": 1, + "EXTRACT_REDACT": 2, + } +) + +func (x MethodExtraction_ExtractDirective) Enum() *MethodExtraction_ExtractDirective { + p := new(MethodExtraction_ExtractDirective) + *p = x + return p +} + +func (x MethodExtraction_ExtractDirective) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MethodExtraction_ExtractDirective) Descriptor() protoreflect.EnumDescriptor { + return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes[1].Descriptor() +} + +func (MethodExtraction_ExtractDirective) Type() protoreflect.EnumType { + return &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes[1] +} + +func (x MethodExtraction_ExtractDirective) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MethodExtraction_ExtractDirective.Descriptor instead. +func (MethodExtraction_ExtractDirective) EnumDescriptor() ([]byte, []int) { + return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescGZIP(), []int{1, 0} +} + +type ProtoMessageExtractionConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The proto descriptor set binary for the gRPC services. + // + // Types that are assignable to DescriptorSet: + // + // *ProtoMessageExtractionConfig_DataSource + // *ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata + DescriptorSet isProtoMessageExtractionConfig_DescriptorSet `protobuf_oneof:"descriptor_set"` + Mode ProtoMessageExtractionConfig_ExtractMode `protobuf:"varint,3,opt,name=mode,proto3,enum=envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig_ExtractMode" json:"mode,omitempty"` + // Specify the message extraction info. + // The key is the fully qualified gRPC method name. + // “${package}.${Service}.${Method}“, like + // “endpoints.examples.bookstore.BookStore.GetShelf“ + // + // The value is the message extraction information for individual gRPC + // methods. + ExtractionByMethod map[string]*MethodExtraction `protobuf:"bytes,4,rep,name=extraction_by_method,json=extractionByMethod,proto3" json:"extraction_by_method,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ProtoMessageExtractionConfig) Reset() { + *x = ProtoMessageExtractionConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProtoMessageExtractionConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProtoMessageExtractionConfig) ProtoMessage() {} + +func (x *ProtoMessageExtractionConfig) ProtoReflect() protoreflect.Message { + mi := &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProtoMessageExtractionConfig.ProtoReflect.Descriptor instead. +func (*ProtoMessageExtractionConfig) Descriptor() ([]byte, []int) { + return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescGZIP(), []int{0} +} + +func (m *ProtoMessageExtractionConfig) GetDescriptorSet() isProtoMessageExtractionConfig_DescriptorSet { + if m != nil { + return m.DescriptorSet + } + return nil +} + +func (x *ProtoMessageExtractionConfig) GetDataSource() *v3.DataSource { + if x, ok := x.GetDescriptorSet().(*ProtoMessageExtractionConfig_DataSource); ok { + return x.DataSource + } + return nil +} + +func (x *ProtoMessageExtractionConfig) GetProtoDescriptorTypedMetadata() string { + if x, ok := x.GetDescriptorSet().(*ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata); ok { + return x.ProtoDescriptorTypedMetadata + } + return "" +} + +func (x *ProtoMessageExtractionConfig) GetMode() ProtoMessageExtractionConfig_ExtractMode { + if x != nil { + return x.Mode + } + return ProtoMessageExtractionConfig_ExtractMode_UNSPECIFIED +} + +func (x *ProtoMessageExtractionConfig) GetExtractionByMethod() map[string]*MethodExtraction { + if x != nil { + return x.ExtractionByMethod + } + return nil +} + +type isProtoMessageExtractionConfig_DescriptorSet interface { + isProtoMessageExtractionConfig_DescriptorSet() +} + +type ProtoMessageExtractionConfig_DataSource struct { + // It could be passed by a local file through “Datasource.filename“ or + // embedded in the “Datasource.inline_bytes“. + DataSource *v3.DataSource `protobuf:"bytes,1,opt,name=data_source,json=dataSource,proto3,oneof"` +} + +type ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata struct { + // Unimplemented, the key of proto descriptor TypedMetadata. + // Among filters depending on the proto descriptor, we can have a + // TypedMetadata for proto descriptors, so that these filters can share one + // copy of proto descriptor in memory. + ProtoDescriptorTypedMetadata string `protobuf:"bytes,2,opt,name=proto_descriptor_typed_metadata,json=protoDescriptorTypedMetadata,proto3,oneof"` +} + +func (*ProtoMessageExtractionConfig_DataSource) isProtoMessageExtractionConfig_DescriptorSet() {} + +func (*ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata) isProtoMessageExtractionConfig_DescriptorSet() { +} + +// This message can be used to support per route config approach later even +// though the Istio doesn't support that so far. +type MethodExtraction struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The mapping of field path to its ExtractDirective for request messages + RequestExtractionByField map[string]MethodExtraction_ExtractDirective `protobuf:"bytes,2,rep,name=request_extraction_by_field,json=requestExtractionByField,proto3" json:"request_extraction_by_field,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction_ExtractDirective"` + // The mapping of field path to its ExtractDirective for response messages + ResponseExtractionByField map[string]MethodExtraction_ExtractDirective `protobuf:"bytes,3,rep,name=response_extraction_by_field,json=responseExtractionByField,proto3" json:"response_extraction_by_field,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction_ExtractDirective"` +} + +func (x *MethodExtraction) Reset() { + *x = MethodExtraction{} + if protoimpl.UnsafeEnabled { + mi := &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MethodExtraction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MethodExtraction) ProtoMessage() {} + +func (x *MethodExtraction) ProtoReflect() protoreflect.Message { + mi := &file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MethodExtraction.ProtoReflect.Descriptor instead. +func (*MethodExtraction) Descriptor() ([]byte, []int) { + return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescGZIP(), []int{1} +} + +func (x *MethodExtraction) GetRequestExtractionByField() map[string]MethodExtraction_ExtractDirective { + if x != nil { + return x.RequestExtractionByField + } + return nil +} + +func (x *MethodExtraction) GetResponseExtractionByField() map[string]MethodExtraction_ExtractDirective { + if x != nil { + return x.ResponseExtractionByField + } + return nil +} + +var File_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto protoreflect.FileDescriptor + +var file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDesc = []byte{ + 0x0a, 0x46, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x39, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, + 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, 0x05, 0x0a, 0x1c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x76, + 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, + 0x33, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0a, + 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x1f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x44, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x77, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x63, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, + 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0xa1, 0x01, 0x0a, + 0x14, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x79, 0x5f, 0x6d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x6f, 0x2e, 0x65, 0x6e, + 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0x79, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x12, 0x65, 0x78, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x1a, 0x92, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0x79, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x61, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4b, 0x2e, + 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3e, 0x0a, 0x0b, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x4d, + 0x6f, 0x64, 0x65, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x4c, + 0x41, 0x53, 0x54, 0x10, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x22, 0x9b, 0x06, 0x0a, 0x10, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xa8, 0x01, 0x0a, + 0x1b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x79, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x69, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, + 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x42, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x18, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x42, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0xab, 0x01, 0x0a, 0x1c, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x62, 0x79, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x6a, + 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x19, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0xa9, 0x01, 0x0a, 0x1d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x72, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x5c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, + 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0xaa, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x78, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x72, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x5c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, + 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, + 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x55, + 0x0a, 0x10, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x58, 0x54, 0x52, 0x41, 0x43, 0x54, 0x10, + 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x58, 0x54, 0x52, 0x41, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x44, + 0x41, 0x43, 0x54, 0x10, 0x02, 0x42, 0xe5, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, + 0xd2, 0xc6, 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 0x0a, 0x47, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, + 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, + 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, + 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x33, 0x42, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x7b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, + 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x76, 0x33, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x33, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescOnce sync.Once + file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescData = file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDesc +) + +func file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescGZIP() []byte { + file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescOnce.Do(func() { + file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescData) + }) + return file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDescData +} + +var file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_goTypes = []interface{}{ + (ProtoMessageExtractionConfig_ExtractMode)(0), // 0: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractMode + (MethodExtraction_ExtractDirective)(0), // 1: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ExtractDirective + (*ProtoMessageExtractionConfig)(nil), // 2: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig + (*MethodExtraction)(nil), // 3: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction + nil, // 4: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractionByMethodEntry + nil, // 5: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.RequestExtractionByFieldEntry + nil, // 6: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ResponseExtractionByFieldEntry + (*v3.DataSource)(nil), // 7: envoy.config.core.v3.DataSource +} +var file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_depIdxs = []int32{ + 7, // 0: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.data_source:type_name -> envoy.config.core.v3.DataSource + 0, // 1: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.mode:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractMode + 4, // 2: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.extraction_by_method:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractionByMethodEntry + 5, // 3: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.request_extraction_by_field:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.RequestExtractionByFieldEntry + 6, // 4: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.response_extraction_by_field:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ResponseExtractionByFieldEntry + 3, // 5: envoy.extensions.filters.http.proto_message_extraction.v3.ProtoMessageExtractionConfig.ExtractionByMethodEntry.value:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction + 1, // 6: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.RequestExtractionByFieldEntry.value:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ExtractDirective + 1, // 7: envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ResponseExtractionByFieldEntry.value:type_name -> envoy.extensions.filters.http.proto_message_extraction.v3.MethodExtraction.ExtractDirective + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_init() } +func file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_init() { + if File_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProtoMessageExtractionConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MethodExtraction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*ProtoMessageExtractionConfig_DataSource)(nil), + (*ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDesc, + NumEnums: 2, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_goTypes, + DependencyIndexes: file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_depIdxs, + EnumInfos: file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_enumTypes, + MessageInfos: file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_msgTypes, + }.Build() + File_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto = out.File + file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_rawDesc = nil + file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_goTypes = nil + file_envoy_extensions_filters_http_proto_message_extraction_v3_config_proto_depIdxs = nil +} diff --git a/envoy/extensions/filters/http/proto_message_logging/v3/config.pb.validate.go b/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.validate.go similarity index 51% rename from envoy/extensions/filters/http/proto_message_logging/v3/config.pb.validate.go rename to envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.validate.go index 7d64286194..7032a112f6 100755 --- a/envoy/extensions/filters/http/proto_message_logging/v3/config.pb.validate.go +++ b/envoy/extensions/filters/http/proto_message_extraction/v3/config.pb.validate.go @@ -1,8 +1,8 @@ //go:build !disable_pgv // Code generated by protoc-gen-validate. DO NOT EDIT. -// source: envoy/extensions/filters/http/proto_message_logging/v3/config.proto +// source: envoy/extensions/filters/http/proto_message_extraction/v3/config.proto -package proto_message_loggingv3 +package proto_message_extractionv3 import ( "bytes" @@ -36,22 +36,22 @@ var ( _ = sort.Sort ) -// Validate checks the field values on ProtoMessageLoggingConfig with the rules -// defined in the proto definition for this message. If any rules are +// Validate checks the field values on ProtoMessageExtractionConfig with the +// rules defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. -func (m *ProtoMessageLoggingConfig) Validate() error { +func (m *ProtoMessageExtractionConfig) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on ProtoMessageLoggingConfig with the +// ValidateAll checks the field values on ProtoMessageExtractionConfig with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in -// ProtoMessageLoggingConfigMultiError, or nil if none found. -func (m *ProtoMessageLoggingConfig) ValidateAll() error { +// ProtoMessageExtractionConfigMultiError, or nil if none found. +func (m *ProtoMessageExtractionConfig) ValidateAll() error { return m.validate(true) } -func (m *ProtoMessageLoggingConfig) validate(all bool) error { +func (m *ProtoMessageExtractionConfig) validate(all bool) error { if m == nil { return nil } @@ -61,33 +61,33 @@ func (m *ProtoMessageLoggingConfig) validate(all bool) error { // no validation rules for Mode { - sorted_keys := make([]string, len(m.GetLoggingByMethod())) + sorted_keys := make([]string, len(m.GetExtractionByMethod())) i := 0 - for key := range m.GetLoggingByMethod() { + for key := range m.GetExtractionByMethod() { sorted_keys[i] = key i++ } sort.Slice(sorted_keys, func(i, j int) bool { return sorted_keys[i] < sorted_keys[j] }) for _, key := range sorted_keys { - val := m.GetLoggingByMethod()[key] + val := m.GetExtractionByMethod()[key] _ = val - // no validation rules for LoggingByMethod[key] + // no validation rules for ExtractionByMethod[key] if all { switch v := interface{}(val).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { - errors = append(errors, ProtoMessageLoggingConfigValidationError{ - field: fmt.Sprintf("LoggingByMethod[%v]", key), + errors = append(errors, ProtoMessageExtractionConfigValidationError{ + field: fmt.Sprintf("ExtractionByMethod[%v]", key), reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { - errors = append(errors, ProtoMessageLoggingConfigValidationError{ - field: fmt.Sprintf("LoggingByMethod[%v]", key), + errors = append(errors, ProtoMessageExtractionConfigValidationError{ + field: fmt.Sprintf("ExtractionByMethod[%v]", key), reason: "embedded message failed validation", cause: err, }) @@ -95,8 +95,8 @@ func (m *ProtoMessageLoggingConfig) validate(all bool) error { } } else if v, ok := interface{}(val).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return ProtoMessageLoggingConfigValidationError{ - field: fmt.Sprintf("LoggingByMethod[%v]", key), + return ProtoMessageExtractionConfigValidationError{ + field: fmt.Sprintf("ExtractionByMethod[%v]", key), reason: "embedded message failed validation", cause: err, } @@ -107,9 +107,9 @@ func (m *ProtoMessageLoggingConfig) validate(all bool) error { } switch v := m.DescriptorSet.(type) { - case *ProtoMessageLoggingConfig_DataSource: + case *ProtoMessageExtractionConfig_DataSource: if v == nil { - err := ProtoMessageLoggingConfigValidationError{ + err := ProtoMessageExtractionConfigValidationError{ field: "DescriptorSet", reason: "oneof value cannot be a typed-nil", } @@ -123,7 +123,7 @@ func (m *ProtoMessageLoggingConfig) validate(all bool) error { switch v := interface{}(m.GetDataSource()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { - errors = append(errors, ProtoMessageLoggingConfigValidationError{ + errors = append(errors, ProtoMessageExtractionConfigValidationError{ field: "DataSource", reason: "embedded message failed validation", cause: err, @@ -131,7 +131,7 @@ func (m *ProtoMessageLoggingConfig) validate(all bool) error { } case interface{ Validate() error }: if err := v.Validate(); err != nil { - errors = append(errors, ProtoMessageLoggingConfigValidationError{ + errors = append(errors, ProtoMessageExtractionConfigValidationError{ field: "DataSource", reason: "embedded message failed validation", cause: err, @@ -140,7 +140,7 @@ func (m *ProtoMessageLoggingConfig) validate(all bool) error { } } else if v, ok := interface{}(m.GetDataSource()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return ProtoMessageLoggingConfigValidationError{ + return ProtoMessageExtractionConfigValidationError{ field: "DataSource", reason: "embedded message failed validation", cause: err, @@ -148,9 +148,9 @@ func (m *ProtoMessageLoggingConfig) validate(all bool) error { } } - case *ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata: + case *ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata: if v == nil { - err := ProtoMessageLoggingConfigValidationError{ + err := ProtoMessageExtractionConfigValidationError{ field: "DescriptorSet", reason: "oneof value cannot be a typed-nil", } @@ -165,19 +165,19 @@ func (m *ProtoMessageLoggingConfig) validate(all bool) error { } if len(errors) > 0 { - return ProtoMessageLoggingConfigMultiError(errors) + return ProtoMessageExtractionConfigMultiError(errors) } return nil } -// ProtoMessageLoggingConfigMultiError is an error wrapping multiple validation -// errors returned by ProtoMessageLoggingConfig.ValidateAll() if the -// designated constraints aren't met. -type ProtoMessageLoggingConfigMultiError []error +// ProtoMessageExtractionConfigMultiError is an error wrapping multiple +// validation errors returned by ProtoMessageExtractionConfig.ValidateAll() if +// the designated constraints aren't met. +type ProtoMessageExtractionConfigMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m ProtoMessageLoggingConfigMultiError) Error() string { +func (m ProtoMessageExtractionConfigMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -186,11 +186,12 @@ func (m ProtoMessageLoggingConfigMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m ProtoMessageLoggingConfigMultiError) AllErrors() []error { return m } +func (m ProtoMessageExtractionConfigMultiError) AllErrors() []error { return m } -// ProtoMessageLoggingConfigValidationError is the validation error returned by -// ProtoMessageLoggingConfig.Validate if the designated constraints aren't met. -type ProtoMessageLoggingConfigValidationError struct { +// ProtoMessageExtractionConfigValidationError is the validation error returned +// by ProtoMessageExtractionConfig.Validate if the designated constraints +// aren't met. +type ProtoMessageExtractionConfigValidationError struct { field string reason string cause error @@ -198,24 +199,24 @@ type ProtoMessageLoggingConfigValidationError struct { } // Field function returns field value. -func (e ProtoMessageLoggingConfigValidationError) Field() string { return e.field } +func (e ProtoMessageExtractionConfigValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e ProtoMessageLoggingConfigValidationError) Reason() string { return e.reason } +func (e ProtoMessageExtractionConfigValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e ProtoMessageLoggingConfigValidationError) Cause() error { return e.cause } +func (e ProtoMessageExtractionConfigValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e ProtoMessageLoggingConfigValidationError) Key() bool { return e.key } +func (e ProtoMessageExtractionConfigValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e ProtoMessageLoggingConfigValidationError) ErrorName() string { - return "ProtoMessageLoggingConfigValidationError" +func (e ProtoMessageExtractionConfigValidationError) ErrorName() string { + return "ProtoMessageExtractionConfigValidationError" } // Error satisfies the builtin error interface -func (e ProtoMessageLoggingConfigValidationError) Error() string { +func (e ProtoMessageExtractionConfigValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -227,14 +228,14 @@ func (e ProtoMessageLoggingConfigValidationError) Error() string { } return fmt.Sprintf( - "invalid %sProtoMessageLoggingConfig.%s: %s%s", + "invalid %sProtoMessageExtractionConfig.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = ProtoMessageLoggingConfigValidationError{} +var _ error = ProtoMessageExtractionConfigValidationError{} var _ interface { Field() string @@ -242,48 +243,48 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = ProtoMessageLoggingConfigValidationError{} +} = ProtoMessageExtractionConfigValidationError{} -// Validate checks the field values on MethodLogging with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *MethodLogging) Validate() error { +// Validate checks the field values on MethodExtraction with the rules defined +// in the proto definition for this message. If any rules are violated, the +// first error encountered is returned, or nil if there are no violations. +func (m *MethodExtraction) Validate() error { return m.validate(false) } -// ValidateAll checks the field values on MethodLogging with the rules defined -// in the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in MethodLoggingMultiError, or -// nil if none found. -func (m *MethodLogging) ValidateAll() error { +// ValidateAll checks the field values on MethodExtraction with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// MethodExtractionMultiError, or nil if none found. +func (m *MethodExtraction) ValidateAll() error { return m.validate(true) } -func (m *MethodLogging) validate(all bool) error { +func (m *MethodExtraction) validate(all bool) error { if m == nil { return nil } var errors []error - // no validation rules for RequestLoggingByField + // no validation rules for RequestExtractionByField - // no validation rules for ResponseLoggingByField + // no validation rules for ResponseExtractionByField if len(errors) > 0 { - return MethodLoggingMultiError(errors) + return MethodExtractionMultiError(errors) } return nil } -// MethodLoggingMultiError is an error wrapping multiple validation errors -// returned by MethodLogging.ValidateAll() if the designated constraints +// MethodExtractionMultiError is an error wrapping multiple validation errors +// returned by MethodExtraction.ValidateAll() if the designated constraints // aren't met. -type MethodLoggingMultiError []error +type MethodExtractionMultiError []error // Error returns a concatenation of all the error messages it wraps. -func (m MethodLoggingMultiError) Error() string { +func (m MethodExtractionMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) @@ -292,11 +293,11 @@ func (m MethodLoggingMultiError) Error() string { } // AllErrors returns a list of validation violation errors. -func (m MethodLoggingMultiError) AllErrors() []error { return m } +func (m MethodExtractionMultiError) AllErrors() []error { return m } -// MethodLoggingValidationError is the validation error returned by -// MethodLogging.Validate if the designated constraints aren't met. -type MethodLoggingValidationError struct { +// MethodExtractionValidationError is the validation error returned by +// MethodExtraction.Validate if the designated constraints aren't met. +type MethodExtractionValidationError struct { field string reason string cause error @@ -304,22 +305,22 @@ type MethodLoggingValidationError struct { } // Field function returns field value. -func (e MethodLoggingValidationError) Field() string { return e.field } +func (e MethodExtractionValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e MethodLoggingValidationError) Reason() string { return e.reason } +func (e MethodExtractionValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e MethodLoggingValidationError) Cause() error { return e.cause } +func (e MethodExtractionValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e MethodLoggingValidationError) Key() bool { return e.key } +func (e MethodExtractionValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e MethodLoggingValidationError) ErrorName() string { return "MethodLoggingValidationError" } +func (e MethodExtractionValidationError) ErrorName() string { return "MethodExtractionValidationError" } // Error satisfies the builtin error interface -func (e MethodLoggingValidationError) Error() string { +func (e MethodExtractionValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -331,14 +332,14 @@ func (e MethodLoggingValidationError) Error() string { } return fmt.Sprintf( - "invalid %sMethodLogging.%s: %s%s", + "invalid %sMethodExtraction.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = MethodLoggingValidationError{} +var _ error = MethodExtractionValidationError{} var _ interface { Field() string @@ -346,4 +347,4 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = MethodLoggingValidationError{} +} = MethodExtractionValidationError{} diff --git a/envoy/extensions/filters/http/proto_message_logging/v3/config_vtproto.pb.go b/envoy/extensions/filters/http/proto_message_extraction/v3/config_vtproto.pb.go similarity index 71% rename from envoy/extensions/filters/http/proto_message_logging/v3/config_vtproto.pb.go rename to envoy/extensions/filters/http/proto_message_extraction/v3/config_vtproto.pb.go index 34ff79c6ca..d82a17fd59 100755 --- a/envoy/extensions/filters/http/proto_message_logging/v3/config_vtproto.pb.go +++ b/envoy/extensions/filters/http/proto_message_extraction/v3/config_vtproto.pb.go @@ -2,9 +2,9 @@ // +build vtprotobuf // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// source: envoy/extensions/filters/http/proto_message_logging/v3/config.proto +// source: envoy/extensions/filters/http/proto_message_extraction/v3/config.proto -package proto_message_loggingv3 +package proto_message_extractionv3 import ( protohelpers "github.com/planetscale/vtprotobuf/protohelpers" @@ -19,7 +19,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -func (m *ProtoMessageLoggingConfig) MarshalVTStrict() (dAtA []byte, err error) { +func (m *ProtoMessageExtractionConfig) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -32,12 +32,12 @@ func (m *ProtoMessageLoggingConfig) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ProtoMessageLoggingConfig) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ProtoMessageExtractionConfig) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *ProtoMessageLoggingConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ProtoMessageExtractionConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -49,9 +49,9 @@ func (m *ProtoMessageLoggingConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (i i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.LoggingByMethod) > 0 { - for k := range m.LoggingByMethod { - v := m.LoggingByMethod[k] + if len(m.ExtractionByMethod) > 0 { + for k := range m.ExtractionByMethod { + v := m.ExtractionByMethod[k] baseI := i size, err := v.MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { @@ -76,14 +76,14 @@ func (m *ProtoMessageLoggingConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (i i-- dAtA[i] = 0x18 } - if msg, ok := m.DescriptorSet.(*ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata); ok { + if msg, ok := m.DescriptorSet.(*ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata); ok { size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } i -= size } - if msg, ok := m.DescriptorSet.(*ProtoMessageLoggingConfig_DataSource); ok { + if msg, ok := m.DescriptorSet.(*ProtoMessageExtractionConfig_DataSource); ok { size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err @@ -93,12 +93,12 @@ func (m *ProtoMessageLoggingConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *ProtoMessageLoggingConfig_DataSource) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ProtoMessageExtractionConfig_DataSource) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *ProtoMessageLoggingConfig_DataSource) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ProtoMessageExtractionConfig_DataSource) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i := len(dAtA) if m.DataSource != nil { if vtmsg, ok := interface{}(m.DataSource).(interface { @@ -128,12 +128,12 @@ func (m *ProtoMessageLoggingConfig_DataSource) MarshalToSizedBufferVTStrict(dAtA } return len(dAtA) - i, nil } -func (m *ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.ProtoDescriptorTypedMetadata) copy(dAtA[i:], m.ProtoDescriptorTypedMetadata) @@ -142,7 +142,7 @@ func (m *ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata) MarshalToSizedB dAtA[i] = 0x12 return len(dAtA) - i, nil } -func (m *MethodLogging) MarshalVTStrict() (dAtA []byte, err error) { +func (m *MethodExtraction) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -155,12 +155,12 @@ func (m *MethodLogging) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MethodLogging) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *MethodExtraction) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *MethodLogging) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *MethodExtraction) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -172,9 +172,9 @@ func (m *MethodLogging) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.ResponseLoggingByField) > 0 { - for k := range m.ResponseLoggingByField { - v := m.ResponseLoggingByField[k] + if len(m.ResponseExtractionByField) > 0 { + for k := range m.ResponseExtractionByField { + v := m.ResponseExtractionByField[k] baseI := i i = protohelpers.EncodeVarint(dAtA, i, uint64(v)) i-- @@ -189,9 +189,9 @@ func (m *MethodLogging) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { dAtA[i] = 0x1a } } - if len(m.RequestLoggingByField) > 0 { - for k := range m.RequestLoggingByField { - v := m.RequestLoggingByField[k] + if len(m.RequestExtractionByField) > 0 { + for k := range m.RequestExtractionByField { + v := m.RequestExtractionByField[k] baseI := i i = protohelpers.EncodeVarint(dAtA, i, uint64(v)) i-- @@ -209,7 +209,7 @@ func (m *MethodLogging) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ProtoMessageLoggingConfig) SizeVT() (n int) { +func (m *ProtoMessageExtractionConfig) SizeVT() (n int) { if m == nil { return 0 } @@ -221,8 +221,8 @@ func (m *ProtoMessageLoggingConfig) SizeVT() (n int) { if m.Mode != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Mode)) } - if len(m.LoggingByMethod) > 0 { - for k, v := range m.LoggingByMethod { + if len(m.ExtractionByMethod) > 0 { + for k, v := range m.ExtractionByMethod { _ = k _ = v l = 0 @@ -238,7 +238,7 @@ func (m *ProtoMessageLoggingConfig) SizeVT() (n int) { return n } -func (m *ProtoMessageLoggingConfig_DataSource) SizeVT() (n int) { +func (m *ProtoMessageExtractionConfig_DataSource) SizeVT() (n int) { if m == nil { return 0 } @@ -258,7 +258,7 @@ func (m *ProtoMessageLoggingConfig_DataSource) SizeVT() (n int) { } return n } -func (m *ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata) SizeVT() (n int) { +func (m *ProtoMessageExtractionConfig_ProtoDescriptorTypedMetadata) SizeVT() (n int) { if m == nil { return 0 } @@ -268,22 +268,22 @@ func (m *ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata) SizeVT() (n int n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } -func (m *MethodLogging) SizeVT() (n int) { +func (m *MethodExtraction) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.RequestLoggingByField) > 0 { - for k, v := range m.RequestLoggingByField { + if len(m.RequestExtractionByField) > 0 { + for k, v := range m.RequestExtractionByField { _ = k _ = v mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } - if len(m.ResponseLoggingByField) > 0 { - for k, v := range m.ResponseLoggingByField { + if len(m.ResponseExtractionByField) > 0 { + for k, v := range m.ResponseExtractionByField { _ = k _ = v mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + protohelpers.SizeOfVarint(uint64(v)) diff --git a/envoy/extensions/filters/http/proto_message_logging/v3/config.pb.go b/envoy/extensions/filters/http/proto_message_logging/v3/config.pb.go deleted file mode 100755 index 1648274a3e..0000000000 --- a/envoy/extensions/filters/http/proto_message_logging/v3/config.pb.go +++ /dev/null @@ -1,511 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v5.26.1 -// source: envoy/extensions/filters/http/proto_message_logging/v3/config.proto - -package proto_message_loggingv3 - -import ( - _ "github.com/cncf/xds/go/udpa/annotations" - _ "github.com/cncf/xds/go/xds/annotations/v3" - v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ProtoMessageLoggingConfig_LogMode int32 - -const ( - ProtoMessageLoggingConfig_LogMode_UNSPECIFIED ProtoMessageLoggingConfig_LogMode = 0 - // The filter will log the first and the last message for - // for streaming cases, containing - // client-side streaming, server-side streaming or bi-directional streaming. - ProtoMessageLoggingConfig_FIRST_AND_LAST ProtoMessageLoggingConfig_LogMode = 1 -) - -// Enum value maps for ProtoMessageLoggingConfig_LogMode. -var ( - ProtoMessageLoggingConfig_LogMode_name = map[int32]string{ - 0: "LogMode_UNSPECIFIED", - 1: "FIRST_AND_LAST", - } - ProtoMessageLoggingConfig_LogMode_value = map[string]int32{ - "LogMode_UNSPECIFIED": 0, - "FIRST_AND_LAST": 1, - } -) - -func (x ProtoMessageLoggingConfig_LogMode) Enum() *ProtoMessageLoggingConfig_LogMode { - p := new(ProtoMessageLoggingConfig_LogMode) - *p = x - return p -} - -func (x ProtoMessageLoggingConfig_LogMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ProtoMessageLoggingConfig_LogMode) Descriptor() protoreflect.EnumDescriptor { - return file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_enumTypes[0].Descriptor() -} - -func (ProtoMessageLoggingConfig_LogMode) Type() protoreflect.EnumType { - return &file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_enumTypes[0] -} - -func (x ProtoMessageLoggingConfig_LogMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ProtoMessageLoggingConfig_LogMode.Descriptor instead. -func (ProtoMessageLoggingConfig_LogMode) EnumDescriptor() ([]byte, []int) { - return file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDescGZIP(), []int{0, 0} -} - -type MethodLogging_LogDirective int32 - -const ( - MethodLogging_LogDirective_UNSPECIFIED MethodLogging_LogDirective = 0 - // The value of this field will be logged. - MethodLogging_LOG MethodLogging_LogDirective = 1 - // It should be only annotated on Message type fields so if the field isn't - // empty, an empty Struct will be logged. - MethodLogging_LOG_REDACT MethodLogging_LogDirective = 2 -) - -// Enum value maps for MethodLogging_LogDirective. -var ( - MethodLogging_LogDirective_name = map[int32]string{ - 0: "LogDirective_UNSPECIFIED", - 1: "LOG", - 2: "LOG_REDACT", - } - MethodLogging_LogDirective_value = map[string]int32{ - "LogDirective_UNSPECIFIED": 0, - "LOG": 1, - "LOG_REDACT": 2, - } -) - -func (x MethodLogging_LogDirective) Enum() *MethodLogging_LogDirective { - p := new(MethodLogging_LogDirective) - *p = x - return p -} - -func (x MethodLogging_LogDirective) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MethodLogging_LogDirective) Descriptor() protoreflect.EnumDescriptor { - return file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_enumTypes[1].Descriptor() -} - -func (MethodLogging_LogDirective) Type() protoreflect.EnumType { - return &file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_enumTypes[1] -} - -func (x MethodLogging_LogDirective) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MethodLogging_LogDirective.Descriptor instead. -func (MethodLogging_LogDirective) EnumDescriptor() ([]byte, []int) { - return file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDescGZIP(), []int{1, 0} -} - -type ProtoMessageLoggingConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The proto descriptor set binary for the gRPC services. - // - // Types that are assignable to DescriptorSet: - // - // *ProtoMessageLoggingConfig_DataSource - // *ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata - DescriptorSet isProtoMessageLoggingConfig_DescriptorSet `protobuf_oneof:"descriptor_set"` - Mode ProtoMessageLoggingConfig_LogMode `protobuf:"varint,3,opt,name=mode,proto3,enum=envoy.extensions.filters.http.proto_message_logging.v3.ProtoMessageLoggingConfig_LogMode" json:"mode,omitempty"` - // Specify the message logging info. - // The key is the fully qualified gRPC method name. - // “${package}.${Service}.${Method}“, like - // “endpoints.examples.bookstore.BookStore.GetShelf“ - // - // The value is the message logging information for individual gRPC methods. - LoggingByMethod map[string]*MethodLogging `protobuf:"bytes,4,rep,name=logging_by_method,json=loggingByMethod,proto3" json:"logging_by_method,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ProtoMessageLoggingConfig) Reset() { - *x = ProtoMessageLoggingConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProtoMessageLoggingConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProtoMessageLoggingConfig) ProtoMessage() {} - -func (x *ProtoMessageLoggingConfig) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProtoMessageLoggingConfig.ProtoReflect.Descriptor instead. -func (*ProtoMessageLoggingConfig) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDescGZIP(), []int{0} -} - -func (m *ProtoMessageLoggingConfig) GetDescriptorSet() isProtoMessageLoggingConfig_DescriptorSet { - if m != nil { - return m.DescriptorSet - } - return nil -} - -func (x *ProtoMessageLoggingConfig) GetDataSource() *v3.DataSource { - if x, ok := x.GetDescriptorSet().(*ProtoMessageLoggingConfig_DataSource); ok { - return x.DataSource - } - return nil -} - -func (x *ProtoMessageLoggingConfig) GetProtoDescriptorTypedMetadata() string { - if x, ok := x.GetDescriptorSet().(*ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata); ok { - return x.ProtoDescriptorTypedMetadata - } - return "" -} - -func (x *ProtoMessageLoggingConfig) GetMode() ProtoMessageLoggingConfig_LogMode { - if x != nil { - return x.Mode - } - return ProtoMessageLoggingConfig_LogMode_UNSPECIFIED -} - -func (x *ProtoMessageLoggingConfig) GetLoggingByMethod() map[string]*MethodLogging { - if x != nil { - return x.LoggingByMethod - } - return nil -} - -type isProtoMessageLoggingConfig_DescriptorSet interface { - isProtoMessageLoggingConfig_DescriptorSet() -} - -type ProtoMessageLoggingConfig_DataSource struct { - // It could be passed by a local file through “Datasource.filename“ or - // embedded in the “Datasource.inline_bytes“. - DataSource *v3.DataSource `protobuf:"bytes,1,opt,name=data_source,json=dataSource,proto3,oneof"` -} - -type ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata struct { - // Unimplemented, the key of proto descriptor TypedMetadata. - // Among filters depending on the proto descriptor, we can have a TypedMetadata - // for proto descriptors, so that these filters can share one copy of proto - // descriptor in memory. - ProtoDescriptorTypedMetadata string `protobuf:"bytes,2,opt,name=proto_descriptor_typed_metadata,json=protoDescriptorTypedMetadata,proto3,oneof"` -} - -func (*ProtoMessageLoggingConfig_DataSource) isProtoMessageLoggingConfig_DescriptorSet() {} - -func (*ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata) isProtoMessageLoggingConfig_DescriptorSet() { -} - -// This message can be used to support per route config approach later even -// though the Istio doesn't support that so far. -type MethodLogging struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The mapping of field path to its LogDirective for request messages - RequestLoggingByField map[string]MethodLogging_LogDirective `protobuf:"bytes,2,rep,name=request_logging_by_field,json=requestLoggingByField,proto3" json:"request_logging_by_field,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging_LogDirective"` - // The mapping of field path to its LogDirective for response messages - ResponseLoggingByField map[string]MethodLogging_LogDirective `protobuf:"bytes,3,rep,name=response_logging_by_field,json=responseLoggingByField,proto3" json:"response_logging_by_field,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging_LogDirective"` -} - -func (x *MethodLogging) Reset() { - *x = MethodLogging{} - if protoimpl.UnsafeEnabled { - mi := &file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MethodLogging) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MethodLogging) ProtoMessage() {} - -func (x *MethodLogging) ProtoReflect() protoreflect.Message { - mi := &file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MethodLogging.ProtoReflect.Descriptor instead. -func (*MethodLogging) Descriptor() ([]byte, []int) { - return file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDescGZIP(), []int{1} -} - -func (x *MethodLogging) GetRequestLoggingByField() map[string]MethodLogging_LogDirective { - if x != nil { - return x.RequestLoggingByField - } - return nil -} - -func (x *MethodLogging) GetResponseLoggingByField() map[string]MethodLogging_LogDirective { - if x != nil { - return x.ResponseLoggingByField - } - return nil -} - -var File_envoy_extensions_filters_http_proto_message_logging_v3_config_proto protoreflect.FileDescriptor - -var file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDesc = []byte{ - 0x0a, 0x43, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6c, 0x6f, - 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x36, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, - 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x65, - 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, - 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, - 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x76, 0x33, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, - 0x05, 0x0a, 0x19, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, - 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0b, - 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x47, 0x0a, 0x1f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x1c, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, - 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x6d, 0x0a, 0x04, 0x6d, 0x6f, - 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x59, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, - 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, - 0x67, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x4d, - 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x11, 0x6c, 0x6f, - 0x67, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x66, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x67, 0x69, - 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, - 0x42, 0x79, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x6c, - 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x1a, 0x89, - 0x01, 0x0a, 0x14, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x4d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x5b, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, - 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x36, 0x0a, 0x07, 0x4c, 0x6f, - 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x4c, 0x6f, 0x67, 0x4d, 0x6f, 0x64, 0x65, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, - 0x0a, 0x0e, 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x4c, 0x41, 0x53, 0x54, - 0x10, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, - 0x5f, 0x73, 0x65, 0x74, 0x22, 0xd0, 0x05, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4c, - 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x12, 0x99, 0x01, 0x0a, 0x18, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x79, 0x5f, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x60, 0x2e, 0x65, 0x6e, 0x76, 0x6f, - 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, - 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x42, - 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x15, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x12, 0x9c, 0x01, 0x0a, 0x19, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, - 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x79, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x61, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, - 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x16, 0x72, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x1a, 0x9c, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, - 0x67, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x68, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x52, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, - 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x44, 0x69, 0x72, 0x65, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x1a, 0x9d, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4c, 0x6f, 0x67, - 0x67, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x68, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x52, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, - 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x44, 0x69, 0x72, 0x65, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x45, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x12, 0x1c, 0x0a, 0x18, 0x4c, 0x6f, 0x67, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, - 0x0a, 0x03, 0x4c, 0x4f, 0x47, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x4f, 0x47, 0x5f, 0x52, - 0x45, 0x44, 0x41, 0x43, 0x54, 0x10, 0x02, 0x42, 0xdc, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, - 0x10, 0x02, 0xd2, 0xc6, 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 0x0a, 0x44, 0x69, 0x6f, 0x2e, 0x65, - 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, - 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, - 0x42, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x75, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, - 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x3b, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, - 0x67, 0x69, 0x6e, 0x67, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDescOnce sync.Once - file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDescData = file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDesc -) - -func file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDescGZIP() []byte { - file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDescOnce.Do(func() { - file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDescData) - }) - return file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDescData -} - -var file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_goTypes = []interface{}{ - (ProtoMessageLoggingConfig_LogMode)(0), // 0: envoy.extensions.filters.http.proto_message_logging.v3.ProtoMessageLoggingConfig.LogMode - (MethodLogging_LogDirective)(0), // 1: envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging.LogDirective - (*ProtoMessageLoggingConfig)(nil), // 2: envoy.extensions.filters.http.proto_message_logging.v3.ProtoMessageLoggingConfig - (*MethodLogging)(nil), // 3: envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging - nil, // 4: envoy.extensions.filters.http.proto_message_logging.v3.ProtoMessageLoggingConfig.LoggingByMethodEntry - nil, // 5: envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging.RequestLoggingByFieldEntry - nil, // 6: envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging.ResponseLoggingByFieldEntry - (*v3.DataSource)(nil), // 7: envoy.config.core.v3.DataSource -} -var file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_depIdxs = []int32{ - 7, // 0: envoy.extensions.filters.http.proto_message_logging.v3.ProtoMessageLoggingConfig.data_source:type_name -> envoy.config.core.v3.DataSource - 0, // 1: envoy.extensions.filters.http.proto_message_logging.v3.ProtoMessageLoggingConfig.mode:type_name -> envoy.extensions.filters.http.proto_message_logging.v3.ProtoMessageLoggingConfig.LogMode - 4, // 2: envoy.extensions.filters.http.proto_message_logging.v3.ProtoMessageLoggingConfig.logging_by_method:type_name -> envoy.extensions.filters.http.proto_message_logging.v3.ProtoMessageLoggingConfig.LoggingByMethodEntry - 5, // 3: envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging.request_logging_by_field:type_name -> envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging.RequestLoggingByFieldEntry - 6, // 4: envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging.response_logging_by_field:type_name -> envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging.ResponseLoggingByFieldEntry - 3, // 5: envoy.extensions.filters.http.proto_message_logging.v3.ProtoMessageLoggingConfig.LoggingByMethodEntry.value:type_name -> envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging - 1, // 6: envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging.RequestLoggingByFieldEntry.value:type_name -> envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging.LogDirective - 1, // 7: envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging.ResponseLoggingByFieldEntry.value:type_name -> envoy.extensions.filters.http.proto_message_logging.v3.MethodLogging.LogDirective - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name -} - -func init() { file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_init() } -func file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_init() { - if File_envoy_extensions_filters_http_proto_message_logging_v3_config_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProtoMessageLoggingConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MethodLogging); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*ProtoMessageLoggingConfig_DataSource)(nil), - (*ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDesc, - NumEnums: 2, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_goTypes, - DependencyIndexes: file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_depIdxs, - EnumInfos: file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_enumTypes, - MessageInfos: file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_msgTypes, - }.Build() - File_envoy_extensions_filters_http_proto_message_logging_v3_config_proto = out.File - file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_rawDesc = nil - file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_goTypes = nil - file_envoy_extensions_filters_http_proto_message_logging_v3_config_proto_depIdxs = nil -}