Skip to content

Commit

Permalink
feat: [cloudchannel] Launch QueryEligibleBillingAccounts API (#9806)
Browse files Browse the repository at this point in the history
* feat: Launch QueryEligibleBillingAccounts API

PiperOrigin-RevId: 563475102

Source-Link: googleapis/googleapis@6a8d8a1

Source-Link: https://github.com/googleapis/googleapis-gen/commit/d88d05733b11d7f6d2d96ddae26c3c8a8dd07234
Copy-Tag: eyJwIjoiamF2YS1jaGFubmVsLy5Pd2xCb3QueWFtbCIsImgiOiJkODhkMDU3MzNiMTFkN2Y2ZDJkOTZkZGFlMjZjM2M4YThkZDA3MjM0In0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Sep 7, 2023
1 parent 52ef3cc commit cb5f17e
Show file tree
Hide file tree
Showing 54 changed files with 9,265 additions and 819 deletions.
4 changes: 2 additions & 2 deletions java-channel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.19.0</version>
<version>26.22.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.25.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.27.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,14 @@ public UnaryCallSettings<LookupOfferRequest, Offer> lookupOfferSettings() {
return ((CloudChannelServiceStubSettings) getStubSettings()).listPurchasableOffersSettings();
}

/** Returns the object with the settings used for calls to queryEligibleBillingAccounts. */
public UnaryCallSettings<
QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
queryEligibleBillingAccountsSettings() {
return ((CloudChannelServiceStubSettings) getStubSettings())
.queryEligibleBillingAccountsSettings();
}

/** Returns the object with the settings used for calls to registerSubscriber. */
public UnaryCallSettings<RegisterSubscriberRequest, RegisterSubscriberResponse>
registerSubscriberSettings() {
Expand Down Expand Up @@ -966,6 +974,13 @@ public UnaryCallSettings.Builder<LookupOfferRequest, Offer> lookupOfferSettings(
return getStubSettingsBuilder().listPurchasableOffersSettings();
}

/** Returns the builder for the settings used for calls to queryEligibleBillingAccounts. */
public UnaryCallSettings.Builder<
QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
queryEligibleBillingAccountsSettings() {
return getStubSettingsBuilder().queryEligibleBillingAccountsSettings();
}

/** Returns the builder for the settings used for calls to registerSubscriber. */
public UnaryCallSettings.Builder<RegisterSubscriberRequest, RegisterSubscriberResponse>
registerSubscriberSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@
"ProvisionCloudIdentity": {
"methods": ["provisionCloudIdentityAsync", "provisionCloudIdentityOperationCallable", "provisionCloudIdentityCallable"]
},
"QueryEligibleBillingAccounts": {
"methods": ["queryEligibleBillingAccounts", "queryEligibleBillingAccountsCallable"]
},
"RegisterSubscriber": {
"methods": ["registerSubscriber", "registerSubscriberCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
import com.google.cloud.channel.v1.Offer;
import com.google.cloud.channel.v1.OperationMetadata;
import com.google.cloud.channel.v1.ProvisionCloudIdentityRequest;
import com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest;
import com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse;
import com.google.cloud.channel.v1.RegisterSubscriberRequest;
import com.google.cloud.channel.v1.RegisterSubscriberResponse;
import com.google.cloud.channel.v1.StartPaidServiceRequest;
Expand Down Expand Up @@ -485,6 +487,12 @@ public UnaryCallable<ListOffersRequest, ListOffersResponse> listOffersCallable()
throw new UnsupportedOperationException("Not implemented: listPurchasableOffersCallable()");
}

public UnaryCallable<QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
queryEligibleBillingAccountsCallable() {
throw new UnsupportedOperationException(
"Not implemented: queryEligibleBillingAccountsCallable()");
}

public UnaryCallable<RegisterSubscriberRequest, RegisterSubscriberResponse>
registerSubscriberCallable() {
throw new UnsupportedOperationException("Not implemented: registerSubscriberCallable()");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@
import com.google.cloud.channel.v1.ProvisionCloudIdentityRequest;
import com.google.cloud.channel.v1.PurchasableOffer;
import com.google.cloud.channel.v1.PurchasableSku;
import com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest;
import com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse;
import com.google.cloud.channel.v1.RegisterSubscriberRequest;
import com.google.cloud.channel.v1.RegisterSubscriberResponse;
import com.google.cloud.channel.v1.Sku;
Expand Down Expand Up @@ -329,6 +331,9 @@ public class CloudChannelServiceStubSettings extends StubSettings<CloudChannelSe
ListPurchasableOffersResponse,
ListPurchasableOffersPagedResponse>
listPurchasableOffersSettings;
private final UnaryCallSettings<
QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
queryEligibleBillingAccountsSettings;
private final UnaryCallSettings<RegisterSubscriberRequest, RegisterSubscriberResponse>
registerSubscriberSettings;
private final UnaryCallSettings<UnregisterSubscriberRequest, UnregisterSubscriberResponse>
Expand Down Expand Up @@ -1701,6 +1706,13 @@ public UnaryCallSettings<LookupOfferRequest, Offer> lookupOfferSettings() {
return listPurchasableOffersSettings;
}

/** Returns the object with the settings used for calls to queryEligibleBillingAccounts. */
public UnaryCallSettings<
QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
queryEligibleBillingAccountsSettings() {
return queryEligibleBillingAccountsSettings;
}

/** Returns the object with the settings used for calls to registerSubscriber. */
public UnaryCallSettings<RegisterSubscriberRequest, RegisterSubscriberResponse>
registerSubscriberSettings() {
Expand Down Expand Up @@ -1910,6 +1922,8 @@ protected CloudChannelServiceStubSettings(Builder settingsBuilder) throws IOExce
listOffersSettings = settingsBuilder.listOffersSettings().build();
listPurchasableSkusSettings = settingsBuilder.listPurchasableSkusSettings().build();
listPurchasableOffersSettings = settingsBuilder.listPurchasableOffersSettings().build();
queryEligibleBillingAccountsSettings =
settingsBuilder.queryEligibleBillingAccountsSettings().build();
registerSubscriberSettings = settingsBuilder.registerSubscriberSettings().build();
unregisterSubscriberSettings = settingsBuilder.unregisterSubscriberSettings().build();
listSubscribersSettings = settingsBuilder.listSubscribersSettings().build();
Expand Down Expand Up @@ -2069,6 +2083,9 @@ public static class Builder
ListPurchasableOffersResponse,
ListPurchasableOffersPagedResponse>
listPurchasableOffersSettings;
private final UnaryCallSettings.Builder<
QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
queryEligibleBillingAccountsSettings;
private final UnaryCallSettings.Builder<RegisterSubscriberRequest, RegisterSubscriberResponse>
registerSubscriberSettings;
private final UnaryCallSettings.Builder<
Expand Down Expand Up @@ -2193,6 +2210,7 @@ protected Builder(ClientContext clientContext) {
PagedCallSettings.newBuilder(LIST_PURCHASABLE_SKUS_PAGE_STR_FACT);
listPurchasableOffersSettings =
PagedCallSettings.newBuilder(LIST_PURCHASABLE_OFFERS_PAGE_STR_FACT);
queryEligibleBillingAccountsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
registerSubscriberSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
unregisterSubscriberSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listSubscribersSettings = PagedCallSettings.newBuilder(LIST_SUBSCRIBERS_PAGE_STR_FACT);
Expand Down Expand Up @@ -2245,6 +2263,7 @@ protected Builder(ClientContext clientContext) {
listOffersSettings,
listPurchasableSkusSettings,
listPurchasableOffersSettings,
queryEligibleBillingAccountsSettings,
registerSubscriberSettings,
unregisterSubscriberSettings,
listSubscribersSettings,
Expand Down Expand Up @@ -2327,6 +2346,8 @@ protected Builder(CloudChannelServiceStubSettings settings) {
listOffersSettings = settings.listOffersSettings.toBuilder();
listPurchasableSkusSettings = settings.listPurchasableSkusSettings.toBuilder();
listPurchasableOffersSettings = settings.listPurchasableOffersSettings.toBuilder();
queryEligibleBillingAccountsSettings =
settings.queryEligibleBillingAccountsSettings.toBuilder();
registerSubscriberSettings = settings.registerSubscriberSettings.toBuilder();
unregisterSubscriberSettings = settings.unregisterSubscriberSettings.toBuilder();
listSubscribersSettings = settings.listSubscribersSettings.toBuilder();
Expand Down Expand Up @@ -2378,6 +2399,7 @@ protected Builder(CloudChannelServiceStubSettings settings) {
listOffersSettings,
listPurchasableSkusSettings,
listPurchasableOffersSettings,
queryEligibleBillingAccountsSettings,
registerSubscriberSettings,
unregisterSubscriberSettings,
listSubscribersSettings,
Expand Down Expand Up @@ -2631,6 +2653,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));

builder
.queryEligibleBillingAccountsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));

builder
.registerSubscriberSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
Expand Down Expand Up @@ -3321,6 +3348,13 @@ public UnaryCallSettings.Builder<LookupOfferRequest, Offer> lookupOfferSettings(
return listPurchasableOffersSettings;
}

/** Returns the builder for the settings used for calls to queryEligibleBillingAccounts. */
public UnaryCallSettings.Builder<
QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
queryEligibleBillingAccountsSettings() {
return queryEligibleBillingAccountsSettings;
}

/** Returns the builder for the settings used for calls to registerSubscriber. */
public UnaryCallSettings.Builder<RegisterSubscriberRequest, RegisterSubscriberResponse>
registerSubscriberSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
import com.google.cloud.channel.v1.Offer;
import com.google.cloud.channel.v1.OperationMetadata;
import com.google.cloud.channel.v1.ProvisionCloudIdentityRequest;
import com.google.cloud.channel.v1.QueryEligibleBillingAccountsRequest;
import com.google.cloud.channel.v1.QueryEligibleBillingAccountsResponse;
import com.google.cloud.channel.v1.RegisterSubscriberRequest;
import com.google.cloud.channel.v1.RegisterSubscriberResponse;
import com.google.cloud.channel.v1.StartPaidServiceRequest;
Expand Down Expand Up @@ -640,6 +642,21 @@ public class GrpcCloudChannelServiceStub extends CloudChannelServiceStub {
ProtoUtils.marshaller(ListPurchasableOffersResponse.getDefaultInstance()))
.build();

private static final MethodDescriptor<
QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
queryEligibleBillingAccountsMethodDescriptor =
MethodDescriptor
.<QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.channel.v1.CloudChannelService/QueryEligibleBillingAccounts")
.setRequestMarshaller(
ProtoUtils.marshaller(QueryEligibleBillingAccountsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(QueryEligibleBillingAccountsResponse.getDefaultInstance()))
.build();

private static final MethodDescriptor<RegisterSubscriberRequest, RegisterSubscriberResponse>
registerSubscriberMethodDescriptor =
MethodDescriptor.<RegisterSubscriberRequest, RegisterSubscriberResponse>newBuilder()
Expand Down Expand Up @@ -814,6 +831,9 @@ public class GrpcCloudChannelServiceStub extends CloudChannelServiceStub {
listPurchasableOffersCallable;
private final UnaryCallable<ListPurchasableOffersRequest, ListPurchasableOffersPagedResponse>
listPurchasableOffersPagedCallable;
private final UnaryCallable<
QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
queryEligibleBillingAccountsCallable;
private final UnaryCallable<RegisterSubscriberRequest, RegisterSubscriberResponse>
registerSubscriberCallable;
private final UnaryCallable<UnregisterSubscriberRequest, UnregisterSubscriberResponse>
Expand Down Expand Up @@ -1355,6 +1375,19 @@ protected GrpcCloudChannelServiceStub(
return builder.build();
})
.build();
GrpcCallSettings<QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
queryEligibleBillingAccountsTransportSettings =
GrpcCallSettings
.<QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
newBuilder()
.setMethodDescriptor(queryEligibleBillingAccountsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("customer", String.valueOf(request.getCustomer()));
return builder.build();
})
.build();
GrpcCallSettings<RegisterSubscriberRequest, RegisterSubscriberResponse>
registerSubscriberTransportSettings =
GrpcCallSettings.<RegisterSubscriberRequest, RegisterSubscriberResponse>newBuilder()
Expand Down Expand Up @@ -1713,6 +1746,11 @@ protected GrpcCloudChannelServiceStub(
listPurchasableOffersTransportSettings,
settings.listPurchasableOffersSettings(),
clientContext);
this.queryEligibleBillingAccountsCallable =
callableFactory.createUnaryCallable(
queryEligibleBillingAccountsTransportSettings,
settings.queryEligibleBillingAccountsSettings(),
clientContext);
this.registerSubscriberCallable =
callableFactory.createUnaryCallable(
registerSubscriberTransportSettings,
Expand Down Expand Up @@ -2143,6 +2181,12 @@ public UnaryCallable<ListOffersRequest, ListOffersPagedResponse> listOffersPaged
return listPurchasableOffersPagedCallable;
}

@Override
public UnaryCallable<QueryEligibleBillingAccountsRequest, QueryEligibleBillingAccountsResponse>
queryEligibleBillingAccountsCallable() {
return queryEligibleBillingAccountsCallable;
}

@Override
public UnaryCallable<RegisterSubscriberRequest, RegisterSubscriberResponse>
registerSubscriberCallable() {
Expand Down
Loading

0 comments on commit cb5f17e

Please sign in to comment.