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