public static final class Attributes.Builder
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
Attributes |
build() |
Build the attributes.
|
<T> Attributes.Builder |
discard(Attributes.Key<T> key) |
Removes the key and associated value from the attribtues.
|
<T> Attributes.Builder |
set(Attributes.Key<T> key,
T value) |
|
Attributes.Builder |
setAll(Attributes other) |
public <T> Attributes.Builder set(Attributes.Key<T> key, T value)
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/5777") public <T> Attributes.Builder discard(Attributes.Key<T> key)
key
- The key to removepublic Attributes.Builder setAll(Attributes other)
public Attributes build()