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

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

Go to download

Kotlin core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.

There is a newer version: 4.29.0-RC2
Show newest version
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// 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()
/**
 * 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 [json_name = "name"];`
     */
     public val name: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.nameList
      )
    /**
     * `repeated .google.protobuf.UninterpretedOption.NamePart name = 2 [json_name = "name"];`
     * @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 [json_name = "name"];`
     * @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 [json_name = "name"];`
     * @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 [json_name = "name"];`
     * @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 [json_name = "name"];`
     * @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 [json_name = "name"];`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearName")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearName()
    }


    /**
     * `optional string identifier_value = 3 [json_name = "identifierValue"];`
     */
    public var identifierValue: kotlin.String
      @JvmName("getIdentifierValue")
      get() = _builder.identifierValue
      @JvmName("setIdentifierValue")
      set(value) {
        _builder.identifierValue = value
      }
    /**
     * `optional string identifier_value = 3 [json_name = "identifierValue"];`
     */
    public fun clearIdentifierValue() {
      _builder.clearIdentifierValue()
    }
    /**
     * `optional string identifier_value = 3 [json_name = "identifierValue"];`
     * @return Whether the identifierValue field is set.
     */
    public fun hasIdentifierValue(): kotlin.Boolean {
      return _builder.hasIdentifierValue()
    }

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

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

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

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

    /**
     * `optional string aggregate_value = 8 [json_name = "aggregateValue"];`
     */
    public var aggregateValue: kotlin.String
      @JvmName("getAggregateValue")
      get() = _builder.aggregateValue
      @JvmName("setAggregateValue")
      set(value) {
        _builder.aggregateValue = value
      }
    /**
     * `optional string aggregate_value = 8 [json_name = "aggregateValue"];`
     */
    public fun clearAggregateValue() {
      _builder.clearAggregateValue()
    }
    /**
     * `optional string aggregate_value = 8 [json_name = "aggregateValue"];`
     * @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()
  /**
   * 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 [json_name = "namePart"];`
       */
      public var namePart: kotlin.String
        @JvmName("getNamePart")
        get() = _builder.namePart
        @JvmName("setNamePart")
        set(value) {
          _builder.namePart = value
        }
      /**
       * `required string name_part = 1 [json_name = "namePart"];`
       */
      public fun clearNamePart() {
        _builder.clearNamePart()
      }
      /**
       * `required string name_part = 1 [json_name = "namePart"];`
       * @return Whether the namePart field is set.
       */
      public fun hasNamePart(): kotlin.Boolean {
        return _builder.hasNamePart()
      }

      /**
       * `required bool is_extension = 2 [json_name = "isExtension"];`
       */
      public var isExtension: kotlin.Boolean
        @JvmName("getIsExtension")
        get() = _builder.isExtension
        @JvmName("setIsExtension")
        set(value) {
          _builder.isExtension = value
        }
      /**
       * `required bool is_extension = 2 [json_name = "isExtension"];`
       */
      public fun clearIsExtension() {
        _builder.clearIsExtension()
      }
      /**
       * `required bool is_extension = 2 [json_name = "isExtension"];`
       * @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