Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: test java formatter #11335

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions java-cloudbuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-build</artifactId>
<version>3.55.0</version>
<version>3.56.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-build:3.55.0'
implementation 'com.google.cloud:google-cloud-build:3.56.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.55.0"
libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.56.0"
```

## Authentication
Expand Down Expand Up @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-build.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.55.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.56.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
ProtoRestSerializer.create()
.toBody(
"*",
request
.toBuilder()
request.toBuilder()
.clearId()
.clearName()
.clearProjectId()
Expand Down Expand Up @@ -294,8 +293,7 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
ProtoRestSerializer.create()
.toBody(
"*",
request
.toBuilder()
request.toBuilder()
.clearId()
.clearName()
.clearProjectId()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ public void receiveTriggerWebhook(
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method ReceiveTriggerWebhook, expected %s or %s",
"Unrecognized response type %s for method ReceiveTriggerWebhook, expected %s or"
+ " %s",
response == null ? "null" : response.getClass().getName(),
ReceiveTriggerWebhookResponse.class.getName(),
Exception.class.getName())));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ public void batchCreateRepositories(
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method BatchCreateRepositories, expected %s or %s",
"Unrecognized response type %s for method BatchCreateRepositories, expected %s or"
+ " %s",
response == null ? "null" : response.getClass().getName(),
Operation.class.getName(),
Exception.class.getName())));
Expand Down Expand Up @@ -349,7 +350,8 @@ public void fetchLinkableRepositories(
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method FetchLinkableRepositories, expected %s or %s",
"Unrecognized response type %s for method FetchLinkableRepositories, expected %s"
+ " or %s",
response == null ? "null" : response.getClass().getName(),
FetchLinkableRepositoriesResponse.class.getName(),
Exception.class.getName())));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public final class ApprovalConfig extends com.google.protobuf.GeneratedMessageV3
// @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.ApprovalConfig)
ApprovalConfigOrBuilder {
private static final long serialVersionUID = 0L;

// Use ApprovalConfig.newBuilder() to construct.
private ApprovalConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
Expand Down Expand Up @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {

public static final int APPROVAL_REQUIRED_FIELD_NUMBER = 1;
private boolean approvalRequired_ = false;

/**
*
*
Expand Down Expand Up @@ -239,6 +241,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
Builder builder = new Builder(parent);
return builder;
}

/**
*
*
Expand Down Expand Up @@ -420,6 +423,7 @@ public Builder mergeFrom(
private int bitField0_;

private boolean approvalRequired_;

/**
*
*
Expand All @@ -437,6 +441,7 @@ public Builder mergeFrom(
public boolean getApprovalRequired() {
return approvalRequired_;
}

/**
*
*
Expand All @@ -458,6 +463,7 @@ public Builder setApprovalRequired(boolean value) {
onChanged();
return this;
}

/**
*
*
Expand Down
Loading
Loading