Class Service
- java.lang.Object
-
- com.google.api.generator.gapic.model.Service
-
public abstract class Service extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classService.Builder
-
Constructor Summary
Constructors Constructor Description Service()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringapiShortName()StringapiVersion()static Service.Builderbuilder()abstract StringdefaultHost()abstract Stringdescription()booleanhasAnyEnabledMethodsForTransport(Transport transport)Determines if a Service contains any methods that are both eligible and enabled for the Transport.booleanhasAnyEnabledMethodsForTransport(String transportName)Wrapper for hasAnyEnabledMethodsForTransport(Transport).booleanhasDescription()booleanhasLroMethods()booleanhasStandardLroMethods()abstract booleanisDeprecated()abstract com.google.common.collect.ImmutableList<Method>methods()abstract Stringname()abstract com.google.common.collect.ImmutableList<String>oauthScopes()MethodoperationPollingMethod()TypeNodeoperationServiceStubType()TypeNodeoperationType()abstract StringoriginalJavaPackage()abstract StringoverriddenName()abstract Stringpakkage()abstract StringprotoPakkage()abstract Service.BuildertoBuilder()
-
-
-
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
-
toBuilder
public abstract Service.Builder toBuilder()
-
builder
public static Service.Builder builder()
-
-