Class Service


  • public abstract class Service
    extends Object
    • Constructor Detail

      • Service

        public Service()
    • Method Detail

      • name

        public abstract String name()
      • defaultHost

        public abstract String defaultHost()
      • oauthScopes

        public abstract com.google.common.collect.ImmutableList<String> oauthScopes()
      • pakkage

        public abstract String pakkage()
      • protoPakkage

        public abstract String protoPakkage()
      • originalJavaPackage

        public abstract String originalJavaPackage()
      • overriddenName

        public abstract String overriddenName()
      • isDeprecated

        public abstract boolean isDeprecated()
      • methods

        public abstract com.google.common.collect.ImmutableList<Method> methods()
      • hasDescription

        public boolean hasDescription()
      • apiShortName

        public String apiShortName()
      • apiVersion

        public String apiVersion()
      • operationPollingMethod

        public Method operationPollingMethod()
      • operationServiceStubType

        public TypeNode operationServiceStubType()
      • operationType

        public TypeNode operationType()
      • hasLroMethods

        public boolean hasLroMethods()
      • hasStandardLroMethods

        public boolean hasStandardLroMethods()
      • hasAnyEnabledMethodsForTransport

        public boolean hasAnyEnabledMethodsForTransport​(String transportName)
        Wrapper for hasAnyEnabledMethodsForTransport(Transport). Some invocations are called with `gRPC` which can't match with the correct Transport (GRPC)
        Parameters:
        transportName - String transport value
        Returns:
        boolean if service contains any enabled methods for a transport
      • hasAnyEnabledMethodsForTransport

        public boolean hasAnyEnabledMethodsForTransport​(Transport transport)
        Determines if a Service contains any methods that are 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 service contains any enabled methods for a transport