Class DefaultValueComposer
java.lang.Object
com.google.api.generator.gapic.composer.defaultvalue.DefaultValueComposer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconstructValueMatchingPattern(String fieldName, String pattern) static ExprcreateMethodArgValue(MethodArgument methodArg, Map<String, ResourceName> resourceNames, Map<String, Message> messageTypes, Map<String, String> valuePatterns, HttpBindings bindings) static ExprcreateResourceHelperValue(ResourceName resourceName, boolean isChildType, List<ResourceName> resnames, String fieldOrMessageName, HttpBindings bindings) static ExprcreateSimpleMessageBuilderValue(Message message, Map<String, ResourceName> resourceNames, Map<String, Message> messageTypes, HttpBindings bindings) static ExprcreateSimpleMessageBuilderValue(Message message, Map<String, ResourceName> resourceNames, Map<String, Message> messageTypes, Map<String, String> valuePatterns, HttpBindings bindings) static ExprcreateSimpleOperationBuilderValue(String name, VariableExpr responseExpr) static ExprcreateSimplePagedResponseValue(TypeNode responseType, String repeatedFieldName, Expr responseElementVarExpr, boolean isMap) static ExprcreateValue(Field field) static ExprcreateValue(Field field, boolean useExplicitInitTypeInGenerics, Map<String, ResourceName> resourceNames, Map<String, Message> messageTypes, Map<String, String> valuePatterns, HttpBindings bindings)
-
Constructor Details
-
DefaultValueComposer
public DefaultValueComposer()
-
-
Method Details
-
createMethodArgValue
public static Expr createMethodArgValue(MethodArgument methodArg, Map<String, ResourceName> resourceNames, Map<String, Message> messageTypes, Map<String, String> valuePatterns, HttpBindings bindings) -
createValue
-
createValue
-
createResourceHelperValue
public static Expr createResourceHelperValue(ResourceName resourceName, boolean isChildType, List<ResourceName> resnames, String fieldOrMessageName, HttpBindings bindings) -
createSimpleMessageBuilderValue
public static Expr createSimpleMessageBuilderValue(Message message, Map<String, ResourceName> resourceNames, Map<String, Message> messageTypes, HttpBindings bindings) -
createSimpleMessageBuilderValue
-
createSimpleOperationBuilderValue
-
createSimplePagedResponseValue
-
constructValueMatchingPattern
-