| Modifier and Type | Method and Description |
|---|---|
protected abstract List<Statement> |
AbstractServiceClientTestClassComposer.constructRpcTestCheckerLogic(Method method,
List<MethodArgument> methodSignature,
Service service,
boolean isRequestArg,
Map<String,VariableExpr> classMemberVarExprs,
VariableExpr requestVarExpr,
Message requestMessage) |
| Modifier and Type | Method and Description |
|---|---|
static Expr |
BatchingDescriptorComposer.createBatchingDescriptorFieldDeclExpr(Method method,
GapicBatchingSettings batchingSettings,
Map<String,Message> messageTypes) |
protected List<CommentStatement> |
AbstractServiceClientClassComposer.createClassHeaderComments(Service service,
TypeStore typeStore,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
List<Sample> samples) |
protected List<Statement> |
AbstractTransportServiceStubClassComposer.createClassStatements(Service service,
Map<String,VariableExpr> protoMethodNameToDescriptorVarExprs,
Map<String,VariableExpr> callableClassMemberVarExprs,
Map<String,VariableExpr> classMemberVarExprs,
Map<String,Message> messageTypes,
boolean restNumericEnumsEnabled) |
protected abstract Statement |
AbstractTransportServiceStubClassComposer.createMethodDescriptorVariableDecl(Service service,
Method protoMethod,
VariableExpr methodDescriptorVarExpr,
Map<String,Message> messageTypes,
boolean restNumericEnumsEnabled) |
protected List<Statement> |
AbstractTransportServiceStubClassComposer.createMethodDescriptorVariableDecls(Service service,
Map<String,VariableExpr> protoMethodNameToDescriptorVarExprs,
Map<String,Message> messageTypes,
boolean restNumericEnumsEnabled) |
protected abstract MethodDefinition |
AbstractServiceClientTestClassComposer.createRpcExceptionTestMethod(Method method,
Service service,
List<MethodArgument> methodSignature,
int variantIndex,
Map<String,VariableExpr> classMemberVarExprs,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes)
Creates a test method to exercise exceptions for a given RPC, e.g.
|
protected List<Statement> |
AbstractServiceClientTestClassComposer.createRpcExceptionTestStatements(Method method,
List<MethodArgument> methodSignature,
Map<String,VariableExpr> classMemberVarExprs,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes) |
protected abstract List<Statement> |
AbstractServiceClientTestClassComposer.createStreamingRpcExceptionTestStatements(Method method,
Map<String,VariableExpr> classMemberVarExprs,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes) |
protected abstract MethodDefinition |
AbstractServiceClientTestClassComposer.createStreamingRpcTestMethod(Service service,
Method method,
Map<String,VariableExpr> classMemberVarExprs,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes) |
| Modifier and Type | Method and Description |
|---|---|
static Expr |
DefaultValueComposer.createSimpleMessageBuilderValue(Message message,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
HttpBindings bindings) |
static Expr |
DefaultValueComposer.createSimpleMessageBuilderValue(Message message,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
Map<String,String> valuePatterns,
HttpBindings bindings) |
| Modifier and Type | Method and Description |
|---|---|
static Expr |
DefaultValueComposer.createMethodArgValue(MethodArgument methodArg,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
Map<String,String> valuePatterns,
HttpBindings bindings) |
static Expr |
DefaultValueComposer.createSimpleMessageBuilderValue(Message message,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
HttpBindings bindings) |
static Expr |
DefaultValueComposer.createSimpleMessageBuilderValue(Message message,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
Map<String,String> valuePatterns,
HttpBindings bindings) |
static Expr |
DefaultValueComposer.createValue(Field field,
boolean useExplicitInitTypeInGenerics,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
Map<String,String> valuePatterns) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Statement> |
ServiceClientTestClassComposer.constructRpcTestCheckerLogic(Method method,
List<MethodArgument> methodSignature,
Service service,
boolean isRequestArg,
Map<String,VariableExpr> classMemberVarExprs,
VariableExpr requestVarExpr,
Message requestMessage) |
| Modifier and Type | Method and Description |
|---|---|
protected Statement |
GrpcServiceStubClassComposer.createMethodDescriptorVariableDecl(Service service,
Method protoMethod,
VariableExpr methodDescriptorVarExpr,
Map<String,Message> messageTypes,
boolean restNumericEnumsEnabled) |
protected MethodDefinition |
ServiceClientTestClassComposer.createRpcExceptionTestMethod(Method method,
Service service,
List<MethodArgument> methodSignature,
int variantIndex,
Map<String,VariableExpr> classMemberVarExprs,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes) |
protected List<Statement> |
ServiceClientTestClassComposer.createStreamingRpcExceptionTestStatements(Method method,
Map<String,VariableExpr> classMemberVarExprs,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes) |
protected MethodDefinition |
ServiceClientTestClassComposer.createStreamingRpcTestMethod(Service service,
Method method,
Map<String,VariableExpr> classMemberVarExprs,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes) |
| Modifier and Type | Method and Description |
|---|---|
protected List<CommentStatement> |
ServiceClientClassComposer.createClassHeaderComments(Service service,
TypeStore typeStore,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
List<Sample> samples) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Statement> |
ServiceClientTestClassComposer.constructRpcTestCheckerLogic(Method method,
List<MethodArgument> methodSignature,
Service service,
boolean isRequestArg,
Map<String,VariableExpr> classMemberVarExprs,
VariableExpr requestVarExpr,
Message requestMessage) |
| Modifier and Type | Method and Description |
|---|---|
protected Statement |
HttpJsonServiceStubClassComposer.createMethodDescriptorVariableDecl(Service service,
Method protoMethod,
VariableExpr methodDescriptorVarExpr,
Map<String,Message> messageTypes,
boolean restNumericEnumsEnabled) |
protected MethodDefinition |
ServiceClientTestClassComposer.createRpcExceptionTestMethod(Method method,
Service service,
List<MethodArgument> methodSignature,
int variantIndex,
Map<String,VariableExpr> classMemberVarExprs,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes) |
protected List<Statement> |
ServiceClientTestClassComposer.createStreamingRpcExceptionTestStatements(Method method,
Map<String,VariableExpr> classMemberVarExprs,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes) |
protected MethodDefinition |
ServiceClientTestClassComposer.createStreamingRpcTestMethod(Service service,
Method method,
Map<String,VariableExpr> classMemberVarExprs,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes) |
| Modifier and Type | Method and Description |
|---|---|
static Sample |
ServiceClientMethodSampleComposer.composeCanonicalSample(Method method,
TypeNode clientType,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
Service service) |
static Sample |
ServiceClientHeaderSampleComposer.composeClassHeaderSample(Service service,
TypeNode clientType,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes) |
static Sample |
ServiceClientCallableMethodSampleComposer.composeLroCallableMethod(Method method,
TypeNode clientType,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
Service service) |
static Sample |
ServiceClientCallableMethodSampleComposer.composePagedCallableMethod(Method method,
TypeNode clientType,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
Service service) |
static Sample |
ServiceClientCallableMethodSampleComposer.composeRegularCallableMethod(Method method,
TypeNode clientType,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
Service service) |
static Sample |
ServiceClientHeaderSampleComposer.composeShowcaseMethodSample(Method method,
TypeNode clientType,
List<MethodArgument> arguments,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
Service service) |
static Sample |
ServiceClientCallableMethodSampleComposer.composeStreamCallableMethod(Method method,
TypeNode clientType,
Map<String,ResourceName> resourceNames,
Map<String,Message> messageTypes,
Service service) |
| Modifier and Type | Method and Description |
|---|---|
void |
TypeStore.putMessageTypes(String pakkage,
Map<String,Message> messages) |
| Modifier and Type | Method and Description |
|---|---|
Message |
Message.Builder.build() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.google.common.collect.ImmutableMap<String,Message> |
GapicContext.messages() |
| Modifier and Type | Method and Description |
|---|---|
abstract GapicContext.Builder |
GapicContext.Builder.setMessages(Map<String,Message> messages) |
void |
Message.validateField(String fieldName,
Map<String,Message> messageTypes,
TypeNode type)
Validates if the field or fields exist in the message and the type of the leaf level field.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Message> |
Parser.parseMessages(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor) |
static Map<String,Message> |
Parser.parseMessages(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor,
Set<ResourceReference> outputResourceReferencesSeen) |
static Map<String,Message> |
Parser.parseMessages(com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest request,
Set<ResourceReference> outputResourceReferencesSeen) |
static Map<String,Message> |
Parser.updateResourceNamesInMessages(Map<String,Message> messageTypes,
Collection<ResourceName> resources)
Populates ResourceName objects in Message POJOs.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpBindings |
HttpRuleParser.parse(com.google.protobuf.Descriptors.MethodDescriptor protoMethod,
Message inputMessage,
Map<String,Message> messageTypes) |
static RoutingHeaderRule |
RoutingRuleParser.parse(com.google.protobuf.Descriptors.MethodDescriptor protoMethod,
Message inputMessage,
Map<String,Message> messageTypes) |
| Modifier and Type | Method and Description |
|---|---|
static HttpBindings |
HttpRuleParser.parse(com.google.protobuf.Descriptors.MethodDescriptor protoMethod,
Message inputMessage,
Map<String,Message> messageTypes) |
static RoutingHeaderRule |
RoutingRuleParser.parse(com.google.protobuf.Descriptors.MethodDescriptor protoMethod,
Message inputMessage,
Map<String,Message> messageTypes) |
static List<List<MethodArgument>> |
MethodSignatureParser.parseMethodSignatures(com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor,
String servicePackage,
TypeNode methodInputType,
Map<String,Message> messageTypes,
Map<String,ResourceName> resourceNames,
Set<ResourceName> outputArgResourceNames)
Parses a list of method signature annotations out of an RPC.
|
static List<Service> |
Parser.parseService(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor,
Map<String,Message> messageTypes,
Map<String,ResourceName> resourceNames,
Optional<com.google.api.Service> serviceYamlProtoOpt,
Optional<GapicServiceConfig> serviceConfigOpt,
Set<ResourceName> outputArgResourceNames,
Transport transport) |
static List<Service> |
Parser.parseService(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor,
Map<String,Message> messageTypes,
Map<String,ResourceName> resourceNames,
Optional<com.google.api.Service> serviceYamlProtoOpt,
Set<ResourceName> outputArgResourceNames) |
static List<Service> |
Parser.parseServices(com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest request,
Map<String,Message> messageTypes,
Map<String,ResourceName> resourceNames,
Set<ResourceName> outputArgResourceNames,
Optional<com.google.api.Service> serviceYamlProtoOpt,
Optional<GapicServiceConfig> serviceConfigOpt,
List<Service> outputMixinServices,
Transport transport) |
static Map<String,Message> |
Parser.updateResourceNamesInMessages(Map<String,Message> messageTypes,
Collection<ResourceName> resources)
Populates ResourceName objects in Message POJOs.
|
Copyright © 2022 Google LLC. All rights reserved.