Skip to content

Commit 821cec4

Browse files
committed
chore: format
1 parent 4ec4743 commit 821cec4

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,7 @@ private Expr createFieldsExtractorClassInstance(
924924
paramsPutArgs.add(fieldsVarExpr);
925925

926926
paramsPutArgs.add(
927-
ValueExpr.withValue(
928-
StringObjectValue.withValue(httpBindingFieldName.jsonName())));
927+
ValueExpr.withValue(StringObjectValue.withValue(httpBindingFieldName.jsonName())));
929928
paramsPutArgs.add(requestBuilderExpr);
930929

931930
Expr paramsPutExpr =

sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceClientTest.golden

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public class ComplianceClientTest {
120120
.setName("name3373707")
121121
.setInfo(ComplianceData.newBuilder().build())
122122
.setServerVerify(true)
123+
.setCustomKebabName("customKebabName-2062111197")
123124
.build();
124125

125126
RepeatResponse actualResponse = client.repeatDataBodyInfo(request);
@@ -153,6 +154,7 @@ public class ComplianceClientTest {
153154
.setName("name3373707")
154155
.setInfo(ComplianceData.newBuilder().build())
155156
.setServerVerify(true)
157+
.setCustomKebabName("customKebabName-2062111197")
156158
.build();
157159
client.repeatDataBodyInfo(request);
158160
Assert.fail("No exception raised");
@@ -172,6 +174,7 @@ public class ComplianceClientTest {
172174
.setName("name3373707")
173175
.setInfo(ComplianceData.newBuilder().build())
174176
.setServerVerify(true)
177+
.setCustomKebabName("customKebabName-2062111197")
175178
.build();
176179

177180
RepeatResponse actualResponse = client.repeatDataQuery(request);
@@ -205,6 +208,7 @@ public class ComplianceClientTest {
205208
.setName("name3373707")
206209
.setInfo(ComplianceData.newBuilder().build())
207210
.setServerVerify(true)
211+
.setCustomKebabName("customKebabName-2062111197")
208212
.build();
209213
client.repeatDataQuery(request);
210214
Assert.fail("No exception raised");
@@ -247,6 +251,7 @@ public class ComplianceClientTest {
247251
.setPChild(ComplianceDataChild.newBuilder().build())
248252
.build())
249253
.setServerVerify(true)
254+
.setCustomKebabName("customKebabName-2062111197")
250255
.build();
251256

252257
RepeatResponse actualResponse = client.repeatDataSimplePath(request);
@@ -303,6 +308,7 @@ public class ComplianceClientTest {
303308
.setPChild(ComplianceDataChild.newBuilder().build())
304309
.build())
305310
.setServerVerify(true)
311+
.setCustomKebabName("customKebabName-2062111197")
306312
.build();
307313
client.repeatDataSimplePath(request);
308314
Assert.fail("No exception raised");
@@ -359,6 +365,7 @@ public class ComplianceClientTest {
359365
.setPChild(ComplianceDataChild.newBuilder().build())
360366
.build())
361367
.setServerVerify(true)
368+
.setCustomKebabName("customKebabName-2062111197")
362369
.build();
363370

364371
RepeatResponse actualResponse = client.repeatDataPathResource(request);
@@ -429,6 +436,7 @@ public class ComplianceClientTest {
429436
.setPChild(ComplianceDataChild.newBuilder().build())
430437
.build())
431438
.setServerVerify(true)
439+
.setCustomKebabName("customKebabName-2062111197")
432440
.build();
433441
client.repeatDataPathResource(request);
434442
Assert.fail("No exception raised");
@@ -485,6 +493,7 @@ public class ComplianceClientTest {
485493
.setPChild(ComplianceDataChild.newBuilder().build())
486494
.build())
487495
.setServerVerify(true)
496+
.setCustomKebabName("customKebabName-2062111197")
488497
.build();
489498

490499
RepeatResponse actualResponse = client.repeatDataPathTrailingResource(request);
@@ -555,6 +564,7 @@ public class ComplianceClientTest {
555564
.setPChild(ComplianceDataChild.newBuilder().build())
556565
.build())
557566
.setServerVerify(true)
567+
.setCustomKebabName("customKebabName-2062111197")
558568
.build();
559569
client.repeatDataPathTrailingResource(request);
560570
Assert.fail("No exception raised");

sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/HttpRuleParserTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import static com.google.common.truth.Truth.assertThat;
1818
import static org.junit.Assert.assertEquals;
19-
import static org.junit.Assert.assertThrows;
2019
import static org.junit.Assert.assertTrue;
2120

2221
import com.google.api.generator.gapic.model.HttpBindings;
@@ -80,8 +79,6 @@ void parseHttpAnnotation_multipleBindings() {
8079
.containsExactly("answer", "foo", "name", "test_to_verify.name", "type");
8180
}
8281

83-
84-
8582
@Test
8683
void parseHttpAnnotation_shouldPutAllFieldsIntoQueryParamsIfPathParamAndBodyAreNotConfigured() {
8784
FileDescriptor fileDescriptor = HttpRuleParserTestingOuterClass.getDescriptor();

sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ParserTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,7 @@ void parseMessages_basic() {
102102

103103
String echoResponseName = "EchoResponse";
104104
Field echoResponseContentField =
105-
Field.builder()
106-
.setName("content")
107-
.setJsonName("content")
108-
.setType(TypeNode.STRING)
109-
.build();
105+
Field.builder().setName("content").setJsonName("content").setType(TypeNode.STRING).build();
110106
Field echoResponseSeverityField =
111107
Field.builder()
112108
.setName("severity")

0 commit comments

Comments
 (0)