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

Commit

Permalink
🦉 Updates from OwlBot
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Oct 15, 2021
1 parent aa65311 commit a0471a9
Show file tree
Hide file tree
Showing 171 changed files with 24,615 additions and 15,857 deletions.
10 changes: 10 additions & 0 deletions google-cloud-tpu-bom/pom.xml
Expand Up @@ -63,11 +63,21 @@
<artifactId>grpc-google-cloud-tpu-v1</artifactId>
<version>2.1.3-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-tpu-v1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-tpu-v2alpha1</artifactId>
<version>2.1.3-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-tpu-v2alpha1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-tpu-v1</artifactId>
<version>2.1.3-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-tpu-v1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-tpu-v2alpha1</artifactId>
<version>2.1.3-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-tpu-v2alpha1:current} -->
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
9 changes: 9 additions & 0 deletions google-cloud-tpu/pom.xml
Expand Up @@ -42,6 +42,10 @@
<artifactId>proto-google-common-protos</artifactId>
</dependency>

<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-tpu-v2alpha1</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-tpu-v1</artifactId>
Expand Down Expand Up @@ -76,6 +80,11 @@
<artifactId>grpc-google-cloud-tpu-v1</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-tpu-v2alpha1</artifactId>
<scope>test</scope>
</dependency>
<!-- Need testing utility classes for generated gRPC clients tests -->
<dependency>
<groupId>com.google.api</groupId>
Expand Down
Expand Up @@ -60,13 +60,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 @@ -1425,8 +1425,11 @@ protected ListNodesFixedSizeCollection createCollection(

public static class ListTensorFlowVersionsPagedResponse
extends AbstractPagedListResponse<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse, TensorFlowVersion,
ListTensorFlowVersionsPage, ListTensorFlowVersionsFixedSizeCollection> {
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
TensorFlowVersion,
ListTensorFlowVersionsPage,
ListTensorFlowVersionsFixedSizeCollection> {

public static ApiFuture<ListTensorFlowVersionsPagedResponse> createAsync(
PageContext<
Expand All @@ -1448,7 +1451,9 @@ private ListTensorFlowVersionsPagedResponse(ListTensorFlowVersionsPage page) {

public static class ListTensorFlowVersionsPage
extends AbstractPage<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse, TensorFlowVersion,
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
TensorFlowVersion,
ListTensorFlowVersionsPage> {

private ListTensorFlowVersionsPage(
Expand Down Expand Up @@ -1484,8 +1489,11 @@ public ApiFuture<ListTensorFlowVersionsPage> createPageAsync(

public static class ListTensorFlowVersionsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse, TensorFlowVersion,
ListTensorFlowVersionsPage, ListTensorFlowVersionsFixedSizeCollection> {
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
TensorFlowVersion,
ListTensorFlowVersionsPage,
ListTensorFlowVersionsFixedSizeCollection> {

private ListTensorFlowVersionsFixedSizeCollection(
List<ListTensorFlowVersionsPage> pages, int collectionSize) {
Expand All @@ -1505,8 +1513,11 @@ protected ListTensorFlowVersionsFixedSizeCollection createCollection(

public static class ListAcceleratorTypesPagedResponse
extends AbstractPagedListResponse<
ListAcceleratorTypesRequest, ListAcceleratorTypesResponse, AcceleratorType,
ListAcceleratorTypesPage, ListAcceleratorTypesFixedSizeCollection> {
ListAcceleratorTypesRequest,
ListAcceleratorTypesResponse,
AcceleratorType,
ListAcceleratorTypesPage,
ListAcceleratorTypesFixedSizeCollection> {

public static ApiFuture<ListAcceleratorTypesPagedResponse> createAsync(
PageContext<ListAcceleratorTypesRequest, ListAcceleratorTypesResponse, AcceleratorType>
Expand All @@ -1527,7 +1538,9 @@ private ListAcceleratorTypesPagedResponse(ListAcceleratorTypesPage page) {

public static class ListAcceleratorTypesPage
extends AbstractPage<
ListAcceleratorTypesRequest, ListAcceleratorTypesResponse, AcceleratorType,
ListAcceleratorTypesRequest,
ListAcceleratorTypesResponse,
AcceleratorType,
ListAcceleratorTypesPage> {

private ListAcceleratorTypesPage(
Expand Down Expand Up @@ -1560,8 +1573,11 @@ public ApiFuture<ListAcceleratorTypesPage> createPageAsync(

public static class ListAcceleratorTypesFixedSizeCollection
extends AbstractFixedSizeCollection<
ListAcceleratorTypesRequest, ListAcceleratorTypesResponse, AcceleratorType,
ListAcceleratorTypesPage, ListAcceleratorTypesFixedSizeCollection> {
ListAcceleratorTypesRequest,
ListAcceleratorTypesResponse,
AcceleratorType,
ListAcceleratorTypesPage,
ListAcceleratorTypesFixedSizeCollection> {

private ListAcceleratorTypesFixedSizeCollection(
List<ListAcceleratorTypesPage> pages, int collectionSize) {
Expand Down
Expand Up @@ -30,7 +30,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.tpu.v1.stub.TpuStubSettings;
Expand All @@ -46,9 +45,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (tpu.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>The default service address (tpu.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.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -141,7 +140,8 @@ public UnaryCallSettings<StartNodeRequest, Operation> startNodeSettings() {

/** Returns the object with the settings used for calls to listTensorFlowVersions. */
public PagedCallSettings<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse,
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
ListTensorFlowVersionsPagedResponse>
listTensorFlowVersionsSettings() {
return ((TpuStubSettings) getStubSettings()).listTensorFlowVersionsSettings();
Expand All @@ -155,7 +155,8 @@ public UnaryCallSettings<StartNodeRequest, Operation> startNodeSettings() {

/** Returns the object with the settings used for calls to listAcceleratorTypes. */
public PagedCallSettings<
ListAcceleratorTypesRequest, ListAcceleratorTypesResponse,
ListAcceleratorTypesRequest,
ListAcceleratorTypesResponse,
ListAcceleratorTypesPagedResponse>
listAcceleratorTypesSettings() {
return ((TpuStubSettings) getStubSettings()).listAcceleratorTypesSettings();
Expand Down Expand Up @@ -331,7 +332,8 @@ public UnaryCallSettings.Builder<StartNodeRequest, Operation> startNodeSettings(

/** Returns the builder for the settings used for calls to listTensorFlowVersions. */
public PagedCallSettings.Builder<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse,
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
ListTensorFlowVersionsPagedResponse>
listTensorFlowVersionsSettings() {
return getStubSettingsBuilder().listTensorFlowVersionsSettings();
Expand All @@ -345,7 +347,8 @@ public UnaryCallSettings.Builder<StartNodeRequest, Operation> startNodeSettings(

/** Returns the builder for the settings used for calls to listAcceleratorTypes. */
public PagedCallSettings.Builder<
ListAcceleratorTypesRequest, ListAcceleratorTypesResponse,
ListAcceleratorTypesRequest,
ListAcceleratorTypesResponse,
ListAcceleratorTypesPagedResponse>
listAcceleratorTypesSettings() {
return getStubSettingsBuilder().listAcceleratorTypesSettings();
Expand Down
Expand Up @@ -51,7 +51,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
Expand Up @@ -81,9 +81,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (tpu.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>The default service address (tpu.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.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -130,13 +130,15 @@ public class TpuStubSettings extends StubSettings<TpuStubSettings> {
private final OperationCallSettings<StartNodeRequest, Node, OperationMetadata>
startNodeOperationSettings;
private final PagedCallSettings<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse,
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
ListTensorFlowVersionsPagedResponse>
listTensorFlowVersionsSettings;
private final UnaryCallSettings<GetTensorFlowVersionRequest, TensorFlowVersion>
getTensorFlowVersionSettings;
private final PagedCallSettings<
ListAcceleratorTypesRequest, ListAcceleratorTypesResponse,
ListAcceleratorTypesRequest,
ListAcceleratorTypesResponse,
ListAcceleratorTypesPagedResponse>
listAcceleratorTypesSettings;
private final UnaryCallSettings<GetAcceleratorTypeRequest, AcceleratorType>
Expand Down Expand Up @@ -280,11 +282,13 @@ public ApiFuture<ListNodesPagedResponse> getFuturePagedResponse(
};

private static final PagedListResponseFactory<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse,
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
ListTensorFlowVersionsPagedResponse>
LIST_TENSOR_FLOW_VERSIONS_PAGE_STR_FACT =
new PagedListResponseFactory<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse,
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
ListTensorFlowVersionsPagedResponse>() {
@Override
public ApiFuture<ListTensorFlowVersionsPagedResponse> getFuturePagedResponse(
Expand All @@ -294,7 +298,8 @@ public ApiFuture<ListTensorFlowVersionsPagedResponse> getFuturePagedResponse(
ApiCallContext context,
ApiFuture<ListTensorFlowVersionsResponse> futureResponse) {
PageContext<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse,
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
TensorFlowVersion>
pageContext =
PageContext.create(
Expand All @@ -304,11 +309,13 @@ public ApiFuture<ListTensorFlowVersionsPagedResponse> getFuturePagedResponse(
};

private static final PagedListResponseFactory<
ListAcceleratorTypesRequest, ListAcceleratorTypesResponse,
ListAcceleratorTypesRequest,
ListAcceleratorTypesResponse,
ListAcceleratorTypesPagedResponse>
LIST_ACCELERATOR_TYPES_PAGE_STR_FACT =
new PagedListResponseFactory<
ListAcceleratorTypesRequest, ListAcceleratorTypesResponse,
ListAcceleratorTypesRequest,
ListAcceleratorTypesResponse,
ListAcceleratorTypesPagedResponse>() {
@Override
public ApiFuture<ListAcceleratorTypesPagedResponse> getFuturePagedResponse(
Expand Down Expand Up @@ -393,7 +400,8 @@ public UnaryCallSettings<StartNodeRequest, Operation> startNodeSettings() {

/** Returns the object with the settings used for calls to listTensorFlowVersions. */
public PagedCallSettings<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse,
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
ListTensorFlowVersionsPagedResponse>
listTensorFlowVersionsSettings() {
return listTensorFlowVersionsSettings;
Expand All @@ -407,7 +415,8 @@ public UnaryCallSettings<StartNodeRequest, Operation> startNodeSettings() {

/** Returns the object with the settings used for calls to listAcceleratorTypes. */
public PagedCallSettings<
ListAcceleratorTypesRequest, ListAcceleratorTypesResponse,
ListAcceleratorTypesRequest,
ListAcceleratorTypesResponse,
ListAcceleratorTypesPagedResponse>
listAcceleratorTypesSettings() {
return listAcceleratorTypesSettings;
Expand Down Expand Up @@ -535,13 +544,15 @@ public static class Builder extends StubSettings.Builder<TpuStubSettings, Builde
private final OperationCallSettings.Builder<StartNodeRequest, Node, OperationMetadata>
startNodeOperationSettings;
private final PagedCallSettings.Builder<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse,
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
ListTensorFlowVersionsPagedResponse>
listTensorFlowVersionsSettings;
private final UnaryCallSettings.Builder<GetTensorFlowVersionRequest, TensorFlowVersion>
getTensorFlowVersionSettings;
private final PagedCallSettings.Builder<
ListAcceleratorTypesRequest, ListAcceleratorTypesResponse,
ListAcceleratorTypesRequest,
ListAcceleratorTypesResponse,
ListAcceleratorTypesPagedResponse>
listAcceleratorTypesSettings;
private final UnaryCallSettings.Builder<GetAcceleratorTypeRequest, AcceleratorType>
Expand Down Expand Up @@ -925,7 +936,8 @@ public UnaryCallSettings.Builder<StartNodeRequest, Operation> startNodeSettings(

/** Returns the builder for the settings used for calls to listTensorFlowVersions. */
public PagedCallSettings.Builder<
ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse,
ListTensorFlowVersionsRequest,
ListTensorFlowVersionsResponse,
ListTensorFlowVersionsPagedResponse>
listTensorFlowVersionsSettings() {
return listTensorFlowVersionsSettings;
Expand All @@ -939,7 +951,8 @@ public UnaryCallSettings.Builder<StartNodeRequest, Operation> startNodeSettings(

/** Returns the builder for the settings used for calls to listAcceleratorTypes. */
public PagedCallSettings.Builder<
ListAcceleratorTypesRequest, ListAcceleratorTypesResponse,
ListAcceleratorTypesRequest,
ListAcceleratorTypesResponse,
ListAcceleratorTypesPagedResponse>
listAcceleratorTypesSettings() {
return listAcceleratorTypesSettings;
Expand Down

0 comments on commit a0471a9

Please sign in to comment.