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

org.xmtp.proto.message.contents.EncodedContentKt.kt Maven / Gradle / Ivy

The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_contents/content.proto

package org.xmtp.proto.message.contents;

@kotlin.jvm.JvmName("-initializeencodedContent")
public inline fun encodedContent(block: org.xmtp.proto.message.contents.EncodedContentKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Content.EncodedContent =
  org.xmtp.proto.message.contents.EncodedContentKt.Dsl._create(org.xmtp.proto.message.contents.Content.EncodedContent.newBuilder()).apply { block() }._build()
public object EncodedContentKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: org.xmtp.proto.message.contents.Content.EncodedContent.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: org.xmtp.proto.message.contents.Content.EncodedContent.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): org.xmtp.proto.message.contents.Content.EncodedContent = _builder.build()

    /**
     * 
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.message_contents.ContentTypeId type = 1; */ public var type: org.xmtp.proto.message.contents.Content.ContentTypeId @JvmName("getType") get() = _builder.getType() @JvmName("setType") set(value) { _builder.setType(value) } /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.message_contents.ContentTypeId type = 1; */ public fun clearType() { _builder.clearType() } /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.message_contents.ContentTypeId type = 1; * @return Whether the type field is set. */ public fun hasType(): kotlin.Boolean { return _builder.hasType() } /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) public class ParametersProxy private constructor() : com.google.protobuf.kotlin.DslProxy() /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ public val parameters: com.google.protobuf.kotlin.DslMap @kotlin.jvm.JvmSynthetic @JvmName("getParametersMap") get() = com.google.protobuf.kotlin.DslMap( _builder.getParametersMap() ) /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ @JvmName("putParameters") public fun com.google.protobuf.kotlin.DslMap .put(key: kotlin.String, value: kotlin.String) { _builder.putParameters(key, value) } /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ @kotlin.jvm.JvmSynthetic @JvmName("setParameters") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslMap .set(key: kotlin.String, value: kotlin.String) { put(key, value) } /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ @kotlin.jvm.JvmSynthetic @JvmName("removeParameters") public fun com.google.protobuf.kotlin.DslMap .remove(key: kotlin.String) { _builder.removeParameters(key) } /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ @kotlin.jvm.JvmSynthetic @JvmName("putAllParameters") public fun com.google.protobuf.kotlin.DslMap .putAll(map: kotlin.collections.Map) { _builder.putAllParameters(map) } /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ @kotlin.jvm.JvmSynthetic @JvmName("clearParameters") public fun com.google.protobuf.kotlin.DslMap .clear() { _builder.clearParameters() } /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; */ public var fallback: kotlin.String @JvmName("getFallback") get() = _builder.getFallback() @JvmName("setFallback") set(value) { _builder.setFallback(value) } /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; */ public fun clearFallback() { _builder.clearFallback() } /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; * @return Whether the fallback field is set. */ public fun hasFallback(): kotlin.Boolean { return _builder.hasFallback() } /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.message_contents.Compression compression = 5; */ public var compression: org.xmtp.proto.message.contents.Content.Compression @JvmName("getCompression") get() = _builder.getCompression() @JvmName("setCompression") set(value) { _builder.setCompression(value) } /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.message_contents.Compression compression = 5; */ public fun clearCompression() { _builder.clearCompression() } /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.message_contents.Compression compression = 5; * @return Whether the compression field is set. */ public fun hasCompression(): kotlin.Boolean { return _builder.hasCompression() } /** *
     * encoded content itself
     * 
* * bytes content = 4; */ public var content: com.google.protobuf.ByteString @JvmName("getContent") get() = _builder.getContent() @JvmName("setContent") set(value) { _builder.setContent(value) } /** *
     * encoded content itself
     * 
* * bytes content = 4; */ public fun clearContent() { _builder.clearContent() } } } public inline fun org.xmtp.proto.message.contents.Content.EncodedContent.copy(block: org.xmtp.proto.message.contents.EncodedContentKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Content.EncodedContent = org.xmtp.proto.message.contents.EncodedContentKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val org.xmtp.proto.message.contents.Content.EncodedContentOrBuilder.typeOrNull: org.xmtp.proto.message.contents.Content.ContentTypeId? get() = if (hasType()) getType() else null




© 2015 - 2024 Weber Informatics LLC | Privacy Policy