logging_metrics.pb.go 58 KB

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