Skip to content

Commit

Permalink
feat: Populate compute proto with extended_operations annotations (#563)
Browse files Browse the repository at this point in the history
* feat: Populate compute proto with extended_operations annotations

Also update WORKSPACE file to match the latest from googleapis/googleapis repo

* regenerate with the newest disco-to-proto3-converter

add full annotation name (with package) to extended_operations
do not apply polling_operation_method to Wait() methods of the pollin service

Source-Author: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com>
Source-Date: Tue Oct 5 19:24:19 2021 -0700
Source-Repo: googleapis/googleapis-discovery
Source-Sha: 34478e2969042ed837d33684360f1ee3be7d2f74
Source-Link: googleapis/googleapis-discovery@34478e2

Co-authored-by: Neenu Shaji <Neenu1995@users.noreply.github.com>
  • Loading branch information
yoshi-automation and Neenu1995 committed Oct 21, 2021
1 parent 5a64dbe commit 9311680
Show file tree
Hide file tree
Showing 979 changed files with 36,121 additions and 34,721 deletions.
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.compute.v1;

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 @@ -537,12 +536,7 @@ public static ApiFuture<AggregatedListPagedResponse> createAsync(
AggregatedListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<AggregatedListPage, AggregatedListPagedResponse>() {
@Override
public AggregatedListPagedResponse apply(AggregatedListPage input) {
return new AggregatedListPagedResponse(input);
}
},
input -> new AggregatedListPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -632,14 +626,7 @@ public static ApiFuture<ListPagedResponse> createAsync(
ApiFuture<ListPage> futurePage =
ListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPage, ListPagedResponse>() {
@Override
public ListPagedResponse apply(ListPage input) {
return new ListPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor());
}

private ListPagedResponse(ListPage page) {
Expand Down
Expand Up @@ -176,14 +176,13 @@ public AcceleratorTypesStubSettings.Builder getStubSettingsBuilder() {
return ((AcceleratorTypesStubSettings.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
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.compute.v1;

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 @@ -689,12 +688,7 @@ public static ApiFuture<AggregatedListPagedResponse> createAsync(
AggregatedListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<AggregatedListPage, AggregatedListPagedResponse>() {
@Override
public AggregatedListPagedResponse apply(AggregatedListPage input) {
return new AggregatedListPagedResponse(input);
}
},
input -> new AggregatedListPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -780,14 +774,7 @@ public static ApiFuture<ListPagedResponse> createAsync(
ApiFuture<ListPage> futurePage =
ListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPage, ListPagedResponse>() {
@Override
public ListPagedResponse apply(ListPage input) {
return new ListPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor());
}

private ListPagedResponse(ListPage page) {
Expand Down
Expand Up @@ -181,14 +181,13 @@ public AddressesStubSettings.Builder getStubSettingsBuilder() {
return ((AddressesStubSettings.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
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.compute.v1;

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 @@ -864,12 +863,7 @@ public static ApiFuture<AggregatedListPagedResponse> createAsync(
AggregatedListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<AggregatedListPage, AggregatedListPagedResponse>() {
@Override
public AggregatedListPagedResponse apply(AggregatedListPage input) {
return new AggregatedListPagedResponse(input);
}
},
input -> new AggregatedListPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -955,14 +949,7 @@ public static ApiFuture<ListPagedResponse> createAsync(
ApiFuture<ListPage> futurePage =
ListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPage, ListPagedResponse>() {
@Override
public ListPagedResponse apply(ListPage input) {
return new ListPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor());
}

private ListPagedResponse(ListPage page) {
Expand Down
Expand Up @@ -192,14 +192,13 @@ public AutoscalersStubSettings.Builder getStubSettingsBuilder() {
return ((AutoscalersStubSettings.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
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.compute.v1;

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 @@ -885,14 +884,7 @@ public static ApiFuture<ListPagedResponse> createAsync(
ApiFuture<ListPage> futurePage =
ListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPage, ListPagedResponse>() {
@Override
public ListPagedResponse apply(ListPage input) {
return new ListPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor());
}

private ListPagedResponse(ListPage page) {
Expand Down
Expand Up @@ -198,14 +198,13 @@ public BackendBucketsStubSettings.Builder getStubSettingsBuilder() {
return ((BackendBucketsStubSettings.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
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.compute.v1;

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 @@ -1223,12 +1222,7 @@ public static ApiFuture<AggregatedListPagedResponse> createAsync(
AggregatedListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<AggregatedListPage, AggregatedListPagedResponse>() {
@Override
public AggregatedListPagedResponse apply(AggregatedListPage input) {
return new AggregatedListPagedResponse(input);
}
},
input -> new AggregatedListPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -1318,14 +1312,7 @@ public static ApiFuture<ListPagedResponse> createAsync(
ApiFuture<ListPage> futurePage =
ListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPage, ListPagedResponse>() {
@Override
public ListPagedResponse apply(ListPage input) {
return new ListPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor());
}

private ListPagedResponse(ListPage page) {
Expand Down
Expand Up @@ -220,14 +220,13 @@ public BackendServicesStubSettings.Builder getStubSettingsBuilder() {
return ((BackendServicesStubSettings.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
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.compute.v1;

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 @@ -530,12 +529,7 @@ public static ApiFuture<AggregatedListPagedResponse> createAsync(
AggregatedListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<AggregatedListPage, AggregatedListPagedResponse>() {
@Override
public AggregatedListPagedResponse apply(AggregatedListPage input) {
return new AggregatedListPagedResponse(input);
}
},
input -> new AggregatedListPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -621,14 +615,7 @@ public static ApiFuture<ListPagedResponse> createAsync(
ApiFuture<ListPage> futurePage =
ListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPage, ListPagedResponse>() {
@Override
public ListPagedResponse apply(ListPage input) {
return new ListPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor());
}

private ListPagedResponse(ListPage page) {
Expand Down
Expand Up @@ -171,14 +171,13 @@ public DiskTypesStubSettings.Builder getStubSettingsBuilder() {
return ((DiskTypesStubSettings.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
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.compute.v1;

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 @@ -1434,12 +1433,7 @@ public static ApiFuture<AggregatedListPagedResponse> createAsync(
AggregatedListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<AggregatedListPage, AggregatedListPagedResponse>() {
@Override
public AggregatedListPagedResponse apply(AggregatedListPage input) {
return new AggregatedListPagedResponse(input);
}
},
input -> new AggregatedListPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -1518,14 +1512,7 @@ public static ApiFuture<ListPagedResponse> createAsync(
ApiFuture<ListPage> futurePage =
ListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPage, ListPagedResponse>() {
@Override
public ListPagedResponse apply(ListPage input) {
return new ListPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor());
}

private ListPagedResponse(ListPage page) {
Expand Down
Expand Up @@ -224,14 +224,13 @@ public DisksStubSettings.Builder getStubSettingsBuilder() {
return ((DisksStubSettings.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
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.compute.v1;

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 @@ -720,14 +719,7 @@ public static ApiFuture<ListPagedResponse> createAsync(
ApiFuture<ListPage> futurePage =
ListPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPage, ListPagedResponse>() {
@Override
public ListPagedResponse apply(ListPage input) {
return new ListPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor());
}

private ListPagedResponse(ListPage page) {
Expand Down

0 comments on commit 9311680

Please sign in to comment.