Annotation Interface Grpc.GrpcService

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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Obtain the service name.
    int
    Obtain the service version.
  • Element Details

    • value

      String value
      Obtain the service name.
      Returns:
      the service name
      Default:
      ""
    • version

      int version
      Obtain the service version.
      Returns:
      the service version
      Default:
      0