1// Copyright 2020 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.22.0
18// 	protoc        v3.11.2
19// source: google/monitoring/v3/dropped_labels.proto
20
21package monitoring
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	proto "github.com/golang/protobuf/proto"
28	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30)
31
32const (
33	// Verify that this generated code is sufficiently up-to-date.
34	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35	// Verify that runtime/protoimpl is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37)
38
39// This is a compile-time assertion that a sufficiently up-to-date version
40// of the legacy proto package is being used.
41const _ = proto.ProtoPackageIsVersion4
42
43// A set of (label, value) pairs which were dropped during aggregation, attached
44// to google.api.Distribution.Exemplars in google.api.Distribution values during
45// aggregation.
46//
47// These values are used in combination with the label values that remain on the
48// aggregated Distribution timeseries to construct the full label set for the
49// exemplar values.  The resulting full label set may be used to identify the
50// specific task/job/instance (for example) which may be contributing to a
51// long-tail, while allowing the storage savings of only storing aggregated
52// distribution values for a large group.
53//
54// Note that there are no guarantees on ordering of the labels from
55// exemplar-to-exemplar and from distribution-to-distribution in the same
56// stream, and there may be duplicates.  It is up to clients to resolve any
57// ambiguities.
58type DroppedLabels struct {
59	state         protoimpl.MessageState
60	sizeCache     protoimpl.SizeCache
61	unknownFields protoimpl.UnknownFields
62
63	// Map from label to its value, for all labels dropped in any aggregation.
64	Label map[string]string `protobuf:"bytes,1,rep,name=label,proto3" json:"label,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
65}
66
67func (x *DroppedLabels) Reset() {
68	*x = DroppedLabels{}
69	if protoimpl.UnsafeEnabled {
70		mi := &file_google_monitoring_v3_dropped_labels_proto_msgTypes[0]
71		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72		ms.StoreMessageInfo(mi)
73	}
74}
75
76func (x *DroppedLabels) String() string {
77	return protoimpl.X.MessageStringOf(x)
78}
79
80func (*DroppedLabels) ProtoMessage() {}
81
82func (x *DroppedLabels) ProtoReflect() protoreflect.Message {
83	mi := &file_google_monitoring_v3_dropped_labels_proto_msgTypes[0]
84	if protoimpl.UnsafeEnabled && x != nil {
85		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86		if ms.LoadMessageInfo() == nil {
87			ms.StoreMessageInfo(mi)
88		}
89		return ms
90	}
91	return mi.MessageOf(x)
92}
93
94// Deprecated: Use DroppedLabels.ProtoReflect.Descriptor instead.
95func (*DroppedLabels) Descriptor() ([]byte, []int) {
96	return file_google_monitoring_v3_dropped_labels_proto_rawDescGZIP(), []int{0}
97}
98
99func (x *DroppedLabels) GetLabel() map[string]string {
100	if x != nil {
101		return x.Label
102	}
103	return nil
104}
105
106var File_google_monitoring_v3_dropped_labels_proto protoreflect.FileDescriptor
107
108var file_google_monitoring_v3_dropped_labels_proto_rawDesc = []byte{
109	0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
110	0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x6c,
111	0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x67, 0x6f, 0x6f,
112	0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76,
113	0x33, 0x22, 0x8f, 0x01, 0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x4c, 0x61, 0x62,
114	0x65, 0x6c, 0x73, 0x12, 0x44, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x03,
115	0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69,
116	0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65,
117	0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x45, 0x6e, 0x74,
118	0x72, 0x79, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x1a, 0x38, 0x0a, 0x0a, 0x4c, 0x61, 0x62,
119	0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
120	0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
121	0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
122	0x02, 0x38, 0x01, 0x42, 0xca, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
123	0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33,
124	0x42, 0x12, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x50,
125	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
126	0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
127	0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x6f,
128	0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x3b, 0x6d, 0x6f, 0x6e, 0x69,
129	0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
130	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67,
131	0x2e, 0x56, 0x33, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f,
132	0x75, 0x64, 0x5c, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x33,
133	0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64,
134	0x3a, 0x3a, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x33,
135	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
136}
137
138var (
139	file_google_monitoring_v3_dropped_labels_proto_rawDescOnce sync.Once
140	file_google_monitoring_v3_dropped_labels_proto_rawDescData = file_google_monitoring_v3_dropped_labels_proto_rawDesc
141)
142
143func file_google_monitoring_v3_dropped_labels_proto_rawDescGZIP() []byte {
144	file_google_monitoring_v3_dropped_labels_proto_rawDescOnce.Do(func() {
145		file_google_monitoring_v3_dropped_labels_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_monitoring_v3_dropped_labels_proto_rawDescData)
146	})
147	return file_google_monitoring_v3_dropped_labels_proto_rawDescData
148}
149
150var file_google_monitoring_v3_dropped_labels_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
151var file_google_monitoring_v3_dropped_labels_proto_goTypes = []interface{}{
152	(*DroppedLabels)(nil), // 0: google.monitoring.v3.DroppedLabels
153	nil,                   // 1: google.monitoring.v3.DroppedLabels.LabelEntry
154}
155var file_google_monitoring_v3_dropped_labels_proto_depIdxs = []int32{
156	1, // 0: google.monitoring.v3.DroppedLabels.label:type_name -> google.monitoring.v3.DroppedLabels.LabelEntry
157	1, // [1:1] is the sub-list for method output_type
158	1, // [1:1] is the sub-list for method input_type
159	1, // [1:1] is the sub-list for extension type_name
160	1, // [1:1] is the sub-list for extension extendee
161	0, // [0:1] is the sub-list for field type_name
162}
163
164func init() { file_google_monitoring_v3_dropped_labels_proto_init() }
165func file_google_monitoring_v3_dropped_labels_proto_init() {
166	if File_google_monitoring_v3_dropped_labels_proto != nil {
167		return
168	}
169	if !protoimpl.UnsafeEnabled {
170		file_google_monitoring_v3_dropped_labels_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
171			switch v := v.(*DroppedLabels); i {
172			case 0:
173				return &v.state
174			case 1:
175				return &v.sizeCache
176			case 2:
177				return &v.unknownFields
178			default:
179				return nil
180			}
181		}
182	}
183	type x struct{}
184	out := protoimpl.TypeBuilder{
185		File: protoimpl.DescBuilder{
186			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
187			RawDescriptor: file_google_monitoring_v3_dropped_labels_proto_rawDesc,
188			NumEnums:      0,
189			NumMessages:   2,
190			NumExtensions: 0,
191			NumServices:   0,
192		},
193		GoTypes:           file_google_monitoring_v3_dropped_labels_proto_goTypes,
194		DependencyIndexes: file_google_monitoring_v3_dropped_labels_proto_depIdxs,
195		MessageInfos:      file_google_monitoring_v3_dropped_labels_proto_msgTypes,
196	}.Build()
197	File_google_monitoring_v3_dropped_labels_proto = out.File
198	file_google_monitoring_v3_dropped_labels_proto_rawDesc = nil
199	file_google_monitoring_v3_dropped_labels_proto_goTypes = nil
200	file_google_monitoring_v3_dropped_labels_proto_depIdxs = nil
201}
202