Debian Codegraph @

logging/apiv2/loggingpb/logging_metrics.pb.go

raw
1 // Copyright 2025 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.35.2
18 // protoc v4.25.7
19 // source: google/logging/v2/logging_metrics.proto
20
21 package loggingpb
22
23 import (
24 context "context"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 distribution "google.golang.org/genproto/googleapis/api/distribution"
27 metric "google.golang.org/genproto/googleapis/api/metric"
28 grpc "google.golang.org/grpc"
29 codes "google.golang.org/grpc/codes"
30 status "google.golang.org/grpc/status"
31 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
32 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
33 emptypb "google.golang.org/protobuf/types/known/emptypb"
34 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
35 reflect "reflect"
36 sync "sync"
37 )
38
39 const (
40 // Verify that this generated code is sufficiently up-to-date.
41 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
42 // Verify that runtime/protoimpl is sufficiently up-to-date.
43 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
44 )
45
46 // Logging API version.
47 type LogMetric_ApiVersion int32
48
49 const (
50 // Logging API v2.
51 LogMetric_V2 LogMetric_ApiVersion = 0
52 // Logging API v1.
53 LogMetric_V1 LogMetric_ApiVersion = 1
54 )
55
56 // Enum value maps for LogMetric_ApiVersion.
57 var (
58 LogMetric_ApiVersion_name = map[int32]string{
59 0: "V2",
60 1: "V1",
61 }
62 LogMetric_ApiVersion_value = map[string]int32{
63 "V2": 0,
64 "V1": 1,
65 }
66 )
67
68 func (x LogMetric_ApiVersion) Enum() *LogMetric_ApiVersion {
69 p := new(LogMetric_ApiVersion)
70 *p = x
71 return p
72 }
73
74 func (x LogMetric_ApiVersion) String() string {
75 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
76 }
77
78 func (LogMetric_ApiVersion) Descriptor() protoreflect.EnumDescriptor {
79 return file_google_logging_v2_logging_metrics_proto_enumTypes[0].Descriptor()
80 }
81
82 func (LogMetric_ApiVersion) Type() protoreflect.EnumType {
83 return &file_google_logging_v2_logging_metrics_proto_enumTypes[0]
84 }
85
86 func (x LogMetric_ApiVersion) Number() protoreflect.EnumNumber {
87 return protoreflect.EnumNumber(x)
88 }
89
90 // Deprecated: Use LogMetric_ApiVersion.Descriptor instead.
91 func (LogMetric_ApiVersion) EnumDescriptor() ([]byte, []int) {
92 return file_google_logging_v2_logging_metrics_proto_rawDescGZIP(), []int{0, 0}
93 }
94
95 // Describes a logs-based metric. The value of the metric is the number of log
96 // entries that match a logs filter in a given time interval.
97 //
98 // Logs-based metrics can also be used to extract values from logs and create a
99 // distribution of the values. The distribution records the statistics of the
100 // extracted values along with an optional histogram of the values as specified
101 // by the bucket options.
102 type LogMetric struct {
103 state protoimpl.MessageState
104 sizeCache protoimpl.SizeCache
105 unknownFields protoimpl.UnknownFields
106
107 // Required. The client-assigned metric identifier.
108 // Examples: `"error_count"`, `"nginx/requests"`.
109 //
110 // Metric identifiers are limited to 100 characters and can include only the
111 // following characters: `A-Z`, `a-z`, `0-9`, and the special characters
112 // `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
113 // name pieces, and it cannot be the first character of the name.
114 //
115 // This field is the `[METRIC_ID]` part of a metric resource name in the
116 // format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the
117 // resource name of a metric is
118 // `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is
119 // `"nginx/requests"`.
120 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
121 // Optional. A description of this metric, which is used in documentation.
122 // The maximum length of the description is 8000 characters.
123 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
124 // Required. An [advanced logs
125 // filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
126 // is used to match log entries. Example:
127 //
128 // "resource.type=gae_app AND severity>=ERROR"
129 //
130 // The maximum length of the filter is 20000 characters.
131 Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
132 // Optional. The resource name of the Log Bucket that owns the Log Metric.
133 // Only Log Buckets in projects are supported. The bucket has to be in the
134 // same project as the metric.
135 //
136 // For example:
137 //
138 // `projects/my-project/locations/global/buckets/my-bucket`
139 //
140 // If empty, then the Log Metric is considered a non-Bucket Log Metric.
141 BucketName string `protobuf:"bytes,13,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
142 // Optional. If set to True, then this metric is disabled and it does not
143 // generate any points.
144 Disabled bool `protobuf:"varint,12,opt,name=disabled,proto3" json:"disabled,omitempty"`
145 // Optional. The metric descriptor associated with the logs-based metric.
146 // If unspecified, it uses a default metric descriptor with a DELTA metric
147 // kind, INT64 value type, with no labels and a unit of "1". Such a metric
148 // counts the number of log entries matching the `filter` expression.
149 //
150 // The `name`, `type`, and `description` fields in the `metric_descriptor`
151 // are output only, and is constructed using the `name` and `description`
152 // field in the LogMetric.
153 //
154 // To create a logs-based metric that records a distribution of log values, a
155 // DELTA metric kind with a DISTRIBUTION value type must be used along with
156 // a `value_extractor` expression in the LogMetric.
157 //
158 // Each label in the metric descriptor must have a matching label
159 // name as the key and an extractor expression as the value in the
160 // `label_extractors` map.
161 //
162 // The `metric_kind` and `value_type` fields in the `metric_descriptor` cannot
163 // be updated once initially configured. New labels can be added in the
164 // `metric_descriptor`, but existing labels cannot be modified except for
165 // their description.
166 MetricDescriptor *metric.MetricDescriptor `protobuf:"bytes,5,opt,name=metric_descriptor,json=metricDescriptor,proto3" json:"metric_descriptor,omitempty"`
167 // Optional. A `value_extractor` is required when using a distribution
168 // logs-based metric to extract the values to record from a log entry.
169 // Two functions are supported for value extraction: `EXTRACT(field)` or
170 // `REGEXP_EXTRACT(field, regex)`. The arguments are:
171 //
172 // 1. field: The name of the log entry field from which the value is to be
173 // extracted.
174 // 2. regex: A regular expression using the Google RE2 syntax
175 // (https://github.com/google/re2/wiki/Syntax) with a single capture
176 // group to extract data from the specified log entry field. The value
177 // of the field is converted to a string before applying the regex.
178 // It is an error to specify a regex that does not include exactly one
179 // capture group.
180 //
181 // The result of the extraction must be convertible to a double type, as the
182 // distribution always records double values. If either the extraction or
183 // the conversion to double fails, then those values are not recorded in the
184 // distribution.
185 //
186 // Example: `REGEXP_EXTRACT(jsonPayload.request, ".*quantity=(\d+).*")`
187 ValueExtractor string `protobuf:"bytes,6,opt,name=value_extractor,json=valueExtractor,proto3" json:"value_extractor,omitempty"`
188 // Optional. A map from a label key string to an extractor expression which is
189 // used to extract data from a log entry field and assign as the label value.
190 // Each label key specified in the LabelDescriptor must have an associated
191 // extractor expression in this map. The syntax of the extractor expression
192 // is the same as for the `value_extractor` field.
193 //
194 // The extracted value is converted to the type defined in the label
195 // descriptor. If either the extraction or the type conversion fails,
196 // the label will have a default value. The default value for a string
197 // label is an empty string, for an integer label its 0, and for a boolean
198 // label its `false`.
199 //
200 // Note that there are upper bounds on the maximum number of labels and the
201 // number of active time series that are allowed in a project.
202 LabelExtractors map[string]string `protobuf:"bytes,7,rep,name=label_extractors,json=labelExtractors,proto3" json:"label_extractors,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
203 // Optional. The `bucket_options` are required when the logs-based metric is
204 // using a DISTRIBUTION value type and it describes the bucket boundaries
205 // used to create a histogram of the extracted values.
206 BucketOptions *distribution.Distribution_BucketOptions `protobuf:"bytes,8,opt,name=bucket_options,json=bucketOptions,proto3" json:"bucket_options,omitempty"`
207 // Output only. The creation timestamp of the metric.
208 //
209 // This field may not be present for older metrics.
210 CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
211 // Output only. The last update timestamp of the metric.
212 //
213 // This field may not be present for older metrics.
214 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
215 // Deprecated. The API version that created or updated this metric.
216 // The v2 format is used by default and cannot be changed.
217 //
218 // Deprecated: Marked as deprecated in google/logging/v2/logging_metrics.proto.
219 Version LogMetric_ApiVersion `protobuf:"varint,4,opt,name=version,proto3,enum=google.logging.v2.LogMetric_ApiVersion" json:"version,omitempty"`
220 }
221
222 func (x *LogMetric) Reset() {
223 *x = LogMetric{}
224 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[0]
225 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
226 ms.StoreMessageInfo(mi)
227 }
228
229 func (x *LogMetric) String() string {
230 return protoimpl.X.MessageStringOf(x)
231 }
232
233 func (*LogMetric) ProtoMessage() {}
234
235 func (x *LogMetric) ProtoReflect() protoreflect.Message {
236 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[0]
237 if x != nil {
238 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
239 if ms.LoadMessageInfo() == nil {
240 ms.StoreMessageInfo(mi)
241 }
242 return ms
243 }
244 return mi.MessageOf(x)
245 }
246
247 // Deprecated: Use LogMetric.ProtoReflect.Descriptor instead.
248 func (*LogMetric) Descriptor() ([]byte, []int) {
249 return file_google_logging_v2_logging_metrics_proto_rawDescGZIP(), []int{0}
250 }
251
252 func (x *LogMetric) GetName() string {
253 if x != nil {
254 return x.Name
255 }
256 return ""
257 }
258
259 func (x *LogMetric) GetDescription() string {
260 if x != nil {
261 return x.Description
262 }
263 return ""
264 }
265
266 func (x *LogMetric) GetFilter() string {
267 if x != nil {
268 return x.Filter
269 }
270 return ""
271 }
272
273 func (x *LogMetric) GetBucketName() string {
274 if x != nil {
275 return x.BucketName
276 }
277 return ""
278 }
279
280 func (x *LogMetric) GetDisabled() bool {
281 if x != nil {
282 return x.Disabled
283 }
284 return false
285 }
286
287 func (x *LogMetric) GetMetricDescriptor() *metric.MetricDescriptor {
288 if x != nil {
289 return x.MetricDescriptor
290 }
291 return nil
292 }
293
294 func (x *LogMetric) GetValueExtractor() string {
295 if x != nil {
296 return x.ValueExtractor
297 }
298 return ""
299 }
300
301 func (x *LogMetric) GetLabelExtractors() map[string]string {
302 if x != nil {
303 return x.LabelExtractors
304 }
305 return nil
306 }
307
308 func (x *LogMetric) GetBucketOptions() *distribution.Distribution_BucketOptions {
309 if x != nil {
310 return x.BucketOptions
311 }
312 return nil
313 }
314
315 func (x *LogMetric) GetCreateTime() *timestamppb.Timestamp {
316 if x != nil {
317 return x.CreateTime
318 }
319 return nil
320 }
321
322 func (x *LogMetric) GetUpdateTime() *timestamppb.Timestamp {
323 if x != nil {
324 return x.UpdateTime
325 }
326 return nil
327 }
328
329 // Deprecated: Marked as deprecated in google/logging/v2/logging_metrics.proto.
330 func (x *LogMetric) GetVersion() LogMetric_ApiVersion {
331 if x != nil {
332 return x.Version
333 }
334 return LogMetric_V2
335 }
336
337 // The parameters to ListLogMetrics.
338 type ListLogMetricsRequest struct {
339 state protoimpl.MessageState
340 sizeCache protoimpl.SizeCache
341 unknownFields protoimpl.UnknownFields
342
343 // Required. The name of the project containing the metrics:
344 //
345 // "projects/[PROJECT_ID]"
346 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
347 // Optional. If present, then retrieve the next batch of results from the
348 // preceding call to this method. `pageToken` must be the value of
349 // `nextPageToken` from the previous response. The values of other method
350 // parameters should be identical to those in the previous call.
351 PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
352 // Optional. The maximum number of results to return from this request.
353 // Non-positive values are ignored. The presence of `nextPageToken` in the
354 // response indicates that more results might be available.
355 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
356 }
357
358 func (x *ListLogMetricsRequest) Reset() {
359 *x = ListLogMetricsRequest{}
360 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[1]
361 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
362 ms.StoreMessageInfo(mi)
363 }
364
365 func (x *ListLogMetricsRequest) String() string {
366 return protoimpl.X.MessageStringOf(x)
367 }
368
369 func (*ListLogMetricsRequest) ProtoMessage() {}
370
371 func (x *ListLogMetricsRequest) ProtoReflect() protoreflect.Message {
372 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[1]
373 if x != nil {
374 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
375 if ms.LoadMessageInfo() == nil {
376 ms.StoreMessageInfo(mi)
377 }
378 return ms
379 }
380 return mi.MessageOf(x)
381 }
382
383 // Deprecated: Use ListLogMetricsRequest.ProtoReflect.Descriptor instead.
384 func (*ListLogMetricsRequest) Descriptor() ([]byte, []int) {
385 return file_google_logging_v2_logging_metrics_proto_rawDescGZIP(), []int{1}
386 }
387
388 func (x *ListLogMetricsRequest) GetParent() string {
389 if x != nil {
390 return x.Parent
391 }
392 return ""
393 }
394
395 func (x *ListLogMetricsRequest) GetPageToken() string {
396 if x != nil {
397 return x.PageToken
398 }
399 return ""
400 }
401
402 func (x *ListLogMetricsRequest) GetPageSize() int32 {
403 if x != nil {
404 return x.PageSize
405 }
406 return 0
407 }
408
409 // Result returned from ListLogMetrics.
410 type ListLogMetricsResponse struct {
411 state protoimpl.MessageState
412 sizeCache protoimpl.SizeCache
413 unknownFields protoimpl.UnknownFields
414
415 // A list of logs-based metrics.
416 Metrics []*LogMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
417 // If there might be more results than appear in this response, then
418 // `nextPageToken` is included. To get the next set of results, call this
419 // method again using the value of `nextPageToken` as `pageToken`.
420 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
421 }
422
423 func (x *ListLogMetricsResponse) Reset() {
424 *x = ListLogMetricsResponse{}
425 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[2]
426 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
427 ms.StoreMessageInfo(mi)
428 }
429
430 func (x *ListLogMetricsResponse) String() string {
431 return protoimpl.X.MessageStringOf(x)
432 }
433
434 func (*ListLogMetricsResponse) ProtoMessage() {}
435
436 func (x *ListLogMetricsResponse) ProtoReflect() protoreflect.Message {
437 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[2]
438 if x != nil {
439 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
440 if ms.LoadMessageInfo() == nil {
441 ms.StoreMessageInfo(mi)
442 }
443 return ms
444 }
445 return mi.MessageOf(x)
446 }
447
448 // Deprecated: Use ListLogMetricsResponse.ProtoReflect.Descriptor instead.
449 func (*ListLogMetricsResponse) Descriptor() ([]byte, []int) {
450 return file_google_logging_v2_logging_metrics_proto_rawDescGZIP(), []int{2}
451 }
452
453 func (x *ListLogMetricsResponse) GetMetrics() []*LogMetric {
454 if x != nil {
455 return x.Metrics
456 }
457 return nil
458 }
459
460 func (x *ListLogMetricsResponse) GetNextPageToken() string {
461 if x != nil {
462 return x.NextPageToken
463 }
464 return ""
465 }
466
467 // The parameters to GetLogMetric.
468 type GetLogMetricRequest struct {
469 state protoimpl.MessageState
470 sizeCache protoimpl.SizeCache
471 unknownFields protoimpl.UnknownFields
472
473 // Required. The resource name of the desired metric:
474 //
475 // "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
476 MetricName string `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
477 }
478
479 func (x *GetLogMetricRequest) Reset() {
480 *x = GetLogMetricRequest{}
481 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[3]
482 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
483 ms.StoreMessageInfo(mi)
484 }
485
486 func (x *GetLogMetricRequest) String() string {
487 return protoimpl.X.MessageStringOf(x)
488 }
489
490 func (*GetLogMetricRequest) ProtoMessage() {}
491
492 func (x *GetLogMetricRequest) ProtoReflect() protoreflect.Message {
493 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[3]
494 if x != nil {
495 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
496 if ms.LoadMessageInfo() == nil {
497 ms.StoreMessageInfo(mi)
498 }
499 return ms
500 }
501 return mi.MessageOf(x)
502 }
503
504 // Deprecated: Use GetLogMetricRequest.ProtoReflect.Descriptor instead.
505 func (*GetLogMetricRequest) Descriptor() ([]byte, []int) {
506 return file_google_logging_v2_logging_metrics_proto_rawDescGZIP(), []int{3}
507 }
508
509 func (x *GetLogMetricRequest) GetMetricName() string {
510 if x != nil {
511 return x.MetricName
512 }
513 return ""
514 }
515
516 // The parameters to CreateLogMetric.
517 type CreateLogMetricRequest struct {
518 state protoimpl.MessageState
519 sizeCache protoimpl.SizeCache
520 unknownFields protoimpl.UnknownFields
521
522 // Required. The resource name of the project in which to create the metric:
523 //
524 // "projects/[PROJECT_ID]"
525 //
526 // The new metric must be provided in the request.
527 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
528 // Required. The new logs-based metric, which must not have an identifier that
529 // already exists.
530 Metric *LogMetric `protobuf:"bytes,2,opt,name=metric,proto3" json:"metric,omitempty"`
531 }
532
533 func (x *CreateLogMetricRequest) Reset() {
534 *x = CreateLogMetricRequest{}
535 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[4]
536 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
537 ms.StoreMessageInfo(mi)
538 }
539
540 func (x *CreateLogMetricRequest) String() string {
541 return protoimpl.X.MessageStringOf(x)
542 }
543
544 func (*CreateLogMetricRequest) ProtoMessage() {}
545
546 func (x *CreateLogMetricRequest) ProtoReflect() protoreflect.Message {
547 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[4]
548 if x != nil {
549 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
550 if ms.LoadMessageInfo() == nil {
551 ms.StoreMessageInfo(mi)
552 }
553 return ms
554 }
555 return mi.MessageOf(x)
556 }
557
558 // Deprecated: Use CreateLogMetricRequest.ProtoReflect.Descriptor instead.
559 func (*CreateLogMetricRequest) Descriptor() ([]byte, []int) {
560 return file_google_logging_v2_logging_metrics_proto_rawDescGZIP(), []int{4}
561 }
562
563 func (x *CreateLogMetricRequest) GetParent() string {
564 if x != nil {
565 return x.Parent
566 }
567 return ""
568 }
569
570 func (x *CreateLogMetricRequest) GetMetric() *LogMetric {
571 if x != nil {
572 return x.Metric
573 }
574 return nil
575 }
576
577 // The parameters to UpdateLogMetric.
578 type UpdateLogMetricRequest struct {
579 state protoimpl.MessageState
580 sizeCache protoimpl.SizeCache
581 unknownFields protoimpl.UnknownFields
582
583 // Required. The resource name of the metric to update:
584 //
585 // "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
586 //
587 // The updated metric must be provided in the request and it's
588 // `name` field must be the same as `[METRIC_ID]` If the metric
589 // does not exist in `[PROJECT_ID]`, then a new metric is created.
590 MetricName string `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
591 // Required. The updated metric.
592 Metric *LogMetric `protobuf:"bytes,2,opt,name=metric,proto3" json:"metric,omitempty"`
593 }
594
595 func (x *UpdateLogMetricRequest) Reset() {
596 *x = UpdateLogMetricRequest{}
597 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[5]
598 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
599 ms.StoreMessageInfo(mi)
600 }
601
602 func (x *UpdateLogMetricRequest) String() string {
603 return protoimpl.X.MessageStringOf(x)
604 }
605
606 func (*UpdateLogMetricRequest) ProtoMessage() {}
607
608 func (x *UpdateLogMetricRequest) ProtoReflect() protoreflect.Message {
609 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[5]
610 if x != nil {
611 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
612 if ms.LoadMessageInfo() == nil {
613 ms.StoreMessageInfo(mi)
614 }
615 return ms
616 }
617 return mi.MessageOf(x)
618 }
619
620 // Deprecated: Use UpdateLogMetricRequest.ProtoReflect.Descriptor instead.
621 func (*UpdateLogMetricRequest) Descriptor() ([]byte, []int) {
622 return file_google_logging_v2_logging_metrics_proto_rawDescGZIP(), []int{5}
623 }
624
625 func (x *UpdateLogMetricRequest) GetMetricName() string {
626 if x != nil {
627 return x.MetricName
628 }
629 return ""
630 }
631
632 func (x *UpdateLogMetricRequest) GetMetric() *LogMetric {
633 if x != nil {
634 return x.Metric
635 }
636 return nil
637 }
638
639 // The parameters to DeleteLogMetric.
640 type DeleteLogMetricRequest struct {
641 state protoimpl.MessageState
642 sizeCache protoimpl.SizeCache
643 unknownFields protoimpl.UnknownFields
644
645 // Required. The resource name of the metric to delete:
646 //
647 // "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
648 MetricName string `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
649 }
650
651 func (x *DeleteLogMetricRequest) Reset() {
652 *x = DeleteLogMetricRequest{}
653 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[6]
654 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
655 ms.StoreMessageInfo(mi)
656 }
657
658 func (x *DeleteLogMetricRequest) String() string {
659 return protoimpl.X.MessageStringOf(x)
660 }
661
662 func (*DeleteLogMetricRequest) ProtoMessage() {}
663
664 func (x *DeleteLogMetricRequest) ProtoReflect() protoreflect.Message {
665 mi := &file_google_logging_v2_logging_metrics_proto_msgTypes[6]
666 if x != nil {
667 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
668 if ms.LoadMessageInfo() == nil {
669 ms.StoreMessageInfo(mi)
670 }
671 return ms
672 }
673 return mi.MessageOf(x)
674 }
675
676 // Deprecated: Use DeleteLogMetricRequest.ProtoReflect.Descriptor instead.
677 func (*DeleteLogMetricRequest) Descriptor() ([]byte, []int) {
678 return file_google_logging_v2_logging_metrics_proto_rawDescGZIP(), []int{6}
679 }
680
681 func (x *DeleteLogMetricRequest) GetMetricName() string {
682 if x != nil {
683 return x.MetricName
684 }
685 return ""
686 }
687
688 var File_google_logging_v2_logging_metrics_proto protoreflect.FileDescriptor
689
690 var file_google_logging_v2_logging_metrics_proto_rawDesc = []byte{
691 0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
692 0x2f, 0x76, 0x32, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x74, 0x72,
693 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
694 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f,
695 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
696 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67,
697 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72,
698 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
699 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
700 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66,
701 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72,
702 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
703 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f,
704 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
705 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
706 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70,
707 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
708 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,
709 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x06, 0x0a, 0x09, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74,
710 0x72, 0x69, 0x63, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
711 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0b,
712 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
713 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
714 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20,
715 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72,
716 0x12, 0x24, 0x0a, 0x0b, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
717 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x62, 0x75, 0x63, 0x6b,
718 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
719 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x64,
720 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x4e, 0x0a, 0x11, 0x6d, 0x65, 0x74, 0x72, 0x69,
721 0x63, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01,
722 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e,
723 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
724 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x10, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x73,
725 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x2c, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x75, 0x65,
726 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
727 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x78, 0x74, 0x72,
728 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x61, 0x0a, 0x10, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x65,
729 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32,
730 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
731 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x2e, 0x4c, 0x61,
732 0x62, 0x65, 0x6c, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74,
733 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x45, 0x78,
734 0x74, 0x72, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x52, 0x0a, 0x0e, 0x62, 0x75, 0x63, 0x6b,
735 0x65, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,
736 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x69,
737 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65,
738 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0d, 0x62,
739 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x40, 0x0a, 0x0b,
740 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
741 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
742 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0,
743 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40,
744 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20,
745 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
746 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,
747 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,
748 0x12, 0x45, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
749 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69,
750 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x2e,
751 0x41, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07,
752 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x42, 0x0a, 0x14, 0x4c, 0x61, 0x62, 0x65, 0x6c,
753 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
754 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
755 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
756 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x1c, 0x0a, 0x0a, 0x41,
757 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x06, 0x0a, 0x02, 0x56, 0x32, 0x10,
758 0x00, 0x12, 0x06, 0x0a, 0x02, 0x56, 0x31, 0x10, 0x01, 0x3a, 0x4a, 0xea, 0x41, 0x47, 0x0a, 0x20,
759 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
760 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
761 0x12, 0x23, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a,
762 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x7b, 0x6d, 0x65,
763 0x74, 0x72, 0x69, 0x63, 0x7d, 0x22, 0xaa, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f,
764 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
765 0x4b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
766 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65,
767 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f,
768 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f,
769 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0a,
770 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
771 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
772 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20,
773 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69,
774 0x7a, 0x65, 0x22, 0x78, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74,
775 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07,
776 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e,
777 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76,
778 0x32, 0x2e, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x07, 0x6d, 0x65, 0x74,
779 0x72, 0x69, 0x63, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67,
780 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e,
781 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x60, 0x0a, 0x13,
782 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75,
783 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6e, 0x61,
784 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22,
785 0x0a, 0x20, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
786 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72,
787 0x69, 0x63, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x95,
788 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72,
789 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72,
790 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41,
791 0x22, 0x12, 0x20, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
792 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74,
793 0x72, 0x69, 0x63, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x39, 0x0a, 0x06, 0x6d,
794 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f,
795 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e,
796 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06,
797 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x22, 0x9e, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74,
798 0x65, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
799 0x74, 0x12, 0x49, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
800 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20,
801 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
802 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
803 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x06,
804 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67,
805 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32,
806 0x2e, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
807 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x22, 0x63, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74,
808 0x65, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
809 0x74, 0x12, 0x49, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
810 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20,
811 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
812 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
813 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0xae, 0x08, 0x0a,
814 0x10, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x56,
815 0x32, 0x12, 0x97, 0x01, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74,
816 0x72, 0x69, 0x63, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f,
817 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x67,
818 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29,
819 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e,
820 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
821 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0xda, 0x41, 0x06, 0x70, 0x61,
822 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x32, 0x2f,
823 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
824 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x92, 0x01, 0x0a, 0x0c,
825 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x26, 0x2e, 0x67,
826 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32,
827 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x71,
828 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f,
829 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72,
830 0x69, 0x63, 0x22, 0x3c, 0xda, 0x41, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6e, 0x61,
831 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6d,
832 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
833 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d,
834 0x12, 0x9b, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x4d, 0x65,
835 0x74, 0x72, 0x69, 0x63, 0x12, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f,
836 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c,
837 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
838 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
839 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x22, 0x3f, 0xda,
840 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x82,
841 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x22, 0x1f, 0x2f,
842 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
843 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0xa7,
844 0x01, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72,
845 0x69, 0x63, 0x12, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67,
846 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67,
847 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e,
848 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76,
849 0x32, 0x2e, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x22, 0x4b, 0xda, 0x41, 0x12,
850 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x6d, 0x65, 0x74, 0x72,
851 0x69, 0x63, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
852 0x1a, 0x26, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6e, 0x61,
853 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x65,
854 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x0f, 0x44, 0x65, 0x6c,
855 0x65, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x29, 0x2e, 0x67,
856 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32,
857 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
858 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
859 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,
860 0x3c, 0xda, 0x41, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x82,
861 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x2a, 0x26, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x72,
862 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
863 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x1a, 0x8d, 0x02,
864 0xca, 0x41, 0x16, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
865 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0xf0, 0x01, 0x68, 0x74, 0x74,
866 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
867 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f,
868 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70,
869 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
870 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
871 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x2d,
872 0x6f, 0x6e, 0x6c, 0x79, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77,
873 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
874 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x64, 0x6d,
875 0x69, 0x6e, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67,
876 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75,
877 0x74, 0x68, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x2c,
878 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
879 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f,
880 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, 0xb9, 0x01,
881 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x67,
882 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x42, 0x13, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
883 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35,
884 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
885 0x2f, 0x67, 0x6f, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76,
886 0x32, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x6c, 0x6f, 0x67, 0x67,
887 0x69, 0x6e, 0x67, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
888 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e,
889 0x56, 0x32, 0xca, 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75,
890 0x64, 0x5c, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x1a, 0x47,
891 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x4c, 0x6f,
892 0x67, 0x67, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
893 0x33,
894 }
895
896 var (
897 file_google_logging_v2_logging_metrics_proto_rawDescOnce sync.Once
898 file_google_logging_v2_logging_metrics_proto_rawDescData = file_google_logging_v2_logging_metrics_proto_rawDesc
899 )
900
901 func file_google_logging_v2_logging_metrics_proto_rawDescGZIP() []byte {
902 file_google_logging_v2_logging_metrics_proto_rawDescOnce.Do(func() {
903 file_google_logging_v2_logging_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_logging_v2_logging_metrics_proto_rawDescData)
904 })
905 return file_google_logging_v2_logging_metrics_proto_rawDescData
906 }
907
908 var file_google_logging_v2_logging_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
909 var file_google_logging_v2_logging_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
910 var file_google_logging_v2_logging_metrics_proto_goTypes = []any{
911 (LogMetric_ApiVersion)(0), // 0: google.logging.v2.LogMetric.ApiVersion
912 (*LogMetric)(nil), // 1: google.logging.v2.LogMetric
913 (*ListLogMetricsRequest)(nil), // 2: google.logging.v2.ListLogMetricsRequest
914 (*ListLogMetricsResponse)(nil), // 3: google.logging.v2.ListLogMetricsResponse
915 (*GetLogMetricRequest)(nil), // 4: google.logging.v2.GetLogMetricRequest
916 (*CreateLogMetricRequest)(nil), // 5: google.logging.v2.CreateLogMetricRequest
917 (*UpdateLogMetricRequest)(nil), // 6: google.logging.v2.UpdateLogMetricRequest
918 (*DeleteLogMetricRequest)(nil), // 7: google.logging.v2.DeleteLogMetricRequest
919 nil, // 8: google.logging.v2.LogMetric.LabelExtractorsEntry
920 (*metric.MetricDescriptor)(nil), // 9: google.api.MetricDescriptor
921 (*distribution.Distribution_BucketOptions)(nil), // 10: google.api.Distribution.BucketOptions
922 (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp
923 (*emptypb.Empty)(nil), // 12: google.protobuf.Empty
924 }
925 var file_google_logging_v2_logging_metrics_proto_depIdxs = []int32{
926 9, // 0: google.logging.v2.LogMetric.metric_descriptor:type_name -> google.api.MetricDescriptor
927 8, // 1: google.logging.v2.LogMetric.label_extractors:type_name -> google.logging.v2.LogMetric.LabelExtractorsEntry
928 10, // 2: google.logging.v2.LogMetric.bucket_options:type_name -> google.api.Distribution.BucketOptions
929 11, // 3: google.logging.v2.LogMetric.create_time:type_name -> google.protobuf.Timestamp
930 11, // 4: google.logging.v2.LogMetric.update_time:type_name -> google.protobuf.Timestamp
931 0, // 5: google.logging.v2.LogMetric.version:type_name -> google.logging.v2.LogMetric.ApiVersion
932 1, // 6: google.logging.v2.ListLogMetricsResponse.metrics:type_name -> google.logging.v2.LogMetric
933 1, // 7: google.logging.v2.CreateLogMetricRequest.metric:type_name -> google.logging.v2.LogMetric
934 1, // 8: google.logging.v2.UpdateLogMetricRequest.metric:type_name -> google.logging.v2.LogMetric
935 2, // 9: google.logging.v2.MetricsServiceV2.ListLogMetrics:input_type -> google.logging.v2.ListLogMetricsRequest
936 4, // 10: google.logging.v2.MetricsServiceV2.GetLogMetric:input_type -> google.logging.v2.GetLogMetricRequest
937 5, // 11: google.logging.v2.MetricsServiceV2.CreateLogMetric:input_type -> google.logging.v2.CreateLogMetricRequest
938 6, // 12: google.logging.v2.MetricsServiceV2.UpdateLogMetric:input_type -> google.logging.v2.UpdateLogMetricRequest
939 7, // 13: google.logging.v2.MetricsServiceV2.DeleteLogMetric:input_type -> google.logging.v2.DeleteLogMetricRequest
940 3, // 14: google.logging.v2.MetricsServiceV2.ListLogMetrics:output_type -> google.logging.v2.ListLogMetricsResponse
941 1, // 15: google.logging.v2.MetricsServiceV2.GetLogMetric:output_type -> google.logging.v2.LogMetric
942 1, // 16: google.logging.v2.MetricsServiceV2.CreateLogMetric:output_type -> google.logging.v2.LogMetric
943 1, // 17: google.logging.v2.MetricsServiceV2.UpdateLogMetric:output_type -> google.logging.v2.LogMetric
944 12, // 18: google.logging.v2.MetricsServiceV2.DeleteLogMetric:output_type -> google.protobuf.Empty
945 14, // [14:19] is the sub-list for method output_type
946 9, // [9:14] is the sub-list for method input_type
947 9, // [9:9] is the sub-list for extension type_name
948 9, // [9:9] is the sub-list for extension extendee
949 0, // [0:9] is the sub-list for field type_name
950 }
951
952 func init() { file_google_logging_v2_logging_metrics_proto_init() }
953 func file_google_logging_v2_logging_metrics_proto_init() {
954 if File_google_logging_v2_logging_metrics_proto != nil {
955 return
956 }
957 type x struct{}
958 out := protoimpl.TypeBuilder{
959 File: protoimpl.DescBuilder{
960 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
961 RawDescriptor: file_google_logging_v2_logging_metrics_proto_rawDesc,
962 NumEnums: 1,
963 NumMessages: 8,
964 NumExtensions: 0,
965 NumServices: 1,
966 },
967 GoTypes: file_google_logging_v2_logging_metrics_proto_goTypes,
968 DependencyIndexes: file_google_logging_v2_logging_metrics_proto_depIdxs,
969 EnumInfos: file_google_logging_v2_logging_metrics_proto_enumTypes,
970 MessageInfos: file_google_logging_v2_logging_metrics_proto_msgTypes,
971 }.Build()
972 File_google_logging_v2_logging_metrics_proto = out.File
973 file_google_logging_v2_logging_metrics_proto_rawDesc = nil
974 file_google_logging_v2_logging_metrics_proto_goTypes = nil
975 file_google_logging_v2_logging_metrics_proto_depIdxs = nil
976 }
977
978 // Reference imports to suppress errors if they are not otherwise used.
979 var _ context.Context
980 var _ grpc.ClientConnInterface
981
982 // This is a compile-time assertion to ensure that this generated file
983 // is compatible with the grpc package it is being compiled against.
984 const _ = grpc.SupportPackageIsVersion6
985
986 // MetricsServiceV2Client is the client API for MetricsServiceV2 service.
987 //
988 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
989 type MetricsServiceV2Client interface {
990 // Lists logs-based metrics.
991 ListLogMetrics(ctx context.Context, in *ListLogMetricsRequest, opts ...grpc.CallOption) (*ListLogMetricsResponse, error)
992 // Gets a logs-based metric.
993 GetLogMetric(ctx context.Context, in *GetLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
994 // Creates a logs-based metric.
995 CreateLogMetric(ctx context.Context, in *CreateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
996 // Creates or updates a logs-based metric.
997 UpdateLogMetric(ctx context.Context, in *UpdateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error)
998 // Deletes a logs-based metric.
999 DeleteLogMetric(ctx context.Context, in *DeleteLogMetricRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
1000 }
1001
1002 type metricsServiceV2Client struct {
1003 cc grpc.ClientConnInterface
1004 }
1005
1006 func NewMetricsServiceV2Client(cc grpc.ClientConnInterface) MetricsServiceV2Client {
1007 return &metricsServiceV2Client{cc}
1008 }
1009
1010 func (c *metricsServiceV2Client) ListLogMetrics(ctx context.Context, in *ListLogMetricsRequest, opts ...grpc.CallOption) (*ListLogMetricsResponse, error) {
1011 out := new(ListLogMetricsResponse)
1012 err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/ListLogMetrics", in, out, opts...)
1013 if err != nil {
1014 return nil, err
1015 }
1016 return out, nil
1017 }
1018
1019 func (c *metricsServiceV2Client) GetLogMetric(ctx context.Context, in *GetLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
1020 out := new(LogMetric)
1021 err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/GetLogMetric", in, out, opts...)
1022 if err != nil {
1023 return nil, err
1024 }
1025 return out, nil
1026 }
1027
1028 func (c *metricsServiceV2Client) CreateLogMetric(ctx context.Context, in *CreateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
1029 out := new(LogMetric)
1030 err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/CreateLogMetric", in, out, opts...)
1031 if err != nil {
1032 return nil, err
1033 }
1034 return out, nil
1035 }
1036
1037 func (c *metricsServiceV2Client) UpdateLogMetric(ctx context.Context, in *UpdateLogMetricRequest, opts ...grpc.CallOption) (*LogMetric, error) {
1038 out := new(LogMetric)
1039 err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/UpdateLogMetric", in, out, opts...)
1040 if err != nil {
1041 return nil, err
1042 }
1043 return out, nil
1044 }
1045
1046 func (c *metricsServiceV2Client) DeleteLogMetric(ctx context.Context, in *DeleteLogMetricRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
1047 out := new(emptypb.Empty)
1048 err := c.cc.Invoke(ctx, "/google.logging.v2.MetricsServiceV2/DeleteLogMetric", in, out, opts...)
1049 if err != nil {
1050 return nil, err
1051 }
1052 return out, nil
1053 }
1054
1055 // MetricsServiceV2Server is the server API for MetricsServiceV2 service.
1056 type MetricsServiceV2Server interface {
1057 // Lists logs-based metrics.
1058 ListLogMetrics(context.Context, *ListLogMetricsRequest) (*ListLogMetricsResponse, error)
1059 // Gets a logs-based metric.
1060 GetLogMetric(context.Context, *GetLogMetricRequest) (*LogMetric, error)
1061 // Creates a logs-based metric.
1062 CreateLogMetric(context.Context, *CreateLogMetricRequest) (*LogMetric, error)
1063 // Creates or updates a logs-based metric.
1064 UpdateLogMetric(context.Context, *UpdateLogMetricRequest) (*LogMetric, error)
1065 // Deletes a logs-based metric.
1066 DeleteLogMetric(context.Context, *DeleteLogMetricRequest) (*emptypb.Empty, error)
1067 }
1068
1069 // UnimplementedMetricsServiceV2Server can be embedded to have forward compatible implementations.
1070 type UnimplementedMetricsServiceV2Server struct {
1071 }
1072
1073 func (*UnimplementedMetricsServiceV2Server) ListLogMetrics(context.Context, *ListLogMetricsRequest) (*ListLogMetricsResponse, error) {
1074 return nil, status.Errorf(codes.Unimplemented, "method ListLogMetrics not implemented")
1075 }
1076 func (*UnimplementedMetricsServiceV2Server) GetLogMetric(context.Context, *GetLogMetricRequest) (*LogMetric, error) {
1077 return nil, status.Errorf(codes.Unimplemented, "method GetLogMetric not implemented")
1078 }
1079 func (*UnimplementedMetricsServiceV2Server) CreateLogMetric(context.Context, *CreateLogMetricRequest) (*LogMetric, error) {
1080 return nil, status.Errorf(codes.Unimplemented, "method CreateLogMetric not implemented")
1081 }
1082 func (*UnimplementedMetricsServiceV2Server) UpdateLogMetric(context.Context, *UpdateLogMetricRequest) (*LogMetric, error) {
1083 return nil, status.Errorf(codes.Unimplemented, "method UpdateLogMetric not implemented")
1084 }
1085 func (*UnimplementedMetricsServiceV2Server) DeleteLogMetric(context.Context, *DeleteLogMetricRequest) (*emptypb.Empty, error) {
1086 return nil, status.Errorf(codes.Unimplemented, "method DeleteLogMetric not implemented")
1087 }
1088
1089 func RegisterMetricsServiceV2Server(s *grpc.Server, srv MetricsServiceV2Server) {
1090 s.RegisterService(&_MetricsServiceV2_serviceDesc, srv)
1091 }
1092
1093 func _MetricsServiceV2_ListLogMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1094 in := new(ListLogMetricsRequest)
1095 if err := dec(in); err != nil {
1096 return nil, err
1097 }
1098 if interceptor == nil {
1099 return srv.(MetricsServiceV2Server).ListLogMetrics(ctx, in)
1100 }
1101 info := &grpc.UnaryServerInfo{
1102 Server: srv,
1103 FullMethod: "/google.logging.v2.MetricsServiceV2/ListLogMetrics",
1104 }
1105 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1106 return srv.(MetricsServiceV2Server).ListLogMetrics(ctx, req.(*ListLogMetricsRequest))
1107 }
1108 return interceptor(ctx, in, info, handler)
1109 }
1110
1111 func _MetricsServiceV2_GetLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1112 in := new(GetLogMetricRequest)
1113 if err := dec(in); err != nil {
1114 return nil, err
1115 }
1116 if interceptor == nil {
1117 return srv.(MetricsServiceV2Server).GetLogMetric(ctx, in)
1118 }
1119 info := &grpc.UnaryServerInfo{
1120 Server: srv,
1121 FullMethod: "/google.logging.v2.MetricsServiceV2/GetLogMetric",
1122 }
1123 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1124 return srv.(MetricsServiceV2Server).GetLogMetric(ctx, req.(*GetLogMetricRequest))
1125 }
1126 return interceptor(ctx, in, info, handler)
1127 }
1128
1129 func _MetricsServiceV2_CreateLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1130 in := new(CreateLogMetricRequest)
1131 if err := dec(in); err != nil {
1132 return nil, err
1133 }
1134 if interceptor == nil {
1135 return srv.(MetricsServiceV2Server).CreateLogMetric(ctx, in)
1136 }
1137 info := &grpc.UnaryServerInfo{
1138 Server: srv,
1139 FullMethod: "/google.logging.v2.MetricsServiceV2/CreateLogMetric",
1140 }
1141 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1142 return srv.(MetricsServiceV2Server).CreateLogMetric(ctx, req.(*CreateLogMetricRequest))
1143 }
1144 return interceptor(ctx, in, info, handler)
1145 }
1146
1147 func _MetricsServiceV2_UpdateLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1148 in := new(UpdateLogMetricRequest)
1149 if err := dec(in); err != nil {
1150 return nil, err
1151 }
1152 if interceptor == nil {
1153 return srv.(MetricsServiceV2Server).UpdateLogMetric(ctx, in)
1154 }
1155 info := &grpc.UnaryServerInfo{
1156 Server: srv,
1157 FullMethod: "/google.logging.v2.MetricsServiceV2/UpdateLogMetric",
1158 }
1159 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1160 return srv.(MetricsServiceV2Server).UpdateLogMetric(ctx, req.(*UpdateLogMetricRequest))
1161 }
1162 return interceptor(ctx, in, info, handler)
1163 }
1164
1165 func _MetricsServiceV2_DeleteLogMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1166 in := new(DeleteLogMetricRequest)
1167 if err := dec(in); err != nil {
1168 return nil, err
1169 }
1170 if interceptor == nil {
1171 return srv.(MetricsServiceV2Server).DeleteLogMetric(ctx, in)
1172 }
1173 info := &grpc.UnaryServerInfo{
1174 Server: srv,
1175 FullMethod: "/google.logging.v2.MetricsServiceV2/DeleteLogMetric",
1176 }
1177 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1178 return srv.(MetricsServiceV2Server).DeleteLogMetric(ctx, req.(*DeleteLogMetricRequest))
1179 }
1180 return interceptor(ctx, in, info, handler)
1181 }
1182
1183 var _MetricsServiceV2_serviceDesc = grpc.ServiceDesc{
1184 ServiceName: "google.logging.v2.MetricsServiceV2",
1185 HandlerType: (*MetricsServiceV2Server)(nil),
1186 Methods: []grpc.MethodDesc{
1187 {
1188 MethodName: "ListLogMetrics",
1189 Handler: _MetricsServiceV2_ListLogMetrics_Handler,
1190 },
1191 {
1192 MethodName: "GetLogMetric",
1193 Handler: _MetricsServiceV2_GetLogMetric_Handler,
1194 },
1195 {
1196 MethodName: "CreateLogMetric",
1197 Handler: _MetricsServiceV2_CreateLogMetric_Handler,
1198 },
1199 {
1200 MethodName: "UpdateLogMetric",
1201 Handler: _MetricsServiceV2_UpdateLogMetric_Handler,
1202 },
1203 {
1204 MethodName: "DeleteLogMetric",
1205 Handler: _MetricsServiceV2_DeleteLogMetric_Handler,
1206 },
1207 },
1208 Streams: []grpc.StreamDesc{},
1209 Metadata: "google/logging/v2/logging_metrics.proto",
1210 }