| 1 |
// Copyright 2024 Prometheus Team |
| 2 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 |
// you may not use this file except in compliance with the License. |
| 4 |
// You may obtain a copy of the License at |
| 5 |
// |
| 6 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 7 |
// |
| 8 |
// Unless required by applicable law or agreed to in writing, software |
| 9 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 10 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 |
// See the License for the specific language governing permissions and |
| 12 |
// limitations under the License. |
| 13 |
|
| 14 |
// NOTE: This file is also available on https://buf.build/prometheus/prometheus/docs/main:io.prometheus.write.v2 |
| 15 |
|
| 16 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 17 |
// versions: |
| 18 |
// protoc-gen-go v1.31.0 |
| 19 |
// protoc (unknown) |
| 20 |
// source: io/prometheus/write/v2/types.proto |
| 21 |
|
| 22 |
package writev2 |
| 23 |
|
| 24 |
import ( |
| 25 |
reflect "reflect" |
| 26 |
sync "sync" |
| 27 |
|
| 28 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 29 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 30 |
) |
| 31 |
|
| 32 |
const ( |
| 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 |
type Metadata_MetricType int32 |
| 40 |
|
| 41 |
const ( |
| 42 |
Metadata_METRIC_TYPE_UNSPECIFIED Metadata_MetricType = 0 |
| 43 |
Metadata_METRIC_TYPE_COUNTER Metadata_MetricType = 1 |
| 44 |
Metadata_METRIC_TYPE_GAUGE Metadata_MetricType = 2 |
| 45 |
Metadata_METRIC_TYPE_HISTOGRAM Metadata_MetricType = 3 |
| 46 |
Metadata_METRIC_TYPE_GAUGEHISTOGRAM Metadata_MetricType = 4 |
| 47 |
Metadata_METRIC_TYPE_SUMMARY Metadata_MetricType = 5 |
| 48 |
Metadata_METRIC_TYPE_INFO Metadata_MetricType = 6 |
| 49 |
Metadata_METRIC_TYPE_STATESET Metadata_MetricType = 7 |
| 50 |
) |
| 51 |
|
| 52 |
// Enum value maps for Metadata_MetricType. |
| 53 |
var ( |
| 54 |
Metadata_MetricType_name = map[int32]string{ |
| 55 |
0: "METRIC_TYPE_UNSPECIFIED", |
| 56 |
1: "METRIC_TYPE_COUNTER", |
| 57 |
2: "METRIC_TYPE_GAUGE", |
| 58 |
3: "METRIC_TYPE_HISTOGRAM", |
| 59 |
4: "METRIC_TYPE_GAUGEHISTOGRAM", |
| 60 |
5: "METRIC_TYPE_SUMMARY", |
| 61 |
6: "METRIC_TYPE_INFO", |
| 62 |
7: "METRIC_TYPE_STATESET", |
| 63 |
} |
| 64 |
Metadata_MetricType_value = map[string]int32{ |
| 65 |
"METRIC_TYPE_UNSPECIFIED": 0, |
| 66 |
"METRIC_TYPE_COUNTER": 1, |
| 67 |
"METRIC_TYPE_GAUGE": 2, |
| 68 |
"METRIC_TYPE_HISTOGRAM": 3, |
| 69 |
"METRIC_TYPE_GAUGEHISTOGRAM": 4, |
| 70 |
"METRIC_TYPE_SUMMARY": 5, |
| 71 |
"METRIC_TYPE_INFO": 6, |
| 72 |
"METRIC_TYPE_STATESET": 7, |
| 73 |
} |
| 74 |
) |
| 75 |
|
| 76 |
func (x Metadata_MetricType) Enum() *Metadata_MetricType { |
| 77 |
p := new(Metadata_MetricType) |
| 78 |
*p = x |
| 79 |
return p |
| 80 |
} |
| 81 |
|
| 82 |
func (x Metadata_MetricType) String() string { |
| 83 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 84 |
} |
| 85 |
|
| 86 |
func (Metadata_MetricType) Descriptor() protoreflect.EnumDescriptor { |
| 87 |
return file_io_prometheus_write_v2_types_proto_enumTypes[0].Descriptor() |
| 88 |
} |
| 89 |
|
| 90 |
func (Metadata_MetricType) Type() protoreflect.EnumType { |
| 91 |
return &file_io_prometheus_write_v2_types_proto_enumTypes[0] |
| 92 |
} |
| 93 |
|
| 94 |
func (x Metadata_MetricType) Number() protoreflect.EnumNumber { |
| 95 |
return protoreflect.EnumNumber(x) |
| 96 |
} |
| 97 |
|
| 98 |
// Deprecated: Use Metadata_MetricType.Descriptor instead. |
| 99 |
func (Metadata_MetricType) EnumDescriptor() ([]byte, []int) { |
| 100 |
return file_io_prometheus_write_v2_types_proto_rawDescGZIP(), []int{4, 0} |
| 101 |
} |
| 102 |
|
| 103 |
type Histogram_ResetHint int32 |
| 104 |
|
| 105 |
const ( |
| 106 |
Histogram_RESET_HINT_UNSPECIFIED Histogram_ResetHint = 0 // Need to test for a counter reset explicitly. |
| 107 |
Histogram_RESET_HINT_YES Histogram_ResetHint = 1 // This is the 1st histogram after a counter reset. |
| 108 |
Histogram_RESET_HINT_NO Histogram_ResetHint = 2 // There was no counter reset between this and the previous Histogram. |
| 109 |
Histogram_RESET_HINT_GAUGE Histogram_ResetHint = 3 // This is a gauge histogram where counter resets don't happen. |
| 110 |
) |
| 111 |
|
| 112 |
// Enum value maps for Histogram_ResetHint. |
| 113 |
var ( |
| 114 |
Histogram_ResetHint_name = map[int32]string{ |
| 115 |
0: "RESET_HINT_UNSPECIFIED", |
| 116 |
1: "RESET_HINT_YES", |
| 117 |
2: "RESET_HINT_NO", |
| 118 |
3: "RESET_HINT_GAUGE", |
| 119 |
} |
| 120 |
Histogram_ResetHint_value = map[string]int32{ |
| 121 |
"RESET_HINT_UNSPECIFIED": 0, |
| 122 |
"RESET_HINT_YES": 1, |
| 123 |
"RESET_HINT_NO": 2, |
| 124 |
"RESET_HINT_GAUGE": 3, |
| 125 |
} |
| 126 |
) |
| 127 |
|
| 128 |
func (x Histogram_ResetHint) Enum() *Histogram_ResetHint { |
| 129 |
p := new(Histogram_ResetHint) |
| 130 |
*p = x |
| 131 |
return p |
| 132 |
} |
| 133 |
|
| 134 |
func (x Histogram_ResetHint) String() string { |
| 135 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 136 |
} |
| 137 |
|
| 138 |
func (Histogram_ResetHint) Descriptor() protoreflect.EnumDescriptor { |
| 139 |
return file_io_prometheus_write_v2_types_proto_enumTypes[1].Descriptor() |
| 140 |
} |
| 141 |
|
| 142 |
func (Histogram_ResetHint) Type() protoreflect.EnumType { |
| 143 |
return &file_io_prometheus_write_v2_types_proto_enumTypes[1] |
| 144 |
} |
| 145 |
|
| 146 |
func (x Histogram_ResetHint) Number() protoreflect.EnumNumber { |
| 147 |
return protoreflect.EnumNumber(x) |
| 148 |
} |
| 149 |
|
| 150 |
// Deprecated: Use Histogram_ResetHint.Descriptor instead. |
| 151 |
func (Histogram_ResetHint) EnumDescriptor() ([]byte, []int) { |
| 152 |
return file_io_prometheus_write_v2_types_proto_rawDescGZIP(), []int{5, 0} |
| 153 |
} |
| 154 |
|
| 155 |
// Request represents a request to write the given timeseries to a remote destination. |
| 156 |
// This message was introduced in the Remote Write 2.0 specification: |
| 157 |
// https://prometheus.io/docs/concepts/remote_write_spec_2_0/ |
| 158 |
// |
| 159 |
// The canonical Content-Type request header value for this message is |
| 160 |
// "application/x-protobuf;proto=io.prometheus.write.v2.Request" |
| 161 |
// |
| 162 |
// NOTE: gogoproto options might change in future for this file, they |
| 163 |
// are not part of the spec proto (they only modify the generated Go code, not |
| 164 |
// the serialized message). See: https://github.com/prometheus/prometheus/issues/11908 |
| 165 |
type Request struct { |
| 166 |
state protoimpl.MessageState |
| 167 |
sizeCache protoimpl.SizeCache |
| 168 |
unknownFields protoimpl.UnknownFields |
| 169 |
|
| 170 |
// symbols contains a de-duplicated array of string elements used for various |
| 171 |
// items in a Request message, like labels and metadata items. For the sender's convenience |
| 172 |
// around empty values for optional fields like unit_ref, symbols array MUST start with |
| 173 |
// empty string. |
| 174 |
// |
| 175 |
// To decode each of the symbolized strings, referenced, by "ref(s)" suffix, you |
| 176 |
// need to lookup the actual string by index from symbols array. The order of |
| 177 |
// strings is up to the sender. The receiver should not assume any particular encoding. |
| 178 |
Symbols []string `protobuf:"bytes,4,rep,name=symbols,proto3" json:"symbols,omitempty"` |
| 179 |
// timeseries represents an array of distinct series with 0 or more samples. |
| 180 |
Timeseries []*TimeSeries `protobuf:"bytes,5,rep,name=timeseries,proto3" json:"timeseries,omitempty"` |
| 181 |
} |
| 182 |
|
| 183 |
func (x *Request) Reset() { |
| 184 |
*x = Request{} |
| 185 |
if protoimpl.UnsafeEnabled { |
| 186 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[0] |
| 187 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 188 |
ms.StoreMessageInfo(mi) |
| 189 |
} |
| 190 |
} |
| 191 |
|
| 192 |
func (x *Request) String() string { |
| 193 |
return protoimpl.X.MessageStringOf(x) |
| 194 |
} |
| 195 |
|
| 196 |
func (*Request) ProtoMessage() {} |
| 197 |
|
| 198 |
func (x *Request) ProtoReflect() protoreflect.Message { |
| 199 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[0] |
| 200 |
if protoimpl.UnsafeEnabled && x != nil { |
| 201 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 202 |
if ms.LoadMessageInfo() == nil { |
| 203 |
ms.StoreMessageInfo(mi) |
| 204 |
} |
| 205 |
return ms |
| 206 |
} |
| 207 |
return mi.MessageOf(x) |
| 208 |
} |
| 209 |
|
| 210 |
// Deprecated: Use Request.ProtoReflect.Descriptor instead. |
| 211 |
func (*Request) Descriptor() ([]byte, []int) { |
| 212 |
return file_io_prometheus_write_v2_types_proto_rawDescGZIP(), []int{0} |
| 213 |
} |
| 214 |
|
| 215 |
func (x *Request) GetSymbols() []string { |
| 216 |
if x != nil { |
| 217 |
return x.Symbols |
| 218 |
} |
| 219 |
return nil |
| 220 |
} |
| 221 |
|
| 222 |
func (x *Request) GetTimeseries() []*TimeSeries { |
| 223 |
if x != nil { |
| 224 |
return x.Timeseries |
| 225 |
} |
| 226 |
return nil |
| 227 |
} |
| 228 |
|
| 229 |
// TimeSeries represents a single series. |
| 230 |
type TimeSeries struct { |
| 231 |
state protoimpl.MessageState |
| 232 |
sizeCache protoimpl.SizeCache |
| 233 |
unknownFields protoimpl.UnknownFields |
| 234 |
|
| 235 |
// labels_refs is a list of label name-value pair references, encoded |
| 236 |
// as indices to the Request.symbols array. This list's length is always |
| 237 |
// a multiple of two, and the underlying labels should be sorted lexicographically. |
| 238 |
// |
| 239 |
// Note that there might be multiple TimeSeries objects in the same |
| 240 |
// Requests with the same labels e.g. for different exemplars, metadata |
| 241 |
// or created timestamp. |
| 242 |
LabelsRefs []uint32 `protobuf:"varint,1,rep,packed,name=labels_refs,json=labelsRefs,proto3" json:"labels_refs,omitempty"` |
| 243 |
// Timeseries messages can either specify samples or (native) histogram samples |
| 244 |
// (histogram field), but not both. For a typical sender (real-time metric |
| 245 |
// streaming), in healthy cases, there will be only one sample or histogram. |
| 246 |
// |
| 247 |
// Samples and histograms are sorted by timestamp (older first). |
| 248 |
Samples []*Sample `protobuf:"bytes,2,rep,name=samples,proto3" json:"samples,omitempty"` |
| 249 |
Histograms []*Histogram `protobuf:"bytes,3,rep,name=histograms,proto3" json:"histograms,omitempty"` |
| 250 |
// exemplars represents an optional set of exemplars attached to this series' samples. |
| 251 |
Exemplars []*Exemplar `protobuf:"bytes,4,rep,name=exemplars,proto3" json:"exemplars,omitempty"` |
| 252 |
// metadata represents the metadata associated with the given series' samples. |
| 253 |
Metadata *Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` |
| 254 |
// created_timestamp represents an optional created timestamp associated with |
| 255 |
// this series' samples in ms format, typically for counter or histogram type |
| 256 |
// metrics. Created timestamp represents the time when the counter started |
| 257 |
// counting (sometimes referred to as start timestamp), which can increase |
| 258 |
// the accuracy of query results. |
| 259 |
// |
| 260 |
// Note that some receivers might require this and in return fail to |
| 261 |
// ingest such samples within the Request. |
| 262 |
// |
| 263 |
// For Go, see github.com/prometheus/prometheus/model/timestamp/timestamp.go |
| 264 |
// for conversion from/to time.Time to Prometheus timestamp. |
| 265 |
// |
| 266 |
// Note that the "optional" keyword is omitted due to |
| 267 |
// https://cloud.google.com/apis/design/design_patterns.md#optional_primitive_fields |
| 268 |
// Zero value means value not set. If you need to use exactly zero value for |
| 269 |
// the timestamp, use 1 millisecond before or after. |
| 270 |
CreatedTimestamp int64 `protobuf:"varint,6,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"` |
| 271 |
} |
| 272 |
|
| 273 |
func (x *TimeSeries) Reset() { |
| 274 |
*x = TimeSeries{} |
| 275 |
if protoimpl.UnsafeEnabled { |
| 276 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[1] |
| 277 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 278 |
ms.StoreMessageInfo(mi) |
| 279 |
} |
| 280 |
} |
| 281 |
|
| 282 |
func (x *TimeSeries) String() string { |
| 283 |
return protoimpl.X.MessageStringOf(x) |
| 284 |
} |
| 285 |
|
| 286 |
func (*TimeSeries) ProtoMessage() {} |
| 287 |
|
| 288 |
func (x *TimeSeries) ProtoReflect() protoreflect.Message { |
| 289 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[1] |
| 290 |
if protoimpl.UnsafeEnabled && x != nil { |
| 291 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 292 |
if ms.LoadMessageInfo() == nil { |
| 293 |
ms.StoreMessageInfo(mi) |
| 294 |
} |
| 295 |
return ms |
| 296 |
} |
| 297 |
return mi.MessageOf(x) |
| 298 |
} |
| 299 |
|
| 300 |
// Deprecated: Use TimeSeries.ProtoReflect.Descriptor instead. |
| 301 |
func (*TimeSeries) Descriptor() ([]byte, []int) { |
| 302 |
return file_io_prometheus_write_v2_types_proto_rawDescGZIP(), []int{1} |
| 303 |
} |
| 304 |
|
| 305 |
func (x *TimeSeries) GetLabelsRefs() []uint32 { |
| 306 |
if x != nil { |
| 307 |
return x.LabelsRefs |
| 308 |
} |
| 309 |
return nil |
| 310 |
} |
| 311 |
|
| 312 |
func (x *TimeSeries) GetSamples() []*Sample { |
| 313 |
if x != nil { |
| 314 |
return x.Samples |
| 315 |
} |
| 316 |
return nil |
| 317 |
} |
| 318 |
|
| 319 |
func (x *TimeSeries) GetHistograms() []*Histogram { |
| 320 |
if x != nil { |
| 321 |
return x.Histograms |
| 322 |
} |
| 323 |
return nil |
| 324 |
} |
| 325 |
|
| 326 |
func (x *TimeSeries) GetExemplars() []*Exemplar { |
| 327 |
if x != nil { |
| 328 |
return x.Exemplars |
| 329 |
} |
| 330 |
return nil |
| 331 |
} |
| 332 |
|
| 333 |
func (x *TimeSeries) GetMetadata() *Metadata { |
| 334 |
if x != nil { |
| 335 |
return x.Metadata |
| 336 |
} |
| 337 |
return nil |
| 338 |
} |
| 339 |
|
| 340 |
func (x *TimeSeries) GetCreatedTimestamp() int64 { |
| 341 |
if x != nil { |
| 342 |
return x.CreatedTimestamp |
| 343 |
} |
| 344 |
return 0 |
| 345 |
} |
| 346 |
|
| 347 |
// Exemplar is an additional information attached to some series' samples. |
| 348 |
// It is typically used to attach an example trace or request ID associated with |
| 349 |
// the metric changes. |
| 350 |
type Exemplar struct { |
| 351 |
state protoimpl.MessageState |
| 352 |
sizeCache protoimpl.SizeCache |
| 353 |
unknownFields protoimpl.UnknownFields |
| 354 |
|
| 355 |
// labels_refs is an optional list of label name-value pair references, encoded |
| 356 |
// as indices to the Request.symbols array. This list's len is always |
| 357 |
// a multiple of 2, and the underlying labels should be sorted lexicographically. |
| 358 |
// If the exemplar references a trace it should use the `trace_id` label name, as a best practice. |
| 359 |
LabelsRefs []uint32 `protobuf:"varint,1,rep,packed,name=labels_refs,json=labelsRefs,proto3" json:"labels_refs,omitempty"` |
| 360 |
// value represents an exact example value. This can be useful when the exemplar |
| 361 |
// is attached to a histogram, which only gives an estimated value through buckets. |
| 362 |
Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` |
| 363 |
// timestamp represents the timestamp of the exemplar in ms. |
| 364 |
// |
| 365 |
// For Go, see github.com/prometheus/prometheus/model/timestamp/timestamp.go |
| 366 |
// for conversion from/to time.Time to Prometheus timestamp. |
| 367 |
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` |
| 368 |
} |
| 369 |
|
| 370 |
func (x *Exemplar) Reset() { |
| 371 |
*x = Exemplar{} |
| 372 |
if protoimpl.UnsafeEnabled { |
| 373 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[2] |
| 374 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 375 |
ms.StoreMessageInfo(mi) |
| 376 |
} |
| 377 |
} |
| 378 |
|
| 379 |
func (x *Exemplar) String() string { |
| 380 |
return protoimpl.X.MessageStringOf(x) |
| 381 |
} |
| 382 |
|
| 383 |
func (*Exemplar) ProtoMessage() {} |
| 384 |
|
| 385 |
func (x *Exemplar) ProtoReflect() protoreflect.Message { |
| 386 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[2] |
| 387 |
if protoimpl.UnsafeEnabled && x != nil { |
| 388 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 389 |
if ms.LoadMessageInfo() == nil { |
| 390 |
ms.StoreMessageInfo(mi) |
| 391 |
} |
| 392 |
return ms |
| 393 |
} |
| 394 |
return mi.MessageOf(x) |
| 395 |
} |
| 396 |
|
| 397 |
// Deprecated: Use Exemplar.ProtoReflect.Descriptor instead. |
| 398 |
func (*Exemplar) Descriptor() ([]byte, []int) { |
| 399 |
return file_io_prometheus_write_v2_types_proto_rawDescGZIP(), []int{2} |
| 400 |
} |
| 401 |
|
| 402 |
func (x *Exemplar) GetLabelsRefs() []uint32 { |
| 403 |
if x != nil { |
| 404 |
return x.LabelsRefs |
| 405 |
} |
| 406 |
return nil |
| 407 |
} |
| 408 |
|
| 409 |
func (x *Exemplar) GetValue() float64 { |
| 410 |
if x != nil { |
| 411 |
return x.Value |
| 412 |
} |
| 413 |
return 0 |
| 414 |
} |
| 415 |
|
| 416 |
func (x *Exemplar) GetTimestamp() int64 { |
| 417 |
if x != nil { |
| 418 |
return x.Timestamp |
| 419 |
} |
| 420 |
return 0 |
| 421 |
} |
| 422 |
|
| 423 |
// Sample represents series sample. |
| 424 |
type Sample struct { |
| 425 |
state protoimpl.MessageState |
| 426 |
sizeCache protoimpl.SizeCache |
| 427 |
unknownFields protoimpl.UnknownFields |
| 428 |
|
| 429 |
// value of the sample. |
| 430 |
Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` |
| 431 |
// timestamp represents timestamp of the sample in ms. |
| 432 |
// |
| 433 |
// For Go, see github.com/prometheus/prometheus/model/timestamp/timestamp.go |
| 434 |
// for conversion from/to time.Time to Prometheus timestamp. |
| 435 |
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` |
| 436 |
} |
| 437 |
|
| 438 |
func (x *Sample) Reset() { |
| 439 |
*x = Sample{} |
| 440 |
if protoimpl.UnsafeEnabled { |
| 441 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[3] |
| 442 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 443 |
ms.StoreMessageInfo(mi) |
| 444 |
} |
| 445 |
} |
| 446 |
|
| 447 |
func (x *Sample) String() string { |
| 448 |
return protoimpl.X.MessageStringOf(x) |
| 449 |
} |
| 450 |
|
| 451 |
func (*Sample) ProtoMessage() {} |
| 452 |
|
| 453 |
func (x *Sample) ProtoReflect() protoreflect.Message { |
| 454 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[3] |
| 455 |
if protoimpl.UnsafeEnabled && x != nil { |
| 456 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 457 |
if ms.LoadMessageInfo() == nil { |
| 458 |
ms.StoreMessageInfo(mi) |
| 459 |
} |
| 460 |
return ms |
| 461 |
} |
| 462 |
return mi.MessageOf(x) |
| 463 |
} |
| 464 |
|
| 465 |
// Deprecated: Use Sample.ProtoReflect.Descriptor instead. |
| 466 |
func (*Sample) Descriptor() ([]byte, []int) { |
| 467 |
return file_io_prometheus_write_v2_types_proto_rawDescGZIP(), []int{3} |
| 468 |
} |
| 469 |
|
| 470 |
func (x *Sample) GetValue() float64 { |
| 471 |
if x != nil { |
| 472 |
return x.Value |
| 473 |
} |
| 474 |
return 0 |
| 475 |
} |
| 476 |
|
| 477 |
func (x *Sample) GetTimestamp() int64 { |
| 478 |
if x != nil { |
| 479 |
return x.Timestamp |
| 480 |
} |
| 481 |
return 0 |
| 482 |
} |
| 483 |
|
| 484 |
// Metadata represents the metadata associated with the given series' samples. |
| 485 |
type Metadata struct { |
| 486 |
state protoimpl.MessageState |
| 487 |
sizeCache protoimpl.SizeCache |
| 488 |
unknownFields protoimpl.UnknownFields |
| 489 |
|
| 490 |
Type Metadata_MetricType `protobuf:"varint,1,opt,name=type,proto3,enum=io.prometheus.write.v2.Metadata_MetricType" json:"type,omitempty"` |
| 491 |
// help_ref is a reference to the Request.symbols array representing help |
| 492 |
// text for the metric. Help is optional, reference should point to an empty string in |
| 493 |
// such a case. |
| 494 |
HelpRef uint32 `protobuf:"varint,3,opt,name=help_ref,json=helpRef,proto3" json:"help_ref,omitempty"` |
| 495 |
// unit_ref is a reference to the Request.symbols array representing a unit |
| 496 |
// for the metric. Unit is optional, reference should point to an empty string in |
| 497 |
// such a case. |
| 498 |
UnitRef uint32 `protobuf:"varint,4,opt,name=unit_ref,json=unitRef,proto3" json:"unit_ref,omitempty"` |
| 499 |
} |
| 500 |
|
| 501 |
func (x *Metadata) Reset() { |
| 502 |
*x = Metadata{} |
| 503 |
if protoimpl.UnsafeEnabled { |
| 504 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[4] |
| 505 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 506 |
ms.StoreMessageInfo(mi) |
| 507 |
} |
| 508 |
} |
| 509 |
|
| 510 |
func (x *Metadata) String() string { |
| 511 |
return protoimpl.X.MessageStringOf(x) |
| 512 |
} |
| 513 |
|
| 514 |
func (*Metadata) ProtoMessage() {} |
| 515 |
|
| 516 |
func (x *Metadata) ProtoReflect() protoreflect.Message { |
| 517 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[4] |
| 518 |
if protoimpl.UnsafeEnabled && x != nil { |
| 519 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 520 |
if ms.LoadMessageInfo() == nil { |
| 521 |
ms.StoreMessageInfo(mi) |
| 522 |
} |
| 523 |
return ms |
| 524 |
} |
| 525 |
return mi.MessageOf(x) |
| 526 |
} |
| 527 |
|
| 528 |
// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. |
| 529 |
func (*Metadata) Descriptor() ([]byte, []int) { |
| 530 |
return file_io_prometheus_write_v2_types_proto_rawDescGZIP(), []int{4} |
| 531 |
} |
| 532 |
|
| 533 |
func (x *Metadata) GetType() Metadata_MetricType { |
| 534 |
if x != nil { |
| 535 |
return x.Type |
| 536 |
} |
| 537 |
return Metadata_METRIC_TYPE_UNSPECIFIED |
| 538 |
} |
| 539 |
|
| 540 |
func (x *Metadata) GetHelpRef() uint32 { |
| 541 |
if x != nil { |
| 542 |
return x.HelpRef |
| 543 |
} |
| 544 |
return 0 |
| 545 |
} |
| 546 |
|
| 547 |
func (x *Metadata) GetUnitRef() uint32 { |
| 548 |
if x != nil { |
| 549 |
return x.UnitRef |
| 550 |
} |
| 551 |
return 0 |
| 552 |
} |
| 553 |
|
| 554 |
// A native histogram, also known as a sparse histogram. |
| 555 |
// Original design doc: |
| 556 |
// https://docs.google.com/document/d/1cLNv3aufPZb3fNfaJgdaRBZsInZKKIHo9E6HinJVbpM/edit |
| 557 |
// The appendix of this design doc also explains the concept of float |
| 558 |
// histograms. This Histogram message can represent both, the usual |
| 559 |
// integer histogram as well as a float histogram. |
| 560 |
type Histogram struct { |
| 561 |
state protoimpl.MessageState |
| 562 |
sizeCache protoimpl.SizeCache |
| 563 |
unknownFields protoimpl.UnknownFields |
| 564 |
|
| 565 |
// Types that are assignable to Count: |
| 566 |
// |
| 567 |
// *Histogram_CountInt |
| 568 |
// *Histogram_CountFloat |
| 569 |
Count isHistogram_Count `protobuf_oneof:"count"` |
| 570 |
Sum float64 `protobuf:"fixed64,3,opt,name=sum,proto3" json:"sum,omitempty"` // Sum of observations in the histogram. |
| 571 |
// The schema defines the bucket schema. Currently, valid numbers |
| 572 |
// are -53 and numbers in range of -4 <= n <= 8. More valid numbers might be |
| 573 |
// added in future for new bucketing layouts. |
| 574 |
// |
| 575 |
// The schema equal to -53 means custom buckets. See |
| 576 |
// custom_values field description for more details. |
| 577 |
// |
| 578 |
// Values between -4 and 8 represent base-2 bucket schema, where 1 |
| 579 |
// is a bucket boundary in each case, and then each power of two is |
| 580 |
// divided into 2^n (n is schema value) logarithmic buckets. Or in other words, |
| 581 |
// each bucket boundary is the previous boundary times 2^(2^-n). |
| 582 |
Schema int32 `protobuf:"zigzag32,4,opt,name=schema,proto3" json:"schema,omitempty"` |
| 583 |
ZeroThreshold float64 `protobuf:"fixed64,5,opt,name=zero_threshold,json=zeroThreshold,proto3" json:"zero_threshold,omitempty"` // Breadth of the zero bucket. |
| 584 |
// Types that are assignable to ZeroCount: |
| 585 |
// |
| 586 |
// *Histogram_ZeroCountInt |
| 587 |
// *Histogram_ZeroCountFloat |
| 588 |
ZeroCount isHistogram_ZeroCount `protobuf_oneof:"zero_count"` |
| 589 |
// Negative Buckets. |
| 590 |
NegativeSpans []*BucketSpan `protobuf:"bytes,8,rep,name=negative_spans,json=negativeSpans,proto3" json:"negative_spans,omitempty"` |
| 591 |
// Use either "negative_deltas" or "negative_counts", the former for |
| 592 |
// regular histograms with integer counts, the latter for |
| 593 |
// float histograms. |
| 594 |
NegativeDeltas []int64 `protobuf:"zigzag64,9,rep,packed,name=negative_deltas,json=negativeDeltas,proto3" json:"negative_deltas,omitempty"` // Count delta of each bucket compared to previous one (or to zero for 1st bucket). |
| 595 |
NegativeCounts []float64 `protobuf:"fixed64,10,rep,packed,name=negative_counts,json=negativeCounts,proto3" json:"negative_counts,omitempty"` // Absolute count of each bucket. |
| 596 |
// Positive Buckets. |
| 597 |
// |
| 598 |
// In case of custom buckets (-53 schema value) the positive buckets are interpreted as follows: |
| 599 |
// * The span offset+length points to an the index of the custom_values array |
| 600 |
// or +Inf if pointing to the len of the array. |
| 601 |
// * The counts and deltas have the same meaning as for exponential histograms. |
| 602 |
PositiveSpans []*BucketSpan `protobuf:"bytes,11,rep,name=positive_spans,json=positiveSpans,proto3" json:"positive_spans,omitempty"` |
| 603 |
// Use either "positive_deltas" or "positive_counts", the former for |
| 604 |
// regular histograms with integer counts, the latter for |
| 605 |
// float histograms. |
| 606 |
PositiveDeltas []int64 `protobuf:"zigzag64,12,rep,packed,name=positive_deltas,json=positiveDeltas,proto3" json:"positive_deltas,omitempty"` // Count delta of each bucket compared to previous one (or to zero for 1st bucket). |
| 607 |
PositiveCounts []float64 `protobuf:"fixed64,13,rep,packed,name=positive_counts,json=positiveCounts,proto3" json:"positive_counts,omitempty"` // Absolute count of each bucket. |
| 608 |
ResetHint Histogram_ResetHint `protobuf:"varint,14,opt,name=reset_hint,json=resetHint,proto3,enum=io.prometheus.write.v2.Histogram_ResetHint" json:"reset_hint,omitempty"` |
| 609 |
// timestamp represents timestamp of the sample in ms. |
| 610 |
// |
| 611 |
// For Go, see github.com/prometheus/prometheus/model/timestamp/timestamp.go |
| 612 |
// for conversion from/to time.Time to Prometheus timestamp. |
| 613 |
Timestamp int64 `protobuf:"varint,15,opt,name=timestamp,proto3" json:"timestamp,omitempty"` |
| 614 |
// custom_values is an additional field used by non-exponential bucketing layouts. |
| 615 |
// |
| 616 |
// For custom buckets (-53 schema value) custom_values specify monotonically |
| 617 |
// increasing upper inclusive boundaries for the bucket counts with arbitrary |
| 618 |
// widths for this histogram. In other words, custom_values represents custom, |
| 619 |
// explicit bucketing that could have been converted from the classic histograms. |
| 620 |
// |
| 621 |
// Those bounds are then referenced by spans in positive_spans with corresponding positive |
| 622 |
// counts of deltas (refer to positive_spans for more details). This way we can |
| 623 |
// have encode sparse histograms with custom bucketing (many buckets are often |
| 624 |
// not used). |
| 625 |
// |
| 626 |
// Note that for custom bounds, even negative observations are placed in the positive |
| 627 |
// counts to simplify the implementation and avoid ambiguity of where to place |
| 628 |
// an underflow bucket, e.g. (-2, 1]. Therefore negative buckets and |
| 629 |
// the zero bucket are unused, if the schema indicates custom bucketing. |
| 630 |
// |
| 631 |
// For each upper boundary the previous boundary represent the lower exclusive |
| 632 |
// boundary for that bucket. The first element is the upper inclusive boundary |
| 633 |
// for the first bucket, which implicitly has a lower inclusive bound of -Inf. |
| 634 |
// This is similar to "le" label semantics on classic histograms. You may add a |
| 635 |
// bucket with an upper bound of 0 to make sure that you really have no negative |
| 636 |
// observations, but in practice, native histogram rendering will show both with |
| 637 |
// or without first upper boundary 0 and no negative counts as the same case. |
| 638 |
// |
| 639 |
// The last element is not only the upper inclusive bound of the last regular |
| 640 |
// bucket, but implicitly the lower exclusive bound of the +Inf bucket. |
| 641 |
CustomValues []float64 `protobuf:"fixed64,16,rep,packed,name=custom_values,json=customValues,proto3" json:"custom_values,omitempty"` |
| 642 |
} |
| 643 |
|
| 644 |
func (x *Histogram) Reset() { |
| 645 |
*x = Histogram{} |
| 646 |
if protoimpl.UnsafeEnabled { |
| 647 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[5] |
| 648 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 649 |
ms.StoreMessageInfo(mi) |
| 650 |
} |
| 651 |
} |
| 652 |
|
| 653 |
func (x *Histogram) String() string { |
| 654 |
return protoimpl.X.MessageStringOf(x) |
| 655 |
} |
| 656 |
|
| 657 |
func (*Histogram) ProtoMessage() {} |
| 658 |
|
| 659 |
func (x *Histogram) ProtoReflect() protoreflect.Message { |
| 660 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[5] |
| 661 |
if protoimpl.UnsafeEnabled && x != nil { |
| 662 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 663 |
if ms.LoadMessageInfo() == nil { |
| 664 |
ms.StoreMessageInfo(mi) |
| 665 |
} |
| 666 |
return ms |
| 667 |
} |
| 668 |
return mi.MessageOf(x) |
| 669 |
} |
| 670 |
|
| 671 |
// Deprecated: Use Histogram.ProtoReflect.Descriptor instead. |
| 672 |
func (*Histogram) Descriptor() ([]byte, []int) { |
| 673 |
return file_io_prometheus_write_v2_types_proto_rawDescGZIP(), []int{5} |
| 674 |
} |
| 675 |
|
| 676 |
func (m *Histogram) GetCount() isHistogram_Count { |
| 677 |
if m != nil { |
| 678 |
return m.Count |
| 679 |
} |
| 680 |
return nil |
| 681 |
} |
| 682 |
|
| 683 |
func (x *Histogram) GetCountInt() uint64 { |
| 684 |
if x, ok := x.GetCount().(*Histogram_CountInt); ok { |
| 685 |
return x.CountInt |
| 686 |
} |
| 687 |
return 0 |
| 688 |
} |
| 689 |
|
| 690 |
func (x *Histogram) GetCountFloat() float64 { |
| 691 |
if x, ok := x.GetCount().(*Histogram_CountFloat); ok { |
| 692 |
return x.CountFloat |
| 693 |
} |
| 694 |
return 0 |
| 695 |
} |
| 696 |
|
| 697 |
func (x *Histogram) GetSum() float64 { |
| 698 |
if x != nil { |
| 699 |
return x.Sum |
| 700 |
} |
| 701 |
return 0 |
| 702 |
} |
| 703 |
|
| 704 |
func (x *Histogram) GetSchema() int32 { |
| 705 |
if x != nil { |
| 706 |
return x.Schema |
| 707 |
} |
| 708 |
return 0 |
| 709 |
} |
| 710 |
|
| 711 |
func (x *Histogram) GetZeroThreshold() float64 { |
| 712 |
if x != nil { |
| 713 |
return x.ZeroThreshold |
| 714 |
} |
| 715 |
return 0 |
| 716 |
} |
| 717 |
|
| 718 |
func (m *Histogram) GetZeroCount() isHistogram_ZeroCount { |
| 719 |
if m != nil { |
| 720 |
return m.ZeroCount |
| 721 |
} |
| 722 |
return nil |
| 723 |
} |
| 724 |
|
| 725 |
func (x *Histogram) GetZeroCountInt() uint64 { |
| 726 |
if x, ok := x.GetZeroCount().(*Histogram_ZeroCountInt); ok { |
| 727 |
return x.ZeroCountInt |
| 728 |
} |
| 729 |
return 0 |
| 730 |
} |
| 731 |
|
| 732 |
func (x *Histogram) GetZeroCountFloat() float64 { |
| 733 |
if x, ok := x.GetZeroCount().(*Histogram_ZeroCountFloat); ok { |
| 734 |
return x.ZeroCountFloat |
| 735 |
} |
| 736 |
return 0 |
| 737 |
} |
| 738 |
|
| 739 |
func (x *Histogram) GetNegativeSpans() []*BucketSpan { |
| 740 |
if x != nil { |
| 741 |
return x.NegativeSpans |
| 742 |
} |
| 743 |
return nil |
| 744 |
} |
| 745 |
|
| 746 |
func (x *Histogram) GetNegativeDeltas() []int64 { |
| 747 |
if x != nil { |
| 748 |
return x.NegativeDeltas |
| 749 |
} |
| 750 |
return nil |
| 751 |
} |
| 752 |
|
| 753 |
func (x *Histogram) GetNegativeCounts() []float64 { |
| 754 |
if x != nil { |
| 755 |
return x.NegativeCounts |
| 756 |
} |
| 757 |
return nil |
| 758 |
} |
| 759 |
|
| 760 |
func (x *Histogram) GetPositiveSpans() []*BucketSpan { |
| 761 |
if x != nil { |
| 762 |
return x.PositiveSpans |
| 763 |
} |
| 764 |
return nil |
| 765 |
} |
| 766 |
|
| 767 |
func (x *Histogram) GetPositiveDeltas() []int64 { |
| 768 |
if x != nil { |
| 769 |
return x.PositiveDeltas |
| 770 |
} |
| 771 |
return nil |
| 772 |
} |
| 773 |
|
| 774 |
func (x *Histogram) GetPositiveCounts() []float64 { |
| 775 |
if x != nil { |
| 776 |
return x.PositiveCounts |
| 777 |
} |
| 778 |
return nil |
| 779 |
} |
| 780 |
|
| 781 |
func (x *Histogram) GetResetHint() Histogram_ResetHint { |
| 782 |
if x != nil { |
| 783 |
return x.ResetHint |
| 784 |
} |
| 785 |
return Histogram_RESET_HINT_UNSPECIFIED |
| 786 |
} |
| 787 |
|
| 788 |
func (x *Histogram) GetTimestamp() int64 { |
| 789 |
if x != nil { |
| 790 |
return x.Timestamp |
| 791 |
} |
| 792 |
return 0 |
| 793 |
} |
| 794 |
|
| 795 |
func (x *Histogram) GetCustomValues() []float64 { |
| 796 |
if x != nil { |
| 797 |
return x.CustomValues |
| 798 |
} |
| 799 |
return nil |
| 800 |
} |
| 801 |
|
| 802 |
type isHistogram_Count interface { |
| 803 |
isHistogram_Count() |
| 804 |
} |
| 805 |
|
| 806 |
type Histogram_CountInt struct { |
| 807 |
CountInt uint64 `protobuf:"varint,1,opt,name=count_int,json=countInt,proto3,oneof"` |
| 808 |
} |
| 809 |
|
| 810 |
type Histogram_CountFloat struct { |
| 811 |
CountFloat float64 `protobuf:"fixed64,2,opt,name=count_float,json=countFloat,proto3,oneof"` |
| 812 |
} |
| 813 |
|
| 814 |
func (*Histogram_CountInt) isHistogram_Count() {} |
| 815 |
|
| 816 |
func (*Histogram_CountFloat) isHistogram_Count() {} |
| 817 |
|
| 818 |
type isHistogram_ZeroCount interface { |
| 819 |
isHistogram_ZeroCount() |
| 820 |
} |
| 821 |
|
| 822 |
type Histogram_ZeroCountInt struct { |
| 823 |
ZeroCountInt uint64 `protobuf:"varint,6,opt,name=zero_count_int,json=zeroCountInt,proto3,oneof"` |
| 824 |
} |
| 825 |
|
| 826 |
type Histogram_ZeroCountFloat struct { |
| 827 |
ZeroCountFloat float64 `protobuf:"fixed64,7,opt,name=zero_count_float,json=zeroCountFloat,proto3,oneof"` |
| 828 |
} |
| 829 |
|
| 830 |
func (*Histogram_ZeroCountInt) isHistogram_ZeroCount() {} |
| 831 |
|
| 832 |
func (*Histogram_ZeroCountFloat) isHistogram_ZeroCount() {} |
| 833 |
|
| 834 |
// A BucketSpan defines a number of consecutive buckets with their |
| 835 |
// offset. Logically, it would be more straightforward to include the |
| 836 |
// bucket counts in the Span. However, the protobuf representation is |
| 837 |
// more compact in the way the data is structured here (with all the |
| 838 |
// buckets in a single array separate from the Spans). |
| 839 |
type BucketSpan struct { |
| 840 |
state protoimpl.MessageState |
| 841 |
sizeCache protoimpl.SizeCache |
| 842 |
unknownFields protoimpl.UnknownFields |
| 843 |
|
| 844 |
Offset int32 `protobuf:"zigzag32,1,opt,name=offset,proto3" json:"offset,omitempty"` // Gap to previous span, or starting point for 1st span (which can be negative). |
| 845 |
Length uint32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` // Length of consecutive buckets. |
| 846 |
} |
| 847 |
|
| 848 |
func (x *BucketSpan) Reset() { |
| 849 |
*x = BucketSpan{} |
| 850 |
if protoimpl.UnsafeEnabled { |
| 851 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[6] |
| 852 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 853 |
ms.StoreMessageInfo(mi) |
| 854 |
} |
| 855 |
} |
| 856 |
|
| 857 |
func (x *BucketSpan) String() string { |
| 858 |
return protoimpl.X.MessageStringOf(x) |
| 859 |
} |
| 860 |
|
| 861 |
func (*BucketSpan) ProtoMessage() {} |
| 862 |
|
| 863 |
func (x *BucketSpan) ProtoReflect() protoreflect.Message { |
| 864 |
mi := &file_io_prometheus_write_v2_types_proto_msgTypes[6] |
| 865 |
if protoimpl.UnsafeEnabled && x != nil { |
| 866 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 867 |
if ms.LoadMessageInfo() == nil { |
| 868 |
ms.StoreMessageInfo(mi) |
| 869 |
} |
| 870 |
return ms |
| 871 |
} |
| 872 |
return mi.MessageOf(x) |
| 873 |
} |
| 874 |
|
| 875 |
// Deprecated: Use BucketSpan.ProtoReflect.Descriptor instead. |
| 876 |
func (*BucketSpan) Descriptor() ([]byte, []int) { |
| 877 |
return file_io_prometheus_write_v2_types_proto_rawDescGZIP(), []int{6} |
| 878 |
} |
| 879 |
|
| 880 |
func (x *BucketSpan) GetOffset() int32 { |
| 881 |
if x != nil { |
| 882 |
return x.Offset |
| 883 |
} |
| 884 |
return 0 |
| 885 |
} |
| 886 |
|
| 887 |
func (x *BucketSpan) GetLength() uint32 { |
| 888 |
if x != nil { |
| 889 |
return x.Length |
| 890 |
} |
| 891 |
return 0 |
| 892 |
} |
| 893 |
|
| 894 |
var File_io_prometheus_write_v2_types_proto protoreflect.FileDescriptor |
| 895 |
|
| 896 |
var file_io_prometheus_write_v2_types_proto_rawDesc = []byte{ |
| 897 |
0x0a, 0x22, 0x69, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2f, |
| 898 |
0x77, 0x72, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, |
| 899 |
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, |
| 900 |
0x65, 0x75, 0x73, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, |
| 901 |
0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, |
| 902 |
0x74, 0x6f, 0x22, 0x73, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, |
| 903 |
0x07, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, |
| 904 |
0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x12, 0x48, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, |
| 905 |
0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6f, |
| 906 |
0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x77, 0x72, 0x69, 0x74, |
| 907 |
0x65, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x42, |
| 908 |
0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x69, 0x65, |
| 909 |
0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x04, 0x22, 0xed, 0x02, 0x0a, 0x0a, 0x54, 0x69, 0x6d, 0x65, |
| 910 |
0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, |
| 911 |
0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x6c, 0x61, 0x62, |
| 912 |
0x65, 0x6c, 0x73, 0x52, 0x65, 0x66, 0x73, 0x12, 0x3e, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, |
| 913 |
0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, |
| 914 |
0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x76, |
| 915 |
0x32, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, |
| 916 |
0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x68, 0x69, 0x73, 0x74, 0x6f, |
| 917 |
0x67, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x69, 0x6f, |
| 918 |
0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x77, 0x72, 0x69, 0x74, |
| 919 |
0x65, 0x2e, 0x76, 0x32, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x42, 0x04, |
| 920 |
0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x73, |
| 921 |
0x12, 0x44, 0x0a, 0x09, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x18, 0x04, 0x20, |
| 922 |
0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, |
| 923 |
0x65, 0x75, 0x73, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x78, 0x65, |
| 924 |
0x6d, 0x70, 0x6c, 0x61, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x65, 0x78, 0x65, |
| 925 |
0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x12, 0x42, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, |
| 926 |
0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, |
| 927 |
0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x76, |
| 928 |
0x32, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, |
| 929 |
0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x72, |
| 930 |
0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, |
| 931 |
0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, |
| 932 |
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x5f, 0x0a, 0x08, 0x45, 0x78, 0x65, 0x6d, 0x70, |
| 933 |
0x6c, 0x61, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x5f, 0x72, 0x65, |
| 934 |
0x66, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, |
| 935 |
0x52, 0x65, 0x66, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, |
| 936 |
0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, |
| 937 |
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, |
| 938 |
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x3c, 0x0a, 0x06, 0x53, 0x61, 0x6d, 0x70, |
| 939 |
0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 940 |
0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, |
| 941 |
0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, |
| 942 |
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xe1, 0x02, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, |
| 943 |
0x61, 0x74, 0x61, 0x12, 0x3f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 944 |
0x0e, 0x32, 0x2b, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, |
| 945 |
0x73, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, |
| 946 |
0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, |
| 947 |
0x74, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x65, 0x6c, 0x70, 0x5f, 0x72, 0x65, 0x66, |
| 948 |
0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x68, 0x65, 0x6c, 0x70, 0x52, 0x65, 0x66, 0x12, |
| 949 |
0x19, 0x0a, 0x08, 0x75, 0x6e, 0x69, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, |
| 950 |
0x0d, 0x52, 0x07, 0x75, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x66, 0x22, 0xdd, 0x01, 0x0a, 0x0a, 0x4d, |
| 951 |
0x65, 0x74, 0x72, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x45, 0x54, |
| 952 |
0x52, 0x49, 0x43, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, |
| 953 |
0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, |
| 954 |
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x45, 0x52, 0x10, 0x01, 0x12, |
| 955 |
0x15, 0x0a, 0x11, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, |
| 956 |
0x41, 0x55, 0x47, 0x45, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, |
| 957 |
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, |
| 958 |
0x03, 0x12, 0x1e, 0x0a, 0x1a, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x5f, 0x54, 0x59, 0x50, 0x45, |
| 959 |
0x5f, 0x47, 0x41, 0x55, 0x47, 0x45, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, |
| 960 |
0x04, 0x12, 0x17, 0x0a, 0x13, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x5f, 0x54, 0x59, 0x50, 0x45, |
| 961 |
0x5f, 0x53, 0x55, 0x4d, 0x4d, 0x41, 0x52, 0x59, 0x10, 0x05, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x45, |
| 962 |
0x54, 0x52, 0x49, 0x43, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x06, |
| 963 |
0x12, 0x18, 0x0a, 0x14, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, |
| 964 |
0x53, 0x54, 0x41, 0x54, 0x45, 0x53, 0x45, 0x54, 0x10, 0x07, 0x22, 0xc4, 0x06, 0x0a, 0x09, 0x48, |
| 965 |
0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x1d, 0x0a, 0x09, 0x63, 0x6f, 0x75, 0x6e, |
| 966 |
0x74, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x08, 0x63, |
| 967 |
0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, |
| 968 |
0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0a, |
| 969 |
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x75, |
| 970 |
0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x12, 0x16, 0x0a, 0x06, |
| 971 |
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x11, 0x52, 0x06, 0x73, 0x63, |
| 972 |
0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x0a, 0x0e, 0x7a, 0x65, 0x72, 0x6f, 0x5f, 0x74, 0x68, 0x72, |
| 973 |
0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x7a, 0x65, |
| 974 |
0x72, 0x6f, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x7a, |
| 975 |
0x65, 0x72, 0x6f, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x06, 0x20, |
| 976 |
0x01, 0x28, 0x04, 0x48, 0x01, 0x52, 0x0c, 0x7a, 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x75, 0x6e, 0x74, |
| 977 |
0x49, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x7a, 0x65, 0x72, 0x6f, 0x5f, 0x63, 0x6f, 0x75, 0x6e, |
| 978 |
0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x48, 0x01, 0x52, |
| 979 |
0x0e, 0x7a, 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, |
| 980 |
0x4f, 0x0a, 0x0e, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x70, 0x61, 0x6e, |
| 981 |
0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, |
| 982 |
0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x32, |
| 983 |
0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, |
| 984 |
0x00, 0x52, 0x0d, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x73, |
| 985 |
0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x64, 0x65, 0x6c, |
| 986 |
0x74, 0x61, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x12, 0x52, 0x0e, 0x6e, 0x65, 0x67, 0x61, 0x74, |
| 987 |
0x69, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x65, 0x67, |
| 988 |
0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, |
| 989 |
0x28, 0x01, 0x52, 0x0e, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x75, 0x6e, |
| 990 |
0x74, 0x73, 0x12, 0x4f, 0x0a, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73, |
| 991 |
0x70, 0x61, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6f, 0x2e, |
| 992 |
0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, |
| 993 |
0x2e, 0x76, 0x32, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x42, 0x04, |
| 994 |
0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x53, 0x70, |
| 995 |
0x61, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, |
| 996 |
0x64, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x12, 0x52, 0x0e, 0x70, 0x6f, |
| 997 |
0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x12, 0x27, 0x0a, 0x0f, |
| 998 |
0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, |
| 999 |
0x0d, 0x20, 0x03, 0x28, 0x01, 0x52, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x43, |
| 1000 |
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x4a, 0x0a, 0x0a, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x68, |
| 1001 |
0x69, 0x6e, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x69, 0x6f, 0x2e, 0x70, |
| 1002 |
0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x2e, |
| 1003 |
0x76, 0x32, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x2e, 0x52, 0x65, 0x73, |
| 1004 |
0x65, 0x74, 0x48, 0x69, 0x6e, 0x74, 0x52, 0x09, 0x72, 0x65, 0x73, 0x65, 0x74, 0x48, 0x69, 0x6e, |
| 1005 |
0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0f, |
| 1006 |
0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, |
| 1007 |
0x23, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, |
| 1008 |
0x18, 0x10, 0x20, 0x03, 0x28, 0x01, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x56, 0x61, |
| 1009 |
0x6c, 0x75, 0x65, 0x73, 0x22, 0x64, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x65, 0x74, 0x48, 0x69, 0x6e, |
| 1010 |
0x74, 0x12, 0x1a, 0x0a, 0x16, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x48, 0x49, 0x4e, 0x54, 0x5f, |
| 1011 |
0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, |
| 1012 |
0x0e, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x48, 0x49, 0x4e, 0x54, 0x5f, 0x59, 0x45, 0x53, 0x10, |
| 1013 |
0x01, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x48, 0x49, 0x4e, 0x54, 0x5f, |
| 1014 |
0x4e, 0x4f, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x48, 0x49, |
| 1015 |
0x4e, 0x54, 0x5f, 0x47, 0x41, 0x55, 0x47, 0x45, 0x10, 0x03, 0x42, 0x07, 0x0a, 0x05, 0x63, 0x6f, |
| 1016 |
0x75, 0x6e, 0x74, 0x42, 0x0c, 0x0a, 0x0a, 0x7a, 0x65, 0x72, 0x6f, 0x5f, 0x63, 0x6f, 0x75, 0x6e, |
| 1017 |
0x74, 0x22, 0x3c, 0x0a, 0x0a, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x12, |
| 1018 |
0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x11, 0x52, |
| 1019 |
0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, |
| 1020 |
0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x42, |
| 1021 |
0x09, 0x5a, 0x07, 0x77, 0x72, 0x69, 0x74, 0x65, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
| 1022 |
0x6f, 0x33, |
| 1023 |
} |
| 1024 |
|
| 1025 |
var ( |
| 1026 |
file_io_prometheus_write_v2_types_proto_rawDescOnce sync.Once |
| 1027 |
file_io_prometheus_write_v2_types_proto_rawDescData = file_io_prometheus_write_v2_types_proto_rawDesc |
| 1028 |
) |
| 1029 |
|
| 1030 |
func file_io_prometheus_write_v2_types_proto_rawDescGZIP() []byte { |
| 1031 |
file_io_prometheus_write_v2_types_proto_rawDescOnce.Do(func() { |
| 1032 |
file_io_prometheus_write_v2_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_io_prometheus_write_v2_types_proto_rawDescData) |
| 1033 |
}) |
| 1034 |
return file_io_prometheus_write_v2_types_proto_rawDescData |
| 1035 |
} |
| 1036 |
|
| 1037 |
var file_io_prometheus_write_v2_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 1038 |
var file_io_prometheus_write_v2_types_proto_msgTypes = make([]protoimpl.MessageInfo, 7) |
| 1039 |
var file_io_prometheus_write_v2_types_proto_goTypes = []interface{}{ |
| 1040 |
(Metadata_MetricType)(0), // 0: io.prometheus.write.v2.Metadata.MetricType |
| 1041 |
(Histogram_ResetHint)(0), // 1: io.prometheus.write.v2.Histogram.ResetHint |
| 1042 |
(*Request)(nil), // 2: io.prometheus.write.v2.Request |
| 1043 |
(*TimeSeries)(nil), // 3: io.prometheus.write.v2.TimeSeries |
| 1044 |
(*Exemplar)(nil), // 4: io.prometheus.write.v2.Exemplar |
| 1045 |
(*Sample)(nil), // 5: io.prometheus.write.v2.Sample |
| 1046 |
(*Metadata)(nil), // 6: io.prometheus.write.v2.Metadata |
| 1047 |
(*Histogram)(nil), // 7: io.prometheus.write.v2.Histogram |
| 1048 |
(*BucketSpan)(nil), // 8: io.prometheus.write.v2.BucketSpan |
| 1049 |
} |
| 1050 |
var file_io_prometheus_write_v2_types_proto_depIdxs = []int32{ |
| 1051 |
3, // 0: io.prometheus.write.v2.Request.timeseries:type_name -> io.prometheus.write.v2.TimeSeries |
| 1052 |
5, // 1: io.prometheus.write.v2.TimeSeries.samples:type_name -> io.prometheus.write.v2.Sample |
| 1053 |
7, // 2: io.prometheus.write.v2.TimeSeries.histograms:type_name -> io.prometheus.write.v2.Histogram |
| 1054 |
4, // 3: io.prometheus.write.v2.TimeSeries.exemplars:type_name -> io.prometheus.write.v2.Exemplar |
| 1055 |
6, // 4: io.prometheus.write.v2.TimeSeries.metadata:type_name -> io.prometheus.write.v2.Metadata |
| 1056 |
0, // 5: io.prometheus.write.v2.Metadata.type:type_name -> io.prometheus.write.v2.Metadata.MetricType |
| 1057 |
8, // 6: io.prometheus.write.v2.Histogram.negative_spans:type_name -> io.prometheus.write.v2.BucketSpan |
| 1058 |
8, // 7: io.prometheus.write.v2.Histogram.positive_spans:type_name -> io.prometheus.write.v2.BucketSpan |
| 1059 |
1, // 8: io.prometheus.write.v2.Histogram.reset_hint:type_name -> io.prometheus.write.v2.Histogram.ResetHint |
| 1060 |
9, // [9:9] is the sub-list for method output_type |
| 1061 |
9, // [9:9] is the sub-list for method input_type |
| 1062 |
9, // [9:9] is the sub-list for extension type_name |
| 1063 |
9, // [9:9] is the sub-list for extension extendee |
| 1064 |
0, // [0:9] is the sub-list for field type_name |
| 1065 |
} |
| 1066 |
|
| 1067 |
func init() { file_io_prometheus_write_v2_types_proto_init() } |
| 1068 |
func file_io_prometheus_write_v2_types_proto_init() { |
| 1069 |
if File_io_prometheus_write_v2_types_proto != nil { |
| 1070 |
return |
| 1071 |
} |
| 1072 |
if !protoimpl.UnsafeEnabled { |
| 1073 |
file_io_prometheus_write_v2_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 1074 |
switch v := v.(*Request); i { |
| 1075 |
case 0: |
| 1076 |
return &v.state |
| 1077 |
case 1: |
| 1078 |
return &v.sizeCache |
| 1079 |
case 2: |
| 1080 |
return &v.unknownFields |
| 1081 |
default: |
| 1082 |
return nil |
| 1083 |
} |
| 1084 |
} |
| 1085 |
file_io_prometheus_write_v2_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 1086 |
switch v := v.(*TimeSeries); i { |
| 1087 |
case 0: |
| 1088 |
return &v.state |
| 1089 |
case 1: |
| 1090 |
return &v.sizeCache |
| 1091 |
case 2: |
| 1092 |
return &v.unknownFields |
| 1093 |
default: |
| 1094 |
return nil |
| 1095 |
} |
| 1096 |
} |
| 1097 |
file_io_prometheus_write_v2_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 1098 |
switch v := v.(*Exemplar); i { |
| 1099 |
case 0: |
| 1100 |
return &v.state |
| 1101 |
case 1: |
| 1102 |
return &v.sizeCache |
| 1103 |
case 2: |
| 1104 |
return &v.unknownFields |
| 1105 |
default: |
| 1106 |
return nil |
| 1107 |
} |
| 1108 |
} |
| 1109 |
file_io_prometheus_write_v2_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 1110 |
switch v := v.(*Sample); i { |
| 1111 |
case 0: |
| 1112 |
return &v.state |
| 1113 |
case 1: |
| 1114 |
return &v.sizeCache |
| 1115 |
case 2: |
| 1116 |
return &v.unknownFields |
| 1117 |
default: |
| 1118 |
return nil |
| 1119 |
} |
| 1120 |
} |
| 1121 |
file_io_prometheus_write_v2_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 1122 |
switch v := v.(*Metadata); i { |
| 1123 |
case 0: |
| 1124 |
return &v.state |
| 1125 |
case 1: |
| 1126 |
return &v.sizeCache |
| 1127 |
case 2: |
| 1128 |
return &v.unknownFields |
| 1129 |
default: |
| 1130 |
return nil |
| 1131 |
} |
| 1132 |
} |
| 1133 |
file_io_prometheus_write_v2_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| 1134 |
switch v := v.(*Histogram); i { |
| 1135 |
case 0: |
| 1136 |
return &v.state |
| 1137 |
case 1: |
| 1138 |
return &v.sizeCache |
| 1139 |
case 2: |
| 1140 |
return &v.unknownFields |
| 1141 |
default: |
| 1142 |
return nil |
| 1143 |
} |
| 1144 |
} |
| 1145 |
file_io_prometheus_write_v2_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| 1146 |
switch v := v.(*BucketSpan); i { |
| 1147 |
case 0: |
| 1148 |
return &v.state |
| 1149 |
case 1: |
| 1150 |
return &v.sizeCache |
| 1151 |
case 2: |
| 1152 |
return &v.unknownFields |
| 1153 |
default: |
| 1154 |
return nil |
| 1155 |
} |
| 1156 |
} |
| 1157 |
} |
| 1158 |
file_io_prometheus_write_v2_types_proto_msgTypes[5].OneofWrappers = []interface{}{ |
| 1159 |
(*Histogram_CountInt)(nil), |
| 1160 |
(*Histogram_CountFloat)(nil), |
| 1161 |
(*Histogram_ZeroCountInt)(nil), |
| 1162 |
(*Histogram_ZeroCountFloat)(nil), |
| 1163 |
} |
| 1164 |
type x struct{} |
| 1165 |
out := protoimpl.TypeBuilder{ |
| 1166 |
File: protoimpl.DescBuilder{ |
| 1167 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 1168 |
RawDescriptor: file_io_prometheus_write_v2_types_proto_rawDesc, |
| 1169 |
NumEnums: 2, |
| 1170 |
NumMessages: 7, |
| 1171 |
NumExtensions: 0, |
| 1172 |
NumServices: 0, |
| 1173 |
}, |
| 1174 |
GoTypes: file_io_prometheus_write_v2_types_proto_goTypes, |
| 1175 |
DependencyIndexes: file_io_prometheus_write_v2_types_proto_depIdxs, |
| 1176 |
EnumInfos: file_io_prometheus_write_v2_types_proto_enumTypes, |
| 1177 |
MessageInfos: file_io_prometheus_write_v2_types_proto_msgTypes, |
| 1178 |
}.Build() |
| 1179 |
File_io_prometheus_write_v2_types_proto = out.File |
| 1180 |
file_io_prometheus_write_v2_types_proto_rawDesc = nil |
| 1181 |
file_io_prometheus_write_v2_types_proto_goTypes = nil |
| 1182 |
file_io_prometheus_write_v2_types_proto_depIdxs = nil |
| 1183 |
} |