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
ConstructorsModifierConstructorDescriptionprotectedAbstractServiceCallableFactoryClassComposer(TransportContext transportContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected MethodDefinitioncreateBatchingCallableMethod(Service service, TypeStore typeStore) protected List<AnnotationNode>createClassAnnotations(Service service, TypeStore typeStore) 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) generate(GapicContext context, Service service) protected TypeNodegetOperationsStubType(Service service) protected TransportContext
-
Constructor Details
-
AbstractServiceCallableFactoryClassComposer
-
-
Method Details
-
getTransportContext
-
generate
- Specified by:
generatein interfaceClassComposer
-
createClassAnnotations
-
createClassImplements
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
-
createUnaryCallableMethod
-
createPagedCallableMethod
-
createBatchingCallableMethod
-
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) -
getOperationsStubType
-