All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.protobuf.UninterpretedOptionKt.kt Maven / Gradle / Ivy

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/descriptor.proto

// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf;

@kotlin.jvm.JvmName("-initializeuninterpretedOption")
public inline fun uninterpretedOption(block: com.google.protobuf.UninterpretedOptionKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.UninterpretedOption =
  com.google.protobuf.UninterpretedOptionKt.Dsl._create(com.google.protobuf.DescriptorProtos.UninterpretedOption.newBuilder()).apply { block() }._build()
/**
 * ```
 * A message representing a option the parser does not recognize. This only
 * appears in options protos created by the compiler::Parser class.
 * DescriptorPool resolves these when building Descriptor objects. Therefore,
 * options protos in descriptor objects (e.g. returned by Descriptor::options(),
 * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
 * in them.
 * ```
 *
 * Protobuf type `google.protobuf.UninterpretedOption`
 */
public object UninterpretedOptionKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.google.protobuf.DescriptorProtos.UninterpretedOption = _builder.build()

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class NameProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .google.protobuf.UninterpretedOption.NamePart name = 2;`
     */
     public val name: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getNameList()
      )
    /**
     * `repeated .google.protobuf.UninterpretedOption.NamePart name = 2;`
     * @param value The name to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addName")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) {
      _builder.addName(value)
    }
    /**
     * `repeated .google.protobuf.UninterpretedOption.NamePart name = 2;`
     * @param value The name to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignName")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.UninterpretedOption.NamePart name = 2;`
     * @param values The name to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllName")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllName(values)
    }
    /**
     * `repeated .google.protobuf.UninterpretedOption.NamePart name = 2;`
     * @param values The name to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllName")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .google.protobuf.UninterpretedOption.NamePart name = 2;`
     * @param index The index to set the value at.
     * @param value The name to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setName")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) {
      _builder.setName(index, value)
    }
    /**
     * `repeated .google.protobuf.UninterpretedOption.NamePart name = 2;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearName")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearName()
    }


    /**
     * ```
     * The value of the uninterpreted option, in whatever type the tokenizer
     * identified it as during parsing. Exactly one of these should be set.
     * ```
     *
     * `optional string identifier_value = 3;`
     */
    public var identifierValue: kotlin.String
      @JvmName("getIdentifierValue")
      get() = _builder.getIdentifierValue()
      @JvmName("setIdentifierValue")
      set(value) {
        _builder.setIdentifierValue(value)
      }
    /**
     * ```
     * The value of the uninterpreted option, in whatever type the tokenizer
     * identified it as during parsing. Exactly one of these should be set.
     * ```
     *
     * `optional string identifier_value = 3;`
     */
    public fun clearIdentifierValue() {
      _builder.clearIdentifierValue()
    }
    /**
     * ```
     * The value of the uninterpreted option, in whatever type the tokenizer
     * identified it as during parsing. Exactly one of these should be set.
     * ```
     *
     * `optional string identifier_value = 3;`
     * @return Whether the identifierValue field is set.
     */
    public fun hasIdentifierValue(): kotlin.Boolean {
      return _builder.hasIdentifierValue()
    }

    /**
     * `optional uint64 positive_int_value = 4;`
     */
    public var positiveIntValue: kotlin.Long
      @JvmName("getPositiveIntValue")
      get() = _builder.getPositiveIntValue()
      @JvmName("setPositiveIntValue")
      set(value) {
        _builder.setPositiveIntValue(value)
      }
    /**
     * `optional uint64 positive_int_value = 4;`
     */
    public fun clearPositiveIntValue() {
      _builder.clearPositiveIntValue()
    }
    /**
     * `optional uint64 positive_int_value = 4;`
     * @return Whether the positiveIntValue field is set.
     */
    public fun hasPositiveIntValue(): kotlin.Boolean {
      return _builder.hasPositiveIntValue()
    }

    /**
     * `optional int64 negative_int_value = 5;`
     */
    public var negativeIntValue: kotlin.Long
      @JvmName("getNegativeIntValue")
      get() = _builder.getNegativeIntValue()
      @JvmName("setNegativeIntValue")
      set(value) {
        _builder.setNegativeIntValue(value)
      }
    /**
     * `optional int64 negative_int_value = 5;`
     */
    public fun clearNegativeIntValue() {
      _builder.clearNegativeIntValue()
    }
    /**
     * `optional int64 negative_int_value = 5;`
     * @return Whether the negativeIntValue field is set.
     */
    public fun hasNegativeIntValue(): kotlin.Boolean {
      return _builder.hasNegativeIntValue()
    }

    /**
     * `optional double double_value = 6;`
     */
    public var doubleValue: kotlin.Double
      @JvmName("getDoubleValue")
      get() = _builder.getDoubleValue()
      @JvmName("setDoubleValue")
      set(value) {
        _builder.setDoubleValue(value)
      }
    /**
     * `optional double double_value = 6;`
     */
    public fun clearDoubleValue() {
      _builder.clearDoubleValue()
    }
    /**
     * `optional double double_value = 6;`
     * @return Whether the doubleValue field is set.
     */
    public fun hasDoubleValue(): kotlin.Boolean {
      return _builder.hasDoubleValue()
    }

    /**
     * `optional bytes string_value = 7;`
     */
    public var stringValue: com.google.protobuf.ByteString
      @JvmName("getStringValue")
      get() = _builder.getStringValue()
      @JvmName("setStringValue")
      set(value) {
        _builder.setStringValue(value)
      }
    /**
     * `optional bytes string_value = 7;`
     */
    public fun clearStringValue() {
      _builder.clearStringValue()
    }
    /**
     * `optional bytes string_value = 7;`
     * @return Whether the stringValue field is set.
     */
    public fun hasStringValue(): kotlin.Boolean {
      return _builder.hasStringValue()
    }

    /**
     * `optional string aggregate_value = 8;`
     */
    public var aggregateValue: kotlin.String
      @JvmName("getAggregateValue")
      get() = _builder.getAggregateValue()
      @JvmName("setAggregateValue")
      set(value) {
        _builder.setAggregateValue(value)
      }
    /**
     * `optional string aggregate_value = 8;`
     */
    public fun clearAggregateValue() {
      _builder.clearAggregateValue()
    }
    /**
     * `optional string aggregate_value = 8;`
     * @return Whether the aggregateValue field is set.
     */
    public fun hasAggregateValue(): kotlin.Boolean {
      return _builder.hasAggregateValue()
    }
  }
  @kotlin.jvm.JvmName("-initializenamePart")
  public inline fun namePart(block: com.google.protobuf.UninterpretedOptionKt.NamePartKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart =
    com.google.protobuf.UninterpretedOptionKt.NamePartKt.Dsl._create(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.newBuilder()).apply { block() }._build()
  /**
   * ```
   * The name of the uninterpreted option.  Each string represents a segment in
   * a dot-separated name.  is_extension is true iff a segment represents an
   * extension (denoted with parentheses in options specs in .proto files).
   * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
   * "foo.(bar.baz).qux".
   * ```
   *
   * Protobuf type `google.protobuf.UninterpretedOption.NamePart`
   */
  public object NamePartKt {
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    @com.google.protobuf.kotlin.ProtoDslMarker
    public class Dsl private constructor(
      private val _builder: com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder
    ) {
      public companion object {
        @kotlin.jvm.JvmSynthetic
        @kotlin.PublishedApi
        internal fun _create(builder: com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder): Dsl = Dsl(builder)
      }

      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _build(): com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart = _builder.build()

      /**
       * `required string name_part = 1;`
       */
      public var namePart: kotlin.String
        @JvmName("getNamePart")
        get() = _builder.getNamePart()
        @JvmName("setNamePart")
        set(value) {
          _builder.setNamePart(value)
        }
      /**
       * `required string name_part = 1;`
       */
      public fun clearNamePart() {
        _builder.clearNamePart()
      }
      /**
       * `required string name_part = 1;`
       * @return Whether the namePart field is set.
       */
      public fun hasNamePart(): kotlin.Boolean {
        return _builder.hasNamePart()
      }

      /**
       * `required bool is_extension = 2;`
       */
      public var isExtension: kotlin.Boolean
        @JvmName("getIsExtension")
        get() = _builder.getIsExtension()
        @JvmName("setIsExtension")
        set(value) {
          _builder.setIsExtension(value)
        }
      /**
       * `required bool is_extension = 2;`
       */
      public fun clearIsExtension() {
        _builder.clearIsExtension()
      }
      /**
       * `required bool is_extension = 2;`
       * @return Whether the isExtension field is set.
       */
      public fun hasIsExtension(): kotlin.Boolean {
        return _builder.hasIsExtension()
      }
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.DescriptorProtos.UninterpretedOption.copy(block: `com.google.protobuf`.UninterpretedOptionKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.UninterpretedOption =
  `com.google.protobuf`.UninterpretedOptionKt.Dsl._create(this.toBuilder()).apply { block() }._build()

@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.copy(block: `com.google.protobuf`.UninterpretedOptionKt.NamePartKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart =
  `com.google.protobuf`.UninterpretedOptionKt.NamePartKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy