Class Method


  • public abstract class Method
    extends Object
    • Constructor Detail

      • Method

        public Method()
    • Method Detail

      • name

        public abstract String name()
      • inputType

        public abstract TypeNode inputType()
      • outputType

        public abstract TypeNode outputType()
      • isBatching

        public abstract boolean isBatching()
      • isPaged

        public boolean isPaged()
      • isDeprecated

        public abstract boolean isDeprecated()
      • methodSignatures

        public abstract com.google.common.collect.ImmutableList<List<MethodArgument>> methodSignatures()
      • operationPollingMethod

        public abstract boolean operationPollingMethod()
      • hasLro

        public boolean hasLro()
      • hasDescription

        public boolean hasDescription()
      • hasHttpBindings

        public boolean hasHttpBindings()
      • hasRoutingHeaderParams

        public boolean hasRoutingHeaderParams()
      • shouldSetParamsExtractor

        public boolean shouldSetParamsExtractor()
      • isMixin

        public boolean isMixin()
      • isOperationPollingMethod

        public boolean isOperationPollingMethod()
      • isSupportedByTransport

        public boolean isSupportedByTransport​(Transport transport)
        Determines if method is both eligible and enabled for the Transport. GRPC+REST Transport is not supported as each transport's sub composers will invoke this method the specific transport (GRPC or REST)
        Parameters:
        transport - Expects either GRPC or REST Transport
        Returns:
        boolean if method should be generated for the transport
      • toStream

        public static Method.Stream toStream​(boolean isClientStreaming,
                                             boolean isServerStreaming)