Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
chore: release gapic-generator-java v1.0.5 (#406)
Browse files Browse the repository at this point in the history
Committer: @miraleung
PiperOrigin-RevId: 374252908

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon May 17 12:23:32 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 131ae3e375c05856d7d77cd146dc2af92650eb38
Source-Link: googleapis/googleapis@131ae3e
  • Loading branch information
yoshi-automation committed May 18, 2021
1 parent bf7a7c8 commit 7739805
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 12 deletions.
Expand Up @@ -234,6 +234,7 @@ public final ConnectionProto.Connection createConnection(
* ConnectionProto.CreateConnectionRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setConnectionId("connectionId1923106969")
* .setConnection(ConnectionProto.Connection.newBuilder().build())
* .build();
* ConnectionProto.Connection response = connectionServiceClient.createConnection(request);
* }
Expand All @@ -259,6 +260,7 @@ public final ConnectionProto.Connection createConnection(
* ConnectionProto.CreateConnectionRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setConnectionId("connectionId1923106969")
* .setConnection(ConnectionProto.Connection.newBuilder().build())
* .build();
* ApiFuture<ConnectionProto.Connection> future =
* connectionServiceClient.createConnectionCallable().futureCall(request);
Expand Down Expand Up @@ -562,6 +564,7 @@ public final ConnectionProto.Connection updateConnection(
* ConnectionProto.UpdateConnectionRequest request =
* ConnectionProto.UpdateConnectionRequest.newBuilder()
* .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
* .setConnection(ConnectionProto.Connection.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* ConnectionProto.Connection response = connectionServiceClient.updateConnection(request);
Expand All @@ -588,6 +591,7 @@ public final ConnectionProto.Connection updateConnection(
* ConnectionProto.UpdateConnectionRequest request =
* ConnectionProto.UpdateConnectionRequest.newBuilder()
* .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
* .setConnection(ConnectionProto.Connection.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* ApiFuture<ConnectionProto.Connection> future =
Expand Down Expand Up @@ -643,6 +647,7 @@ public final void updateConnectionCredential(
* ConnectionProto.UpdateConnectionCredentialRequest request =
* ConnectionProto.UpdateConnectionCredentialRequest.newBuilder()
* .setName("name3373707")
* .setCredential(ConnectionProto.ConnectionCredential.newBuilder().build())
* .build();
* connectionServiceClient.updateConnectionCredential(request);
* }
Expand All @@ -667,6 +672,7 @@ public final void updateConnectionCredential(
* ConnectionProto.UpdateConnectionCredentialRequest request =
* ConnectionProto.UpdateConnectionCredentialRequest.newBuilder()
* .setName("name3373707")
* .setCredential(ConnectionProto.ConnectionCredential.newBuilder().build())
* .build();
* ApiFuture<Empty> future =
* connectionServiceClient.updateConnectionCredentialCallable().futureCall(request);
Expand Down
Expand Up @@ -90,7 +90,15 @@ public void tearDown() throws Exception {

@Test
public void createConnectionTest() throws Exception {
ConnectionProto.Connection expectedResponse = ConnectionProto.Connection.newBuilder().build();
ConnectionProto.Connection expectedResponse =
ConnectionProto.Connection.newBuilder()
.setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
.setFriendlyName("friendlyName461933014")
.setDescription("description-1724546052")
.setCreationTime(1932333101)
.setLastModifiedTime(-671513446)
.setHasCredential(true)
.build();
mockConnectionService.addResponse(expectedResponse);

LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Expand Down Expand Up @@ -133,7 +141,15 @@ public void createConnectionExceptionTest() throws Exception {

@Test
public void createConnectionTest2() throws Exception {
ConnectionProto.Connection expectedResponse = ConnectionProto.Connection.newBuilder().build();
ConnectionProto.Connection expectedResponse =
ConnectionProto.Connection.newBuilder()
.setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
.setFriendlyName("friendlyName461933014")
.setDescription("description-1724546052")
.setCreationTime(1932333101)
.setLastModifiedTime(-671513446)
.setHasCredential(true)
.build();
mockConnectionService.addResponse(expectedResponse);

String parent = "parent-995424086";
Expand Down Expand Up @@ -176,7 +192,15 @@ public void createConnectionExceptionTest2() throws Exception {

@Test
public void getConnectionTest() throws Exception {
ConnectionProto.Connection expectedResponse = ConnectionProto.Connection.newBuilder().build();
ConnectionProto.Connection expectedResponse =
ConnectionProto.Connection.newBuilder()
.setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
.setFriendlyName("friendlyName461933014")
.setDescription("description-1724546052")
.setCreationTime(1932333101)
.setLastModifiedTime(-671513446)
.setHasCredential(true)
.build();
mockConnectionService.addResponse(expectedResponse);

ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
Expand Down Expand Up @@ -212,7 +236,15 @@ public void getConnectionExceptionTest() throws Exception {

@Test
public void getConnectionTest2() throws Exception {
ConnectionProto.Connection expectedResponse = ConnectionProto.Connection.newBuilder().build();
ConnectionProto.Connection expectedResponse =
ConnectionProto.Connection.newBuilder()
.setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
.setFriendlyName("friendlyName461933014")
.setDescription("description-1724546052")
.setCreationTime(1932333101)
.setLastModifiedTime(-671513446)
.setHasCredential(true)
.build();
mockConnectionService.addResponse(expectedResponse);

String name = "name3373707";
Expand Down Expand Up @@ -249,7 +281,10 @@ public void getConnectionExceptionTest2() throws Exception {
@Test
public void listConnectionsTest() throws Exception {
ConnectionProto.ListConnectionsResponse expectedResponse =
ConnectionProto.ListConnectionsResponse.newBuilder().build();
ConnectionProto.ListConnectionsResponse.newBuilder()
.setNextPageToken("nextPageToken-1386094857")
.addAllConnections(new ArrayList<ConnectionProto.Connection>())
.build();
mockConnectionService.addResponse(expectedResponse);

LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Expand Down Expand Up @@ -290,7 +325,10 @@ public void listConnectionsExceptionTest() throws Exception {
@Test
public void listConnectionsTest2() throws Exception {
ConnectionProto.ListConnectionsResponse expectedResponse =
ConnectionProto.ListConnectionsResponse.newBuilder().build();
ConnectionProto.ListConnectionsResponse.newBuilder()
.setNextPageToken("nextPageToken-1386094857")
.addAllConnections(new ArrayList<ConnectionProto.Connection>())
.build();
mockConnectionService.addResponse(expectedResponse);

String parent = "parent-995424086";
Expand Down Expand Up @@ -330,7 +368,15 @@ public void listConnectionsExceptionTest2() throws Exception {

@Test
public void updateConnectionTest() throws Exception {
ConnectionProto.Connection expectedResponse = ConnectionProto.Connection.newBuilder().build();
ConnectionProto.Connection expectedResponse =
ConnectionProto.Connection.newBuilder()
.setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
.setFriendlyName("friendlyName461933014")
.setDescription("description-1724546052")
.setCreationTime(1932333101)
.setLastModifiedTime(-671513446)
.setHasCredential(true)
.build();
mockConnectionService.addResponse(expectedResponse);

ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
Expand Down Expand Up @@ -373,7 +419,15 @@ public void updateConnectionExceptionTest() throws Exception {

@Test
public void updateConnectionTest2() throws Exception {
ConnectionProto.Connection expectedResponse = ConnectionProto.Connection.newBuilder().build();
ConnectionProto.Connection expectedResponse =
ConnectionProto.Connection.newBuilder()
.setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
.setFriendlyName("friendlyName461933014")
.setDescription("description-1724546052")
.setCreationTime(1932333101)
.setLastModifiedTime(-671513446)
.setHasCredential(true)
.build();
mockConnectionService.addResponse(expectedResponse);

String name = "name3373707";
Expand Down
8 changes: 4 additions & 4 deletions synth.metadata
Expand Up @@ -11,16 +11,16 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "1305ca41d554eb0725237561e34129373bb8cbc1",
"internalRef": "362856902"
"sha": "131ae3e375c05856d7d77cd146dc2af92650eb38",
"internalRef": "374252908"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "1305ca41d554eb0725237561e34129373bb8cbc1",
"internalRef": "362856902"
"sha": "131ae3e375c05856d7d77cd146dc2af92650eb38",
"internalRef": "374252908"
}
},
{
Expand Down

0 comments on commit 7739805

Please sign in to comment.