Bytes

data class Bytes(val value: ByteArray) : GuardrailImageSource

The bytes details of the guardrail image source. Object used in independent api.

Constructors

Link copied to clipboard
constructor(value: ByteArray)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard

Casts this GuardrailImageSource as a Bytes and retrieves its kotlin.ByteArray value. Throws an exception if the GuardrailImageSource is not a Bytes.

Link copied to clipboard

Casts this GuardrailImageSource as a Bytes and retrieves its kotlin.ByteArray value. Returns null if the GuardrailImageSource is not a Bytes.