Package io.grpc
Class Attributes.Builder
java.lang.Object
io.grpc.Attributes.Builder
- Enclosing class:
- Attributes
The helper class to build an Attributes instance.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the attributes.discard(Attributes.Key<T> key) Removes the key and associated value from the attributes.set(Attributes.Key<T> key, T value) setAll(Attributes other)
-
Method Details
-
set
-
discard
Removes the key and associated value from the attributes.- Parameters:
key- The key to remove- Returns:
- this
- Since:
- 1.22.0
-
setAll
-
build
Build the attributes.
-