Package-level declarations

Available in a dev version: 0․11․0-grpc-186

How to configure

Types

Link copied to clipboard
interface GrpcCompression

Represents a compression algorithm for gRPC message encoding.

Link copied to clipboard
expect class GrpcMetadata

Provides access to read and write metadata values to be exchanged during a gRPC call.

actual typealias GrpcMetadata = Metadata
typealias GrpcMetadata = Metadata

Provides access to read and write metadata values to be exchanged during a gRPC call.

actual class GrpcMetadata

Provides access to read and write metadata values to be exchanged during a gRPC call.

Link copied to clipboard
expect class GrpcMetadataKey<T>(name: String, marshaller: GrpcMarshaller<T>)

A typed key for metadata entries that uses a GrpcMarshaller to encode and decode values.

actual class GrpcMetadataKey<T>(name: String, marshaller: GrpcMarshaller<T>)

A typed key for metadata entries that uses a GrpcMarshaller to encode and decode values.

actual class GrpcMetadataKey<T>(name: String, val marshaller: GrpcMarshaller<T>)

A typed key for metadata entries that uses a GrpcMarshaller to encode and decode values.

Link copied to clipboard
expect class GrpcStatus

Defines the status of an operation by providing a standard GrpcStatusCode in conjunction with an optional descriptive message.

actual typealias GrpcStatus = Status
typealias GrpcStatus = Status

Defines the status of an operation by providing a standard GrpcStatusCode in conjunction with an optional descriptive message.

actual class GrpcStatus

Defines the status of an operation by providing a standard GrpcStatusCode in conjunction with an optional descriptive message.

Link copied to clipboard

Standard gRPC status codes.

Link copied to clipboard

Exception used for propagating gRPC status information in non-OK results.

actual typealias GrpcStatusException = StatusException
typealias GrpcStatusException = StatusException

Exception used for propagating gRPC status information in non-OK results.

Exception used for propagating gRPC status information in non-OK results.

Properties

Link copied to clipboard

The description of this status, or null if not present.

Link copied to clipboard

The status associated with this exception.

Link copied to clipboard

The status code of this status.

The status code of this status.

The status code of this status.

Link copied to clipboard

The trailing metadata associated with this exception, or null if not present.

Functions

Link copied to clipboard
expect fun GrpcMetadata.append(key: String, value: String)

Appends a metadata entry with the given key and value.

expect fun <T> GrpcMetadata.append(key: GrpcMetadataKey<T>, value: T)

Appends a metadata entry with the given typed key and value.

actual fun GrpcMetadata.append(key: String, value: String)

Appends a metadata entry with the given key and value.

actual fun <T> GrpcMetadata.append(key: GrpcMetadataKey<T>, value: T)

Appends a metadata entry with the given typed key and value.

actual fun GrpcMetadata.append(key: String, value: String)

Appends a metadata entry with the given key and value.

actual fun <T> GrpcMetadata.append(key: GrpcMetadataKey<T>, value: T)

Appends a metadata entry with the given typed key and value.

Link copied to clipboard
expect fun GrpcMetadata.appendBinary(key: String, value: ByteArray)

Appends a binary metadata entry with the given key and value.

expect fun <T> GrpcMetadata.appendBinary(key: GrpcMetadataKey<T>, value: T)

Appends a binary metadata entry with the given typed key and value.

actual fun GrpcMetadata.appendBinary(key: String, value: ByteArray)

Appends a binary metadata entry with the given key and value.

actual fun <T> GrpcMetadata.appendBinary(key: GrpcMetadataKey<T>, value: T)

Appends a binary metadata entry with the given typed key and value.

actual fun GrpcMetadata.appendBinary(key: String, value: ByteArray)

Appends a binary metadata entry with the given key and value.

actual fun <T> GrpcMetadata.appendBinary(key: GrpcMetadataKey<T>, value: T)

Appends a binary metadata entry with the given typed key and value.

Link copied to clipboard

Converts this status to a GrpcStatusException with optional trailers.

Link copied to clipboard
expect operator fun GrpcMetadata.contains(key: String): Boolean

Returns true if this metadata contains one or more values for the specified key.

actual operator fun GrpcMetadata.contains(key: String): Boolean

Returns true if this metadata contains one or more values for the specified key.

actual operator fun GrpcMetadata.contains(key: String): Boolean

Returns true if this metadata contains one or more values for the specified key.

Link copied to clipboard

Creates a copy of this metadata containing all entries.

Link copied to clipboard
expect operator fun GrpcMetadata.get(key: String): String?

Returns the last metadata entry added with the given key, or null if there are no entries.

expect operator fun <T> GrpcMetadata.get(key: GrpcMetadataKey<T>): T?

Returns the last metadata entry added with the given typed key, or null if there are no entries.

actual operator fun GrpcMetadata.get(key: String): String?

Returns the last metadata entry added with the given key, or null if there are no entries.

actual operator fun <T> GrpcMetadata.get(key: GrpcMetadataKey<T>): T?

Returns the last metadata entry added with the given typed key, or null if there are no entries.

actual operator fun GrpcMetadata.get(key: String): String?

Returns the last metadata entry added with the given key, or null if there are no entries.

actual operator fun <T> GrpcMetadata.get(key: GrpcMetadataKey<T>): T?

Returns the last metadata entry added with the given typed key, or null if there are no entries.

Link copied to clipboard
expect fun GrpcMetadata.getAll(key: String): List<String>

Returns all metadata entries with the given key, in the order they were added.

expect fun <T> GrpcMetadata.getAll(key: GrpcMetadataKey<T>): List<T>

Returns all metadata entries with the given typed key, in the order they were added.

actual fun GrpcMetadata.getAll(key: String): List<String>

Returns all metadata entries with the given key, in the order they were added.

actual fun <T> GrpcMetadata.getAll(key: GrpcMetadataKey<T>): List<T>

Returns all metadata entries with the given typed key, in the order they were added.

actual fun GrpcMetadata.getAll(key: String): List<String>

Returns all metadata entries with the given key, in the order they were added.

actual fun <T> GrpcMetadata.getAll(key: GrpcMetadataKey<T>): List<T>

Returns all metadata entries with the given typed key, in the order they were added.

Link copied to clipboard

Returns all binary metadata entries with the given key, in the order they were added.

Returns all binary metadata entries with the given typed key, in the order they were added.

Returns all binary metadata entries with the given key, in the order they were added.

Returns all binary metadata entries with the given typed key, in the order they were added.

Returns all binary metadata entries with the given key, in the order they were added.

Returns all binary metadata entries with the given typed key, in the order they were added.

Link copied to clipboard

Returns the last binary metadata entry added with the given key, or null if there are no entries.

expect fun <T> GrpcMetadata.getBinary(key: GrpcMetadataKey<T>): T?

Returns the last binary metadata entry added with the given typed key, or null if there are no entries.

Returns the last binary metadata entry added with the given key, or null if there are no entries.

actual fun <T> GrpcMetadata.getBinary(key: GrpcMetadataKey<T>): T?

Returns the last binary metadata entry added with the given typed key, or null if there are no entries.

Returns the last binary metadata entry added with the given key, or null if there are no entries.

actual fun <T> GrpcMetadata.getBinary(key: GrpcMetadataKey<T>): T?

Returns the last binary metadata entry added with the given typed key, or null if there are no entries.

Link copied to clipboard

Constructs and configures a new GrpcMetadata instance. The provided block is executed to apply custom modifications to the metadata object.

Link copied to clipboard
expect fun GrpcStatus(code: GrpcStatusCode, description: String? = null, cause: Throwable? = null): GrpcStatus

Creates a GrpcStatus with the specified code, optional description, and cause.

actual fun GrpcStatus(code: GrpcStatusCode, description: String?, cause: Throwable?): GrpcStatus

Creates a GrpcStatus with the specified code, optional description, and cause.

actual fun GrpcStatus(code: GrpcStatusCode, description: String?, cause: Throwable?): GrpcStatus

Creates a GrpcStatus with the specified code, optional description, and cause.

Link copied to clipboard
expect fun GrpcMetadata.keys(): Set<String>

Returns an immutable set of all keys present in this metadata.

actual fun GrpcMetadata.keys(): Set<String>

Returns an immutable set of all keys present in this metadata.

actual fun GrpcMetadata.keys(): Set<String>

Returns an immutable set of all keys present in this metadata.

Link copied to clipboard
expect fun GrpcMetadata.merge(other: GrpcMetadata)

Merges all entries from other metadata into this metadata.

actual fun GrpcMetadata.merge(other: GrpcMetadata)

Merges all entries from other metadata into this metadata.

actual fun GrpcMetadata.merge(other: GrpcMetadata)

Merges all entries from other metadata into this metadata.

Link copied to clipboard

Creates a new metadata instance containing all entries from this metadata and other.

Link copied to clipboard
operator fun GrpcMetadata.plusAssign(other: GrpcMetadata)

Merges all entries from other metadata into this metadata using the += operator.

Link copied to clipboard
expect fun GrpcMetadata.remove(key: String, value: String): Boolean

Removes the first occurrence of the specified value for the given key.

expect fun <T> GrpcMetadata.remove(key: GrpcMetadataKey<T>, value: T): Boolean

Removes the first occurrence of the specified value for the given typed key.

actual fun GrpcMetadata.remove(key: String, value: String): Boolean

Removes the first occurrence of the specified value for the given key.

actual fun <T> GrpcMetadata.remove(key: GrpcMetadataKey<T>, value: T): Boolean

Removes the first occurrence of the specified value for the given typed key.

actual fun GrpcMetadata.remove(key: String, value: String): Boolean

Removes the first occurrence of the specified value for the given key.

actual fun <T> GrpcMetadata.remove(key: GrpcMetadataKey<T>, value: T): Boolean

Removes the first occurrence of the specified value for the given typed key.

Link copied to clipboard

Removes all values for the given key and returns them.

Removes all values for the given typed key and returns them.

Removes all values for the given key and returns them.

Removes all values for the given typed key and returns them.

Removes all values for the given key and returns them.

Removes all values for the given typed key and returns them.

Link copied to clipboard

Removes all binary values for the given key and returns them.

Removes all binary values for the given key and returns them.

Removes all binary values for the given key and returns them.

Link copied to clipboard

Removes the first occurrence of the specified binary value for the given key.

expect fun <T> GrpcMetadata.removeBinary(key: GrpcMetadataKey<T>, value: T): Boolean

Removes the first occurrence of the specified binary value for the given typed key.

Removes the first occurrence of the specified binary value for the given key.

actual fun <T> GrpcMetadata.removeBinary(key: GrpcMetadataKey<T>, value: T): Boolean

Removes the first occurrence of the specified binary value for the given typed key.

Removes the first occurrence of the specified binary value for the given key.

actual fun <T> GrpcMetadata.removeBinary(key: GrpcMetadataKey<T>, value: T): Boolean

Removes the first occurrence of the specified binary value for the given typed key.