public final class ServiceDescriptor extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ServiceDescriptor.Builder
A builder for a  
ServiceDescriptor. | 
| Constructor and Description | 
|---|
ServiceDescriptor(String name,
                 Collection<MethodDescriptor<?,?>> methods)
Constructs a new Service Descriptor. 
 | 
ServiceDescriptor(String name,
                 MethodDescriptor<?,?>... methods)
Constructs a new Service Descriptor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Collection<MethodDescriptor<?,?>> | 
getMethods()
A collection of  
MethodDescriptor instances describing the methods exposed by the
 service. | 
String | 
getName()
Simple name of the service. 
 | 
Object | 
getSchemaDescriptor()
Returns the schema descriptor for this service. 
 | 
static ServiceDescriptor.Builder | 
newBuilder(String name)
Creates a new builder for a  
ServiceDescriptor. | 
String | 
toString()  | 
public ServiceDescriptor(String name, MethodDescriptor<?,?>... methods)
newBuilder(java.lang.String)
 instead.name - The name of the servicemethods - The methods that are part of the servicepublic ServiceDescriptor(String name, Collection<MethodDescriptor<?,?>> methods)
newBuilder(java.lang.String)
 instead.name - The name of the servicemethods - The methods that are part of the servicepublic String getName()
public Collection<MethodDescriptor<?,?>> getMethods()
MethodDescriptor instances describing the methods exposed by the
 service.@Nullable @ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/2222") public Object getSchemaDescriptor()
getSchemaDescriptor() must coordinate.  For example, protobuf generated code
 sets this value, in order to be consumed by the server reflection service.  See also:
 io.grpc.protobuf.ProtoFileDescriptorSupplier.public static ServiceDescriptor.Builder newBuilder(String name)
ServiceDescriptor.