public static final class GrpcRouteMatch.Builder
extends java.lang.Object
GrpcRouteMatch
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GrpcRouteMatch |
build()
Builds the configured instance.
|
GrpcRouteMatch.Builder |
metadata(java.util.List<? extends HeaderMatch> metadata)
Sets the value of
GrpcRouteMatch.getMetadata() |
GrpcRouteMatch.Builder |
methodName(java.lang.String methodName)
Sets the value of
GrpcRouteMatch.getMethodName() |
GrpcRouteMatch.Builder |
serviceName(java.lang.String serviceName)
Sets the value of
GrpcRouteMatch.getServiceName() |
public GrpcRouteMatch.Builder metadata(java.util.List<? extends HeaderMatch> metadata)
GrpcRouteMatch.getMetadata()
metadata
- Create metadata based gRPC route match.
All specified metadata must match for the route to match.this
public GrpcRouteMatch.Builder methodName(java.lang.String methodName)
GrpcRouteMatch.getMethodName()
methodName
- The method name to match from the request.
If the method name is specified, service name must be also provided.this
public GrpcRouteMatch.Builder serviceName(java.lang.String serviceName)
GrpcRouteMatch.getServiceName()
serviceName
- Create service name based gRPC route match.this
public GrpcRouteMatch build()
GrpcRouteMatch
java.lang.NullPointerException
- if any required attribute was not provided