Interface DocServiceFilter

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface DocServiceFilter
A filter which includes or excludes service methods when building a DocService. You can compose as many filters as you want to include or exclude service methods using DocServiceBuilder.include(DocServiceFilter) and DocServiceBuilder.exclude(DocServiceFilter). For example:

 // Include Thrift and gRPC only.
 DocServiceBuilder builder = DocService.builder();
 DocServiceFilter filter = DocServiceFilter.ofThrift().or(DocServiceFilter.ofGrpc());
 builder.include(filter);

 // Include only "Foo" service in Thrift.
 DocServiceFilter filter = DocServiceFilter.ofThrift().and(DocServiceFilter.ofServiceName("com.example.Foo"));
 builder.include(filter);

 // Include all except annotated service and methods whose name is "bar".
 DocServiceFilter filter = DocServiceFilter.ofAnnotated().or(DocServiceFilter.ofMethodName("bar"));
 builder.exclude(filter);