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

Commit

Permalink
feat!: release gapic-generator-java v2.0.0 (#225)
Browse files Browse the repository at this point in the history
Committer: @miraleung
PiperOrigin-RevId: 388535346

Source-Link: googleapis/googleapis@d9eaf41

Source-Link: googleapis/googleapis-gen@976c5ab
  • Loading branch information
gcf-owl-bot[bot] committed Aug 10, 2021
1 parent f5542e6 commit 58bb59d
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 559 deletions.
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.notebooks.v1beta1;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
Expand Down Expand Up @@ -1526,12 +1525,7 @@ public static ApiFuture<ListInstancesPagedResponse> createAsync(
ListInstancesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListInstancesPage, ListInstancesPagedResponse>() {
@Override
public ListInstancesPagedResponse apply(ListInstancesPage input) {
return new ListInstancesPagedResponse(input);
}
},
input -> new ListInstancesPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -1607,12 +1601,7 @@ public static ApiFuture<ListEnvironmentsPagedResponse> createAsync(
ListEnvironmentsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListEnvironmentsPage, ListEnvironmentsPagedResponse>() {
@Override
public ListEnvironmentsPagedResponse apply(ListEnvironmentsPage input) {
return new ListEnvironmentsPagedResponse(input);
}
},
input -> new ListEnvironmentsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -348,14 +348,13 @@ public NotebookServiceStubSettings.Builder getStubSettingsBuilder() {
return ((NotebookServiceStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -1269,14 +1269,13 @@ private static Builder initDefaults(Builder builder) {
return builder;
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
return this;
}
Expand Down
Expand Up @@ -147,7 +147,7 @@ public void listInstancesExceptionTest() throws Exception {
public void getInstanceTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -205,7 +205,7 @@ public void getInstanceExceptionTest() throws Exception {
public void createInstanceTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -283,7 +283,7 @@ public void createInstanceExceptionTest() throws Exception {
public void registerInstanceTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -358,7 +358,7 @@ public void registerInstanceExceptionTest() throws Exception {
public void setInstanceAcceleratorTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -435,7 +435,7 @@ public void setInstanceAcceleratorExceptionTest() throws Exception {
public void setInstanceMachineTypeTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -511,7 +511,7 @@ public void setInstanceMachineTypeExceptionTest() throws Exception {
public void setInstanceLabelsTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -630,7 +630,7 @@ public void deleteInstanceExceptionTest() throws Exception {
public void startInstanceTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -697,7 +697,7 @@ public void startInstanceExceptionTest() throws Exception {
public void stopInstanceTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -763,7 +763,7 @@ public void stopInstanceExceptionTest() throws Exception {
public void resetInstanceTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -830,7 +830,7 @@ public void resetInstanceExceptionTest() throws Exception {
public void reportInstanceInfoTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -955,7 +955,7 @@ public void isInstanceUpgradeableExceptionTest() throws Exception {
public void upgradeInstanceTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -1023,7 +1023,7 @@ public void upgradeInstanceExceptionTest() throws Exception {
public void upgradeInstanceInternalTest() throws Exception {
Instance expectedResponse =
Instance.newBuilder()
.setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setName("name3373707")
.setPostStartupScript("postStartupScript870779112")
.setProxyUri("proxyUri-985185250")
.addAllInstanceOwners(new ArrayList<String>())
Expand Down Expand Up @@ -1155,7 +1155,7 @@ public void listEnvironmentsExceptionTest() throws Exception {
public void getEnvironmentTest() throws Exception {
Environment expectedResponse =
Environment.newBuilder()
.setName(EnvironmentName.of("[PROJECT]", "[ENVIRONMENT]").toString())
.setName("name3373707")
.setDisplayName("displayName1714148973")
.setDescription("description-1724546052")
.setPostStartupScript("postStartupScript870779112")
Expand Down Expand Up @@ -1199,7 +1199,7 @@ public void getEnvironmentExceptionTest() throws Exception {
public void createEnvironmentTest() throws Exception {
Environment expectedResponse =
Environment.newBuilder()
.setName(EnvironmentName.of("[PROJECT]", "[ENVIRONMENT]").toString())
.setName("name3373707")
.setDisplayName("displayName1714148973")
.setDescription("description-1724546052")
.setPostStartupScript("postStartupScript870779112")
Expand Down
Expand Up @@ -16,4 +16,12 @@
<className>com/google/cloud/notebooks/v1beta1/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference>
<difference>
<differenceType>8001</differenceType>
<className>com/google/cloud/notebooks/v1beta1/Environment*</className>
</difference>
<difference>
<differenceType>8001</differenceType>
<className>com/google/cloud/notebooks/v1beta1/Instance*</className>
</difference>
</differences>
8 changes: 0 additions & 8 deletions proto-google-cloud-notebooks-v1beta1/pom.xml
Expand Up @@ -21,14 +21,6 @@
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-common-protos</artifactId>
</dependency>
<dependency>
<groupId>com.google.api</groupId>
<artifactId>api-common</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit 58bb59d

Please sign in to comment.