| Modifier and Type | Field and Description |
|---|---|
static TypeNode |
TypeNode.BOOLEAN |
static TypeNode |
TypeNode.BOOLEAN_OBJECT |
static TypeNode |
TypeNode.BYTE |
static TypeNode |
TypeNode.BYTE_OBJECT |
static TypeNode |
TypeNode.BYTESTRING |
static TypeNode |
TypeNode.CHAR |
static TypeNode |
TypeNode.CHAR_OBJECT |
static TypeNode |
TypeNode.CLASS_OBJECT |
static TypeNode |
TypeNode.DEPRECATED |
static TypeNode |
TypeNode.DOUBLE |
static TypeNode |
TypeNode.DOUBLE_OBJECT |
static TypeNode |
TypeNode.FLOAT |
static TypeNode |
TypeNode.FLOAT_OBJECT |
static TypeNode |
TypeNode.INT |
static TypeNode |
TypeNode.INT_OBJECT |
static TypeNode |
TypeNode.LONG |
static TypeNode |
TypeNode.LONG_OBJECT |
static TypeNode |
TypeNode.NULL |
static TypeNode |
TypeNode.OBJECT |
static TypeNode |
TypeNode.SHORT |
static TypeNode |
TypeNode.SHORT_OBJECT |
static TypeNode |
TypeNode.STRING |
static TypeNode |
TypeNode.STRING_ARRAY |
static TypeNode |
TypeNode.THROWABLE |
static TypeNode |
TypeNode.VALUE |
static TypeNode |
TypeNode.VOID |
static TypeNode |
TypeNode.VOID_OBJECT |
| Modifier and Type | Method and Description |
|---|---|
TypeNode |
TypeNode.Builder.build() |
abstract TypeNode |
InstanceofExpr.checkType() |
static TypeNode |
TypeNode.createArrayTypeOf(TypeNode type) |
static TypeNode |
TypeNode.createElementTypeFromArrayType(TypeNode type) |
abstract TypeNode |
ClassDefinition.extendsType() |
abstract TypeNode |
MethodInvocationExpr.returnType() |
abstract TypeNode |
MethodDefinition.returnType() |
abstract TypeNode |
MethodInvocationExpr.staticReferenceType() |
abstract TypeNode |
VariableExpr.staticReferenceType() |
abstract TypeNode |
ThisObjectValue.type() |
TypeNode |
Expr.type() |
abstract TypeNode |
ArrayExpr.type() |
TypeNode |
OperationExpr.type() |
abstract TypeNode |
SuperObjectValue.type() |
TypeNode |
ValueExpr.type() |
abstract TypeNode |
AnonymousClassExpr.type() |
abstract TypeNode |
UnaryOperationExpr.type() |
TypeNode |
ObjectValue.type() |
TypeNode |
TernaryExpr.type() |
abstract TypeNode |
AnnotationNode.type() |
TypeNode |
MethodInvocationExpr.type() |
TypeNode |
AssignmentOperationExpr.type() |
TypeNode |
ReturnExpr.type() |
abstract TypeNode |
ThrowExpr.type() |
abstract TypeNode |
EnumRefExpr.type() |
TypeNode |
InstanceofExpr.type() |
abstract TypeNode |
NewObjectExpr.type() |
abstract TypeNode |
ReferenceConstructorExpr.type() |
abstract TypeNode |
Variable.type() |
TypeNode |
LambdaExpr.type() |
TypeNode |
VariableExpr.type() |
TypeNode |
RelationalOperationExpr.type() |
TypeNode |
StringObjectValue.type() |
abstract TypeNode |
PrimitiveValue.type() |
TypeNode |
AssignmentExpr.type() |
abstract TypeNode |
ArithmeticOperationExpr.type() |
TypeNode |
NullObjectValue.type() |
TypeNode |
Value.type() |
TypeNode |
LogicalOperationExpr.type() |
abstract TypeNode |
CastExpr.type() |
static TypeNode |
TypeNode.withExceptionClazz(Class<?> clazz) |
static TypeNode |
TypeNode.withReference(Reference reference) |
| Modifier and Type | Method and Description |
|---|---|
abstract com.google.common.collect.ImmutableList<TypeNode> |
ClassDefinition.implementsTypes() |
abstract com.google.common.collect.ImmutableList<TypeNode> |
MethodDefinition.throwsExceptions() |
| Modifier and Type | Method and Description |
|---|---|
int |
TypeNode.compareTo(TypeNode other) |
static TypeNode |
TypeNode.createArrayTypeOf(TypeNode type) |
static TypeNode |
TypeNode.createElementTypeFromArrayType(TypeNode type) |
static boolean |
TypeNode.isBoxedType(TypeNode type) |
static boolean |
TypeNode.isExceptionType(TypeNode type) |
static boolean |
TypeNode.isFloatingPointType(TypeNode type) |
static boolean |
TypeNode.isNumericType(TypeNode type) |
static boolean |
TypeNode.isReferenceType(TypeNode type) |
boolean |
TypeNode.isSupertypeOrEquals(TypeNode other) |
abstract InstanceofExpr.Builder |
InstanceofExpr.Builder.setCheckType(TypeNode checkType) |
abstract ClassDefinition.Builder |
ClassDefinition.Builder.setExtendsType(TypeNode type) |
abstract MethodInvocationExpr.Builder |
MethodInvocationExpr.Builder.setReturnType(TypeNode type) |
abstract MethodDefinition.Builder |
MethodDefinition.Builder.setReturnType(TypeNode type) |
abstract MethodInvocationExpr.Builder |
MethodInvocationExpr.Builder.setStaticReferenceType(TypeNode type) |
abstract VariableExpr.Builder |
VariableExpr.Builder.setStaticReferenceType(TypeNode type) |
abstract ArrayExpr.Builder |
ArrayExpr.Builder.setType(TypeNode type) |
abstract AnonymousClassExpr.Builder |
AnonymousClassExpr.Builder.setType(TypeNode type) |
abstract AnnotationNode.Builder |
AnnotationNode.Builder.setType(TypeNode type) |
abstract ThrowExpr.Builder |
ThrowExpr.Builder.setType(TypeNode type) |
abstract EnumRefExpr.Builder |
EnumRefExpr.Builder.setType(TypeNode type) |
abstract NewObjectExpr.Builder |
NewObjectExpr.Builder.setType(TypeNode type) |
abstract ReferenceConstructorExpr.Builder |
ReferenceConstructorExpr.Builder.setType(TypeNode node) |
abstract Variable.Builder |
Variable.Builder.setType(TypeNode type) |
abstract PrimitiveValue.Builder |
PrimitiveValue.Builder.setType(TypeNode type) |
abstract CastExpr.Builder |
CastExpr.Builder.setType(TypeNode type) |
void |
AstNodeVisitor.visit(TypeNode type) |
static ThisObjectValue |
ThisObjectValue.withType(TypeNode type) |
static SuperObjectValue |
SuperObjectValue.withType(TypeNode type) |
static AnnotationNode |
AnnotationNode.withType(TypeNode type) |
static NewObjectExpr |
NewObjectExpr.withType(TypeNode type) |
static AnnotationNode |
AnnotationNode.withTypeAndDescription(TypeNode type,
List<Expr> exprList) |
static AnnotationNode |
AnnotationNode.withTypeAndDescription(TypeNode type,
String description) |
| Modifier and Type | Method and Description |
|---|---|
abstract ClassDefinition.Builder |
ClassDefinition.Builder.setImplementsTypes(List<TypeNode> types) |
abstract MethodDefinition.Builder |
MethodDefinition.Builder.setThrowsExceptions(List<TypeNode> exceptionTypes) |
| Modifier and Type | Method and Description |
|---|---|
void |
JavaWriterVisitor.visit(TypeNode type) |
void |
ImportWriterVisitor.visit(TypeNode type) |
| Modifier and Type | Method and Description |
|---|---|
static List<CommentStatement> |
SettingsCommentComposer.createClassHeaderComments(String configuredClassName,
String defaultHost,
boolean isDeprecated,
Optional<String> methodNameOpt,
Optional<String> sampleCodeOpt,
TypeNode classType) |
static CommentStatement |
ServiceClientCommentComposer.createCreateMethodStubArgComment(String serviceName,
TypeNode settingsType) |
| Modifier and Type | Method and Description |
|---|---|
protected static TypeNode |
TransportContext.classToType(Class<?> clazz) |
protected static TypeNode |
AbstractServiceClientTestClassComposer.getCallableType(Method protoMethod) |
protected TypeNode |
AbstractServiceCallableFactoryClassComposer.getOperationsStubType(Service service) |
protected TypeNode |
AbstractTransportServiceStubClassComposer.getTransportOperationsStubType(Service service) |
abstract TypeNode |
TransportContext.operationMetadataTransformerType() |
abstract TypeNode |
TransportContext.operationResponseTransformerType() |
abstract TypeNode |
TransportContext.stubCallableFactoryType() |
abstract TypeNode |
TransportContext.transportCallableFactoryType() |
abstract TypeNode |
TransportContext.transportCallSettingsType() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<TypeNode> |
AbstractServiceCallableFactoryClassComposer.createClassImplements(Service service,
TypeStore typeStore)
Construct the type to be implemented by the generated callable factory.
|
abstract List<TypeNode> |
TransportContext.operationsClientTypes() |
abstract List<TypeNode> |
TransportContext.operationsStubTypes() |
abstract List<TypeNode> |
TransportContext.transportChannelTypes() |
abstract List<TypeNode> |
TransportContext.transportOperationsStubTypes() |
| Modifier and Type | Method and Description |
|---|---|
protected MethodDefinition |
AbstractServiceStubSettingsClassComposer.createApiClientHeaderProviderBuilderMethod(Service service,
TypeStore typeStore,
String methodName,
TypeNode gaxPropertiesType,
String getTokenMethodName,
String getVersionMethodName) |
protected MethodDefinition |
AbstractServiceStubClassComposer.createCallableGetterMethodDefinition(TypeNode returnType,
String methodName,
List<AnnotationNode> annotations,
TypeStore typeStore) |
static Expr |
RetrySettingsComposer.createLroSettingsBuilderExpr(Service service,
GapicServiceConfig serviceConfig,
Method method,
VariableExpr builderVarExpr,
VariableExpr retryableCodeDefsVarExpr,
VariableExpr retryParamDefsVarExpr,
TypeNode operationResponseTransformer,
TypeNode operationMetadataTransformer) |
protected MethodDefinition |
AbstractServiceStubClassComposer.createOperationsStubGetterMethodDefinition(TypeNode returnType,
String methodName,
TypeStore typeStore) |
protected Optional<String> |
AbstractTransportServiceStubClassComposer.getCallableCreatorMethodName(GapicContext context,
Service service,
TypeNode callableVarExprType,
String serviceMethodName) |
protected Expr |
AbstractServiceStubSettingsClassComposer.initializeTransportProviderBuilder(MethodInvocationExpr transportChannelProviderBuilderExpr,
TypeNode returnType) |
abstract TransportContext.Builder |
TransportContext.Builder.setOperationMetadataTransformerType(TypeNode operationMetadataTransformerType) |
abstract TransportContext.Builder |
TransportContext.Builder.setOperationResponseTransformerType(TypeNode operationResponseTransformerType) |
abstract TransportContext.Builder |
TransportContext.Builder.setStubCallableFactoryType(TypeNode stubCallableFactoryType) |
abstract TransportContext.Builder |
TransportContext.Builder.setTransportCallableFactoryType(TypeNode transportCallableFactoryType) |
abstract TransportContext.Builder |
TransportContext.Builder.setTransportCallSettingsType(TypeNode transportCallSettingsType) |
| Modifier and Type | Method and Description |
|---|---|
abstract TransportContext.Builder |
TransportContext.Builder.setOperationsClientTypes(List<TypeNode> operationsClientTypes) |
abstract TransportContext.Builder |
TransportContext.Builder.setOperationsStubTypes(List<TypeNode> operationsStubType) |
abstract TransportContext.Builder |
TransportContext.Builder.setTransportChannelTypes(List<TypeNode> transportChannelTypes) |
abstract TransportContext.Builder |
TransportContext.Builder.setTransportOperationsStubTypes(List<TypeNode> transportOperationsStubTypes) |
| Modifier and Type | Method and Description |
|---|---|
static Expr |
DefaultValueComposer.createSimplePagedResponseValue(TypeNode responseType,
String repeatedFieldName,
Expr responseElementVarExpr,
boolean isMap) |
| Modifier and Type | Method and Description |
|---|---|
protected List<TypeNode> |
GrpcServiceCallableFactoryClassComposer.createClassImplements(Service service,
TypeStore typeStore) |
| Modifier and Type | Method and Description |
|---|---|
protected Expr |
ServiceStubSettingsClassComposer.initializeTransportProviderBuilder(MethodInvocationExpr transportChannelProviderBuilderExpr,
TypeNode returnType) |
| Modifier and Type | Method and Description |
|---|---|
protected MethodDefinition |
ServiceStubClassComposer.createOperationsStubGetterMethodDefinition(TypeNode returnType,
String methodName,
TypeStore typeStore) |
protected Expr |
ServiceStubSettingsClassComposer.initializeTransportProviderBuilder(MethodInvocationExpr transportChannelProviderBuilderExpr,
TypeNode returnType) |
| Modifier and Type | Method and Description |
|---|---|
protected List<TypeNode> |
HttpJsonServiceCallableFactoryClassComposer.createClassImplements(Service service,
TypeStore typeStore) |
| 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 |
ServiceClientMethodSampleComposer.composeEmptyServiceSample(TypeNode clientType,
Service service) |
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.composeSetCredentialsSample(TypeNode clientType,
TypeNode settingsType,
Service service) |
static Sample |
ServiceClientHeaderSampleComposer.composeSetEndpointSample(TypeNode clientType,
TypeNode settingsType,
Service service) |
static Optional<Sample> |
SettingsSampleComposer.composeSettingsSample(Optional<String> methodNameOpt,
String settingsClassName,
TypeNode classType) |
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) |
static Sample |
ServiceClientHeaderSampleComposer.composeTransportSample(TypeNode clientType,
TypeNode settingsType,
String transportBuilderMethod,
Service service) |
| Modifier and Type | Method and Description |
|---|---|
TypeNode |
TypeStore.get(String typeName) |
| Modifier and Type | Method and Description |
|---|---|
abstract TypeNode |
Method.inputType() |
abstract TypeNode |
LongrunningOperation.metadataType() |
abstract TypeNode |
LongrunningOperation.operationServiceStubType() |
TypeNode |
Service.operationServiceStubType() |
TypeNode |
Service.operationType() |
abstract TypeNode |
Method.outputType() |
abstract TypeNode |
LongrunningOperation.responseType() |
abstract TypeNode |
Field.type() |
abstract TypeNode |
MethodArgument.type() |
abstract TypeNode |
ResourceName.type() |
abstract TypeNode |
Message.type() |
| Modifier and Type | Method and Description |
|---|---|
abstract Method.Builder |
Method.Builder.setInputType(TypeNode inputType) |
abstract LongrunningOperation.Builder |
LongrunningOperation.Builder.setMetadataType(TypeNode metadataType) |
abstract LongrunningOperation.Builder |
LongrunningOperation.Builder.setOperationServiceStubType(TypeNode operationServiceType) |
abstract Method.Builder |
Method.Builder.setOutputType(TypeNode outputType) |
abstract LongrunningOperation.Builder |
LongrunningOperation.Builder.setResponseType(TypeNode responseType) |
abstract Field.Builder |
Field.Builder.setType(TypeNode type) |
abstract MethodArgument.Builder |
MethodArgument.Builder.setType(TypeNode type) |
abstract Message.Builder |
Message.Builder.setType(TypeNode type) |
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 TypeNode |
TypeParser.parseType(com.google.protobuf.Descriptors.Descriptor messageDescriptor) |
static TypeNode |
TypeParser.parseType(com.google.protobuf.Descriptors.EnumDescriptor enumDescriptor) |
static TypeNode |
TypeParser.parseType(com.google.protobuf.Descriptors.FieldDescriptor field) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Copyright © 2022 Google LLC. All rights reserved.