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

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

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

package com.google.protobuf;

@kotlin.jvm.JvmName("-initializegeneratedCodeInfo")
public inline fun generatedCodeInfo(block: com.google.protobuf.GeneratedCodeInfoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.GeneratedCodeInfo =
  com.google.protobuf.GeneratedCodeInfoKt.Dsl._create(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.newBuilder()).apply { block() }._build()
public object GeneratedCodeInfoKt {
  @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.GeneratedCodeInfo.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class AnnotationProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * 
     * An Annotation connects some span of text in generated code to an element
     * of its generating .proto file.
     * 
* * repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; */ public val annotation: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getAnnotationList() ) /** *
     * An Annotation connects some span of text in generated code to an element
     * of its generating .proto file.
     * 
* * repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; * @param value The annotation to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAnnotation") public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation) { _builder.addAnnotation(value) } /** *
     * An Annotation connects some span of text in generated code to an element
     * of its generating .proto file.
     * 
* * repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; * @param value The annotation to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignAnnotation") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation) { add(value) } /** *
     * An Annotation connects some span of text in generated code to an element
     * of its generating .proto file.
     * 
* * repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; * @param values The annotation to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAllAnnotation") public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { _builder.addAllAnnotation(values) } /** *
     * An Annotation connects some span of text in generated code to an element
     * of its generating .proto file.
     * 
* * repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; * @param values The annotation to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignAllAnnotation") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { addAll(values) } /** *
     * An Annotation connects some span of text in generated code to an element
     * of its generating .proto file.
     * 
* * repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; * @param index The index to set the value at. * @param value The annotation to set. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("setAnnotation") public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation) { _builder.setAnnotation(index, value) } /** *
     * An Annotation connects some span of text in generated code to an element
     * of its generating .proto file.
     * 
* * repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearAnnotation") public fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearAnnotation() } } @kotlin.jvm.JvmName("-initializeannotation") public inline fun annotation(block: com.google.protobuf.GeneratedCodeInfoKt.AnnotationKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation = com.google.protobuf.GeneratedCodeInfoKt.AnnotationKt.Dsl._create(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.newBuilder()).apply { block() }._build() public object AnnotationKt { @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.GeneratedCodeInfo.Annotation.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation = _builder.build() /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) public class PathProxy private constructor() : com.google.protobuf.kotlin.DslProxy() /** *
       * Identifies the element in the original source .proto file. This field
       * is formatted the same as SourceCodeInfo.Location.path.
       * 
* * repeated int32 path = 1 [packed = true]; */ public val path: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getPathList() ) /** *
       * Identifies the element in the original source .proto file. This field
       * is formatted the same as SourceCodeInfo.Location.path.
       * 
* * repeated int32 path = 1 [packed = true]; * @param value The path to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addPath") public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Int) { _builder.addPath(value) }/** *
       * Identifies the element in the original source .proto file. This field
       * is formatted the same as SourceCodeInfo.Location.path.
       * 
* * repeated int32 path = 1 [packed = true]; * @param value The path to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignPath") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Int) { add(value) }/** *
       * Identifies the element in the original source .proto file. This field
       * is formatted the same as SourceCodeInfo.Location.path.
       * 
* * repeated int32 path = 1 [packed = true]; * @param values The path to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAllPath") public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { _builder.addAllPath(values) }/** *
       * Identifies the element in the original source .proto file. This field
       * is formatted the same as SourceCodeInfo.Location.path.
       * 
* * repeated int32 path = 1 [packed = true]; * @param values The path to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignAllPath") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { addAll(values) }/** *
       * Identifies the element in the original source .proto file. This field
       * is formatted the same as SourceCodeInfo.Location.path.
       * 
* * repeated int32 path = 1 [packed = true]; * @param index The index to set the value at. * @param value The path to set. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("setPath") public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Int) { _builder.setPath(index, value) }/** *
       * Identifies the element in the original source .proto file. This field
       * is formatted the same as SourceCodeInfo.Location.path.
       * 
* * repeated int32 path = 1 [packed = true]; */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearPath") public fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearPath() } /** *
       * Identifies the filesystem path to the original source .proto.
       * 
* * optional string source_file = 2; */ public var sourceFile: kotlin.String @JvmName("getSourceFile") get() = _builder.getSourceFile() @JvmName("setSourceFile") set(value) { _builder.setSourceFile(value) } /** *
       * Identifies the filesystem path to the original source .proto.
       * 
* * optional string source_file = 2; */ public fun clearSourceFile() { _builder.clearSourceFile() } /** *
       * Identifies the filesystem path to the original source .proto.
       * 
* * optional string source_file = 2; * @return Whether the sourceFile field is set. */ public fun hasSourceFile(): kotlin.Boolean { return _builder.hasSourceFile() } /** *
       * Identifies the starting offset in bytes in the generated code
       * that relates to the identified object.
       * 
* * optional int32 begin = 3; */ public var begin: kotlin.Int @JvmName("getBegin") get() = _builder.getBegin() @JvmName("setBegin") set(value) { _builder.setBegin(value) } /** *
       * Identifies the starting offset in bytes in the generated code
       * that relates to the identified object.
       * 
* * optional int32 begin = 3; */ public fun clearBegin() { _builder.clearBegin() } /** *
       * Identifies the starting offset in bytes in the generated code
       * that relates to the identified object.
       * 
* * optional int32 begin = 3; * @return Whether the begin field is set. */ public fun hasBegin(): kotlin.Boolean { return _builder.hasBegin() } /** *
       * Identifies the ending offset in bytes in the generated code that
       * relates to the identified offset. The end offset should be one past
       * the last relevant byte (so the length of the text = end - begin).
       * 
* * optional int32 end = 4; */ public var end: kotlin.Int @JvmName("getEnd") get() = _builder.getEnd() @JvmName("setEnd") set(value) { _builder.setEnd(value) } /** *
       * Identifies the ending offset in bytes in the generated code that
       * relates to the identified offset. The end offset should be one past
       * the last relevant byte (so the length of the text = end - begin).
       * 
* * optional int32 end = 4; */ public fun clearEnd() { _builder.clearEnd() } /** *
       * Identifies the ending offset in bytes in the generated code that
       * relates to the identified offset. The end offset should be one past
       * the last relevant byte (so the length of the text = end - begin).
       * 
* * optional int32 end = 4; * @return Whether the end field is set. */ public fun hasEnd(): kotlin.Boolean { return _builder.hasEnd() } } } } @kotlin.jvm.JvmSynthetic public inline fun com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.copy(block: com.google.protobuf.GeneratedCodeInfoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.GeneratedCodeInfo = com.google.protobuf.GeneratedCodeInfoKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation.copy(block: com.google.protobuf.GeneratedCodeInfoKt.AnnotationKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation = com.google.protobuf.GeneratedCodeInfoKt.AnnotationKt.Dsl._create(this.toBuilder()).apply { block() }._build()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy