public static final class Attributes.Builder extends Object
Modifier and Type | Method and 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(value="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()