Package com.google.protobuf.kotlin

//protobuf-kotlin/com.google.protobuf.kotlin

Types

Name Summary
DslList [JVM]
Content
class DslList<E, P : DslProxy>constructor(delegate: List<E>) : List<E>
More info
A simple wrapper around a List with an extra generic parameter that can be used to disambiguate extension methods.


DslMap [JVM]
Content
class DslMap<K, V, P : DslProxy>constructor(delegate: Map<K, V>) : Map<K, V>
More info
A simple wrapper around a Map with an extra generic parameter that can be used to disambiguate extension methods.


DslProxy [JVM]
Content
abstract class DslProxy
More info
A type meaningful only for its existence, never intended to be instantiated.


ExtensionList [JVM]
Content
class ExtensionList<E, M : MessageLite>constructor(extension: ExtensionLite<M, List<E>>, delegate: List<E>) : List<E>
More info
Implementation for ExtensionList and ExtensionListLite.


OnlyForUseByGeneratedProtoCode [JVM]
Content
@Target(allowedTargets = [AnnotationTarget.CONSTRUCTOR, AnnotationTarget.ANNOTATION_CLASS])

annotation class OnlyForUseByGeneratedProtoCode
More info
Opt-in annotation to make it difficult to accidentally use APIs only intended for use by proto generated code.


ProtoDslMarker [JVM]
Content
@DslMarker()
@Target(allowedTargets = [AnnotationTarget.CLASS])

annotation class ProtoDslMarker
More info
Indicates an API that is part of a DSL to generate protocol buffer messages.


Functions

Name Summary
contains [JVM]
Content
operator fun <M : GeneratedMessageLite.ExtendableMessage<M, *>, MorBT : GeneratedMessageLite.ExtendableMessageOrBuilder<M, *>> MorBT.contains(extension: ExtensionLite<M, *>): Boolean
More info
Returns true if the specified extension is set.


[JVM]
Content
operator fun <M : GeneratedMessageV3.ExtendableMessage<M>, MorBT : GeneratedMessageV3.ExtendableMessageOrBuilder<M>> MorBT.contains(extension: ExtensionLite<M, *>): Boolean
More info
Returns true if the specified extension is set on this builder.


get [JVM]
Content
operator fun <M : GeneratedMessageLite.ExtendableMessage<M, *>, MOrBT : GeneratedMessageLite.ExtendableMessageOrBuilder<M, *>, T : Any> MOrBT.get(extension: ExtensionLite<M, T>): T
More info
Gets the value of the proto extension.


[JVM]
Content
operator fun <M : GeneratedMessageV3.ExtendableMessage<M>, MorBT : GeneratedMessageV3.ExtendableMessageOrBuilder<M>, T : Any> MorBT.get(extension: ExtensionLite<M, T>): T
More info
Gets the current value of the proto extension.


set [JVM]
Content
operator fun <M : GeneratedMessageLite.ExtendableMessage<M, B>, B : GeneratedMessageLite.ExtendableBuilder<M, B>, T : Any> B.set(extension: ExtensionLite<M, T>, value: T)
operator fun <M : GeneratedMessageV3.ExtendableMessage<M>, B : GeneratedMessageV3.ExtendableBuilder<M, B>, T : Any> B.set(extension: ExtensionLite<M, T>, value: T)
More info
Sets the current value of the proto extension in this builder.