Skip to content

feat: Adds auto-generated CL for googleapis for jsonb #1983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 29, 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
Next Next commit
feat: Adds auto-generated CL for googleapis for jsonb
PiperOrigin-RevId: 470167051

Source-Link: googleapis/googleapis@343f52c

Source-Link: https://github.com/googleapis/googleapis-gen/commit/a416799a37269912fa0cfde279ce50b7c3670db1
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTQxNjc5OWEzNzI2OTkxMmZhMGNmZGUyNzljZTUwYjdjMzY3MGRiMSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Aug 26, 2022
commit 27a3c43e09608dafabc0158f26bc64e0c1d01024
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,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 @@ -3338,10 +3338,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListDatabasesPagedResponse
extends AbstractPagedListResponse<
ListDatabasesRequest,
ListDatabasesResponse,
Database,
ListDatabasesPage,
ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage,
ListDatabasesFixedSizeCollection> {

public static ApiFuture<ListDatabasesPagedResponse> createAsync(
Expand Down Expand Up @@ -3391,10 +3388,7 @@ public ApiFuture<ListDatabasesPage> createPageAsync(

public static class ListDatabasesFixedSizeCollection
extends AbstractFixedSizeCollection<
ListDatabasesRequest,
ListDatabasesResponse,
Database,
ListDatabasesPage,
ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage,
ListDatabasesFixedSizeCollection> {

private ListDatabasesFixedSizeCollection(List<ListDatabasesPage> pages, int collectionSize) {
Expand All @@ -3414,10 +3408,7 @@ protected ListDatabasesFixedSizeCollection createCollection(

public static class ListBackupsPagedResponse
extends AbstractPagedListResponse<
ListBackupsRequest,
ListBackupsResponse,
Backup,
ListBackupsPage,
ListBackupsRequest, ListBackupsResponse, Backup, ListBackupsPage,
ListBackupsFixedSizeCollection> {

public static ApiFuture<ListBackupsPagedResponse> createAsync(
Expand Down Expand Up @@ -3464,10 +3455,7 @@ public ApiFuture<ListBackupsPage> createPageAsync(

public static class ListBackupsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListBackupsRequest,
ListBackupsResponse,
Backup,
ListBackupsPage,
ListBackupsRequest, ListBackupsResponse, Backup, ListBackupsPage,
ListBackupsFixedSizeCollection> {

private ListBackupsFixedSizeCollection(List<ListBackupsPage> pages, int collectionSize) {
Expand All @@ -3487,11 +3475,8 @@ protected ListBackupsFixedSizeCollection createCollection(

public static class ListDatabaseOperationsPagedResponse
extends AbstractPagedListResponse<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
Operation,
ListDatabaseOperationsPage,
ListDatabaseOperationsFixedSizeCollection> {
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse, Operation,
ListDatabaseOperationsPage, ListDatabaseOperationsFixedSizeCollection> {

public static ApiFuture<ListDatabaseOperationsPagedResponse> createAsync(
PageContext<ListDatabaseOperationsRequest, ListDatabaseOperationsResponse, Operation>
Expand All @@ -3512,9 +3497,7 @@ private ListDatabaseOperationsPagedResponse(ListDatabaseOperationsPage page) {

public static class ListDatabaseOperationsPage
extends AbstractPage<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
Operation,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse, Operation,
ListDatabaseOperationsPage> {

private ListDatabaseOperationsPage(
Expand Down Expand Up @@ -3547,11 +3530,8 @@ public ApiFuture<ListDatabaseOperationsPage> createPageAsync(

public static class ListDatabaseOperationsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
Operation,
ListDatabaseOperationsPage,
ListDatabaseOperationsFixedSizeCollection> {
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse, Operation,
ListDatabaseOperationsPage, ListDatabaseOperationsFixedSizeCollection> {

private ListDatabaseOperationsFixedSizeCollection(
List<ListDatabaseOperationsPage> pages, int collectionSize) {
Expand All @@ -3571,11 +3551,8 @@ protected ListDatabaseOperationsFixedSizeCollection createCollection(

public static class ListBackupOperationsPagedResponse
extends AbstractPagedListResponse<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
Operation,
ListBackupOperationsPage,
ListBackupOperationsFixedSizeCollection> {
ListBackupOperationsRequest, ListBackupOperationsResponse, Operation,
ListBackupOperationsPage, ListBackupOperationsFixedSizeCollection> {

public static ApiFuture<ListBackupOperationsPagedResponse> createAsync(
PageContext<ListBackupOperationsRequest, ListBackupOperationsResponse, Operation> context,
Expand All @@ -3595,9 +3572,7 @@ private ListBackupOperationsPagedResponse(ListBackupOperationsPage page) {

public static class ListBackupOperationsPage
extends AbstractPage<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
Operation,
ListBackupOperationsRequest, ListBackupOperationsResponse, Operation,
ListBackupOperationsPage> {

private ListBackupOperationsPage(
Expand Down Expand Up @@ -3627,11 +3602,8 @@ public ApiFuture<ListBackupOperationsPage> createPageAsync(

public static class ListBackupOperationsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
Operation,
ListBackupOperationsPage,
ListBackupOperationsFixedSizeCollection> {
ListBackupOperationsRequest, ListBackupOperationsResponse, Operation,
ListBackupOperationsPage, ListBackupOperationsFixedSizeCollection> {

private ListBackupOperationsFixedSizeCollection(
List<ListBackupOperationsPage> pages, int collectionSize) {
Expand All @@ -3651,10 +3623,7 @@ protected ListBackupOperationsFixedSizeCollection createCollection(

public static class ListDatabaseRolesPagedResponse
extends AbstractPagedListResponse<
ListDatabaseRolesRequest,
ListDatabaseRolesResponse,
DatabaseRole,
ListDatabaseRolesPage,
ListDatabaseRolesRequest, ListDatabaseRolesResponse, DatabaseRole, ListDatabaseRolesPage,
ListDatabaseRolesFixedSizeCollection> {

public static ApiFuture<ListDatabaseRolesPagedResponse> createAsync(
Expand All @@ -3675,9 +3644,7 @@ private ListDatabaseRolesPagedResponse(ListDatabaseRolesPage page) {

public static class ListDatabaseRolesPage
extends AbstractPage<
ListDatabaseRolesRequest,
ListDatabaseRolesResponse,
DatabaseRole,
ListDatabaseRolesRequest, ListDatabaseRolesResponse, DatabaseRole,
ListDatabaseRolesPage> {

private ListDatabaseRolesPage(
Expand Down Expand Up @@ -3707,10 +3674,7 @@ public ApiFuture<ListDatabaseRolesPage> createPageAsync(

public static class ListDatabaseRolesFixedSizeCollection
extends AbstractFixedSizeCollection<
ListDatabaseRolesRequest,
ListDatabaseRolesResponse,
DatabaseRole,
ListDatabaseRolesPage,
ListDatabaseRolesRequest, ListDatabaseRolesResponse, DatabaseRole, ListDatabaseRolesPage,
ListDatabaseRolesFixedSizeCollection> {

private ListDatabaseRolesFixedSizeCollection(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
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.spanner.admin.database.v1.stub.DatabaseAdminStubSettings;
Expand Down Expand Up @@ -83,9 +84,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (spanner.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 (spanner.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 @@ -227,17 +228,15 @@ public UnaryCallSettings<RestoreDatabaseRequest, Operation> restoreDatabaseSetti

/** Returns the object with the settings used for calls to listDatabaseOperations. */
public PagedCallSettings<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
listDatabaseOperationsSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).listDatabaseOperationsSettings();
}

/** Returns the object with the settings used for calls to listBackupOperations. */
public PagedCallSettings<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).listBackupOperationsSettings();
Expand Down Expand Up @@ -484,17 +483,15 @@ public UnaryCallSettings.Builder<RestoreDatabaseRequest, Operation> restoreDatab

/** Returns the builder for the settings used for calls to listDatabaseOperations. */
public PagedCallSettings.Builder<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
listDatabaseOperationsSettings() {
return getStubSettingsBuilder().listDatabaseOperationsSettings();
}

/** Returns the builder for the settings used for calls to listBackupOperations. */
public PagedCallSettings.Builder<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings() {
return getStubSettingsBuilder().listBackupOperationsSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (spanner.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 (spanner.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 @@ -172,13 +172,11 @@ public class DatabaseAdminStubSettings extends StubSettings<DatabaseAdminStubSet
private final OperationCallSettings<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
restoreDatabaseOperationSettings;
private final PagedCallSettings<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
listDatabaseOperationsSettings;
private final PagedCallSettings<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings;
private final PagedCallSettings<
Expand Down Expand Up @@ -414,13 +412,11 @@ public ApiFuture<ListBackupsPagedResponse> getFuturePagedResponse(
};

private static final PagedListResponseFactory<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
LIST_DATABASE_OPERATIONS_PAGE_STR_FACT =
new PagedListResponseFactory<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>() {
@Override
public ApiFuture<ListDatabaseOperationsPagedResponse> getFuturePagedResponse(
Expand All @@ -438,13 +434,11 @@ public ApiFuture<ListDatabaseOperationsPagedResponse> getFuturePagedResponse(
};

private static final PagedListResponseFactory<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
LIST_BACKUP_OPERATIONS_PAGE_STR_FACT =
new PagedListResponseFactory<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>() {
@Override
public ApiFuture<ListBackupOperationsPagedResponse> getFuturePagedResponse(
Expand All @@ -464,8 +458,7 @@ public ApiFuture<ListBackupOperationsPagedResponse> getFuturePagedResponse(
ListDatabaseRolesRequest, ListDatabaseRolesResponse, ListDatabaseRolesPagedResponse>
LIST_DATABASE_ROLES_PAGE_STR_FACT =
new PagedListResponseFactory<
ListDatabaseRolesRequest,
ListDatabaseRolesResponse,
ListDatabaseRolesRequest, ListDatabaseRolesResponse,
ListDatabaseRolesPagedResponse>() {
@Override
public ApiFuture<ListDatabaseRolesPagedResponse> getFuturePagedResponse(
Expand Down Expand Up @@ -596,17 +589,15 @@ public UnaryCallSettings<RestoreDatabaseRequest, Operation> restoreDatabaseSetti

/** Returns the object with the settings used for calls to listDatabaseOperations. */
public PagedCallSettings<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
listDatabaseOperationsSettings() {
return listDatabaseOperationsSettings;
}

/** Returns the object with the settings used for calls to listBackupOperations. */
public PagedCallSettings<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings() {
return listBackupOperationsSettings;
Expand Down Expand Up @@ -794,13 +785,11 @@ public static class Builder extends StubSettings.Builder<DatabaseAdminStubSettin
RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
restoreDatabaseOperationSettings;
private final PagedCallSettings.Builder<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
listDatabaseOperationsSettings;
private final PagedCallSettings.Builder<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings;
private final PagedCallSettings.Builder<
Expand Down Expand Up @@ -1373,17 +1362,15 @@ public UnaryCallSettings.Builder<RestoreDatabaseRequest, Operation> restoreDatab

/** Returns the builder for the settings used for calls to listDatabaseOperations. */
public PagedCallSettings.Builder<
ListDatabaseOperationsRequest,
ListDatabaseOperationsResponse,
ListDatabaseOperationsRequest, ListDatabaseOperationsResponse,
ListDatabaseOperationsPagedResponse>
listDatabaseOperationsSettings() {
return listDatabaseOperationsSettings;
}

/** Returns the builder for the settings used for calls to listBackupOperations. */
public PagedCallSettings.Builder<
ListBackupOperationsRequest,
ListBackupOperationsResponse,
ListBackupOperationsRequest, ListBackupOperationsResponse,
ListBackupOperationsPagedResponse>
listBackupOperationsSettings() {
return listBackupOperationsSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
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 @@ -34,6 +34,7 @@
import com.google.api.gax.httpjson.ProtoMessageResponseParser;
import com.google.api.gax.httpjson.ProtoRestSerializer;
import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub;
import com.google.api.gax.longrunning.OperationSnapshot;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
Expand Down
Loading