Class GrpcProtoDescriptor

java.lang.Object
io.helidon.declarative.codegen.grpc.GrpcProtoDescriptor

public final class GrpcProtoDescriptor extends Object
Proto descriptor source declared by a declarative gRPC type.
  • Method Details

    • method

      public static GrpcProtoDescriptor method(TypedElementInfo method, boolean isStatic)
      Create a proto method descriptor source.
      Parameters:
      method - proto method
      isStatic - whether the proto method is static
      Returns:
      proto descriptor source
    • descriptorType

      public static GrpcProtoDescriptor descriptorType(TypeName descriptorType)
      Create a generated proto type descriptor source.
      Parameters:
      descriptorType - generated proto type
      Returns:
      proto descriptor source
    • method

      public Optional<TypedElementInfo> method()
      Method annotated with @Grpc.Proto, if this is a method source.
      Returns:
      proto method
    • isStatic

      public boolean isStatic()
      Whether the proto method is static.
      Returns:
      whether the proto method is static
    • descriptorType

      public Optional<TypeName> descriptorType()
      Generated proto descriptor type, if this is a type source.
      Returns:
      generated proto descriptor type