Package 

Class OptionKt.Dsl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private String name
      private Any value
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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>