yats-connectors.git

ref: 7c6f17336616581db4f16514e16c16276c21ba94

yats-connector-kotlin/com/kevwe/yats/protobuf/MetricKt.kt


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yats-grpc.proto

package com.kevwe.yats.protobuf;

@kotlin.jvm.JvmName("-initializemetric")
public inline fun metric(block: com.kevwe.yats.protobuf.MetricKt.Dsl.() -> kotlin.Unit): com.kevwe.yats.protobuf.Metric =
  com.kevwe.yats.protobuf.MetricKt.Dsl._create(com.kevwe.yats.protobuf.Metric.newBuilder()).apply { block() }._build()
public object MetricKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.kevwe.yats.protobuf.Metric.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.kevwe.yats.protobuf.Metric.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.kevwe.yats.protobuf.Metric = _builder.build()

    /**
     * <code>string id_client = 1;</code>
     */
    public var idClient: kotlin.String
      @JvmName("getIdClient")
      get() = _builder.getIdClient()
      @JvmName("setIdClient")
      set(value) {
        _builder.setIdClient(value)
      }
    /**
     * <code>string id_client = 1;</code>
     */
    public fun clearIdClient() {
      _builder.clearIdClient()
    }

    /**
     * <code>int64 mtime = 2;</code>
     */
    public var mtime: kotlin.Long
      @JvmName("getMtime")
      get() = _builder.getMtime()
      @JvmName("setMtime")
      set(value) {
        _builder.setMtime(value)
      }
    /**
     * <code>int64 mtime = 2;</code>
     */
    public fun clearMtime() {
      _builder.clearMtime()
    }

    /**
     * <code>string name = 3;</code>
     */
    public var name: kotlin.String
      @JvmName("getName")
      get() = _builder.getName()
      @JvmName("setName")
      set(value) {
        _builder.setName(value)
      }
    /**
     * <code>string name = 3;</code>
     */
    public fun clearName() {
      _builder.clearName()
    }

    /**
     * <code>string value = 4;</code>
     */
    public var value: kotlin.String
      @JvmName("getValue")
      get() = _builder.getValue()
      @JvmName("setValue")
      set(value) {
        _builder.setValue(value)
      }
    /**
     * <code>string value = 4;</code>
     */
    public fun clearValue() {
      _builder.clearValue()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.kevwe.yats.protobuf.Metric.copy(block: com.kevwe.yats.protobuf.MetricKt.Dsl.() -> kotlin.Unit): com.kevwe.yats.protobuf.Metric =
  com.kevwe.yats.protobuf.MetricKt.Dsl._create(this.toBuilder()).apply { block() }._build()