| Modifier and Type | Class and Description |
|---|---|
| public static class | ServiceDescriptor.Builder
A builder for a |
| Modifier and Type | Field and Description |
|---|---|
| private final Collection | |
| private final String | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | ServiceDescriptor(String
The name of the service name, MethodDescriptor<?, ?>... The methods that are part of the service methods)Constructs a new Service Descriptor. |
| public | ServiceDescriptor(String
The name of the service name, Collection<MethodDescriptor<?, ?>> The methods that are part of the service methods)Constructs a new Service Descriptor. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Collection | getMethods()
A collection of |
| public String | |
| public Object | |
| public static ServiceDescriptor. | |
| public String | |
| pack-priv static void |
| methods | back to summary |
|---|---|
| private final Collection<MethodDescriptor<?, ?>> methods | |
| name | back to summary |
|---|---|
| private final String name | |
| schemaDescriptor | back to summary |
|---|---|
| private final Object schemaDescriptor | |
| ServiceDescriptor | back to summary |
|---|---|
| public ServiceDescriptor(String name, MethodDescriptor<?, ?>... methods) Constructs a new Service Descriptor. Users are encouraged to use
| |
| ServiceDescriptor | back to summary |
|---|---|
| public ServiceDescriptor(String name, Collection<MethodDescriptor<?, ?>> methods) Constructs a new Service Descriptor. Users are encouraged to use
| |
| ServiceDescriptor | back to summary |
|---|---|
| private ServiceDescriptor(ServiceDescriptor. | |
| getMethods | back to summary |
|---|---|
| public Collection A collection of
| |
| getName | back to summary |
|---|---|
| public String getName() Simple name of the service. It is not an absolute path.
| |
| getSchemaDescriptor | back to summary |
|---|---|
| public Object getSchemaDescriptor() Returns the schema descriptor for this service. A schema descriptor is an object that is not
used by gRPC core but includes information related to the service. The type of the object
is specific to the consumer, so both the code setting the schema descriptor and the code
calling
| |
| newBuilder | back to summary |
|---|---|
| public static ServiceDescriptor. Creates a new builder for a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| validateMethodNames | back to summary |
|---|---|
| pack-priv static void validateMethodNames(String serviceName, Collection<MethodDescriptor<?, ?>> methods) | |
ServiceDescriptor.
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private String | |
| private Object |
| Modifier and Type | Method and Description |
|---|---|
| private ServiceDescriptor. | Returns: this builder.the methods to add. methods)Currently not exposed. |
| public ServiceDescriptor. | Returns: this builder.the method to add to the descriptor. method)Adds a method to this service. |
| public ServiceDescriptor | |
| public ServiceDescriptor. | |
| public ServiceDescriptor. | Returns: this builder.an object that describes the service structure. Should be immutable. schemaDescriptor)Sets the schema descriptor for this builder. |
| methods | back to summary |
|---|---|
| private List<MethodDescriptor<?, ?>> methods | |
| name | back to summary |
|---|---|
| private String name | |
| schemaDescriptor | back to summary |
|---|---|
| private Object schemaDescriptor | |
| Builder | back to summary |
|---|---|
| private Builder(String name) | |
| addAllMethods | back to summary |
|---|---|
| private ServiceDescriptor. Currently not exposed. Bulk adds methods to this builder.
| |
| addMethod | back to summary |
|---|---|
| public ServiceDescriptor. Adds a method to this service. This should be non-
| |
| build | back to summary |
|---|---|
| public ServiceDescriptor build() Constructs a new
| |
| setName | back to summary |
|---|---|
| public ServiceDescriptor. Sets the name. This should be non-
| |
| setSchemaDescriptor | back to summary |
|---|---|
| public ServiceDescriptor. Sets the schema descriptor for this builder. A schema descriptor is an object that is not
used by gRPC core but includes information related to the service. The type of the object
is specific to the consumer, so both the code calling this and the code calling
| |