class MetadataBuilder extends AnyRef

This class provides an interface for constructing immutable Metadata instances.

Annotations
@DoNotInherit() @ApiMayChange()
Source
MetadataBuilder.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetadataBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MetadataBuilder()

Value Members

  1. def addBinary(key: String, value: ByteString): MetadataBuilder

    Adds a binary entry.

    Adds a binary entry. The key must end in the "-bin" binary suffix.

    key

    The entry key.

    value

    The entry value.

    returns

    The updated builder.

  2. def addText(key: String, value: String): MetadataBuilder

    Adds a string entry.

    Adds a string entry. The key must not end in the "-bin" binary suffix.

    key

    The entry key.

    value

    The entry value.

    returns

    The updated builder.

  3. def build(): Metadata

    Builds the immutable metadata instance.

    Builds the immutable metadata instance.

    returns

    The instance.