- Enclosing interface:
Grpc
@Target({TYPE,FIELD,CONSTRUCTOR})
@Retention(RUNTIME)
@Inherited
@Documented
public static @interface Grpc.GrpcService
An annotation used to mark a class as representing a gRPC service.
-
Optional Element Summary
-
Element Details
-
value
String valueObtain the service name.- Returns:
- the service name
- Default:
""
-
version
int versionObtain the service version.- Returns:
- the service version
- Default:
0
-