Class AbstractServiceCallableFactoryClassComposer
- java.lang.Object
-
- com.google.api.generator.gapic.composer.common.AbstractServiceCallableFactoryClassComposer
-
- All Implemented Interfaces:
ClassComposer
- Direct Known Subclasses:
GrpcServiceCallableFactoryClassComposer,HttpJsonServiceCallableFactoryClassComposer
public abstract class AbstractServiceCallableFactoryClassComposer extends Object implements ClassComposer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractServiceCallableFactoryClassComposer(TransportContext transportContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected MethodDefinitioncreateBatchingCallableMethod(Service service, TypeStore typeStore)protected List<AnnotationNode>createClassAnnotations(Service service, TypeStore typeStore)protected abstract List<TypeNode>createClassImplements(Service service, TypeStore typeStore)Construct the type to be implemented by the generated callable factory.protected List<MethodDefinition>createClassMethods(Service service, TypeStore typeStore)protected MethodDefinitioncreateGenericCallableMethod(Service service, TypeStore typeStore, List<String> methodTemplateNames, String returnCallableKindName, List<String> returnCallableTemplateNames, String methodVariantName, List<Object> transportCallSettingsTemplateObjects, String callSettingsVariantName, List<Object> callSettingsTemplateObjects)protected MethodDefinitioncreateGenericCallableMethod(Service service, TypeStore typeStore, List<String> methodTemplateNames, String returnCallableKindName, List<String> returnCallableTemplateNames, String methodVariantName, List<Object> transportCallSettingsTemplateObjects, String callSettingsVariantName, List<Object> callSettingsTemplateObjects, List<AnnotationNode> annotations)protected abstract MethodDefinitioncreateOperationCallableMethod(Service service, TypeStore typeStore)protected MethodDefinitioncreatePagedCallableMethod(Service service, TypeStore typeStore)protected MethodDefinitioncreateServerStreamingCallableMethod(Service service, TypeStore typeStore)protected MethodDefinitioncreateUnaryCallableMethod(Service service, TypeStore typeStore)GapicClassgenerate(GapicContext context, Service service)protected TypeNodegetOperationsStubType(Service service)protected TransportContextgetTransportContext()
-
-
-
Constructor Detail
-
AbstractServiceCallableFactoryClassComposer
protected AbstractServiceCallableFactoryClassComposer(TransportContext transportContext)
-
-
Method Detail
-
getTransportContext
protected TransportContext getTransportContext()
-
generate
public GapicClass generate(GapicContext context, Service service)
- Specified by:
generatein interfaceClassComposer
-
createClassAnnotations
protected List<AnnotationNode> createClassAnnotations(Service service, TypeStore typeStore)
-
createClassImplements
protected abstract List<TypeNode> createClassImplements(Service service, TypeStore typeStore)
Construct the type to be implemented by the generated callable factory.- Parameters:
typeStore- type store with common types- Returns:
TypeNodecontaining the interface to be implemented by the generated callable factory class.
-
createClassMethods
protected List<MethodDefinition> createClassMethods(Service service, TypeStore typeStore)
-
createUnaryCallableMethod
protected MethodDefinition createUnaryCallableMethod(Service service, TypeStore typeStore)
-
createPagedCallableMethod
protected MethodDefinition createPagedCallableMethod(Service service, TypeStore typeStore)
-
createBatchingCallableMethod
protected MethodDefinition createBatchingCallableMethod(Service service, TypeStore typeStore)
-
createOperationCallableMethod
protected abstract MethodDefinition createOperationCallableMethod(Service service, TypeStore typeStore)
-
createServerStreamingCallableMethod
protected MethodDefinition createServerStreamingCallableMethod(Service service, TypeStore typeStore)
-
createGenericCallableMethod
protected MethodDefinition createGenericCallableMethod(Service service, TypeStore typeStore, List<String> methodTemplateNames, String returnCallableKindName, List<String> returnCallableTemplateNames, String methodVariantName, List<Object> transportCallSettingsTemplateObjects, String callSettingsVariantName, List<Object> callSettingsTemplateObjects)
-
createGenericCallableMethod
protected MethodDefinition createGenericCallableMethod(Service service, TypeStore typeStore, List<String> methodTemplateNames, String returnCallableKindName, List<String> returnCallableTemplateNames, String methodVariantName, List<Object> transportCallSettingsTemplateObjects, String callSettingsVariantName, List<Object> callSettingsTemplateObjects, List<AnnotationNode> annotations)
-
-