-
public final class OptionKt.Dsl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
OptionKt.Dsl.Companion
-
Method Summary
Modifier and Type Method Description final String
getName()
final Unit
setName(String name)
final Any
getValue()
final Unit
setValue(Any value)
final Unit
clearName()
<pre> The option's name. final Unit
clearValue()
<pre> The option's value packed in an Any message. final Boolean
hasValue()
<pre> The option's value packed in an Any message. -
-
Method Detail
-
getValue
final Any getValue()
-
clearName
final Unit clearName()
<pre> The option's name. For protobuf built-in options (options defined in descriptor.proto), this is the short name. For example, `"map_entry"`. For custom options, it should be the fully-qualified name. For example, `"google.api.http"`. </pre><code>string name = 1;</code>
-
clearValue
final Unit clearValue()
<pre> The option's value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an enum, it should be stored as an int32 value using the google.protobuf.Int32Value type. </pre><code>.google.protobuf.Any value = 2;</code>
-
hasValue
final Boolean hasValue()
<pre> The option's value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an enum, it should be stored as an int32 value using the google.protobuf.Int32Value type. </pre><code>.google.protobuf.Any value = 2;</code>
-
-
-
-