Skip to content

Commit 11ce72a

Browse files
committed
Merge branch 'update-sharedconfig-and-lint' of https://github.com/googleapis/sdk-platform-java into update-sharedconfig-and-lint
2 parents da1a26f + 1973ef5 commit 11ce72a

File tree

173 files changed

+3022
-261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+3022
-261
lines changed

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,8 @@ public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
952952
@Override
953953
public ClientStreamingCallable<EchoRequest, EchoResponse> collectCallable() {
954954
throw new UnsupportedOperationException(
955-
"Not implemented: collectCallable(). REST transport is not implemented for this method yet.");
955+
"Not implemented: collectCallable(). REST transport is not implemented for this method"
956+
+ " yet.");
956957
}
957958

958959
@Override

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,13 +1174,15 @@ public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
11741174
@Override
11751175
public ClientStreamingCallable<CreateBlurbRequest, SendBlurbsResponse> sendBlurbsCallable() {
11761176
throw new UnsupportedOperationException(
1177-
"Not implemented: sendBlurbsCallable(). REST transport is not implemented for this method yet.");
1177+
"Not implemented: sendBlurbsCallable(). REST transport is not implemented for this method"
1178+
+ " yet.");
11781179
}
11791180

11801181
@Override
11811182
public BidiStreamingCallable<ConnectRequest, StreamBlurbsResponse> connectCallable() {
11821183
throw new UnsupportedOperationException(
1183-
"Not implemented: connectCallable(). REST transport is not implemented for this method yet.");
1184+
"Not implemented: connectCallable(). REST transport is not implemented for this method"
1185+
+ " yet.");
11841186
}
11851187

11861188
@Override

java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockComplianceImpl.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ public void repeatDataSimplePath(
135135
responseObserver.onError(
136136
new IllegalArgumentException(
137137
String.format(
138-
"Unrecognized response type %s for method RepeatDataSimplePath, expected %s or %s",
138+
"Unrecognized response type %s for method RepeatDataSimplePath, expected %s or"
139+
+ " %s",
139140
response == null ? "null" : response.getClass().getName(),
140141
RepeatResponse.class.getName(),
141142
Exception.class.getName())));
@@ -156,7 +157,8 @@ public void repeatDataPathResource(
156157
responseObserver.onError(
157158
new IllegalArgumentException(
158159
String.format(
159-
"Unrecognized response type %s for method RepeatDataPathResource, expected %s or %s",
160+
"Unrecognized response type %s for method RepeatDataPathResource, expected %s or"
161+
+ " %s",
160162
response == null ? "null" : response.getClass().getName(),
161163
RepeatResponse.class.getName(),
162164
Exception.class.getName())));
@@ -177,7 +179,8 @@ public void repeatDataPathTrailingResource(
177179
responseObserver.onError(
178180
new IllegalArgumentException(
179181
String.format(
180-
"Unrecognized response type %s for method RepeatDataPathTrailingResource, expected %s or %s",
182+
"Unrecognized response type %s for method RepeatDataPathTrailingResource,"
183+
+ " expected %s or %s",
181184
response == null ? "null" : response.getClass().getName(),
182185
RepeatResponse.class.getName(),
183186
Exception.class.getName())));

java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEchoImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ public void pagedExpandLegacyMapped(
249249
responseObserver.onError(
250250
new IllegalArgumentException(
251251
String.format(
252-
"Unrecognized response type %s for method PagedExpandLegacyMapped, expected %s or %s",
252+
"Unrecognized response type %s for method PagedExpandLegacyMapped, expected %s or"
253+
+ " %s",
253254
response == null ? "null" : response.getClass().getName(),
254255
PagedExpandLegacyMappedResponse.class.getName(),
255256
Exception.class.getName())));

java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ public void createStreamingSequence(
9494
responseObserver.onError(
9595
new IllegalArgumentException(
9696
String.format(
97-
"Unrecognized response type %s for method CreateStreamingSequence, expected %s or %s",
97+
"Unrecognized response type %s for method CreateStreamingSequence, expected %s or"
98+
+ " %s",
9899
response == null ? "null" : response.getClass().getName(),
99100
StreamingSequence.class.getName(),
100101
Exception.class.getName())));
@@ -137,7 +138,8 @@ public void getStreamingSequenceReport(
137138
responseObserver.onError(
138139
new IllegalArgumentException(
139140
String.format(
140-
"Unrecognized response type %s for method GetStreamingSequenceReport, expected %s or %s",
141+
"Unrecognized response type %s for method GetStreamingSequenceReport, expected %s"
142+
+ " or %s",
141143
response == null ? "null" : response.getClass().getName(),
142144
StreamingSequenceReport.class.getName(),
143145
Exception.class.getName())));
@@ -180,7 +182,8 @@ public void attemptStreamingSequence(
180182
responseObserver.onError(
181183
new IllegalArgumentException(
182184
String.format(
183-
"Unrecognized response type %s for method AttemptStreamingSequence, expected %s or %s",
185+
"Unrecognized response type %s for method AttemptStreamingSequence, expected %s"
186+
+ " or %s",
184187
response == null ? "null" : response.getClass().getName(),
185188
AttemptStreamingSequenceResponse.class.getName(),
186189
Exception.class.getName())));

java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITEndpointContext.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ void universeDomainValidation_credentialsNonGDU_noUserConfiguration() throws IOE
324324
assertThrows(UnauthenticatedException.class, () -> echoClient.echo(DEFAULT_REQUEST));
325325
Truth.assertThat(exception.getMessage())
326326
.contains(
327-
"The configured universe domain (googleapis.com) does not match the universe domain found in the credentials (random.com).");
327+
"The configured universe domain (googleapis.com) does not match the universe domain"
328+
+ " found in the credentials (random.com).");
328329
}
329330

330331
@Test
@@ -367,7 +368,8 @@ void universeDomainValidation_credentialsNonGDUDoesNotMatchUserConfiguration()
367368
assertThrows(UnauthenticatedException.class, () -> echoClient.echo(DEFAULT_REQUEST));
368369
Truth.assertThat(exception.getMessage())
369370
.contains(
370-
"The configured universe domain (test.com) does not match the universe domain found in the credentials (random.com).");
371+
"The configured universe domain (test.com) does not match the universe domain found in"
372+
+ " the credentials (random.com).");
371373
}
372374

373375
// This test uses NoCredentialsProvider (will default to GDU)
@@ -408,7 +410,8 @@ void universeDomainValidation_noCredentials_userSetUniverseDomain() throws IOExc
408410
assertThrows(UnauthenticatedException.class, () -> echoClient.echo(DEFAULT_REQUEST));
409411
Truth.assertThat(exception.getMessage())
410412
.contains(
411-
"The configured universe domain (random.com) does not match the universe domain found in the credentials (googleapis.com).");
413+
"The configured universe domain (random.com) does not match the universe domain found"
414+
+ " in the credentials (googleapis.com).");
412415
}
413416

414417
// Default in Builder (no configuration)

java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public final class AttemptSequenceRequest extends com.google.protobuf.GeneratedM
2525
// @@protoc_insertion_point(message_implements:google.showcase.v1beta1.AttemptSequenceRequest)
2626
AttemptSequenceRequestOrBuilder {
2727
private static final long serialVersionUID = 0L;
28+
2829
// Use AttemptSequenceRequest.newBuilder() to construct.
2930
private AttemptSequenceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
3031
super(builder);
@@ -59,6 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
5960

6061
@SuppressWarnings("serial")
6162
private volatile java.lang.Object name_ = "";
63+
6264
/**
6365
* <code>
6466
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -78,6 +80,7 @@ public java.lang.String getName() {
7880
return s;
7981
}
8082
}
83+
8184
/**
8285
* <code>
8386
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -257,6 +260,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
257260
Builder builder = new Builder(parent);
258261
return builder;
259262
}
263+
260264
/** Protobuf type {@code google.showcase.v1beta1.AttemptSequenceRequest} */
261265
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
262266
implements
@@ -433,6 +437,7 @@ public Builder mergeFrom(
433437
private int bitField0_;
434438

435439
private java.lang.Object name_ = "";
440+
436441
/**
437442
* <code>
438443
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -451,6 +456,7 @@ public java.lang.String getName() {
451456
return (java.lang.String) ref;
452457
}
453458
}
459+
454460
/**
455461
* <code>
456462
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -469,6 +475,7 @@ public com.google.protobuf.ByteString getNameBytes() {
469475
return (com.google.protobuf.ByteString) ref;
470476
}
471477
}
478+
472479
/**
473480
* <code>
474481
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -486,6 +493,7 @@ public Builder setName(java.lang.String value) {
486493
onChanged();
487494
return this;
488495
}
496+
489497
/**
490498
* <code>
491499
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -499,6 +507,7 @@ public Builder clearName() {
499507
onChanged();
500508
return this;
501509
}
510+
502511
/**
503512
* <code>
504513
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequestOrBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public interface AttemptSequenceRequestOrBuilder
3232
* @return The name.
3333
*/
3434
java.lang.String getName();
35+
3536
/**
3637
* <code>
3738
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public final class AttemptStreamingSequenceRequest extends com.google.protobuf.G
2525
// @@protoc_insertion_point(message_implements:google.showcase.v1beta1.AttemptStreamingSequenceRequest)
2626
AttemptStreamingSequenceRequestOrBuilder {
2727
private static final long serialVersionUID = 0L;
28+
2829
// Use AttemptStreamingSequenceRequest.newBuilder() to construct.
2930
private AttemptStreamingSequenceRequest(
3031
com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
@@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
6061

6162
@SuppressWarnings("serial")
6263
private volatile java.lang.Object name_ = "";
64+
6365
/**
6466
* <code>
6567
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -79,6 +81,7 @@ public java.lang.String getName() {
7981
return s;
8082
}
8183
}
84+
8285
/**
8386
* <code>
8487
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -101,6 +104,7 @@ public com.google.protobuf.ByteString getNameBytes() {
101104

102105
public static final int LAST_FAIL_INDEX_FIELD_NUMBER = 2;
103106
private int lastFailIndex_ = 0;
107+
104108
/**
105109
*
106110
*
@@ -288,6 +292,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
288292
Builder builder = new Builder(parent);
289293
return builder;
290294
}
295+
291296
/** Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceRequest} */
292297
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
293298
implements
@@ -477,6 +482,7 @@ public Builder mergeFrom(
477482
private int bitField0_;
478483

479484
private java.lang.Object name_ = "";
485+
480486
/**
481487
* <code>
482488
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -495,6 +501,7 @@ public java.lang.String getName() {
495501
return (java.lang.String) ref;
496502
}
497503
}
504+
498505
/**
499506
* <code>
500507
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -513,6 +520,7 @@ public com.google.protobuf.ByteString getNameBytes() {
513520
return (com.google.protobuf.ByteString) ref;
514521
}
515522
}
523+
516524
/**
517525
* <code>
518526
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -530,6 +538,7 @@ public Builder setName(java.lang.String value) {
530538
onChanged();
531539
return this;
532540
}
541+
533542
/**
534543
* <code>
535544
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -543,6 +552,7 @@ public Builder clearName() {
543552
onChanged();
544553
return this;
545554
}
555+
546556
/**
547557
* <code>
548558
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
@@ -563,6 +573,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
563573
}
564574

565575
private int lastFailIndex_;
576+
566577
/**
567578
*
568579
*
@@ -580,6 +591,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
580591
public int getLastFailIndex() {
581592
return lastFailIndex_;
582593
}
594+
583595
/**
584596
*
585597
*
@@ -601,6 +613,7 @@ public Builder setLastFailIndex(int value) {
601613
onChanged();
602614
return this;
603615
}
616+
604617
/**
605618
*
606619
*

java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public interface AttemptStreamingSequenceRequestOrBuilder
3232
* @return The name.
3333
*/
3434
java.lang.String getName();
35+
3536
/**
3637
* <code>
3738
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

0 commit comments

Comments
 (0)