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

fix: update gapic-generator-java with mock service generation fixes #243

Merged
merged 10 commits into from
Jun 28, 2022
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-appengine-admin</artifactId>
<version>2.2.0</version>
<version>2.3.0</version>
</dependency>
```

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

```Groovy
implementation 'com.google.cloud:google-cloud-appengine-admin:2.2.0'
implementation 'com.google.cloud:google-cloud-appengine-admin:2.3.0'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.2.0"
libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.3.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.appengine.v1;

import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.rpc.OperationCallable;
Expand Down Expand Up @@ -118,7 +117,6 @@ public static final ApplicationsClient create(ApplicationsSettings settings) thr
* Constructs an instance of ApplicationsClient, using the given stub for making calls. This is
* for advanced usage - prefer using create(ApplicationsSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final ApplicationsClient create(ApplicationsStub stub) {
return new ApplicationsClient(stub);
}
Expand All @@ -134,7 +132,6 @@ protected ApplicationsClient(ApplicationsSettings settings) throws IOException {
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected ApplicationsClient(ApplicationsStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -145,7 +142,6 @@ public final ApplicationsSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ApplicationsStub getStub() {
return stub;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
import com.google.api.gax.paging.AbstractPage;
Expand Down Expand Up @@ -133,7 +132,6 @@ public static final AuthorizedCertificatesClient create(AuthorizedCertificatesSe
* Constructs an instance of AuthorizedCertificatesClient, using the given stub for making calls.
* This is for advanced usage - prefer using create(AuthorizedCertificatesSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final AuthorizedCertificatesClient create(AuthorizedCertificatesStub stub) {
return new AuthorizedCertificatesClient(stub);
}
Expand All @@ -149,7 +147,6 @@ protected AuthorizedCertificatesClient(AuthorizedCertificatesSettings settings)
this.stub = ((AuthorizedCertificatesStubSettings) settings.getStubSettings()).createStub();
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected AuthorizedCertificatesClient(AuthorizedCertificatesStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -159,7 +156,6 @@ public final AuthorizedCertificatesSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public AuthorizedCertificatesStub getStub() {
return stub;
}
Expand Down Expand Up @@ -253,7 +249,7 @@ public final ListAuthorizedCertificatesPagedResponse listAuthorizedCertificates(
* while (true) {
* ListAuthorizedCertificatesResponse response =
* authorizedCertificatesClient.listAuthorizedCertificatesCallable().call(request);
* for (AuthorizedCertificate element : response.getResponsesList()) {
* for (AuthorizedCertificate element : response.getCertificatesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
import com.google.api.gax.paging.AbstractPage;
Expand Down Expand Up @@ -135,7 +134,6 @@ public static final AuthorizedDomainsClient create(AuthorizedDomainsSettings set
* Constructs an instance of AuthorizedDomainsClient, using the given stub for making calls. This
* is for advanced usage - prefer using create(AuthorizedDomainsSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final AuthorizedDomainsClient create(AuthorizedDomainsStub stub) {
return new AuthorizedDomainsClient(stub);
}
Expand All @@ -150,7 +148,6 @@ protected AuthorizedDomainsClient(AuthorizedDomainsSettings settings) throws IOE
this.stub = ((AuthorizedDomainsStubSettings) settings.getStubSettings()).createStub();
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected AuthorizedDomainsClient(AuthorizedDomainsStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -160,7 +157,6 @@ public final AuthorizedDomainsSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public AuthorizedDomainsStub getStub() {
return stub;
}
Expand Down Expand Up @@ -245,7 +241,7 @@ public final ListAuthorizedDomainsPagedResponse listAuthorizedDomains(
* while (true) {
* ListAuthorizedDomainsResponse response =
* authorizedDomainsClient.listAuthorizedDomainsCallable().call(request);
* for (AuthorizedDomain element : response.getResponsesList()) {
* for (AuthorizedDomain element : response.getDomainsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
Expand Down Expand Up @@ -129,7 +128,6 @@ public static final DomainMappingsClient create(DomainMappingsSettings settings)
* Constructs an instance of DomainMappingsClient, using the given stub for making calls. This is
* for advanced usage - prefer using create(DomainMappingsSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final DomainMappingsClient create(DomainMappingsStub stub) {
return new DomainMappingsClient(stub);
}
Expand All @@ -145,7 +143,6 @@ protected DomainMappingsClient(DomainMappingsSettings settings) throws IOExcepti
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected DomainMappingsClient(DomainMappingsStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -156,7 +153,6 @@ public final DomainMappingsSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public DomainMappingsStub getStub() {
return stub;
}
Expand Down Expand Up @@ -248,7 +244,7 @@ public final ListDomainMappingsPagedResponse listDomainMappings(
* while (true) {
* ListDomainMappingsResponse response =
* domainMappingsClient.listDomainMappingsCallable().call(request);
* for (DomainMapping element : response.getResponsesList()) {
* for (DomainMapping element : response.getDomainMappingsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
import com.google.api.gax.paging.AbstractPage;
Expand Down Expand Up @@ -135,7 +134,6 @@ public static final FirewallClient create(FirewallSettings settings) throws IOEx
* Constructs an instance of FirewallClient, using the given stub for making calls. This is for
* advanced usage - prefer using create(FirewallSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final FirewallClient create(FirewallStub stub) {
return new FirewallClient(stub);
}
Expand All @@ -149,7 +147,6 @@ protected FirewallClient(FirewallSettings settings) throws IOException {
this.stub = ((FirewallStubSettings) settings.getStubSettings()).createStub();
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected FirewallClient(FirewallStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -159,7 +156,6 @@ public final FirewallSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public FirewallStub getStub() {
return stub;
}
Expand Down Expand Up @@ -244,7 +240,7 @@ public final ListIngressRulesPagedResponse listIngressRules(ListIngressRulesRequ
* .build();
* while (true) {
* ListIngressRulesResponse response = firewallClient.listIngressRulesCallable().call(request);
* for (FirewallRule element : response.getResponsesList()) {
* for (FirewallRule element : response.getIngressRulesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
Expand Down Expand Up @@ -127,7 +126,6 @@ public static final InstancesClient create(InstancesSettings settings) throws IO
* Constructs an instance of InstancesClient, using the given stub for making calls. This is for
* advanced usage - prefer using create(InstancesSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final InstancesClient create(InstancesStub stub) {
return new InstancesClient(stub);
}
Expand All @@ -142,7 +140,6 @@ protected InstancesClient(InstancesSettings settings) throws IOException {
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected InstancesClient(InstancesStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -153,7 +150,6 @@ public final InstancesSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public InstancesStub getStub() {
return stub;
}
Expand Down Expand Up @@ -251,7 +247,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque
* .build();
* while (true) {
* ListInstancesResponse response = instancesClient.listInstancesCallable().call(request);
* for (Instance element : response.getResponsesList()) {
* for (Instance element : response.getInstancesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
Expand Down Expand Up @@ -127,7 +126,6 @@ public static final ServicesClient create(ServicesSettings settings) throws IOEx
* Constructs an instance of ServicesClient, using the given stub for making calls. This is for
* advanced usage - prefer using create(ServicesSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final ServicesClient create(ServicesStub stub) {
return new ServicesClient(stub);
}
Expand All @@ -142,7 +140,6 @@ protected ServicesClient(ServicesSettings settings) throws IOException {
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected ServicesClient(ServicesStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -153,7 +150,6 @@ public final ServicesSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ServicesStub getStub() {
return stub;
}
Expand Down Expand Up @@ -242,7 +238,7 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request)
* .build();
* while (true) {
* ListServicesResponse response = servicesClient.listServicesCallable().call(request);
* for (Service element : response.getResponsesList()) {
* for (Service element : response.getServicesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
Expand Down Expand Up @@ -131,7 +130,6 @@ public static final VersionsClient create(VersionsSettings settings) throws IOEx
* Constructs an instance of VersionsClient, using the given stub for making calls. This is for
* advanced usage - prefer using create(VersionsSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final VersionsClient create(VersionsStub stub) {
return new VersionsClient(stub);
}
Expand All @@ -146,7 +144,6 @@ protected VersionsClient(VersionsSettings settings) throws IOException {
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected VersionsClient(VersionsStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -157,7 +154,6 @@ public final VersionsSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public VersionsStub getStub() {
return stub;
}
Expand Down Expand Up @@ -249,7 +245,7 @@ public final ListVersionsPagedResponse listVersions(ListVersionsRequest request)
* .build();
* while (true) {
* ListVersionsResponse response = versionsClient.listVersionsCallable().call(request);
* for (Version element : response.getResponsesList()) {
* for (Version element : response.getVersionsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ public UnaryCallSettings<RepairApplicationRequest, Operation> repairApplicationS
return repairApplicationOperationSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ApplicationsStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ public ApiFuture<ListAuthorizedCertificatesPagedResponse> getFuturePagedResponse
return deleteAuthorizedCertificateSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public AuthorizedCertificatesStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ public ApiFuture<ListAuthorizedDomainsPagedResponse> getFuturePagedResponse(
return listAuthorizedDomainsSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public AuthorizedDomainsStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ public UnaryCallSettings<DeleteDomainMappingRequest, Operation> deleteDomainMapp
return deleteDomainMappingOperationSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public DomainMappingsStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ public UnaryCallSettings<DeleteIngressRuleRequest, Empty> deleteIngressRuleSetti
return deleteIngressRuleSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public FirewallStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ public UnaryCallSettings<DebugInstanceRequest, Operation> debugInstanceSettings(
return debugInstanceOperationSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public InstancesStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ public UnaryCallSettings<DeleteServiceRequest, Operation> deleteServiceSettings(
return deleteServiceOperationSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public ServicesStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down
Loading