public abstract class AbstractServiceCallableFactoryClassComposer extends Object implements ClassComposer
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractServiceCallableFactoryClassComposer(TransportContext transportContext) |
| Modifier and Type | Method and Description |
|---|---|
protected MethodDefinition |
createBatchingCallableMethod(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 MethodDefinition |
createGenericCallableMethod(Service service,
TypeStore typeStore,
List<String> methodTemplateNames,
String returnCallableKindName,
List<String> returnCallableTemplateNames,
String methodVariantName,
List<Object> transportCallSettingsTemplateObjects,
String callSettingsVariantName,
List<Object> callSettingsTemplateObjects) |
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) |
protected abstract MethodDefinition |
createOperationCallableMethod(Service service,
TypeStore typeStore) |
protected MethodDefinition |
createPagedCallableMethod(Service service,
TypeStore typeStore) |
protected MethodDefinition |
createServerStreamingCallableMethod(Service service,
TypeStore typeStore) |
protected MethodDefinition |
createUnaryCallableMethod(Service service,
TypeStore typeStore) |
GapicClass |
generate(GapicContext context,
Service service) |
protected TypeNode |
getOperationsStubType(Service service) |
protected TransportContext |
getTransportContext() |
protected AbstractServiceCallableFactoryClassComposer(TransportContext transportContext)
protected TransportContext getTransportContext()
public GapicClass generate(GapicContext context, Service service)
generate in interface ClassComposerprotected List<AnnotationNode> createClassAnnotations(Service service, TypeStore typeStore)
protected abstract List<TypeNode> createClassImplements(Service service, TypeStore typeStore)
typeStore - type store with common typesTypeNode containing the interface to be implemented by the generated callable
factory class.protected List<MethodDefinition> createClassMethods(Service service, TypeStore typeStore)
protected MethodDefinition createUnaryCallableMethod(Service service, TypeStore typeStore)
protected MethodDefinition createPagedCallableMethod(Service service, TypeStore typeStore)
protected MethodDefinition createBatchingCallableMethod(Service service, TypeStore typeStore)
protected abstract MethodDefinition createOperationCallableMethod(Service service, TypeStore typeStore)
protected MethodDefinition createServerStreamingCallableMethod(Service service, TypeStore typeStore)
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)
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)
Copyright © 2022 Google LLC. All rights reserved.