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

chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 #173

Merged
merged 2 commits into from
May 5, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
🦉 Updates from OwlBot post-processor
  • Loading branch information
gcf-owl-bot[bot] committed May 3, 2022
commit 2ddfd20d96127ec7b38be711c39480ce42755e44
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@
* methods:
*
* <ol>
* <li> A "flattened" method. With this type of method, the fields of the request type have been
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li> A "request object" method. This type of method only takes one parameter, a request object,
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
*
Expand Down Expand Up @@ -415,11 +415,11 @@ public final ConnectivityTest getConnectivityTest(GetConnectivityTestRequest req
* @param testId Required. The logical name of the Connectivity Test in your project with the
* following restrictions:
* <ul>
* <li> Must contain only lowercase letters, numbers, and hyphens.
* <li> Must start with a letter.
* <li> Must be between 1-40 characters.
* <li> Must end with a number or a letter.
* <li> Must be unique within the customer project
* <li>Must contain only lowercase letters, numbers, and hyphens.
* <li>Must start with a letter.
* <li>Must be between 1-40 characters.
* <li>Must end with a number or a letter.
* <li>Must be unique within the customer project
* </ul>
*
* @param resource Required. A `ConnectivityTest` resource
Expand Down Expand Up @@ -939,8 +939,11 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListConnectivityTestsPagedResponse
extends AbstractPagedListResponse<
ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest,
ListConnectivityTestsPage, ListConnectivityTestsFixedSizeCollection> {
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ConnectivityTest,
ListConnectivityTestsPage,
ListConnectivityTestsFixedSizeCollection> {

public static ApiFuture<ListConnectivityTestsPagedResponse> createAsync(
PageContext<ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest>
Expand All @@ -961,7 +964,9 @@ private ListConnectivityTestsPagedResponse(ListConnectivityTestsPage page) {

public static class ListConnectivityTestsPage
extends AbstractPage<
ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ConnectivityTest,
ListConnectivityTestsPage> {

private ListConnectivityTestsPage(
Expand Down Expand Up @@ -994,8 +999,11 @@ public ApiFuture<ListConnectivityTestsPage> createPageAsync(

public static class ListConnectivityTestsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest,
ListConnectivityTestsPage, ListConnectivityTestsFixedSizeCollection> {
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ConnectivityTest,
ListConnectivityTestsPage,
ListConnectivityTestsFixedSizeCollection> {

private ListConnectivityTestsFixedSizeCollection(
List<ListConnectivityTestsPage> pages, int collectionSize) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.networkmanagement.v1.stub.ReachabilityServiceStubSettings;
Expand All @@ -45,10 +44,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (networkmanagement.googleapis.com) and default port (443) are
* <li>The default service address (networkmanagement.googleapis.com) and default port (443) are
* used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -79,7 +78,8 @@ public class ReachabilityServiceSettings extends ClientSettings<ReachabilityServ

/** Returns the object with the settings used for calls to listConnectivityTests. */
public PagedCallSettings<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return ((ReachabilityServiceStubSettings) getStubSettings()).listConnectivityTestsSettings();
Expand Down Expand Up @@ -242,7 +242,8 @@ public Builder applyToAllUnaryMethods(

/** Returns the builder for the settings used for calls to listConnectivityTests. */
public PagedCallSettings.Builder<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return getStubSettingsBuilder().listConnectivityTestsSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (networkmanagement.googleapis.com) and default port (443) are
* <li>The default service address (networkmanagement.googleapis.com) and default port (443) are
* used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -107,7 +107,8 @@ public class ReachabilityServiceStubSettings extends StubSettings<ReachabilitySe
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();

private final PagedCallSettings<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings;
private final UnaryCallSettings<GetConnectivityTestRequest, ConnectivityTest>
Expand Down Expand Up @@ -174,11 +175,13 @@ public Iterable<ConnectivityTest> extractResources(
};

private static final PagedListResponseFactory<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
LIST_CONNECTIVITY_TESTS_PAGE_STR_FACT =
new PagedListResponseFactory<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>() {
@Override
public ApiFuture<ListConnectivityTestsPagedResponse> getFuturePagedResponse(
Expand All @@ -197,7 +200,8 @@ public ApiFuture<ListConnectivityTestsPagedResponse> getFuturePagedResponse(

/** Returns the object with the settings used for calls to listConnectivityTests. */
public PagedCallSettings<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return listConnectivityTestsSettings;
Expand Down Expand Up @@ -354,7 +358,8 @@ public static class Builder
extends StubSettings.Builder<ReachabilityServiceStubSettings, Builder> {
private final ImmutableList<UnaryCallSettings.Builder<?, ?>> unaryMethodSettingsBuilders;
private final PagedCallSettings.Builder<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings;
private final UnaryCallSettings.Builder<GetConnectivityTestRequest, ConnectivityTest>
Expand Down Expand Up @@ -624,7 +629,8 @@ public Builder applyToAllUnaryMethods(

/** Returns the builder for the settings used for calls to listConnectivityTests. */
public PagedCallSettings.Builder<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return listConnectivityTestsSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@
* methods:
*
* <ol>
* <li> A "flattened" method. With this type of method, the fields of the request type have been
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li> A "request object" method. This type of method only takes one parameter, a request object,
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
*
Expand Down Expand Up @@ -765,8 +765,11 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListConnectivityTestsPagedResponse
extends AbstractPagedListResponse<
ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest,
ListConnectivityTestsPage, ListConnectivityTestsFixedSizeCollection> {
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ConnectivityTest,
ListConnectivityTestsPage,
ListConnectivityTestsFixedSizeCollection> {

public static ApiFuture<ListConnectivityTestsPagedResponse> createAsync(
PageContext<ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest>
Expand All @@ -787,7 +790,9 @@ private ListConnectivityTestsPagedResponse(ListConnectivityTestsPage page) {

public static class ListConnectivityTestsPage
extends AbstractPage<
ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ConnectivityTest,
ListConnectivityTestsPage> {

private ListConnectivityTestsPage(
Expand Down Expand Up @@ -820,8 +825,11 @@ public ApiFuture<ListConnectivityTestsPage> createPageAsync(

public static class ListConnectivityTestsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest,
ListConnectivityTestsPage, ListConnectivityTestsFixedSizeCollection> {
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ConnectivityTest,
ListConnectivityTestsPage,
ListConnectivityTestsFixedSizeCollection> {

private ListConnectivityTestsFixedSizeCollection(
List<ListConnectivityTestsPage> pages, int collectionSize) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.networkmanagement.v1beta1.stub.ReachabilityServiceStubSettings;
Expand All @@ -45,10 +44,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (networkmanagement.googleapis.com) and default port (443) are
* <li>The default service address (networkmanagement.googleapis.com) and default port (443) are
* used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -80,7 +79,8 @@ public class ReachabilityServiceSettings extends ClientSettings<ReachabilityServ

/** Returns the object with the settings used for calls to listConnectivityTests. */
public PagedCallSettings<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return ((ReachabilityServiceStubSettings) getStubSettings()).listConnectivityTestsSettings();
Expand Down Expand Up @@ -243,7 +243,8 @@ public Builder applyToAllUnaryMethods(

/** Returns the builder for the settings used for calls to listConnectivityTests. */
public PagedCallSettings.Builder<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return getStubSettingsBuilder().listConnectivityTestsSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (networkmanagement.googleapis.com) and default port (443) are
* <li>The default service address (networkmanagement.googleapis.com) and default port (443) are
* used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -108,7 +108,8 @@ public class ReachabilityServiceStubSettings extends StubSettings<ReachabilitySe
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();

private final PagedCallSettings<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings;
private final UnaryCallSettings<GetConnectivityTestRequest, ConnectivityTest>
Expand Down Expand Up @@ -175,11 +176,13 @@ public Iterable<ConnectivityTest> extractResources(
};

private static final PagedListResponseFactory<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
LIST_CONNECTIVITY_TESTS_PAGE_STR_FACT =
new PagedListResponseFactory<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>() {
@Override
public ApiFuture<ListConnectivityTestsPagedResponse> getFuturePagedResponse(
Expand All @@ -198,7 +201,8 @@ public ApiFuture<ListConnectivityTestsPagedResponse> getFuturePagedResponse(

/** Returns the object with the settings used for calls to listConnectivityTests. */
public PagedCallSettings<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return listConnectivityTestsSettings;
Expand Down Expand Up @@ -355,7 +359,8 @@ public static class Builder
extends StubSettings.Builder<ReachabilityServiceStubSettings, Builder> {
private final ImmutableList<UnaryCallSettings.Builder<?, ?>> unaryMethodSettingsBuilders;
private final PagedCallSettings.Builder<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings;
private final UnaryCallSettings.Builder<GetConnectivityTestRequest, ConnectivityTest>
Expand Down Expand Up @@ -625,7 +630,8 @@ public Builder applyToAllUnaryMethods(

/** Returns the builder for the settings used for calls to listConnectivityTests. */
public PagedCallSettings.Builder<
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return listConnectivityTestsSettings;
Expand Down
Loading