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

feat!: release gapic-generator-java v2.0.0 #148

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.channel.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 @@ -4328,12 +4327,7 @@ public static ApiFuture<ListCustomersPagedResponse> createAsync(
ListCustomersPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListCustomersPage, ListCustomersPagedResponse>() {
@Override
public ListCustomersPagedResponse apply(ListCustomersPage input) {
return new ListCustomersPagedResponse(input);
}
},
input -> new ListCustomersPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -4409,12 +4403,7 @@ public static ApiFuture<ListEntitlementsPagedResponse> createAsync(
ListEntitlementsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListEntitlementsPage, ListEntitlementsPagedResponse>() {
@Override
public ListEntitlementsPagedResponse apply(ListEntitlementsPage input) {
return new ListEntitlementsPagedResponse(input);
}
},
input -> new ListEntitlementsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -4492,12 +4481,7 @@ public static ApiFuture<ListTransferableSkusPagedResponse> createAsync(
ListTransferableSkusPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListTransferableSkusPage, ListTransferableSkusPagedResponse>() {
@Override
public ListTransferableSkusPagedResponse apply(ListTransferableSkusPage input) {
return new ListTransferableSkusPagedResponse(input);
}
},
input -> new ListTransferableSkusPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -4582,12 +4566,7 @@ public static ApiFuture<ListTransferableOffersPagedResponse> createAsync(
ListTransferableOffersPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListTransferableOffersPage, ListTransferableOffersPagedResponse>() {
@Override
public ListTransferableOffersPagedResponse apply(ListTransferableOffersPage input) {
return new ListTransferableOffersPagedResponse(input);
}
},
input -> new ListTransferableOffersPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -4675,12 +4654,7 @@ public static ApiFuture<ListChannelPartnerLinksPagedResponse> createAsync(
ListChannelPartnerLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListChannelPartnerLinksPage, ListChannelPartnerLinksPagedResponse>() {
@Override
public ListChannelPartnerLinksPagedResponse apply(ListChannelPartnerLinksPage input) {
return new ListChannelPartnerLinksPagedResponse(input);
}
},
input -> new ListChannelPartnerLinksPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -4766,12 +4740,7 @@ public static ApiFuture<ListProductsPagedResponse> createAsync(
ListProductsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListProductsPage, ListProductsPagedResponse>() {
@Override
public ListProductsPagedResponse apply(ListProductsPage input) {
return new ListProductsPagedResponse(input);
}
},
input -> new ListProductsPagedResponse(input),
MoreExecutors.directExecutor());
}

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

private ListSkusPagedResponse(ListSkusPage page) {
Expand Down Expand Up @@ -4915,14 +4877,7 @@ public static ApiFuture<ListOffersPagedResponse> createAsync(
ApiFuture<ListOffersPage> futurePage =
ListOffersPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListOffersPage, ListOffersPagedResponse>() {
@Override
public ListOffersPagedResponse apply(ListOffersPage input) {
return new ListOffersPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListOffersPagedResponse(input), MoreExecutors.directExecutor());
}

private ListOffersPagedResponse(ListOffersPage page) {
Expand Down Expand Up @@ -4997,12 +4952,7 @@ public static ApiFuture<ListPurchasableSkusPagedResponse> createAsync(
ListPurchasableSkusPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPurchasableSkusPage, ListPurchasableSkusPagedResponse>() {
@Override
public ListPurchasableSkusPagedResponse apply(ListPurchasableSkusPage input) {
return new ListPurchasableSkusPagedResponse(input);
}
},
input -> new ListPurchasableSkusPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -5086,12 +5036,7 @@ public static ApiFuture<ListPurchasableOffersPagedResponse> createAsync(
ListPurchasableOffersPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPurchasableOffersPage, ListPurchasableOffersPagedResponse>() {
@Override
public ListPurchasableOffersPagedResponse apply(ListPurchasableOffersPage input) {
return new ListPurchasableOffersPagedResponse(input);
}
},
input -> new ListPurchasableOffersPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -5174,12 +5119,7 @@ public static ApiFuture<ListSubscribersPagedResponse> createAsync(
ListSubscribersPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListSubscribersPage, ListSubscribersPagedResponse>() {
@Override
public ListSubscribersPagedResponse apply(ListSubscribersPage input) {
return new ListSubscribersPagedResponse(input);
}
},
input -> new ListSubscribersPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -453,14 +453,13 @@ public CloudChannelServiceStubSettings.Builder getStubSettingsBuilder() {
return ((CloudChannelServiceStubSettings.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 @@ -2129,14 +2129,13 @@ private static Builder initDefaults(Builder builder) {
return builder;
}

// 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(unaryMethodSettingsBuilders, settingsUpdater);
return this;
}
Expand Down