Interface PServiceMethod
-
@Immutable public interface PServiceMethod
Descriptor for a single service method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
PStructDescriptor
getRequestType()
PUnionDescriptor
getResponseType()
PService
getService()
Get the service where this method is represented.boolean
isOneway()
boolean
isProtoStub()
If the method is a proto stub method.
-
-
-
Method Detail
-
getName
@Nonnull java.lang.String getName()
- Returns:
- Name of the method.
-
isOneway
boolean isOneway()
- Returns:
- If the method cal is oneway.
-
isProtoStub
boolean isProtoStub()
If the method is a proto stub method. This means that both the request and response is a single message (with struct variant). And the request struct is the method parameter, not it's fields.- Returns:
- True if the method is a proto stub.
-
getRequestType
@Nonnull PStructDescriptor getRequestType()
- Returns:
- The descriptor of the request type.
-
getResponseType
@Nullable PUnionDescriptor getResponseType()
- Returns:
- The descriptor of the response type, or null for oneway methods.
-
getService
@Nonnull PService getService()
Get the service where this method is represented. Note that it may be defined in the extended service and not the service returned.- Returns:
- The representing service.
-
-