File tree Expand file tree Collapse file tree
sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848import com .google .api .generator .engine .ast .RelationalOperationExpr ;
4949import com .google .api .generator .engine .ast .ScopeNode ;
5050import com .google .api .generator .engine .ast .Statement ;
51- import com .google .api .generator .engine .ast .SuperObjectValue ;
5251import com .google .api .generator .engine .ast .StringObjectValue ;
52+ import com .google .api .generator .engine .ast .SuperObjectValue ;
5353import com .google .api .generator .engine .ast .TernaryExpr ;
5454import com .google .api .generator .engine .ast .ThisObjectValue ;
5555import com .google .api .generator .engine .ast .TypeNode ;
@@ -766,7 +766,8 @@ private static List<MethodDefinition> createMethodVariants(
766766 methodArg -> {
767767 TypeNode argType = methodArg .type ();
768768 if (methodArg .isResourceNameHelper () && !methodArg .field ().isRequired ()) {
769- argType = TypeNode .withReference (argType .reference ().copyAndSetNullable (true ));
769+ argType =
770+ TypeNode .withReference (argType .reference ().copyAndSetNullable (true ));
770771 }
771772 VariableExpr .Builder argBuilder =
772773 VariableExpr .builder ()
@@ -1469,7 +1470,9 @@ private static ClassDefinition createNestedRpcPageClass(
14691470 VariableExpr .withVariable (
14701471 Variable .builder ()
14711472 .setName ("response" )
1472- .setType (TypeNode .withReference (method .outputType ().reference ().copyAndSetNullable (true )))
1473+ .setType (
1474+ TypeNode .withReference (
1475+ method .outputType ().reference ().copyAndSetNullable (true )))
14731476 .build ());
14741477 MethodDefinition privateCtor =
14751478 MethodDefinition .constructorBuilder ()
Original file line number Diff line number Diff line change @@ -503,7 +503,9 @@ private static List<MethodDefinition> createBuilderHelperMethods(
503503 VariableExpr .withVariable (
504504 Variable .builder ()
505505 .setName ("clientContext" )
506- .setType (TypeNode .withReference (FIXED_TYPESTORE .get ("ClientContext" ).reference ().copyAndSetNullable (true )))
506+ .setType (
507+ TypeNode .withReference (
508+ FIXED_TYPESTORE .get ("ClientContext" ).reference ().copyAndSetNullable (true )))
507509 .build ());
508510
509511 MethodDefinition newBuilderMethodTwo =
@@ -618,7 +620,9 @@ private static List<MethodDefinition> createNestedBuilderConstructorMethods(
618620 VariableExpr .withVariable (
619621 Variable .builder ()
620622 .setName ("clientContext" )
621- .setType (TypeNode .withReference (FIXED_TYPESTORE .get ("ClientContext" ).reference ().copyAndSetNullable (true )))
623+ .setType (
624+ TypeNode .withReference (
625+ FIXED_TYPESTORE .get ("ClientContext" ).reference ().copyAndSetNullable (true )))
622626 .build ());
623627 MethodDefinition clientContextCtor =
624628 ctorMakerFn .apply (
Original file line number Diff line number Diff line change @@ -1334,7 +1334,9 @@ protected List<MethodDefinition> createBuilderHelperMethods(
13341334 VariableExpr clientContextVarExpr =
13351335 VariableExpr .withVariable (
13361336 Variable .builder ()
1337- .setType (TypeNode .withReference (FIXED_TYPESTORE .get ("ClientContext" ).reference ().copyAndSetNullable (true )))
1337+ .setType (
1338+ TypeNode .withReference (
1339+ FIXED_TYPESTORE .get ("ClientContext" ).reference ().copyAndSetNullable (true )))
13381340 .setName ("clientContext" )
13391341 .build ());
13401342 javaMethods .add (
@@ -1646,7 +1648,9 @@ private static List<MethodDefinition> createNestedClassConstructorMethods(
16461648 VariableExpr clientContextVarExpr =
16471649 VariableExpr .withVariable (
16481650 Variable .builder ()
1649- .setType (TypeNode .withReference (FIXED_TYPESTORE .get ("ClientContext" ).reference ().copyAndSetNullable (true )))
1651+ .setType (
1652+ TypeNode .withReference (
1653+ FIXED_TYPESTORE .get ("ClientContext" ).reference ().copyAndSetNullable (true )))
16501654 .setName ("clientContext" )
16511655 .build ());
16521656 Reference pagedSettingsBuilderRef =
You can’t perform that action at this time.
0 commit comments