MetadataStatus

@ApiMayChange @DoNotInherit
trait MetadataStatus extends Metadata

Provides access to details to more rich error details using the logical gRPC com.google.rpc.Status message, see API Design Guide for more details.

Not for user extension

Source:
Metadata.scala
trait Metadata
class Object
trait Matchable
class Any

Value members

Abstract methods

def getCode(): Int
def getDetails(): List[Any]
def getMessage(): String
def getParsedDetails[K <: GeneratedMessage](companion: GeneratedMessageCompanion[K]): List[K]
def getStatus(): Status

Inherited methods

def asList(): List[Pair[String, MetadataEntry]]
Returns:

A list of (key, entry) pairs. Pairs with the same key will be ordered based on when they were added or received.

Inherited from:
Metadata
Source:
Metadata.scala
def asMap(): Map[String, List[MetadataEntry]]
Returns:

A map from keys to a list of metadata entries. Entries with the same key will be ordered based on when they were added or received.

Inherited from:
Metadata
Source:
Metadata.scala
Returns:

Returns the scaladsl.Metadata interface for this instance.

Inherited from:
Metadata
Source:
Metadata.scala
def getBinary(key: String): Optional[ByteString]
Returns:

The binary header value for key if one exists, if the same key has multiple values the last occurrence that is a text key is used.

Inherited from:
Metadata
Source:
Metadata.scala
def getText(key: String): Optional[String]
Returns:

The text header value for key if one exists, if the same key has multiple values the last occurrence that is a text key is used.

Inherited from:
Metadata
Source:
Metadata.scala