Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown State: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,17 @@ private constructor(private val value: JsonField<String>) : Enum {
else -> throw LithicInvalidDataException("Unknown AccountFinancialAccountType: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging and
* generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the expected
* primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown ExemptionType: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -1544,7 +1554,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown Status: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -1689,7 +1709,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown StatusReason: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -1783,7 +1813,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown UserType: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -2084,7 +2124,19 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown Status: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for
* debugging and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow {
LithicInvalidDataException("Value is not a String")
}

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -2230,7 +2282,19 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown StatusReason: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for
* debugging and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow {
LithicInvalidDataException("Value is not a String")
}

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown Status: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -676,7 +686,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown StatusReasons: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown Status: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -727,7 +737,17 @@ private constructor(
throw LithicInvalidDataException("Unknown DocumentUploadStatusReasons: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown Status: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -763,7 +773,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown StatusReason: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown ExemptionType: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -2080,7 +2090,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown Status: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -2354,7 +2374,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown StatusReasons: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -2451,7 +2481,17 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown UserType: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for debugging
* and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -2739,7 +2779,19 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown Status: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for
* debugging and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow {
LithicInvalidDataException("Value is not a String")
}

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down Expand Up @@ -3016,7 +3068,19 @@ private constructor(
else -> throw LithicInvalidDataException("Unknown StatusReasons: $value")
}

fun asString(): String = _value().asStringOrThrow()
/**
* Returns this class instance's primitive wire representation.
*
* This differs from the [toString] method because that method is primarily for
* debugging and generally doesn't throw.
*
* @throws LithicInvalidDataException if this class instance's value does not have the
* expected primitive type.
*/
fun asString(): String =
_value().asString().orElseThrow {
LithicInvalidDataException("Value is not a String")
}

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand Down
Loading