@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1770") public static final class NameResolver.ResolutionResult.Builder extends Object
NameResolver.ResolutionResult.| Modifier and Type | Method and Description |
|---|---|
NameResolver.ResolutionResult |
build()
Constructs a new
NameResolver.ResolutionResult from this builder. |
NameResolver.ResolutionResult.Builder |
setAddresses(List<EquivalentAddressGroup> addresses)
Sets the addresses resolved by name resolution.
|
NameResolver.ResolutionResult.Builder |
setAttributes(Attributes attributes)
Sets the attributes for the addresses resolved by name resolution.
|
NameResolver.ResolutionResult.Builder |
setServiceConfig(NameResolver.ConfigOrError serviceConfig)
Sets the Service Config parsed by
NameResolver.Args.getServiceConfigParser(). |
public NameResolver.ResolutionResult.Builder setAddresses(List<EquivalentAddressGroup> addresses)
public NameResolver.ResolutionResult.Builder setAttributes(Attributes attributes)
Attributes.EMPTY will be used as a default.public NameResolver.ResolutionResult.Builder setServiceConfig(@Nullable NameResolver.ConfigOrError serviceConfig)
NameResolver.Args.getServiceConfigParser().
This field is optional.public NameResolver.ResolutionResult build()
NameResolver.ResolutionResult from this builder.