Class Service

java.lang.Object
com.google.api.generator.gapic.model.Service

public abstract class Service extends Object
  • Constructor Details

    • Service

      public Service()
  • Method Details

    • 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()
    • description

      @Nullable public abstract String description()
    • hasDescription

      public boolean hasDescription()
    • hostServiceName

      public String hostServiceName()
    • 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
    • toBuilder

      public abstract Service.Builder toBuilder()
    • builder

      public static Service.Builder builder()