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/metrics/v4alpha/metrics_service.proto 6 7package envoy_config_metrics_v4alpha 8 9import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 v4alpha "github.com/envoyproxy/go-control-plane/envoy/config/core/v4alpha" 12 _ "github.com/envoyproxy/protoc-gen-validate/validate" 13 proto "github.com/golang/protobuf/proto" 14 wrappers "github.com/golang/protobuf/ptypes/wrappers" 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// Metrics Service is configured as a built-in *envoy.stat_sinks.metrics_service* :ref:`StatsSink 33// <envoy_v3_api_msg_config.metrics.v3.StatsSink>`. This opaque configuration will be used to create 34// Metrics Service. 35// [#extension: envoy.stat_sinks.metrics_service] 36type MetricsServiceConfig struct { 37 state protoimpl.MessageState 38 sizeCache protoimpl.SizeCache 39 unknownFields protoimpl.UnknownFields 40 41 // The upstream gRPC cluster that hosts the metrics service. 42 GrpcService *v4alpha.GrpcService `protobuf:"bytes,1,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` 43 // API version for metric service transport protocol. This describes the metric service gRPC 44 // endpoint and version of messages used on the wire. 45 TransportApiVersion v4alpha.ApiVersion `protobuf:"varint,3,opt,name=transport_api_version,json=transportApiVersion,proto3,enum=envoy.config.core.v4alpha.ApiVersion" json:"transport_api_version,omitempty"` 46 // If true, counters are reported as the delta between flushing intervals. Otherwise, the current 47 // counter value is reported. Defaults to false. 48 // Eventually (https://github.com/envoyproxy/envoy/issues/10968) if this value is not set, the 49 // sink will take updates from the :ref:`MetricsResponse <envoy_v3_api_msg_service.metrics.v3.StreamMetricsResponse>`. 50 ReportCountersAsDeltas *wrappers.BoolValue `protobuf:"bytes,2,opt,name=report_counters_as_deltas,json=reportCountersAsDeltas,proto3" json:"report_counters_as_deltas,omitempty"` 51 // If true, metrics will have their tags emitted as labels on the metrics objects sent to the MetricsService, 52 // and the tag extracted name will be used instead of the full name, which may contain values used by the tag 53 // extractor or additional tags added during stats creation. 54 EmitTagsAsLabels bool `protobuf:"varint,4,opt,name=emit_tags_as_labels,json=emitTagsAsLabels,proto3" json:"emit_tags_as_labels,omitempty"` 55} 56 57func (x *MetricsServiceConfig) Reset() { 58 *x = MetricsServiceConfig{} 59 if protoimpl.UnsafeEnabled { 60 mi := &file_envoy_config_metrics_v4alpha_metrics_service_proto_msgTypes[0] 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 ms.StoreMessageInfo(mi) 63 } 64} 65 66func (x *MetricsServiceConfig) String() string { 67 return protoimpl.X.MessageStringOf(x) 68} 69 70func (*MetricsServiceConfig) ProtoMessage() {} 71 72func (x *MetricsServiceConfig) ProtoReflect() protoreflect.Message { 73 mi := &file_envoy_config_metrics_v4alpha_metrics_service_proto_msgTypes[0] 74 if protoimpl.UnsafeEnabled && x != nil { 75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 76 if ms.LoadMessageInfo() == nil { 77 ms.StoreMessageInfo(mi) 78 } 79 return ms 80 } 81 return mi.MessageOf(x) 82} 83 84// Deprecated: Use MetricsServiceConfig.ProtoReflect.Descriptor instead. 85func (*MetricsServiceConfig) Descriptor() ([]byte, []int) { 86 return file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescGZIP(), []int{0} 87} 88 89func (x *MetricsServiceConfig) GetGrpcService() *v4alpha.GrpcService { 90 if x != nil { 91 return x.GrpcService 92 } 93 return nil 94} 95 96func (x *MetricsServiceConfig) GetTransportApiVersion() v4alpha.ApiVersion { 97 if x != nil { 98 return x.TransportApiVersion 99 } 100 return v4alpha.ApiVersion_hidden_envoy_deprecated_AUTO 101} 102 103func (x *MetricsServiceConfig) GetReportCountersAsDeltas() *wrappers.BoolValue { 104 if x != nil { 105 return x.ReportCountersAsDeltas 106 } 107 return nil 108} 109 110func (x *MetricsServiceConfig) GetEmitTagsAsLabels() bool { 111 if x != nil { 112 return x.EmitTagsAsLabels 113 } 114 return false 115} 116 117var File_envoy_config_metrics_v4alpha_metrics_service_proto protoreflect.FileDescriptor 118 119var file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDesc = []byte{ 120 0x0a, 0x32, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x6d, 121 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6d, 122 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 123 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 124 0x69, 0x67, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 125 0x68, 0x61, 0x1a, 0x2d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 126 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f, 127 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 128 0x6f, 0x1a, 0x2c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 129 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x67, 0x72, 0x70, 130 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 131 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 132 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 133 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 134 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 135 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 136 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 137 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 138 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x03, 0x0a, 0x14, 0x4d, 139 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 140 0x66, 0x69, 0x67, 0x12, 0x53, 0x0a, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 141 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 142 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x34, 143 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 144 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x67, 0x72, 0x70, 145 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x63, 0x0a, 0x15, 0x74, 0x72, 0x61, 0x6e, 146 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 147 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 148 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x34, 0x61, 0x6c, 149 0x70, 0x68, 0x61, 0x2e, 0x41, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x08, 150 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 151 0x6f, 0x72, 0x74, 0x41, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x55, 0x0a, 152 0x19, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 153 0x5f, 0x61, 0x73, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 154 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 155 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x16, 0x72, 0x65, 156 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x41, 0x73, 0x44, 0x65, 157 0x6c, 0x74, 0x61, 0x73, 0x12, 0x2d, 0x0a, 0x13, 0x65, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x61, 0x67, 158 0x73, 0x5f, 0x61, 0x73, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 159 0x08, 0x52, 0x10, 0x65, 0x6d, 0x69, 0x74, 0x54, 0x61, 0x67, 0x73, 0x41, 0x73, 0x4c, 0x61, 0x62, 160 0x65, 0x6c, 0x73, 0x3a, 0x33, 0x9a, 0xc5, 0x88, 0x1e, 0x2e, 0x0a, 0x2c, 0x65, 0x6e, 0x76, 0x6f, 161 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 162 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 163 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x4b, 0x0a, 0x2a, 0x69, 0x6f, 0x2e, 0x65, 164 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 165 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 166 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x13, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x53, 167 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 168 0xd1, 0x06, 0x02, 0x10, 0x03, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 169} 170 171var ( 172 file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescOnce sync.Once 173 file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescData = file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDesc 174) 175 176func file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescGZIP() []byte { 177 file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescOnce.Do(func() { 178 file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescData) 179 }) 180 return file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescData 181} 182 183var file_envoy_config_metrics_v4alpha_metrics_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 184var file_envoy_config_metrics_v4alpha_metrics_service_proto_goTypes = []interface{}{ 185 (*MetricsServiceConfig)(nil), // 0: envoy.config.metrics.v4alpha.MetricsServiceConfig 186 (*v4alpha.GrpcService)(nil), // 1: envoy.config.core.v4alpha.GrpcService 187 (v4alpha.ApiVersion)(0), // 2: envoy.config.core.v4alpha.ApiVersion 188 (*wrappers.BoolValue)(nil), // 3: google.protobuf.BoolValue 189} 190var file_envoy_config_metrics_v4alpha_metrics_service_proto_depIdxs = []int32{ 191 1, // 0: envoy.config.metrics.v4alpha.MetricsServiceConfig.grpc_service:type_name -> envoy.config.core.v4alpha.GrpcService 192 2, // 1: envoy.config.metrics.v4alpha.MetricsServiceConfig.transport_api_version:type_name -> envoy.config.core.v4alpha.ApiVersion 193 3, // 2: envoy.config.metrics.v4alpha.MetricsServiceConfig.report_counters_as_deltas:type_name -> google.protobuf.BoolValue 194 3, // [3:3] is the sub-list for method output_type 195 3, // [3:3] is the sub-list for method input_type 196 3, // [3:3] is the sub-list for extension type_name 197 3, // [3:3] is the sub-list for extension extendee 198 0, // [0:3] is the sub-list for field type_name 199} 200 201func init() { file_envoy_config_metrics_v4alpha_metrics_service_proto_init() } 202func file_envoy_config_metrics_v4alpha_metrics_service_proto_init() { 203 if File_envoy_config_metrics_v4alpha_metrics_service_proto != nil { 204 return 205 } 206 if !protoimpl.UnsafeEnabled { 207 file_envoy_config_metrics_v4alpha_metrics_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 208 switch v := v.(*MetricsServiceConfig); i { 209 case 0: 210 return &v.state 211 case 1: 212 return &v.sizeCache 213 case 2: 214 return &v.unknownFields 215 default: 216 return nil 217 } 218 } 219 } 220 type x struct{} 221 out := protoimpl.TypeBuilder{ 222 File: protoimpl.DescBuilder{ 223 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 224 RawDescriptor: file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDesc, 225 NumEnums: 0, 226 NumMessages: 1, 227 NumExtensions: 0, 228 NumServices: 0, 229 }, 230 GoTypes: file_envoy_config_metrics_v4alpha_metrics_service_proto_goTypes, 231 DependencyIndexes: file_envoy_config_metrics_v4alpha_metrics_service_proto_depIdxs, 232 MessageInfos: file_envoy_config_metrics_v4alpha_metrics_service_proto_msgTypes, 233 }.Build() 234 File_envoy_config_metrics_v4alpha_metrics_service_proto = out.File 235 file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDesc = nil 236 file_envoy_config_metrics_v4alpha_metrics_service_proto_goTypes = nil 237 file_envoy_config_metrics_v4alpha_metrics_service_proto_depIdxs = nil 238} 239