class MetadataBuilder extends AnyRef
This class provides an interface for constructing immutable Metadata instances.
- Annotations
- @DoNotInherit() @ApiMayChange()
- Source
- MetadataBuilder.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MetadataBuilder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new MetadataBuilder()
Value Members
-
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.
-
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.
-
def
build(): Metadata
Builds the immutable metadata instance.
Builds the immutable metadata instance.
- returns
The instance.