From a7cc927e7b18a16f6bd3e35044dedbe4922fffa7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 14 Jun 2021 09:28:03 -0700 Subject: [PATCH] feat: Add/Update API definitions for Cloud Channel API (#112) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/80dfe4c9-7eb0-4ba3-b23c-eb532cbee786/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 378177991 Source-Link: https://github.com/googleapis/googleapis/commit/97d42c651f42bc3173b39ac8a9f97ea1d6b1196c feat: Update descriptions of APIs feat: Add additional_bindings to HTTP annotations of Customer related APIs (list/create/get/update/delete) feat: Add a new LookupOffer RPC and LookupOfferRequest proto feat: Add a new enum value LICENSE_CAP_CHANGED to enum EntitlementEvent.Type --- .../channel/v1/CloudChannelServiceClient.java | 95 ++- .../v1/CloudChannelServiceSettings.java | 10 + .../cloud/channel/v1/gapic_metadata.json | 3 + .../v1/stub/CloudChannelServiceStub.java | 6 + .../stub/CloudChannelServiceStubSettings.java | 23 + .../v1/stub/GrpcCloudChannelServiceStub.java | 32 + .../v1/CloudChannelServiceClientTest.java | 54 ++ .../v1/MockCloudChannelServiceImpl.java | 20 + .../channel/v1/CloudChannelServiceGrpc.java | 183 ++++- .../google/cloud/channel/v1/ContactInfo.java | 133 ++-- .../channel/v1/ContactInfoOrBuilder.java | 38 +- .../com/google/cloud/channel/v1/Customer.java | 282 ++++---- .../cloud/channel/v1/CustomerOrBuilder.java | 75 +- .../cloud/channel/v1/EntitlementEvent.java | 22 + .../cloud/channel/v1/LookupOfferRequest.java | 662 ++++++++++++++++++ .../v1/LookupOfferRequestOrBuilder.java | 58 ++ .../google/cloud/channel/v1/ServiceProto.java | 528 +++++++------- .../channel/v1/SubscriberEventProto.java | 21 +- .../google/cloud/channel/v1/customers.proto | 50 +- .../google/cloud/channel/v1/service.proto | 54 +- .../cloud/channel/v1/subscriber_event.proto | 3 + synth.metadata | 8 +- 22 files changed, 1742 insertions(+), 618 deletions(-) create mode 100644 proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/LookupOfferRequest.java create mode 100644 proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/LookupOfferRequestOrBuilder.java diff --git a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java index ad720298..0df21eb4 100644 --- a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java +++ b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java @@ -306,7 +306,7 @@ public final UnaryCallable listCust // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a requested [Customer][google.cloud.channel.v1.Customer] resource. + * Returns the requested [Customer][google.cloud.channel.v1.Customer] resource. * *

Possible error codes: * @@ -341,7 +341,7 @@ public final Customer getCustomer(CustomerName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a requested [Customer][google.cloud.channel.v1.Customer] resource. + * Returns the requested [Customer][google.cloud.channel.v1.Customer] resource. * *

Possible error codes: * @@ -375,7 +375,7 @@ public final Customer getCustomer(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a requested [Customer][google.cloud.channel.v1.Customer] resource. + * Returns the requested [Customer][google.cloud.channel.v1.Customer] resource. * *

Possible error codes: * @@ -410,7 +410,7 @@ public final Customer getCustomer(GetCustomerRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a requested [Customer][google.cloud.channel.v1.Customer] resource. + * Returns the requested [Customer][google.cloud.channel.v1.Customer] resource. * *

Possible error codes: * @@ -679,7 +679,7 @@ public final UnaryCallable updateCustomerCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently and irreversibly. + * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently. * *

Possible error codes: * @@ -711,7 +711,7 @@ public final void deleteCustomer(CustomerName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently and irreversibly. + * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently. * *

Possible error codes: * @@ -742,7 +742,7 @@ public final void deleteCustomer(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently and irreversibly. + * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently. * *

Possible error codes: * @@ -775,7 +775,7 @@ public final void deleteCustomer(DeleteCustomerRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently and irreversibly. + * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently. * *

Possible error codes: * @@ -1361,7 +1361,7 @@ public final ListTransferableOffersPagedResponse listTransferableOffers( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a requested [Entitlement][google.cloud.channel.v1.Entitlement] resource. + * Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource. * *

Possible error codes: * @@ -1394,7 +1394,7 @@ public final Entitlement getEntitlement(GetEntitlementRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a requested [Entitlement][google.cloud.channel.v1.Entitlement] resource. + * Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource. * *

Possible error codes: * @@ -3064,8 +3064,8 @@ public final ListChannelPartnerLinksPagedResponse listChannelPartnerLinks( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. - * You must be a distributor to call this method. + * Returns the requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] + * resource. You must be a distributor to call this method. * *

Possible error codes: * @@ -3101,8 +3101,8 @@ public final ChannelPartnerLink getChannelPartnerLink(GetChannelPartnerLinkReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. - * You must be a distributor to call this method. + * Returns the requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] + * resource. You must be a distributor to call this method. * *

Possible error codes: * @@ -3317,6 +3317,73 @@ public final ChannelPartnerLink updateChannelPartnerLink( return stub.updateChannelPartnerLinkCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested [Offer][google.cloud.channel.v1.Offer] resource. + * + *

Possible error codes: + * + *

+ * + *

Return value: The [Offer][google.cloud.channel.v1.Offer] resource. + * + *

Sample code: + * + *

{@code
+   * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
+   *   LookupOfferRequest request =
+   *       LookupOfferRequest.newBuilder()
+   *           .setEntitlement(
+   *               EntitlementName.of("[ACCOUNT]", "[CUSTOMER]", "[ENTITLEMENT]").toString())
+   *           .build();
+   *   Offer response = cloudChannelServiceClient.lookupOffer(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Offer lookupOffer(LookupOfferRequest request) { + return lookupOfferCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested [Offer][google.cloud.channel.v1.Offer] resource. + * + *

Possible error codes: + * + *

+ * + *

Return value: The [Offer][google.cloud.channel.v1.Offer] resource. + * + *

Sample code: + * + *

{@code
+   * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
+   *   LookupOfferRequest request =
+   *       LookupOfferRequest.newBuilder()
+   *           .setEntitlement(
+   *               EntitlementName.of("[ACCOUNT]", "[CUSTOMER]", "[ENTITLEMENT]").toString())
+   *           .build();
+   *   ApiFuture future = cloudChannelServiceClient.lookupOfferCallable().futureCall(request);
+   *   // Do something.
+   *   Offer response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable lookupOfferCallable() { + return stub.lookupOfferCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the Products the reseller is authorized to sell. diff --git a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java index 31005785..c7312a96 100644 --- a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java +++ b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java @@ -310,6 +310,11 @@ public UnaryCallSettings transferEntitle return ((CloudChannelServiceStubSettings) getStubSettings()).updateChannelPartnerLinkSettings(); } + /** Returns the object with the settings used for calls to lookupOffer. */ + public UnaryCallSettings lookupOfferSettings() { + return ((CloudChannelServiceStubSettings) getStubSettings()).lookupOfferSettings(); + } + /** Returns the object with the settings used for calls to listProducts. */ public PagedCallSettings listProductsSettings() { @@ -686,6 +691,11 @@ public UnaryCallSettings.Builder changeOfferSetti return getStubSettingsBuilder().updateChannelPartnerLinkSettings(); } + /** Returns the builder for the settings used for calls to lookupOffer. */ + public UnaryCallSettings.Builder lookupOfferSettings() { + return getStubSettingsBuilder().lookupOfferSettings(); + } + /** Returns the builder for the settings used for calls to listProducts. */ public PagedCallSettings.Builder< ListProductsRequest, ListProductsResponse, ListProductsPagedResponse> diff --git a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/gapic_metadata.json b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/gapic_metadata.json index 40f970c3..e7b29970 100644 --- a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/gapic_metadata.json +++ b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/gapic_metadata.json @@ -82,6 +82,9 @@ "ListTransferableSkus": { "methods": ["listTransferableSkus", "listTransferableSkusPagedCallable", "listTransferableSkusCallable"] }, + "LookupOffer": { + "methods": ["lookupOffer", "lookupOfferCallable"] + }, "ProvisionCloudIdentity": { "methods": ["provisionCloudIdentityAsync", "provisionCloudIdentityOperationCallable", "provisionCloudIdentityCallable"] }, diff --git a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStub.java b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStub.java index 92762b6f..a6108b0a 100644 --- a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStub.java +++ b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStub.java @@ -70,6 +70,8 @@ import com.google.cloud.channel.v1.ListTransferableOffersResponse; import com.google.cloud.channel.v1.ListTransferableSkusRequest; import com.google.cloud.channel.v1.ListTransferableSkusResponse; +import com.google.cloud.channel.v1.LookupOfferRequest; +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.RegisterSubscriberRequest; @@ -304,6 +306,10 @@ public UnaryCallable transferEntitlement throw new UnsupportedOperationException("Not implemented: updateChannelPartnerLinkCallable()"); } + public UnaryCallable lookupOfferCallable() { + throw new UnsupportedOperationException("Not implemented: lookupOfferCallable()"); + } + public UnaryCallable listProductsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listProductsPagedCallable()"); } diff --git a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java index 72b73ded..fdd0448d 100644 --- a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java +++ b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java @@ -93,6 +93,7 @@ import com.google.cloud.channel.v1.ListTransferableOffersResponse; import com.google.cloud.channel.v1.ListTransferableSkusRequest; import com.google.cloud.channel.v1.ListTransferableSkusResponse; +import com.google.cloud.channel.v1.LookupOfferRequest; import com.google.cloud.channel.v1.Offer; import com.google.cloud.channel.v1.OperationMetadata; import com.google.cloud.channel.v1.Product; @@ -237,6 +238,7 @@ public class CloudChannelServiceStubSettings extends StubSettings updateChannelPartnerLinkSettings; + private final UnaryCallSettings lookupOfferSettings; private final PagedCallSettings< ListProductsRequest, ListProductsResponse, ListProductsPagedResponse> listProductsSettings; @@ -1133,6 +1135,11 @@ public UnaryCallSettings transferEntitle return updateChannelPartnerLinkSettings; } + /** Returns the object with the settings used for calls to lookupOffer. */ + public UnaryCallSettings lookupOfferSettings() { + return lookupOfferSettings; + } + /** Returns the object with the settings used for calls to listProducts. */ public PagedCallSettings listProductsSettings() { @@ -1301,6 +1308,7 @@ protected CloudChannelServiceStubSettings(Builder settingsBuilder) throws IOExce getChannelPartnerLinkSettings = settingsBuilder.getChannelPartnerLinkSettings().build(); createChannelPartnerLinkSettings = settingsBuilder.createChannelPartnerLinkSettings().build(); updateChannelPartnerLinkSettings = settingsBuilder.updateChannelPartnerLinkSettings().build(); + lookupOfferSettings = settingsBuilder.lookupOfferSettings().build(); listProductsSettings = settingsBuilder.listProductsSettings().build(); listSkusSettings = settingsBuilder.listSkusSettings().build(); listOffersSettings = settingsBuilder.listOffersSettings().build(); @@ -1403,6 +1411,7 @@ public static class Builder createChannelPartnerLinkSettings; private final UnaryCallSettings.Builder updateChannelPartnerLinkSettings; + private final UnaryCallSettings.Builder lookupOfferSettings; private final PagedCallSettings.Builder< ListProductsRequest, ListProductsResponse, ListProductsPagedResponse> listProductsSettings; @@ -1517,6 +1526,7 @@ protected Builder(ClientContext clientContext) { getChannelPartnerLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createChannelPartnerLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateChannelPartnerLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + lookupOfferSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listProductsSettings = PagedCallSettings.newBuilder(LIST_PRODUCTS_PAGE_STR_FACT); listSkusSettings = PagedCallSettings.newBuilder(LIST_SKUS_PAGE_STR_FACT); listOffersSettings = PagedCallSettings.newBuilder(LIST_OFFERS_PAGE_STR_FACT); @@ -1555,6 +1565,7 @@ protected Builder(ClientContext clientContext) { getChannelPartnerLinkSettings, createChannelPartnerLinkSettings, updateChannelPartnerLinkSettings, + lookupOfferSettings, listProductsSettings, listSkusSettings, listOffersSettings, @@ -1613,6 +1624,7 @@ protected Builder(CloudChannelServiceStubSettings settings) { getChannelPartnerLinkSettings = settings.getChannelPartnerLinkSettings.toBuilder(); createChannelPartnerLinkSettings = settings.createChannelPartnerLinkSettings.toBuilder(); updateChannelPartnerLinkSettings = settings.updateChannelPartnerLinkSettings.toBuilder(); + lookupOfferSettings = settings.lookupOfferSettings.toBuilder(); listProductsSettings = settings.listProductsSettings.toBuilder(); listSkusSettings = settings.listSkusSettings.toBuilder(); listOffersSettings = settings.listOffersSettings.toBuilder(); @@ -1649,6 +1661,7 @@ protected Builder(CloudChannelServiceStubSettings settings) { getChannelPartnerLinkSettings, createChannelPartnerLinkSettings, updateChannelPartnerLinkSettings, + lookupOfferSettings, listProductsSettings, listSkusSettings, listOffersSettings, @@ -1796,6 +1809,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 + .lookupOfferSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listProductsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -2367,6 +2385,11 @@ public UnaryCallSettings.Builder changeOfferSetti return updateChannelPartnerLinkSettings; } + /** Returns the builder for the settings used for calls to lookupOffer. */ + public UnaryCallSettings.Builder lookupOfferSettings() { + return lookupOfferSettings; + } + /** Returns the builder for the settings used for calls to listProducts. */ public PagedCallSettings.Builder< ListProductsRequest, ListProductsResponse, ListProductsPagedResponse> diff --git a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java index 1e255c4f..6507936e 100644 --- a/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java +++ b/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java @@ -75,6 +75,8 @@ import com.google.cloud.channel.v1.ListTransferableOffersResponse; import com.google.cloud.channel.v1.ListTransferableSkusRequest; import com.google.cloud.channel.v1.ListTransferableSkusResponse; +import com.google.cloud.channel.v1.LookupOfferRequest; +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.RegisterSubscriberRequest; @@ -377,6 +379,14 @@ public class GrpcCloudChannelServiceStub extends CloudChannelServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(ChannelPartnerLink.getDefaultInstance())) .build(); + private static final MethodDescriptor lookupOfferMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.channel.v1.CloudChannelService/LookupOffer") + .setRequestMarshaller(ProtoUtils.marshaller(LookupOfferRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Offer.getDefaultInstance())) + .build(); + private static final MethodDescriptor listProductsMethodDescriptor = MethodDescriptor.newBuilder() @@ -531,6 +541,7 @@ public class GrpcCloudChannelServiceStub extends CloudChannelServiceStub { createChannelPartnerLinkCallable; private final UnaryCallable updateChannelPartnerLinkCallable; + private final UnaryCallable lookupOfferCallable; private final UnaryCallable listProductsCallable; private final UnaryCallable listProductsPagedCallable; @@ -942,6 +953,19 @@ public Map extract(UpdateChannelPartnerLinkRequest request) { } }) .build(); + GrpcCallSettings lookupOfferTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(lookupOfferMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(LookupOfferRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("entitlement", String.valueOf(request.getEntitlement())); + return params.build(); + } + }) + .build(); GrpcCallSettings listProductsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listProductsMethodDescriptor) @@ -1236,6 +1260,9 @@ public Map extract(ListSubscribersRequest request) { updateChannelPartnerLinkTransportSettings, settings.updateChannelPartnerLinkSettings(), clientContext); + this.lookupOfferCallable = + callableFactory.createUnaryCallable( + lookupOfferTransportSettings, settings.lookupOfferSettings(), clientContext); this.listProductsCallable = callableFactory.createUnaryCallable( listProductsTransportSettings, settings.listProductsSettings(), clientContext); @@ -1531,6 +1558,11 @@ public UnaryCallable transferEntitlement return updateChannelPartnerLinkCallable; } + @Override + public UnaryCallable lookupOfferCallable() { + return lookupOfferCallable; + } + @Override public UnaryCallable listProductsCallable() { return listProductsCallable; diff --git a/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java b/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java index b1fd127a..def18194 100644 --- a/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java +++ b/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java @@ -1671,6 +1671,60 @@ public void updateChannelPartnerLinkExceptionTest() throws Exception { } } + @Test + public void lookupOfferTest() throws Exception { + Offer expectedResponse = + Offer.newBuilder() + .setName(OfferName.of("[ACCOUNT]", "[OFFER]").toString()) + .setMarketingInfo(MarketingInfo.newBuilder().build()) + .setSku(Sku.newBuilder().build()) + .setPlan(Plan.newBuilder().build()) + .setConstraints(Constraints.newBuilder().build()) + .addAllPriceByResources(new ArrayList()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllParameterDefinitions(new ArrayList()) + .build(); + mockCloudChannelService.addResponse(expectedResponse); + + LookupOfferRequest request = + LookupOfferRequest.newBuilder() + .setEntitlement( + EntitlementName.of("[ACCOUNT]", "[CUSTOMER]", "[ENTITLEMENT]").toString()) + .build(); + + Offer actualResponse = client.lookupOffer(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudChannelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + LookupOfferRequest actualRequest = ((LookupOfferRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getEntitlement(), actualRequest.getEntitlement()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void lookupOfferExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudChannelService.addException(exception); + + try { + LookupOfferRequest request = + LookupOfferRequest.newBuilder() + .setEntitlement( + EntitlementName.of("[ACCOUNT]", "[CUSTOMER]", "[ENTITLEMENT]").toString()) + .build(); + client.lookupOffer(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listProductsTest() throws Exception { Product responsesElement = Product.newBuilder().build(); diff --git a/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/MockCloudChannelServiceImpl.java b/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/MockCloudChannelServiceImpl.java index 7c47e4b3..580bb78f 100644 --- a/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/MockCloudChannelServiceImpl.java +++ b/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/MockCloudChannelServiceImpl.java @@ -589,6 +589,26 @@ public void updateChannelPartnerLink( } } + @Override + public void lookupOffer(LookupOfferRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Offer) { + requests.add(request); + responseObserver.onNext(((Offer) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method LookupOffer, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Offer.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listProducts( ListProductsRequest request, StreamObserver responseObserver) { diff --git a/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java b/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java index c68390f2..3249f3ee 100644 --- a/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java +++ b/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java @@ -1230,6 +1230,48 @@ private CloudChannelServiceGrpc() {} return getUpdateChannelPartnerLinkMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.channel.v1.LookupOfferRequest, com.google.cloud.channel.v1.Offer> + getLookupOfferMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LookupOffer", + requestType = com.google.cloud.channel.v1.LookupOfferRequest.class, + responseType = com.google.cloud.channel.v1.Offer.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.channel.v1.LookupOfferRequest, com.google.cloud.channel.v1.Offer> + getLookupOfferMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.channel.v1.LookupOfferRequest, com.google.cloud.channel.v1.Offer> + getLookupOfferMethod; + if ((getLookupOfferMethod = CloudChannelServiceGrpc.getLookupOfferMethod) == null) { + synchronized (CloudChannelServiceGrpc.class) { + if ((getLookupOfferMethod = CloudChannelServiceGrpc.getLookupOfferMethod) == null) { + CloudChannelServiceGrpc.getLookupOfferMethod = + getLookupOfferMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LookupOffer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.channel.v1.LookupOfferRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.channel.v1.Offer.getDefaultInstance())) + .setSchemaDescriptor( + new CloudChannelServiceMethodDescriptorSupplier("LookupOffer")) + .build(); + } + } + } + return getLookupOfferMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.channel.v1.ListProductsRequest, com.google.cloud.channel.v1.ListProductsResponse> @@ -1700,7 +1742,7 @@ public void listCustomers( * * *
-     * Returns a requested [Customer][google.cloud.channel.v1.Customer] resource.
+     * Returns the requested [Customer][google.cloud.channel.v1.Customer] resource.
      * Possible error codes:
      * * PERMISSION_DENIED: The reseller account making the request is different
      * from the reseller account in the API request.
@@ -1794,7 +1836,7 @@ public void updateCustomer(
      *
      *
      * 
-     * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently and irreversibly.
+     * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently.
      * Possible error codes:
      * * PERMISSION_DENIED: The account making the request does not own
      * this customer.
@@ -1920,7 +1962,7 @@ public void listTransferableOffers(
      *
      *
      * 
-     * Returns a requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
+     * Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
      * Possible error codes:
      * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
      * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
@@ -2304,7 +2346,7 @@ public void listChannelPartnerLinks(
      *
      *
      * 
-     * Returns a requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
+     * Returns the requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
      * You must be a distributor to call this method.
      * Possible error codes:
      * * PERMISSION_DENIED: The reseller account making the request is different
@@ -2389,6 +2431,26 @@ public void updateChannelPartnerLink(
           getUpdateChannelPartnerLinkMethod(), responseObserver);
     }
 
+    /**
+     *
+     *
+     * 
+     * Returns the requested [Offer][google.cloud.channel.v1.Offer] resource.
+     * Possible error codes:
+     * * PERMISSION_DENIED: The entitlement doesn't belong to the reseller.
+     * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
+     * * NOT_FOUND: Entitlement or offer was not found.
+     * Return value:
+     * The [Offer][google.cloud.channel.v1.Offer] resource.
+     * 
+ */ + public void lookupOffer( + com.google.cloud.channel.v1.LookupOfferRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLookupOfferMethod(), responseObserver); + } + /** * * @@ -2729,6 +2791,12 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.channel.v1.UpdateChannelPartnerLinkRequest, com.google.cloud.channel.v1.ChannelPartnerLink>( this, METHODID_UPDATE_CHANNEL_PARTNER_LINK))) + .addMethod( + getLookupOfferMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.channel.v1.LookupOfferRequest, + com.google.cloud.channel.v1.Offer>(this, METHODID_LOOKUP_OFFER))) .addMethod( getListProductsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2847,7 +2915,7 @@ public void listCustomers( * * *
-     * Returns a requested [Customer][google.cloud.channel.v1.Customer] resource.
+     * Returns the requested [Customer][google.cloud.channel.v1.Customer] resource.
      * Possible error codes:
      * * PERMISSION_DENIED: The reseller account making the request is different
      * from the reseller account in the API request.
@@ -2949,7 +3017,7 @@ public void updateCustomer(
      *
      *
      * 
-     * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently and irreversibly.
+     * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently.
      * Possible error codes:
      * * PERMISSION_DENIED: The account making the request does not own
      * this customer.
@@ -3085,7 +3153,7 @@ public void listTransferableOffers(
      *
      *
      * 
-     * Returns a requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
+     * Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
      * Possible error codes:
      * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
      * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
@@ -3493,7 +3561,7 @@ public void listChannelPartnerLinks(
      *
      *
      * 
-     * Returns a requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
+     * Returns the requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
      * You must be a distributor to call this method.
      * Possible error codes:
      * * PERMISSION_DENIED: The reseller account making the request is different
@@ -3584,6 +3652,28 @@ public void updateChannelPartnerLink(
           responseObserver);
     }
 
+    /**
+     *
+     *
+     * 
+     * Returns the requested [Offer][google.cloud.channel.v1.Offer] resource.
+     * Possible error codes:
+     * * PERMISSION_DENIED: The entitlement doesn't belong to the reseller.
+     * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
+     * * NOT_FOUND: Entitlement or offer was not found.
+     * Return value:
+     * The [Offer][google.cloud.channel.v1.Offer] resource.
+     * 
+ */ + public void lookupOffer( + com.google.cloud.channel.v1.LookupOfferRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLookupOfferMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -3833,7 +3923,7 @@ public com.google.cloud.channel.v1.ListCustomersResponse listCustomers( * * *
-     * Returns a requested [Customer][google.cloud.channel.v1.Customer] resource.
+     * Returns the requested [Customer][google.cloud.channel.v1.Customer] resource.
      * Possible error codes:
      * * PERMISSION_DENIED: The reseller account making the request is different
      * from the reseller account in the API request.
@@ -3922,7 +4012,7 @@ public com.google.cloud.channel.v1.Customer updateCustomer(
      *
      *
      * 
-     * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently and irreversibly.
+     * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently.
      * Possible error codes:
      * * PERMISSION_DENIED: The account making the request does not own
      * this customer.
@@ -4040,7 +4130,7 @@ public com.google.cloud.channel.v1.ListTransferableOffersResponse listTransferab
      *
      *
      * 
-     * Returns a requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
+     * Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
      * Possible error codes:
      * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
      * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
@@ -4411,7 +4501,7 @@ public com.google.cloud.channel.v1.ListChannelPartnerLinksResponse listChannelPa
      *
      *
      * 
-     * Returns a requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
+     * Returns the requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
      * You must be a distributor to call this method.
      * Possible error codes:
      * * PERMISSION_DENIED: The reseller account making the request is different
@@ -4490,6 +4580,25 @@ public com.google.cloud.channel.v1.ChannelPartnerLink updateChannelPartnerLink(
           getChannel(), getUpdateChannelPartnerLinkMethod(), getCallOptions(), request);
     }
 
+    /**
+     *
+     *
+     * 
+     * Returns the requested [Offer][google.cloud.channel.v1.Offer] resource.
+     * Possible error codes:
+     * * PERMISSION_DENIED: The entitlement doesn't belong to the reseller.
+     * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
+     * * NOT_FOUND: Entitlement or offer was not found.
+     * Return value:
+     * The [Offer][google.cloud.channel.v1.Offer] resource.
+     * 
+ */ + public com.google.cloud.channel.v1.Offer lookupOffer( + com.google.cloud.channel.v1.LookupOfferRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLookupOfferMethod(), getCallOptions(), request); + } + /** * * @@ -4712,7 +4821,7 @@ protected CloudChannelServiceFutureStub build( * * *
-     * Returns a requested [Customer][google.cloud.channel.v1.Customer] resource.
+     * Returns the requested [Customer][google.cloud.channel.v1.Customer] resource.
      * Possible error codes:
      * * PERMISSION_DENIED: The reseller account making the request is different
      * from the reseller account in the API request.
@@ -4803,7 +4912,7 @@ protected CloudChannelServiceFutureStub build(
      *
      *
      * 
-     * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently and irreversibly.
+     * Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently.
      * Possible error codes:
      * * PERMISSION_DENIED: The account making the request does not own
      * this customer.
@@ -4924,7 +5033,7 @@ protected CloudChannelServiceFutureStub build(
      *
      *
      * 
-     * Returns a requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
+     * Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
      * Possible error codes:
      * * PERMISSION_DENIED: The customer doesn't belong to the reseller.
      * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
@@ -5299,7 +5408,7 @@ protected CloudChannelServiceFutureStub build(
      *
      *
      * 
-     * Returns a requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
+     * Returns the requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
      * You must be a distributor to call this method.
      * Possible error codes:
      * * PERMISSION_DENIED: The reseller account making the request is different
@@ -5383,6 +5492,25 @@ protected CloudChannelServiceFutureStub build(
           getChannel().newCall(getUpdateChannelPartnerLinkMethod(), getCallOptions()), request);
     }
 
+    /**
+     *
+     *
+     * 
+     * Returns the requested [Offer][google.cloud.channel.v1.Offer] resource.
+     * Possible error codes:
+     * * PERMISSION_DENIED: The entitlement doesn't belong to the reseller.
+     * * INVALID_ARGUMENT: Required request parameters are missing or invalid.
+     * * NOT_FOUND: Entitlement or offer was not found.
+     * Return value:
+     * The [Offer][google.cloud.channel.v1.Offer] resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + lookupOffer(com.google.cloud.channel.v1.LookupOfferRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLookupOfferMethod(), getCallOptions()), request); + } + /** * * @@ -5580,14 +5708,15 @@ protected CloudChannelServiceFutureStub build( private static final int METHODID_GET_CHANNEL_PARTNER_LINK = 22; private static final int METHODID_CREATE_CHANNEL_PARTNER_LINK = 23; private static final int METHODID_UPDATE_CHANNEL_PARTNER_LINK = 24; - private static final int METHODID_LIST_PRODUCTS = 25; - private static final int METHODID_LIST_SKUS = 26; - private static final int METHODID_LIST_OFFERS = 27; - private static final int METHODID_LIST_PURCHASABLE_SKUS = 28; - private static final int METHODID_LIST_PURCHASABLE_OFFERS = 29; - private static final int METHODID_REGISTER_SUBSCRIBER = 30; - private static final int METHODID_UNREGISTER_SUBSCRIBER = 31; - private static final int METHODID_LIST_SUBSCRIBERS = 32; + private static final int METHODID_LOOKUP_OFFER = 25; + private static final int METHODID_LIST_PRODUCTS = 26; + private static final int METHODID_LIST_SKUS = 27; + private static final int METHODID_LIST_OFFERS = 28; + private static final int METHODID_LIST_PURCHASABLE_SKUS = 29; + private static final int METHODID_LIST_PURCHASABLE_OFFERS = 30; + private static final int METHODID_REGISTER_SUBSCRIBER = 31; + private static final int METHODID_UNREGISTER_SUBSCRIBER = 32; + private static final int METHODID_LIST_SUBSCRIBERS = 33; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -5745,6 +5874,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LOOKUP_OFFER: + serviceImpl.lookupOffer( + (com.google.cloud.channel.v1.LookupOfferRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_PRODUCTS: serviceImpl.listProducts( (com.google.cloud.channel.v1.ListProductsRequest) request, @@ -5884,6 +6018,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetChannelPartnerLinkMethod()) .addMethod(getCreateChannelPartnerLinkMethod()) .addMethod(getUpdateChannelPartnerLinkMethod()) + .addMethod(getLookupOfferMethod()) .addMethod(getListProductsMethod()) .addMethod(getListSkusMethod()) .addMethod(getListOffersMethod()) diff --git a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ContactInfo.java b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ContactInfo.java index 01eed955..769c1225 100644 --- a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ContactInfo.java +++ b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ContactInfo.java @@ -157,7 +157,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * First name of the contact in the customer account.
+   * The customer account contact's first name.
    * 
* * string first_name = 1; @@ -180,7 +180,7 @@ public java.lang.String getFirstName() { * * *
-   * First name of the contact in the customer account.
+   * The customer account contact's first name.
    * 
* * string first_name = 1; @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getFirstNameBytes() { * * *
-   * Last name of the contact in the customer account.
+   * The customer account contact's last name.
    * 
* * string last_name = 2; @@ -229,7 +229,7 @@ public java.lang.String getLastName() { * * *
-   * Last name of the contact in the customer account.
+   * The customer account contact's last name.
    * 
* * string last_name = 2; @@ -255,8 +255,8 @@ public com.google.protobuf.ByteString getLastNameBytes() { * * *
-   * Output only. Display name of the contact in the customer account.
-   * Populated by combining customer first name and last name.
+   * Output only. The customer account contact's display name, formatted as a
+   * combination of the customer's first and last name.
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -279,8 +279,8 @@ public java.lang.String getDisplayName() { * * *
-   * Output only. Display name of the contact in the customer account.
-   * Populated by combining customer first name and last name.
+   * Output only. The customer account contact's display name, formatted as a
+   * combination of the customer's first and last name.
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -306,10 +306,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Email of the contact in the customer account.
-   * Email is required for entitlements that need creation of admin.google.com
-   * accounts. The email will be the username used in credentials to access the
-   * admin.google.com account.
+   * The customer account's contact email. Required for entitlements that create
+   * admin.google.com accounts, and serves as the customer's username for those
+   * accounts.
    * 
* * string email = 5; @@ -332,10 +331,9 @@ public java.lang.String getEmail() { * * *
-   * Email of the contact in the customer account.
-   * Email is required for entitlements that need creation of admin.google.com
-   * accounts. The email will be the username used in credentials to access the
-   * admin.google.com account.
+   * The customer account's contact email. Required for entitlements that create
+   * admin.google.com accounts, and serves as the customer's username for those
+   * accounts.
    * 
* * string email = 5; @@ -361,7 +359,7 @@ public com.google.protobuf.ByteString getEmailBytes() { * * *
-   * Optional. Job title of the contact in the customer account.
+   * Optional. The customer account contact's job title.
    * 
* * string title = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -384,7 +382,7 @@ public java.lang.String getTitle() { * * *
-   * Optional. Job title of the contact in the customer account.
+   * Optional. The customer account contact's job title.
    * 
* * string title = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -410,7 +408,7 @@ public com.google.protobuf.ByteString getTitleBytes() { * * *
-   * Phone number of the contact in the customer account.
+   * The customer account's contact phone number.
    * 
* * string phone = 7; @@ -433,7 +431,7 @@ public java.lang.String getPhone() { * * *
-   * Phone number of the contact in the customer account.
+   * The customer account's contact phone number.
    * 
* * string phone = 7; @@ -853,7 +851,7 @@ public Builder mergeFrom( * * *
-     * First name of the contact in the customer account.
+     * The customer account contact's first name.
      * 
* * string first_name = 1; @@ -875,7 +873,7 @@ public java.lang.String getFirstName() { * * *
-     * First name of the contact in the customer account.
+     * The customer account contact's first name.
      * 
* * string first_name = 1; @@ -897,7 +895,7 @@ public com.google.protobuf.ByteString getFirstNameBytes() { * * *
-     * First name of the contact in the customer account.
+     * The customer account contact's first name.
      * 
* * string first_name = 1; @@ -918,7 +916,7 @@ public Builder setFirstName(java.lang.String value) { * * *
-     * First name of the contact in the customer account.
+     * The customer account contact's first name.
      * 
* * string first_name = 1; @@ -935,7 +933,7 @@ public Builder clearFirstName() { * * *
-     * First name of the contact in the customer account.
+     * The customer account contact's first name.
      * 
* * string first_name = 1; @@ -959,7 +957,7 @@ public Builder setFirstNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Last name of the contact in the customer account.
+     * The customer account contact's last name.
      * 
* * string last_name = 2; @@ -981,7 +979,7 @@ public java.lang.String getLastName() { * * *
-     * Last name of the contact in the customer account.
+     * The customer account contact's last name.
      * 
* * string last_name = 2; @@ -1003,7 +1001,7 @@ public com.google.protobuf.ByteString getLastNameBytes() { * * *
-     * Last name of the contact in the customer account.
+     * The customer account contact's last name.
      * 
* * string last_name = 2; @@ -1024,7 +1022,7 @@ public Builder setLastName(java.lang.String value) { * * *
-     * Last name of the contact in the customer account.
+     * The customer account contact's last name.
      * 
* * string last_name = 2; @@ -1041,7 +1039,7 @@ public Builder clearLastName() { * * *
-     * Last name of the contact in the customer account.
+     * The customer account contact's last name.
      * 
* * string last_name = 2; @@ -1065,8 +1063,8 @@ public Builder setLastNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Display name of the contact in the customer account.
-     * Populated by combining customer first name and last name.
+     * Output only. The customer account contact's display name, formatted as a
+     * combination of the customer's first and last name.
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1088,8 +1086,8 @@ public java.lang.String getDisplayName() { * * *
-     * Output only. Display name of the contact in the customer account.
-     * Populated by combining customer first name and last name.
+     * Output only. The customer account contact's display name, formatted as a
+     * combination of the customer's first and last name.
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1111,8 +1109,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Output only. Display name of the contact in the customer account.
-     * Populated by combining customer first name and last name.
+     * Output only. The customer account contact's display name, formatted as a
+     * combination of the customer's first and last name.
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1133,8 +1131,8 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Output only. Display name of the contact in the customer account.
-     * Populated by combining customer first name and last name.
+     * Output only. The customer account contact's display name, formatted as a
+     * combination of the customer's first and last name.
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1151,8 +1149,8 @@ public Builder clearDisplayName() { * * *
-     * Output only. Display name of the contact in the customer account.
-     * Populated by combining customer first name and last name.
+     * Output only. The customer account contact's display name, formatted as a
+     * combination of the customer's first and last name.
      * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1176,10 +1174,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Email of the contact in the customer account.
-     * Email is required for entitlements that need creation of admin.google.com
-     * accounts. The email will be the username used in credentials to access the
-     * admin.google.com account.
+     * The customer account's contact email. Required for entitlements that create
+     * admin.google.com accounts, and serves as the customer's username for those
+     * accounts.
      * 
* * string email = 5; @@ -1201,10 +1198,9 @@ public java.lang.String getEmail() { * * *
-     * Email of the contact in the customer account.
-     * Email is required for entitlements that need creation of admin.google.com
-     * accounts. The email will be the username used in credentials to access the
-     * admin.google.com account.
+     * The customer account's contact email. Required for entitlements that create
+     * admin.google.com accounts, and serves as the customer's username for those
+     * accounts.
      * 
* * string email = 5; @@ -1226,10 +1222,9 @@ public com.google.protobuf.ByteString getEmailBytes() { * * *
-     * Email of the contact in the customer account.
-     * Email is required for entitlements that need creation of admin.google.com
-     * accounts. The email will be the username used in credentials to access the
-     * admin.google.com account.
+     * The customer account's contact email. Required for entitlements that create
+     * admin.google.com accounts, and serves as the customer's username for those
+     * accounts.
      * 
* * string email = 5; @@ -1250,10 +1245,9 @@ public Builder setEmail(java.lang.String value) { * * *
-     * Email of the contact in the customer account.
-     * Email is required for entitlements that need creation of admin.google.com
-     * accounts. The email will be the username used in credentials to access the
-     * admin.google.com account.
+     * The customer account's contact email. Required for entitlements that create
+     * admin.google.com accounts, and serves as the customer's username for those
+     * accounts.
      * 
* * string email = 5; @@ -1270,10 +1264,9 @@ public Builder clearEmail() { * * *
-     * Email of the contact in the customer account.
-     * Email is required for entitlements that need creation of admin.google.com
-     * accounts. The email will be the username used in credentials to access the
-     * admin.google.com account.
+     * The customer account's contact email. Required for entitlements that create
+     * admin.google.com accounts, and serves as the customer's username for those
+     * accounts.
      * 
* * string email = 5; @@ -1297,7 +1290,7 @@ public Builder setEmailBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Job title of the contact in the customer account.
+     * Optional. The customer account contact's job title.
      * 
* * string title = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1319,7 +1312,7 @@ public java.lang.String getTitle() { * * *
-     * Optional. Job title of the contact in the customer account.
+     * Optional. The customer account contact's job title.
      * 
* * string title = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1341,7 +1334,7 @@ public com.google.protobuf.ByteString getTitleBytes() { * * *
-     * Optional. Job title of the contact in the customer account.
+     * Optional. The customer account contact's job title.
      * 
* * string title = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1362,7 +1355,7 @@ public Builder setTitle(java.lang.String value) { * * *
-     * Optional. Job title of the contact in the customer account.
+     * Optional. The customer account contact's job title.
      * 
* * string title = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1379,7 +1372,7 @@ public Builder clearTitle() { * * *
-     * Optional. Job title of the contact in the customer account.
+     * Optional. The customer account contact's job title.
      * 
* * string title = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1403,7 +1396,7 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { * * *
-     * Phone number of the contact in the customer account.
+     * The customer account's contact phone number.
      * 
* * string phone = 7; @@ -1425,7 +1418,7 @@ public java.lang.String getPhone() { * * *
-     * Phone number of the contact in the customer account.
+     * The customer account's contact phone number.
      * 
* * string phone = 7; @@ -1447,7 +1440,7 @@ public com.google.protobuf.ByteString getPhoneBytes() { * * *
-     * Phone number of the contact in the customer account.
+     * The customer account's contact phone number.
      * 
* * string phone = 7; @@ -1468,7 +1461,7 @@ public Builder setPhone(java.lang.String value) { * * *
-     * Phone number of the contact in the customer account.
+     * The customer account's contact phone number.
      * 
* * string phone = 7; @@ -1485,7 +1478,7 @@ public Builder clearPhone() { * * *
-     * Phone number of the contact in the customer account.
+     * The customer account's contact phone number.
      * 
* * string phone = 7; diff --git a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ContactInfoOrBuilder.java b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ContactInfoOrBuilder.java index 4e6c2c72..c1b0476d 100644 --- a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ContactInfoOrBuilder.java +++ b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ContactInfoOrBuilder.java @@ -27,7 +27,7 @@ public interface ContactInfoOrBuilder * * *
-   * First name of the contact in the customer account.
+   * The customer account contact's first name.
    * 
* * string first_name = 1; @@ -39,7 +39,7 @@ public interface ContactInfoOrBuilder * * *
-   * First name of the contact in the customer account.
+   * The customer account contact's first name.
    * 
* * string first_name = 1; @@ -52,7 +52,7 @@ public interface ContactInfoOrBuilder * * *
-   * Last name of the contact in the customer account.
+   * The customer account contact's last name.
    * 
* * string last_name = 2; @@ -64,7 +64,7 @@ public interface ContactInfoOrBuilder * * *
-   * Last name of the contact in the customer account.
+   * The customer account contact's last name.
    * 
* * string last_name = 2; @@ -77,8 +77,8 @@ public interface ContactInfoOrBuilder * * *
-   * Output only. Display name of the contact in the customer account.
-   * Populated by combining customer first name and last name.
+   * Output only. The customer account contact's display name, formatted as a
+   * combination of the customer's first and last name.
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -90,8 +90,8 @@ public interface ContactInfoOrBuilder * * *
-   * Output only. Display name of the contact in the customer account.
-   * Populated by combining customer first name and last name.
+   * Output only. The customer account contact's display name, formatted as a
+   * combination of the customer's first and last name.
    * 
* * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -104,10 +104,9 @@ public interface ContactInfoOrBuilder * * *
-   * Email of the contact in the customer account.
-   * Email is required for entitlements that need creation of admin.google.com
-   * accounts. The email will be the username used in credentials to access the
-   * admin.google.com account.
+   * The customer account's contact email. Required for entitlements that create
+   * admin.google.com accounts, and serves as the customer's username for those
+   * accounts.
    * 
* * string email = 5; @@ -119,10 +118,9 @@ public interface ContactInfoOrBuilder * * *
-   * Email of the contact in the customer account.
-   * Email is required for entitlements that need creation of admin.google.com
-   * accounts. The email will be the username used in credentials to access the
-   * admin.google.com account.
+   * The customer account's contact email. Required for entitlements that create
+   * admin.google.com accounts, and serves as the customer's username for those
+   * accounts.
    * 
* * string email = 5; @@ -135,7 +133,7 @@ public interface ContactInfoOrBuilder * * *
-   * Optional. Job title of the contact in the customer account.
+   * Optional. The customer account contact's job title.
    * 
* * string title = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -147,7 +145,7 @@ public interface ContactInfoOrBuilder * * *
-   * Optional. Job title of the contact in the customer account.
+   * Optional. The customer account contact's job title.
    * 
* * string title = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -160,7 +158,7 @@ public interface ContactInfoOrBuilder * * *
-   * Phone number of the contact in the customer account.
+   * The customer account's contact phone number.
    * 
* * string phone = 7; @@ -172,7 +170,7 @@ public interface ContactInfoOrBuilder * * *
-   * Phone number of the contact in the customer account.
+   * The customer account's contact phone number.
    * 
* * string phone = 7; diff --git a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java index 163a04e2..dc251e52 100644 --- a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java +++ b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java @@ -342,11 +342,10 @@ public com.google.protobuf.ByteString getOrgDisplayNameBytes() { * * *
-   * Required. Address of the organization of the customer entity.
-   * Region and zip codes are required to enforce US laws and embargoes.
-   * Valid address lines are required for all customers.
-   * Language code is discarded. Use the Customer-level language code to set the
-   * customer's language.
+   * Required. The organization address for the customer. To enforce US laws and
+   * embargoes, we require a region and zip code. You must provide valid
+   * addresses for every customer. To set the customer's language, use the
+   * Customer-level language code.
    * 
* * @@ -363,11 +362,10 @@ public boolean hasOrgPostalAddress() { * * *
-   * Required. Address of the organization of the customer entity.
-   * Region and zip codes are required to enforce US laws and embargoes.
-   * Valid address lines are required for all customers.
-   * Language code is discarded. Use the Customer-level language code to set the
-   * customer's language.
+   * Required. The organization address for the customer. To enforce US laws and
+   * embargoes, we require a region and zip code. You must provide valid
+   * addresses for every customer. To set the customer's language, use the
+   * Customer-level language code.
    * 
* * @@ -386,11 +384,10 @@ public com.google.type.PostalAddress getOrgPostalAddress() { * * *
-   * Required. Address of the organization of the customer entity.
-   * Region and zip codes are required to enforce US laws and embargoes.
-   * Valid address lines are required for all customers.
-   * Language code is discarded. Use the Customer-level language code to set the
-   * customer's language.
+   * Required. The organization address for the customer. To enforce US laws and
+   * embargoes, we require a region and zip code. You must provide valid
+   * addresses for every customer. To set the customer's language, use the
+   * Customer-level language code.
    * 
* * @@ -456,11 +453,10 @@ public com.google.cloud.channel.v1.ContactInfoOrBuilder getPrimaryContactInfoOrB * * *
-   * Secondary contact email.
-   * Alternate email and primary contact email are required to have different
-   * domains if primary contact email is present.
-   * When creating admin.google.com accounts, users get notified credentials at
-   * this email. This email address is also used as a recovery email.
+   * Secondary contact email. You need to provide an alternate email to create
+   * different domains if a primary contact email already exists. Users will
+   * receive a notification with credentials when you create an admin.google.com
+   * account. Secondary emails are also recovery email addresses.
    * 
* * string alternate_email = 5; @@ -483,11 +479,10 @@ public java.lang.String getAlternateEmail() { * * *
-   * Secondary contact email.
-   * Alternate email and primary contact email are required to have different
-   * domains if primary contact email is present.
-   * When creating admin.google.com accounts, users get notified credentials at
-   * this email. This email address is also used as a recovery email.
+   * Secondary contact email. You need to provide an alternate email to create
+   * different domains if a primary contact email already exists. Users will
+   * receive a notification with credentials when you create an admin.google.com
+   * account. Secondary emails are also recovery email addresses.
    * 
* * string alternate_email = 5; @@ -513,9 +508,8 @@ public com.google.protobuf.ByteString getAlternateEmailBytes() { * * *
-   * Required. Primary domain used by the customer.
-   * Domain of primary contact email is required to be same as the provided
-   * domain.
+   * Required. The customer's primary domain. Must match the primary contact
+   * email's domain.
    * 
* * string domain = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -538,9 +532,8 @@ public java.lang.String getDomain() { * * *
-   * Required. Primary domain used by the customer.
-   * Domain of primary contact email is required to be same as the provided
-   * domain.
+   * Required. The customer's primary domain. Must match the primary contact
+   * email's domain.
    * 
* * string domain = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -566,7 +559,7 @@ public com.google.protobuf.ByteString getDomainBytes() { * * *
-   * Output only. The time at which the customer is created.
+   * Output only. Time when the customer was created.
    * 
* * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -582,7 +575,7 @@ public boolean hasCreateTime() { * * *
-   * Output only. The time at which the customer is created.
+   * Output only. Time when the customer was created.
    * 
* * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -598,7 +591,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Output only. The time at which the customer is created.
+   * Output only. Time when the customer was created.
    * 
* * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -615,7 +608,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-   * Output only. The time at which the customer is updated.
+   * Output only. Time when the customer was updated.
    * 
* * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -631,7 +624,7 @@ public boolean hasUpdateTime() { * * *
-   * Output only. The time at which the customer is updated.
+   * Output only. Time when the customer was updated.
    * 
* * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -647,7 +640,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
-   * Output only. The time at which the customer is updated.
+   * Output only. Time when the customer was updated.
    * 
* * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -664,8 +657,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * Output only. Customer's cloud_identity_id.
-   * Populated only if a Cloud Identity resource exists for this customer.
+   * Output only. The customer's Cloud Identity ID if the customer has a Cloud
+   * Identity resource.
    * 
* * string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -688,8 +681,8 @@ public java.lang.String getCloudIdentityId() { * * *
-   * Output only. Customer's cloud_identity_id.
-   * Populated only if a Cloud Identity resource exists for this customer.
+   * Output only. The customer's Cloud Identity ID if the customer has a Cloud
+   * Identity resource.
    * 
* * string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1646,11 +1639,10 @@ public Builder setOrgDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Address of the organization of the customer entity.
-     * Region and zip codes are required to enforce US laws and embargoes.
-     * Valid address lines are required for all customers.
-     * Language code is discarded. Use the Customer-level language code to set the
-     * customer's language.
+     * Required. The organization address for the customer. To enforce US laws and
+     * embargoes, we require a region and zip code. You must provide valid
+     * addresses for every customer. To set the customer's language, use the
+     * Customer-level language code.
      * 
* * @@ -1666,11 +1658,10 @@ public boolean hasOrgPostalAddress() { * * *
-     * Required. Address of the organization of the customer entity.
-     * Region and zip codes are required to enforce US laws and embargoes.
-     * Valid address lines are required for all customers.
-     * Language code is discarded. Use the Customer-level language code to set the
-     * customer's language.
+     * Required. The organization address for the customer. To enforce US laws and
+     * embargoes, we require a region and zip code. You must provide valid
+     * addresses for every customer. To set the customer's language, use the
+     * Customer-level language code.
      * 
* * @@ -1692,11 +1683,10 @@ public com.google.type.PostalAddress getOrgPostalAddress() { * * *
-     * Required. Address of the organization of the customer entity.
-     * Region and zip codes are required to enforce US laws and embargoes.
-     * Valid address lines are required for all customers.
-     * Language code is discarded. Use the Customer-level language code to set the
-     * customer's language.
+     * Required. The organization address for the customer. To enforce US laws and
+     * embargoes, we require a region and zip code. You must provide valid
+     * addresses for every customer. To set the customer's language, use the
+     * Customer-level language code.
      * 
* * @@ -1720,11 +1710,10 @@ public Builder setOrgPostalAddress(com.google.type.PostalAddress value) { * * *
-     * Required. Address of the organization of the customer entity.
-     * Region and zip codes are required to enforce US laws and embargoes.
-     * Valid address lines are required for all customers.
-     * Language code is discarded. Use the Customer-level language code to set the
-     * customer's language.
+     * Required. The organization address for the customer. To enforce US laws and
+     * embargoes, we require a region and zip code. You must provide valid
+     * addresses for every customer. To set the customer's language, use the
+     * Customer-level language code.
      * 
* * @@ -1745,11 +1734,10 @@ public Builder setOrgPostalAddress(com.google.type.PostalAddress.Builder builder * * *
-     * Required. Address of the organization of the customer entity.
-     * Region and zip codes are required to enforce US laws and embargoes.
-     * Valid address lines are required for all customers.
-     * Language code is discarded. Use the Customer-level language code to set the
-     * customer's language.
+     * Required. The organization address for the customer. To enforce US laws and
+     * embargoes, we require a region and zip code. You must provide valid
+     * addresses for every customer. To set the customer's language, use the
+     * Customer-level language code.
      * 
* * @@ -1777,11 +1765,10 @@ public Builder mergeOrgPostalAddress(com.google.type.PostalAddress value) { * * *
-     * Required. Address of the organization of the customer entity.
-     * Region and zip codes are required to enforce US laws and embargoes.
-     * Valid address lines are required for all customers.
-     * Language code is discarded. Use the Customer-level language code to set the
-     * customer's language.
+     * Required. The organization address for the customer. To enforce US laws and
+     * embargoes, we require a region and zip code. You must provide valid
+     * addresses for every customer. To set the customer's language, use the
+     * Customer-level language code.
      * 
* * @@ -1803,11 +1790,10 @@ public Builder clearOrgPostalAddress() { * * *
-     * Required. Address of the organization of the customer entity.
-     * Region and zip codes are required to enforce US laws and embargoes.
-     * Valid address lines are required for all customers.
-     * Language code is discarded. Use the Customer-level language code to set the
-     * customer's language.
+     * Required. The organization address for the customer. To enforce US laws and
+     * embargoes, we require a region and zip code. You must provide valid
+     * addresses for every customer. To set the customer's language, use the
+     * Customer-level language code.
      * 
* * @@ -1823,11 +1809,10 @@ public com.google.type.PostalAddress.Builder getOrgPostalAddressBuilder() { * * *
-     * Required. Address of the organization of the customer entity.
-     * Region and zip codes are required to enforce US laws and embargoes.
-     * Valid address lines are required for all customers.
-     * Language code is discarded. Use the Customer-level language code to set the
-     * customer's language.
+     * Required. The organization address for the customer. To enforce US laws and
+     * embargoes, we require a region and zip code. You must provide valid
+     * addresses for every customer. To set the customer's language, use the
+     * Customer-level language code.
      * 
* * @@ -1847,11 +1832,10 @@ public com.google.type.PostalAddressOrBuilder getOrgPostalAddressOrBuilder() { * * *
-     * Required. Address of the organization of the customer entity.
-     * Region and zip codes are required to enforce US laws and embargoes.
-     * Valid address lines are required for all customers.
-     * Language code is discarded. Use the Customer-level language code to set the
-     * customer's language.
+     * Required. The organization address for the customer. To enforce US laws and
+     * embargoes, we require a region and zip code. You must provide valid
+     * addresses for every customer. To set the customer's language, use the
+     * Customer-level language code.
      * 
* * @@ -2066,11 +2050,10 @@ public com.google.cloud.channel.v1.ContactInfoOrBuilder getPrimaryContactInfoOrB * * *
-     * Secondary contact email.
-     * Alternate email and primary contact email are required to have different
-     * domains if primary contact email is present.
-     * When creating admin.google.com accounts, users get notified credentials at
-     * this email. This email address is also used as a recovery email.
+     * Secondary contact email. You need to provide an alternate email to create
+     * different domains if a primary contact email already exists. Users will
+     * receive a notification with credentials when you create an admin.google.com
+     * account. Secondary emails are also recovery email addresses.
      * 
* * string alternate_email = 5; @@ -2092,11 +2075,10 @@ public java.lang.String getAlternateEmail() { * * *
-     * Secondary contact email.
-     * Alternate email and primary contact email are required to have different
-     * domains if primary contact email is present.
-     * When creating admin.google.com accounts, users get notified credentials at
-     * this email. This email address is also used as a recovery email.
+     * Secondary contact email. You need to provide an alternate email to create
+     * different domains if a primary contact email already exists. Users will
+     * receive a notification with credentials when you create an admin.google.com
+     * account. Secondary emails are also recovery email addresses.
      * 
* * string alternate_email = 5; @@ -2118,11 +2100,10 @@ public com.google.protobuf.ByteString getAlternateEmailBytes() { * * *
-     * Secondary contact email.
-     * Alternate email and primary contact email are required to have different
-     * domains if primary contact email is present.
-     * When creating admin.google.com accounts, users get notified credentials at
-     * this email. This email address is also used as a recovery email.
+     * Secondary contact email. You need to provide an alternate email to create
+     * different domains if a primary contact email already exists. Users will
+     * receive a notification with credentials when you create an admin.google.com
+     * account. Secondary emails are also recovery email addresses.
      * 
* * string alternate_email = 5; @@ -2143,11 +2124,10 @@ public Builder setAlternateEmail(java.lang.String value) { * * *
-     * Secondary contact email.
-     * Alternate email and primary contact email are required to have different
-     * domains if primary contact email is present.
-     * When creating admin.google.com accounts, users get notified credentials at
-     * this email. This email address is also used as a recovery email.
+     * Secondary contact email. You need to provide an alternate email to create
+     * different domains if a primary contact email already exists. Users will
+     * receive a notification with credentials when you create an admin.google.com
+     * account. Secondary emails are also recovery email addresses.
      * 
* * string alternate_email = 5; @@ -2164,11 +2144,10 @@ public Builder clearAlternateEmail() { * * *
-     * Secondary contact email.
-     * Alternate email and primary contact email are required to have different
-     * domains if primary contact email is present.
-     * When creating admin.google.com accounts, users get notified credentials at
-     * this email. This email address is also used as a recovery email.
+     * Secondary contact email. You need to provide an alternate email to create
+     * different domains if a primary contact email already exists. Users will
+     * receive a notification with credentials when you create an admin.google.com
+     * account. Secondary emails are also recovery email addresses.
      * 
* * string alternate_email = 5; @@ -2192,9 +2171,8 @@ public Builder setAlternateEmailBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Primary domain used by the customer.
-     * Domain of primary contact email is required to be same as the provided
-     * domain.
+     * Required. The customer's primary domain. Must match the primary contact
+     * email's domain.
      * 
* * string domain = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -2216,9 +2194,8 @@ public java.lang.String getDomain() { * * *
-     * Required. Primary domain used by the customer.
-     * Domain of primary contact email is required to be same as the provided
-     * domain.
+     * Required. The customer's primary domain. Must match the primary contact
+     * email's domain.
      * 
* * string domain = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -2240,9 +2217,8 @@ public com.google.protobuf.ByteString getDomainBytes() { * * *
-     * Required. Primary domain used by the customer.
-     * Domain of primary contact email is required to be same as the provided
-     * domain.
+     * Required. The customer's primary domain. Must match the primary contact
+     * email's domain.
      * 
* * string domain = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -2263,9 +2239,8 @@ public Builder setDomain(java.lang.String value) { * * *
-     * Required. Primary domain used by the customer.
-     * Domain of primary contact email is required to be same as the provided
-     * domain.
+     * Required. The customer's primary domain. Must match the primary contact
+     * email's domain.
      * 
* * string domain = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -2282,9 +2257,8 @@ public Builder clearDomain() { * * *
-     * Required. Primary domain used by the customer.
-     * Domain of primary contact email is required to be same as the provided
-     * domain.
+     * Required. The customer's primary domain. Must match the primary contact
+     * email's domain.
      * 
* * string domain = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -2313,7 +2287,7 @@ public Builder setDomainBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The time at which the customer is created.
+     * Output only. Time when the customer was created.
      * 
* * @@ -2329,7 +2303,7 @@ public boolean hasCreateTime() { * * *
-     * Output only. The time at which the customer is created.
+     * Output only. Time when the customer was created.
      * 
* * @@ -2351,7 +2325,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. The time at which the customer is created.
+     * Output only. Time when the customer was created.
      * 
* * @@ -2375,7 +2349,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time at which the customer is created.
+     * Output only. Time when the customer was created.
      * 
* * @@ -2396,7 +2370,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The time at which the customer is created.
+     * Output only. Time when the customer was created.
      * 
* * @@ -2422,7 +2396,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time at which the customer is created.
+     * Output only. Time when the customer was created.
      * 
* * @@ -2444,7 +2418,7 @@ public Builder clearCreateTime() { * * *
-     * Output only. The time at which the customer is created.
+     * Output only. Time when the customer was created.
      * 
* * @@ -2460,7 +2434,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Output only. The time at which the customer is created.
+     * Output only. Time when the customer was created.
      * 
* * @@ -2480,7 +2454,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The time at which the customer is created.
+     * Output only. Time when the customer was created.
      * 
* * @@ -2514,7 +2488,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The time at which the customer is updated.
+     * Output only. Time when the customer was updated.
      * 
* * @@ -2530,7 +2504,7 @@ public boolean hasUpdateTime() { * * *
-     * Output only. The time at which the customer is updated.
+     * Output only. Time when the customer was updated.
      * 
* * @@ -2552,7 +2526,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
-     * Output only. The time at which the customer is updated.
+     * Output only. Time when the customer was updated.
      * 
* * @@ -2576,7 +2550,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time at which the customer is updated.
+     * Output only. Time when the customer was updated.
      * 
* * @@ -2597,7 +2571,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The time at which the customer is updated.
+     * Output only. Time when the customer was updated.
      * 
* * @@ -2623,7 +2597,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time at which the customer is updated.
+     * Output only. Time when the customer was updated.
      * 
* * @@ -2645,7 +2619,7 @@ public Builder clearUpdateTime() { * * *
-     * Output only. The time at which the customer is updated.
+     * Output only. Time when the customer was updated.
      * 
* * @@ -2661,7 +2635,7 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * * *
-     * Output only. The time at which the customer is updated.
+     * Output only. Time when the customer was updated.
      * 
* * @@ -2681,7 +2655,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Output only. The time at which the customer is updated.
+     * Output only. Time when the customer was updated.
      * 
* * @@ -2710,8 +2684,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Output only. Customer's cloud_identity_id.
-     * Populated only if a Cloud Identity resource exists for this customer.
+     * Output only. The customer's Cloud Identity ID if the customer has a Cloud
+     * Identity resource.
      * 
* * string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2733,8 +2707,8 @@ public java.lang.String getCloudIdentityId() { * * *
-     * Output only. Customer's cloud_identity_id.
-     * Populated only if a Cloud Identity resource exists for this customer.
+     * Output only. The customer's Cloud Identity ID if the customer has a Cloud
+     * Identity resource.
      * 
* * string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2756,8 +2730,8 @@ public com.google.protobuf.ByteString getCloudIdentityIdBytes() { * * *
-     * Output only. Customer's cloud_identity_id.
-     * Populated only if a Cloud Identity resource exists for this customer.
+     * Output only. The customer's Cloud Identity ID if the customer has a Cloud
+     * Identity resource.
      * 
* * string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2778,8 +2752,8 @@ public Builder setCloudIdentityId(java.lang.String value) { * * *
-     * Output only. Customer's cloud_identity_id.
-     * Populated only if a Cloud Identity resource exists for this customer.
+     * Output only. The customer's Cloud Identity ID if the customer has a Cloud
+     * Identity resource.
      * 
* * string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2796,8 +2770,8 @@ public Builder clearCloudIdentityId() { * * *
-     * Output only. Customer's cloud_identity_id.
-     * Populated only if a Cloud Identity resource exists for this customer.
+     * Output only. The customer's Cloud Identity ID if the customer has a Cloud
+     * Identity resource.
      * 
* * string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java index d2da2550..ead9e2ce 100644 --- a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java +++ b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java @@ -79,11 +79,10 @@ public interface CustomerOrBuilder * * *
-   * Required. Address of the organization of the customer entity.
-   * Region and zip codes are required to enforce US laws and embargoes.
-   * Valid address lines are required for all customers.
-   * Language code is discarded. Use the Customer-level language code to set the
-   * customer's language.
+   * Required. The organization address for the customer. To enforce US laws and
+   * embargoes, we require a region and zip code. You must provide valid
+   * addresses for every customer. To set the customer's language, use the
+   * Customer-level language code.
    * 
* * @@ -97,11 +96,10 @@ public interface CustomerOrBuilder * * *
-   * Required. Address of the organization of the customer entity.
-   * Region and zip codes are required to enforce US laws and embargoes.
-   * Valid address lines are required for all customers.
-   * Language code is discarded. Use the Customer-level language code to set the
-   * customer's language.
+   * Required. The organization address for the customer. To enforce US laws and
+   * embargoes, we require a region and zip code. You must provide valid
+   * addresses for every customer. To set the customer's language, use the
+   * Customer-level language code.
    * 
* * @@ -115,11 +113,10 @@ public interface CustomerOrBuilder * * *
-   * Required. Address of the organization of the customer entity.
-   * Region and zip codes are required to enforce US laws and embargoes.
-   * Valid address lines are required for all customers.
-   * Language code is discarded. Use the Customer-level language code to set the
-   * customer's language.
+   * Required. The organization address for the customer. To enforce US laws and
+   * embargoes, we require a region and zip code. You must provide valid
+   * addresses for every customer. To set the customer's language, use the
+   * Customer-level language code.
    * 
* * @@ -167,11 +164,10 @@ public interface CustomerOrBuilder * * *
-   * Secondary contact email.
-   * Alternate email and primary contact email are required to have different
-   * domains if primary contact email is present.
-   * When creating admin.google.com accounts, users get notified credentials at
-   * this email. This email address is also used as a recovery email.
+   * Secondary contact email. You need to provide an alternate email to create
+   * different domains if a primary contact email already exists. Users will
+   * receive a notification with credentials when you create an admin.google.com
+   * account. Secondary emails are also recovery email addresses.
    * 
* * string alternate_email = 5; @@ -183,11 +179,10 @@ public interface CustomerOrBuilder * * *
-   * Secondary contact email.
-   * Alternate email and primary contact email are required to have different
-   * domains if primary contact email is present.
-   * When creating admin.google.com accounts, users get notified credentials at
-   * this email. This email address is also used as a recovery email.
+   * Secondary contact email. You need to provide an alternate email to create
+   * different domains if a primary contact email already exists. Users will
+   * receive a notification with credentials when you create an admin.google.com
+   * account. Secondary emails are also recovery email addresses.
    * 
* * string alternate_email = 5; @@ -200,9 +195,8 @@ public interface CustomerOrBuilder * * *
-   * Required. Primary domain used by the customer.
-   * Domain of primary contact email is required to be same as the provided
-   * domain.
+   * Required. The customer's primary domain. Must match the primary contact
+   * email's domain.
    * 
* * string domain = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -214,9 +208,8 @@ public interface CustomerOrBuilder * * *
-   * Required. Primary domain used by the customer.
-   * Domain of primary contact email is required to be same as the provided
-   * domain.
+   * Required. The customer's primary domain. Must match the primary contact
+   * email's domain.
    * 
* * string domain = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -229,7 +222,7 @@ public interface CustomerOrBuilder * * *
-   * Output only. The time at which the customer is created.
+   * Output only. Time when the customer was created.
    * 
* * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -242,7 +235,7 @@ public interface CustomerOrBuilder * * *
-   * Output only. The time at which the customer is created.
+   * Output only. Time when the customer was created.
    * 
* * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -255,7 +248,7 @@ public interface CustomerOrBuilder * * *
-   * Output only. The time at which the customer is created.
+   * Output only. Time when the customer was created.
    * 
* * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -267,7 +260,7 @@ public interface CustomerOrBuilder * * *
-   * Output only. The time at which the customer is updated.
+   * Output only. Time when the customer was updated.
    * 
* * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -280,7 +273,7 @@ public interface CustomerOrBuilder * * *
-   * Output only. The time at which the customer is updated.
+   * Output only. Time when the customer was updated.
    * 
* * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -293,7 +286,7 @@ public interface CustomerOrBuilder * * *
-   * Output only. The time at which the customer is updated.
+   * Output only. Time when the customer was updated.
    * 
* * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -305,8 +298,8 @@ public interface CustomerOrBuilder * * *
-   * Output only. Customer's cloud_identity_id.
-   * Populated only if a Cloud Identity resource exists for this customer.
+   * Output only. The customer's Cloud Identity ID if the customer has a Cloud
+   * Identity resource.
    * 
* * string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -318,8 +311,8 @@ public interface CustomerOrBuilder * * *
-   * Output only. Customer's cloud_identity_id.
-   * Populated only if a Cloud Identity resource exists for this customer.
+   * Output only. The customer's Cloud Identity ID if the customer has a Cloud
+   * Identity resource.
    * 
* * string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java index ae4fbe94..097a9cba 100644 --- a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java +++ b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java @@ -252,6 +252,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * LICENSE_ASSIGNMENT_CHANGED = 12; */ LICENSE_ASSIGNMENT_CHANGED(12), + /** + * + * + *
+     * License cap was changed for the entitlement.
+     * 
+ * + * LICENSE_CAP_CHANGED = 13; + */ + LICENSE_CAP_CHANGED(13), UNRECOGNIZED(-1), ; @@ -378,6 +388,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * LICENSE_ASSIGNMENT_CHANGED = 12; */ public static final int LICENSE_ASSIGNMENT_CHANGED_VALUE = 12; + /** + * + * + *
+     * License cap was changed for the entitlement.
+     * 
+ * + * LICENSE_CAP_CHANGED = 13; + */ + public static final int LICENSE_CAP_CHANGED_VALUE = 13; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -427,6 +447,8 @@ public static Type forNumber(int value) { return PAID_SERVICE_STARTED; case 12: return LICENSE_ASSIGNMENT_CHANGED; + case 13: + return LICENSE_CAP_CHANGED; default: return null; } diff --git a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/LookupOfferRequest.java b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/LookupOfferRequest.java new file mode 100644 index 00000000..4aa2e1be --- /dev/null +++ b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/LookupOfferRequest.java @@ -0,0 +1,662 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/channel/v1/service.proto + +package com.google.cloud.channel.v1; + +/** + * + * + *
+ * Request message for LookupOffer.
+ * 
+ * + * Protobuf type {@code google.cloud.channel.v1.LookupOfferRequest} + */ +public final class LookupOfferRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.LookupOfferRequest) + LookupOfferRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LookupOfferRequest.newBuilder() to construct. + private LookupOfferRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LookupOfferRequest() { + entitlement_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LookupOfferRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LookupOfferRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + entitlement_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.channel.v1.ServiceProto + .internal_static_google_cloud_channel_v1_LookupOfferRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.channel.v1.ServiceProto + .internal_static_google_cloud_channel_v1_LookupOfferRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.channel.v1.LookupOfferRequest.class, + com.google.cloud.channel.v1.LookupOfferRequest.Builder.class); + } + + public static final int ENTITLEMENT_FIELD_NUMBER = 1; + private volatile java.lang.Object entitlement_; + /** + * + * + *
+   * Required. The resource name of the entitlement to retrieve the Offer.
+   * Entitlement uses the format:
+   * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
+   * 
+ * + * + * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entitlement. + */ + @java.lang.Override + public java.lang.String getEntitlement() { + java.lang.Object ref = entitlement_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entitlement_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the entitlement to retrieve the Offer.
+   * Entitlement uses the format:
+   * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
+   * 
+ * + * + * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entitlement. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntitlementBytes() { + java.lang.Object ref = entitlement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getEntitlementBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entitlement_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEntitlementBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entitlement_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.channel.v1.LookupOfferRequest)) { + return super.equals(obj); + } + com.google.cloud.channel.v1.LookupOfferRequest other = + (com.google.cloud.channel.v1.LookupOfferRequest) obj; + + if (!getEntitlement().equals(other.getEntitlement())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENTITLEMENT_FIELD_NUMBER; + hash = (53 * hash) + getEntitlement().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.channel.v1.LookupOfferRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for LookupOffer.
+   * 
+ * + * Protobuf type {@code google.cloud.channel.v1.LookupOfferRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.LookupOfferRequest) + com.google.cloud.channel.v1.LookupOfferRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.channel.v1.ServiceProto + .internal_static_google_cloud_channel_v1_LookupOfferRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.channel.v1.ServiceProto + .internal_static_google_cloud_channel_v1_LookupOfferRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.channel.v1.LookupOfferRequest.class, + com.google.cloud.channel.v1.LookupOfferRequest.Builder.class); + } + + // Construct using com.google.cloud.channel.v1.LookupOfferRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entitlement_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.channel.v1.ServiceProto + .internal_static_google_cloud_channel_v1_LookupOfferRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.channel.v1.LookupOfferRequest getDefaultInstanceForType() { + return com.google.cloud.channel.v1.LookupOfferRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.channel.v1.LookupOfferRequest build() { + com.google.cloud.channel.v1.LookupOfferRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.channel.v1.LookupOfferRequest buildPartial() { + com.google.cloud.channel.v1.LookupOfferRequest result = + new com.google.cloud.channel.v1.LookupOfferRequest(this); + result.entitlement_ = entitlement_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.channel.v1.LookupOfferRequest) { + return mergeFrom((com.google.cloud.channel.v1.LookupOfferRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.channel.v1.LookupOfferRequest other) { + if (other == com.google.cloud.channel.v1.LookupOfferRequest.getDefaultInstance()) return this; + if (!other.getEntitlement().isEmpty()) { + entitlement_ = other.entitlement_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.channel.v1.LookupOfferRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.channel.v1.LookupOfferRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object entitlement_ = ""; + /** + * + * + *
+     * Required. The resource name of the entitlement to retrieve the Offer.
+     * Entitlement uses the format:
+     * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
+     * 
+ * + * + * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entitlement. + */ + public java.lang.String getEntitlement() { + java.lang.Object ref = entitlement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entitlement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the entitlement to retrieve the Offer.
+     * Entitlement uses the format:
+     * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
+     * 
+ * + * + * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entitlement. + */ + public com.google.protobuf.ByteString getEntitlementBytes() { + java.lang.Object ref = entitlement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entitlement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the entitlement to retrieve the Offer.
+     * Entitlement uses the format:
+     * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
+     * 
+ * + * + * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The entitlement to set. + * @return This builder for chaining. + */ + public Builder setEntitlement(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entitlement_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the entitlement to retrieve the Offer.
+     * Entitlement uses the format:
+     * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
+     * 
+ * + * + * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEntitlement() { + + entitlement_ = getDefaultInstance().getEntitlement(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the entitlement to retrieve the Offer.
+     * Entitlement uses the format:
+     * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
+     * 
+ * + * + * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for entitlement to set. + * @return This builder for chaining. + */ + public Builder setEntitlementBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entitlement_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.channel.v1.LookupOfferRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.LookupOfferRequest) + private static final com.google.cloud.channel.v1.LookupOfferRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.channel.v1.LookupOfferRequest(); + } + + public static com.google.cloud.channel.v1.LookupOfferRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupOfferRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LookupOfferRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.channel.v1.LookupOfferRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/LookupOfferRequestOrBuilder.java b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/LookupOfferRequestOrBuilder.java new file mode 100644 index 00000000..b39bed90 --- /dev/null +++ b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/LookupOfferRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/channel/v1/service.proto + +package com.google.cloud.channel.v1; + +public interface LookupOfferRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.LookupOfferRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the entitlement to retrieve the Offer.
+   * Entitlement uses the format:
+   * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
+   * 
+ * + * + * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entitlement. + */ + java.lang.String getEntitlement(); + /** + * + * + *
+   * Required. The resource name of the entitlement to retrieve the Offer.
+   * Entitlement uses the format:
+   * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
+   * 
+ * + * + * string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entitlement. + */ + com.google.protobuf.ByteString getEntitlementBytes(); +} diff --git a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java index ff0ea399..6c2c2452 100644 --- a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java +++ b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java @@ -163,6 +163,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_channel_v1_ActivateEntitlementRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_channel_v1_ActivateEntitlementRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_channel_v1_LookupOfferRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_channel_v1_LookupOfferRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_channel_v1_ListProductsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -384,239 +388,253 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\tB\003\340A\001\"G\n\031SuspendEntitlementRequest\022\021\n\004" + "name\030\001 \001(\tB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001" + "\"H\n\032ActivateEntitlementRequest\022\021\n\004name\030\001" - + " \001(\tB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"x\n\023Li" - + "stProductsRequest\022\024\n\007account\030\001 \001(\tB\003\340A\002\022" - + "\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 " - + "\001(\tB\003\340A\001\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\001\"c\n\024" - + "ListProductsResponse\0222\n\010products\030\001 \003(\0132 " - + ".google.cloud.channel.v1.Product\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\261\001\n\017ListSkusRequest\022;\n" - + "\006parent\030\001 \001(\tB+\340A\002\372A%\n#cloudchannel.goog" - + "leapis.com/Product\022\024\n\007account\030\002 \001(\tB\003\340A\002" - + "\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004" - + " \001(\tB\003\340A\001\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\001\"W\n" - + "\020ListSkusResponse\022*\n\004skus\030\001 \003(\0132\034.google" - + ".cloud.channel.v1.Sku\022\027\n\017next_page_token" - + "\030\002 \001(\t\"\212\001\n\021ListOffersRequest\022\023\n\006parent\030\001" - + " \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" - + "e_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022" - + "\032\n\rlanguage_code\030\005 \001(\tB\003\340A\001\"]\n\022ListOffer" - + "sResponse\022.\n\006offers\030\001 \003(\0132\036.google.cloud" - + ".channel.v1.Offer\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\266\005\n\032ListPurchasableSkusRequest\022t\n\033cre" - + "ate_entitlement_purchase\030\002 \001(\0132M.google." - + "cloud.channel.v1.ListPurchasableSkusRequ" - + "est.CreateEntitlementPurchaseH\000\022h\n\025chang" - + "e_offer_purchase\030\003 \001(\0132G.google.cloud.ch" - + "annel.v1.ListPurchasableSkusRequest.Chan" - + "geOfferPurchaseH\000\022>\n\010customer\030\001 \001(\tB,\340A\002" - + "\372A&\n$cloudchannel.googleapis.com/Custome" - + "r\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030" - + "\005 \001(\tB\003\340A\001\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\001\0321" - + "\n\031CreateEntitlementPurchase\022\024\n\007product\030\001" - + " \001(\tB\003\340A\002\032\344\001\n\023ChangeOfferPurchase\022\030\n\013ent" - + "itlement\030\001 \001(\tB\003\340A\002\022l\n\013change_type\030\002 \001(\016" - + "2R.google.cloud.channel.v1.ListPurchasab" - + "leSkusRequest.ChangeOfferPurchase.Change" - + "TypeB\003\340A\002\"E\n\nChangeType\022\033\n\027CHANGE_TYPE_U" - + "NSPECIFIED\020\000\022\013\n\007UPGRADE\020\001\022\r\n\tDOWNGRADE\020\002" - + "B\021\n\017purchase_option\"y\n\033ListPurchasableSk" - + "usResponse\022A\n\020purchasable_skus\030\001 \003(\0132\'.g" - + "oogle.cloud.channel.v1.PurchasableSku\022\027\n" - + "\017next_page_token\030\002 \001(\t\";\n\016PurchasableSku" - + "\022)\n\003sku\030\001 \001(\0132\034.google.cloud.channel.v1." - + "Sku\"\230\004\n\034ListPurchasableOffersRequest\022v\n\033" - + "create_entitlement_purchase\030\002 \001(\0132O.goog" - + "le.cloud.channel.v1.ListPurchasableOffer" - + "sRequest.CreateEntitlementPurchaseH\000\022j\n\025" - + "change_offer_purchase\030\003 \001(\0132I.google.clo" - + "ud.channel.v1.ListPurchasableOffersReque" - + "st.ChangeOfferPurchaseH\000\022>\n\010customer\030\001 \001" - + "(\tB,\340A\002\372A&\n$cloudchannel.googleapis.com/" - + "Customer\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\005 \001(\tB\003\340A\001\022\032\n\rlanguage_code\030\006 \001(\t" - + "B\003\340A\001\032-\n\031CreateEntitlementPurchase\022\020\n\003sk" - + "u\030\001 \001(\tB\003\340A\002\032E\n\023ChangeOfferPurchase\022\030\n\013e" - + "ntitlement\030\001 \001(\tB\003\340A\002\022\024\n\007new_sku\030\002 \001(\tB\003" - + "\340A\001B\021\n\017purchase_option\"\177\n\035ListPurchasabl" - + "eOffersResponse\022E\n\022purchasable_offers\030\001 " - + "\003(\0132).google.cloud.channel.v1.Purchasabl" - + "eOffer\022\027\n\017next_page_token\030\002 \001(\t\"A\n\020Purch" - + "asableOffer\022-\n\005offer\030\001 \001(\0132\036.google.clou" - + "d.channel.v1.Offer\"O\n\031RegisterSubscriber" - + "Request\022\024\n\007account\030\001 \001(\tB\003\340A\002\022\034\n\017service" - + "_account\030\002 \001(\tB\003\340A\002\"+\n\032RegisterSubscribe" - + "rResponse\022\r\n\005topic\030\001 \001(\t\"Q\n\033UnregisterSu" - + "bscriberRequest\022\024\n\007account\030\001 \001(\tB\003\340A\002\022\034\n" - + "\017service_account\030\002 \001(\tB\003\340A\002\"-\n\034Unregiste" - + "rSubscriberResponse\022\r\n\005topic\030\001 \001(\t\"_\n\026Li" - + "stSubscribersRequest\022\024\n\007account\030\001 \001(\tB\003\340" - + "A\002\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" - + "\030\003 \001(\tB\003\340A\001\"[\n\027ListSubscribersResponse\022\r" - + "\n\005topic\030\001 \001(\t\022\030\n\020service_accounts\030\002 \003(\t\022" - + "\027\n\017next_page_token\030\003 \001(\t2\3011\n\023CloudChanne" - + "lService\022\231\001\n\rListCustomers\022-.google.clou" - + "d.channel.v1.ListCustomersRequest\032..goog" - + "le.cloud.channel.v1.ListCustomersRespons" - + "e\")\202\323\344\223\002#\022!/v1/{parent=accounts/*}/custo" - + "mers\022\217\001\n\013GetCustomer\022+.google.cloud.chan" - + "nel.v1.GetCustomerRequest\032!.google.cloud" - + ".channel.v1.Customer\"0\202\323\344\223\002#\022!/v1/{name=" - + "accounts/*/customers/*}\332A\004name\022\350\001\n\037Check" - + "CloudIdentityAccountsExist\022?.google.clou" - + "d.channel.v1.CheckCloudIdentityAccountsE" - + "xistRequest\032@.google.cloud.channel.v1.Ch" - + "eckCloudIdentityAccountsExistResponse\"B\202" - + "\323\344\223\002<\"7/v1/{parent=accounts/*}:checkClou" - + "dIdentityAccountsExist:\001*\022\230\001\n\016CreateCust" - + "omer\022..google.cloud.channel.v1.CreateCus" - + "tomerRequest\032!.google.cloud.channel.v1.C" - + "ustomer\"3\202\323\344\223\002-\"!/v1/{parent=accounts/*}" - + "/customers:\010customer\022\241\001\n\016UpdateCustomer\022" - + "..google.cloud.channel.v1.UpdateCustomer" - + "Request\032!.google.cloud.channel.v1.Custom" - + "er\"<\202\323\344\223\00262*/v1/{customer.name=accounts/" - + "*/customers/*}:\010customer\022\212\001\n\016DeleteCusto" - + "mer\022..google.cloud.channel.v1.DeleteCust" - + "omerRequest\032\026.google.protobuf.Empty\"0\202\323\344" - + "\223\002#*!/v1/{name=accounts/*/customers/*}\332A" - + "\004name\022\330\001\n\026ProvisionCloudIdentity\0226.googl" - + "e.cloud.channel.v1.ProvisionCloudIdentit" - + "yRequest\032\035.google.longrunning.Operation\"" - + "g\202\323\344\223\002A\"" - + "\"9/v1/{name=accounts/*/customers/*/entit" - + "lements/*}:activate:\001*\312A \n\013Entitlement\022\021" - + "OperationMetadata\022\344\001\n\024TransferEntitlemen" - + "ts\0224.google.cloud.channel.v1.TransferEnt" - + "itlementsRequest\032\035.google.longrunning.Op" - + "eration\"w\202\323\344\223\002=\"8/v1/{parent=accounts/*/" - + "customers/*}:transferEntitlements:\001*\312A1\n" - + "\034TransferEntitlementsResponse\022\021Operation" - + "Metadata\022\365\001\n\034TransferEntitlementsToGoogl" - + "e\022<.google.cloud.channel.v1.TransferEnti" - + "tlementsToGoogleRequest\032\035.google.longrun" - + "ning.Operation\"x\202\323\344\223\002E\"@/v1/{parent=acco" - + "unts/*/customers/*}:transferEntitlements" - + "ToGoogle:\001*\312A*\n\025google.protobuf.Empty\022\021O" - + "perationMetadata\022\301\001\n\027ListChannelPartnerL" - + "inks\0227.google.cloud.channel.v1.ListChann" - + "elPartnerLinksRequest\0328.google.cloud.cha" - + "nnel.v1.ListChannelPartnerLinksResponse\"" - + "3\202\323\344\223\002-\022+/v1/{parent=accounts/*}/channel" - + "PartnerLinks\022\260\001\n\025GetChannelPartnerLink\0225" - + ".google.cloud.channel.v1.GetChannelPartn" - + "erLinkRequest\032+.google.cloud.channel.v1." - + "ChannelPartnerLink\"3\202\323\344\223\002-\022+/v1/{name=ac" - + "counts/*/channelPartnerLinks/*}\022\314\001\n\030Crea" - + "teChannelPartnerLink\0228.google.cloud.chan" - + "nel.v1.CreateChannelPartnerLinkRequest\032+" - + ".google.cloud.channel.v1.ChannelPartnerL" - + "ink\"I\202\323\344\223\002C\"+/v1/{parent=accounts/*}/cha" - + "nnelPartnerLinks:\024channel_partner_link\022\271" - + "\001\n\030UpdateChannelPartnerLink\0228.google.clo" - + "ud.channel.v1.UpdateChannelPartnerLinkRe" - + "quest\032+.google.cloud.channel.v1.ChannelP" - + "artnerLink\"6\202\323\344\223\00202+/v1/{name=accounts/*" - + "/channelPartnerLinks/*}:\001*\022\201\001\n\014ListProdu" - + "cts\022,.google.cloud.channel.v1.ListProduc" - + "tsRequest\032-.google.cloud.channel.v1.List" - + "ProductsResponse\"\024\202\323\344\223\002\016\022\014/v1/products\022\205" - + "\001\n\010ListSkus\022(.google.cloud.channel.v1.Li" - + "stSkusRequest\032).google.cloud.channel.v1." - + "ListSkusResponse\"$\202\323\344\223\002\036\022\034/v1/{parent=pr" - + "oducts/*}/skus\022\215\001\n\nListOffers\022*.google.c" - + "loud.channel.v1.ListOffersRequest\032+.goog" - + "le.cloud.channel.v1.ListOffersResponse\"&" - + "\202\323\344\223\002 \022\036/v1/{parent=accounts/*}/offers\022\303" - + "\001\n\023ListPurchasableSkus\0223.google.cloud.ch" - + "annel.v1.ListPurchasableSkusRequest\0324.go" - + "ogle.cloud.channel.v1.ListPurchasableSku" - + "sResponse\"A\202\323\344\223\002;\0229/v1/{customer=account" - + "s/*/customers/*}:listPurchasableSkus\022\313\001\n" - + "\025ListPurchasableOffers\0225.google.cloud.ch" - + "annel.v1.ListPurchasableOffersRequest\0326." - + "google.cloud.channel.v1.ListPurchasableO" - + "ffersResponse\"C\202\323\344\223\002=\022;/v1/{customer=acc" - + "ounts/*/customers/*}:listPurchasableOffe" - + "rs\022\253\001\n\022RegisterSubscriber\0222.google.cloud" - + ".channel.v1.RegisterSubscriberRequest\0323." - + "google.cloud.channel.v1.RegisterSubscrib" - + "erResponse\",\202\323\344\223\002&\"!/v1/{account=account" - + "s/*}:register:\001*\022\263\001\n\024UnregisterSubscribe" - + "r\0224.google.cloud.channel.v1.UnregisterSu" - + "bscriberRequest\0325.google.cloud.channel.v" - + "1.UnregisterSubscriberResponse\".\202\323\344\223\002(\"#" - + "/v1/{account=accounts/*}:unregister:\001*\022\246" - + "\001\n\017ListSubscribers\022/.google.cloud.channe" - + "l.v1.ListSubscribersRequest\0320.google.clo" - + "ud.channel.v1.ListSubscribersResponse\"0\202" - + "\323\344\223\002*\022(/v1/{account=accounts/*}:listSubs" - + "cribers\032K\312A\033cloudchannel.googleapis.com\322" - + "A*https://www.googleapis.com/auth/apps.o" - + "rderBm\n\033com.google.cloud.channel.v1B\014Ser" - + "viceProtoP\001Z>google.golang.org/genproto/" - + "googleapis/cloud/channel/v1;channelb\006pro" - + "to3" + + " \001(\tB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"Z\n\022Lo" + + "okupOfferRequest\022D\n\013entitlement\030\001 \001(\tB/\340" + + "A\002\372A)\n\'cloudchannel.googleapis.com/Entit" + + "lement\"x\n\023ListProductsRequest\022\024\n\007account" + + "\030\001 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" + + "age_token\030\003 \001(\tB\003\340A\001\022\032\n\rlanguage_code\030\004 " + + "\001(\tB\003\340A\001\"c\n\024ListProductsResponse\0222\n\010prod" + + "ucts\030\001 \003(\0132 .google.cloud.channel.v1.Pro" + + "duct\022\027\n\017next_page_token\030\002 \001(\t\"\261\001\n\017ListSk" + + "usRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#cloud" + + "channel.googleapis.com/Product\022\024\n\007accoun" + + "t\030\002 \001(\tB\003\340A\002\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\004 \001(\tB\003\340A\001\022\032\n\rlanguage_code\030\005" + + " \001(\tB\003\340A\001\"W\n\020ListSkusResponse\022*\n\004skus\030\001 " + + "\003(\0132\034.google.cloud.channel.v1.Sku\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\212\001\n\021ListOffersRequest" + + "\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 \001(\005" + + "B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter" + + "\030\004 \001(\tB\003\340A\001\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\001\"" + + "]\n\022ListOffersResponse\022.\n\006offers\030\001 \003(\0132\036." + + "google.cloud.channel.v1.Offer\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"\266\005\n\032ListPurchasableSkusRe" + + "quest\022t\n\033create_entitlement_purchase\030\002 \001" + + "(\0132M.google.cloud.channel.v1.ListPurchas" + + "ableSkusRequest.CreateEntitlementPurchas" + + "eH\000\022h\n\025change_offer_purchase\030\003 \001(\0132G.goo" + + "gle.cloud.channel.v1.ListPurchasableSkus" + + "Request.ChangeOfferPurchaseH\000\022>\n\010custome" + + "r\030\001 \001(\tB,\340A\002\372A&\n$cloudchannel.googleapis" + + ".com/Customer\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n" + + "\npage_token\030\005 \001(\tB\003\340A\001\022\032\n\rlanguage_code\030" + + "\006 \001(\tB\003\340A\001\0321\n\031CreateEntitlementPurchase\022" + + "\024\n\007product\030\001 \001(\tB\003\340A\002\032\344\001\n\023ChangeOfferPur" + + "chase\022\030\n\013entitlement\030\001 \001(\tB\003\340A\002\022l\n\013chang" + + "e_type\030\002 \001(\0162R.google.cloud.channel.v1.L" + + "istPurchasableSkusRequest.ChangeOfferPur" + + "chase.ChangeTypeB\003\340A\002\"E\n\nChangeType\022\033\n\027C" + + "HANGE_TYPE_UNSPECIFIED\020\000\022\013\n\007UPGRADE\020\001\022\r\n" + + "\tDOWNGRADE\020\002B\021\n\017purchase_option\"y\n\033ListP" + + "urchasableSkusResponse\022A\n\020purchasable_sk" + + "us\030\001 \003(\0132\'.google.cloud.channel.v1.Purch" + + "asableSku\022\027\n\017next_page_token\030\002 \001(\t\";\n\016Pu" + + "rchasableSku\022)\n\003sku\030\001 \001(\0132\034.google.cloud" + + ".channel.v1.Sku\"\230\004\n\034ListPurchasableOffer" + + "sRequest\022v\n\033create_entitlement_purchase\030" + + "\002 \001(\0132O.google.cloud.channel.v1.ListPurc" + + "hasableOffersRequest.CreateEntitlementPu" + + "rchaseH\000\022j\n\025change_offer_purchase\030\003 \001(\0132" + + "I.google.cloud.channel.v1.ListPurchasabl" + + "eOffersRequest.ChangeOfferPurchaseH\000\022>\n\010" + + "customer\030\001 \001(\tB,\340A\002\372A&\n$cloudchannel.goo" + + "gleapis.com/Customer\022\026\n\tpage_size\030\004 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\022\032\n\rlanguag" + + "e_code\030\006 \001(\tB\003\340A\001\032-\n\031CreateEntitlementPu" + + "rchase\022\020\n\003sku\030\001 \001(\tB\003\340A\002\032E\n\023ChangeOfferP" + + "urchase\022\030\n\013entitlement\030\001 \001(\tB\003\340A\002\022\024\n\007new" + + "_sku\030\002 \001(\tB\003\340A\001B\021\n\017purchase_option\"\177\n\035Li" + + "stPurchasableOffersResponse\022E\n\022purchasab" + + "le_offers\030\001 \003(\0132).google.cloud.channel.v" + + "1.PurchasableOffer\022\027\n\017next_page_token\030\002 " + + "\001(\t\"A\n\020PurchasableOffer\022-\n\005offer\030\001 \001(\0132\036" + + ".google.cloud.channel.v1.Offer\"O\n\031Regist" + + "erSubscriberRequest\022\024\n\007account\030\001 \001(\tB\003\340A" + + "\002\022\034\n\017service_account\030\002 \001(\tB\003\340A\002\"+\n\032Regis" + + "terSubscriberResponse\022\r\n\005topic\030\001 \001(\t\"Q\n\033" + + "UnregisterSubscriberRequest\022\024\n\007account\030\001" + + " \001(\tB\003\340A\002\022\034\n\017service_account\030\002 \001(\tB\003\340A\002\"" + + "-\n\034UnregisterSubscriberResponse\022\r\n\005topic" + + "\030\001 \001(\t\"_\n\026ListSubscribersRequest\022\024\n\007acco" + + "unt\030\001 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + + "\n\npage_token\030\003 \001(\tB\003\340A\001\"[\n\027ListSubscribe" + + "rsResponse\022\r\n\005topic\030\001 \001(\t\022\030\n\020service_acc" + + "ounts\030\002 \003(\t\022\027\n\017next_page_token\030\003 \001(\t2\2615\n" + + "\023CloudChannelService\022\324\001\n\rListCustomers\022-" + + ".google.cloud.channel.v1.ListCustomersRe" + + "quest\032..google.cloud.channel.v1.ListCust" + + "omersResponse\"d\202\323\344\223\002^\022!/v1/{parent=accou" + + "nts/*}/customersZ9\0227/v1/{parent=accounts" + + "/*/channelPartnerLinks/*}/customers\022\312\001\n\013" + + "GetCustomer\022+.google.cloud.channel.v1.Ge" + + "tCustomerRequest\032!.google.cloud.channel." + + "v1.Customer\"k\202\323\344\223\002^\022!/v1/{name=accounts/" + + "*/customers/*}Z9\0227/v1/{name=accounts/*/c" + + "hannelPartnerLinks/*/customers/*}\332A\004name" + + "\022\350\001\n\037CheckCloudIdentityAccountsExist\022?.g" + + "oogle.cloud.channel.v1.CheckCloudIdentit" + + "yAccountsExistRequest\032@.google.cloud.cha" + + "nnel.v1.CheckCloudIdentityAccountsExistR" + + "esponse\"B\202\323\344\223\002<\"7/v1/{parent=accounts/*}" + + ":checkCloudIdentityAccountsExist:\001*\022\335\001\n\016" + + "CreateCustomer\022..google.cloud.channel.v1" + + ".CreateCustomerRequest\032!.google.cloud.ch" + + "annel.v1.Customer\"x\202\323\344\223\002r\"!/v1/{parent=a" + + "ccounts/*}/customers:\010customerZC\"7/v1/{p" + + "arent=accounts/*/channelPartnerLinks/*}/" + + "customers:\010customer\022\361\001\n\016UpdateCustomer\022." + + ".google.cloud.channel.v1.UpdateCustomerR" + + "equest\032!.google.cloud.channel.v1.Custome" + + "r\"\213\001\202\323\344\223\002\204\0012*/v1/{customer.name=accounts" + + "/*/customers/*}:\010customerZL2@/v1/{custom" + + "er.name=accounts/*/channelPartnerLinks/*" + + "/customers/*}:\010customer\022\305\001\n\016DeleteCustom" + + "er\022..google.cloud.channel.v1.DeleteCusto" + + "merRequest\032\026.google.protobuf.Empty\"k\202\323\344\223" + + "\002^*!/v1/{name=accounts/*/customers/*}Z9*" + + "7/v1/{name=accounts/*/channelPartnerLink" + + "s/*/customers/*}\332A\004name\022\330\001\n\026ProvisionClo" + + "udIdentity\0226.google.cloud.channel.v1.Pro" + + "visionCloudIdentityRequest\032\035.google.long" + + "running.Operation\"g\202\323\344\223\002A\"\"9/v1/{name=accounts/*" + + "/customers/*/entitlements/*}:activate:\001*" + + "\312A \n\013Entitlement\022\021OperationMetadata\022\344\001\n\024" + + "TransferEntitlements\0224.google.cloud.chan" + + "nel.v1.TransferEntitlementsRequest\032\035.goo" + + "gle.longrunning.Operation\"w\202\323\344\223\002=\"8/v1/{" + + "parent=accounts/*/customers/*}:transferE" + + "ntitlements:\001*\312A1\n\034TransferEntitlementsR" + + "esponse\022\021OperationMetadata\022\365\001\n\034TransferE" + + "ntitlementsToGoogle\022<.google.cloud.chann" + + "el.v1.TransferEntitlementsToGoogleReques" + + "t\032\035.google.longrunning.Operation\"x\202\323\344\223\002E" + + "\"@/v1/{parent=accounts/*/customers/*}:tr" + + "ansferEntitlementsToGoogle:\001*\312A*\n\025google" + + ".protobuf.Empty\022\021OperationMetadata\022\301\001\n\027L" + + "istChannelPartnerLinks\0227.google.cloud.ch" + + "annel.v1.ListChannelPartnerLinksRequest\032" + + "8.google.cloud.channel.v1.ListChannelPar" + + "tnerLinksResponse\"3\202\323\344\223\002-\022+/v1/{parent=a" + + "ccounts/*}/channelPartnerLinks\022\260\001\n\025GetCh" + + "annelPartnerLink\0225.google.cloud.channel." + + "v1.GetChannelPartnerLinkRequest\032+.google" + + ".cloud.channel.v1.ChannelPartnerLink\"3\202\323" + + "\344\223\002-\022+/v1/{name=accounts/*/channelPartne" + + "rLinks/*}\022\314\001\n\030CreateChannelPartnerLink\0228" + + ".google.cloud.channel.v1.CreateChannelPa" + + "rtnerLinkRequest\032+.google.cloud.channel." + + "v1.ChannelPartnerLink\"I\202\323\344\223\002C\"+/v1/{pare" + + "nt=accounts/*}/channelPartnerLinks:\024chan" + + "nel_partner_link\022\271\001\n\030UpdateChannelPartne" + + "rLink\0228.google.cloud.channel.v1.UpdateCh" + + "annelPartnerLinkRequest\032+.google.cloud.c" + + "hannel.v1.ChannelPartnerLink\"6\202\323\344\223\00202+/v" + + "1/{name=accounts/*/channelPartnerLinks/*" + + "}:\001*\022\247\001\n\013LookupOffer\022+.google.cloud.chan" + + "nel.v1.LookupOfferRequest\032\036.google.cloud" + + ".channel.v1.Offer\"K\202\323\344\223\002E\022C/v1/{entitlem" + + "ent=accounts/*/customers/*/entitlements/" + + "*}:lookupOffer\022\201\001\n\014ListProducts\022,.google" + + ".cloud.channel.v1.ListProductsRequest\032-." + + "google.cloud.channel.v1.ListProductsResp" + + "onse\"\024\202\323\344\223\002\016\022\014/v1/products\022\205\001\n\010ListSkus\022" + + "(.google.cloud.channel.v1.ListSkusReques" + + "t\032).google.cloud.channel.v1.ListSkusResp" + + "onse\"$\202\323\344\223\002\036\022\034/v1/{parent=products/*}/sk" + + "us\022\215\001\n\nListOffers\022*.google.cloud.channel" + + ".v1.ListOffersRequest\032+.google.cloud.cha" + + "nnel.v1.ListOffersResponse\"&\202\323\344\223\002 \022\036/v1/" + + "{parent=accounts/*}/offers\022\303\001\n\023ListPurch" + + "asableSkus\0223.google.cloud.channel.v1.Lis" + + "tPurchasableSkusRequest\0324.google.cloud.c" + + "hannel.v1.ListPurchasableSkusResponse\"A\202" + + "\323\344\223\002;\0229/v1/{customer=accounts/*/customer" + + "s/*}:listPurchasableSkus\022\313\001\n\025ListPurchas" + + "ableOffers\0225.google.cloud.channel.v1.Lis" + + "tPurchasableOffersRequest\0326.google.cloud" + + ".channel.v1.ListPurchasableOffersRespons" + + "e\"C\202\323\344\223\002=\022;/v1/{customer=accounts/*/cust" + + "omers/*}:listPurchasableOffers\022\253\001\n\022Regis" + + "terSubscriber\0222.google.cloud.channel.v1." + + "RegisterSubscriberRequest\0323.google.cloud" + + ".channel.v1.RegisterSubscriberResponse\"," + + "\202\323\344\223\002&\"!/v1/{account=accounts/*}:registe" + + "r:\001*\022\263\001\n\024UnregisterSubscriber\0224.google.c" + + "loud.channel.v1.UnregisterSubscriberRequ" + + "est\0325.google.cloud.channel.v1.Unregister" + + "SubscriberResponse\".\202\323\344\223\002(\"#/v1/{account" + + "=accounts/*}:unregister:\001*\022\246\001\n\017ListSubsc" + + "ribers\022/.google.cloud.channel.v1.ListSub" + + "scribersRequest\0320.google.cloud.channel.v" + + "1.ListSubscribersResponse\"0\202\323\344\223\002*\022(/v1/{" + + "account=accounts/*}:listSubscribers\032K\312A\033" + + "cloudchannel.googleapis.com\322A*https://ww" + + "w.googleapis.com/auth/apps.orderBm\n\033com." + + "google.cloud.channel.v1B\014ServiceProtoP\001Z" + + ">google.golang.org/genproto/googleapis/c" + + "loud/channel/v1;channelb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -922,8 +940,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_channel_v1_ListProductsRequest_descriptor = + internal_static_google_cloud_channel_v1_LookupOfferRequest_descriptor = getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_channel_v1_LookupOfferRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_channel_v1_LookupOfferRequest_descriptor, + new java.lang.String[] { + "Entitlement", + }); + internal_static_google_cloud_channel_v1_ListProductsRequest_descriptor = + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_channel_v1_ListProductsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListProductsRequest_descriptor, @@ -931,7 +957,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Account", "PageSize", "PageToken", "LanguageCode", }); internal_static_google_cloud_channel_v1_ListProductsResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_channel_v1_ListProductsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListProductsResponse_descriptor, @@ -939,7 +965,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Products", "NextPageToken", }); internal_static_google_cloud_channel_v1_ListSkusRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_channel_v1_ListSkusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListSkusRequest_descriptor, @@ -947,7 +973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Account", "PageSize", "PageToken", "LanguageCode", }); internal_static_google_cloud_channel_v1_ListSkusResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_channel_v1_ListSkusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListSkusResponse_descriptor, @@ -955,7 +981,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Skus", "NextPageToken", }); internal_static_google_cloud_channel_v1_ListOffersRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_channel_v1_ListOffersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListOffersRequest_descriptor, @@ -963,7 +989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "LanguageCode", }); internal_static_google_cloud_channel_v1_ListOffersResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_channel_v1_ListOffersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListOffersResponse_descriptor, @@ -971,7 +997,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offers", "NextPageToken", }); internal_static_google_cloud_channel_v1_ListPurchasableSkusRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_channel_v1_ListPurchasableSkusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListPurchasableSkusRequest_descriptor, @@ -1005,7 +1031,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Entitlement", "ChangeType", }); internal_static_google_cloud_channel_v1_ListPurchasableSkusResponse_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_channel_v1_ListPurchasableSkusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListPurchasableSkusResponse_descriptor, @@ -1013,7 +1039,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PurchasableSkus", "NextPageToken", }); internal_static_google_cloud_channel_v1_PurchasableSku_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_channel_v1_PurchasableSku_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_PurchasableSku_descriptor, @@ -1021,7 +1047,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Sku", }); internal_static_google_cloud_channel_v1_ListPurchasableOffersRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_channel_v1_ListPurchasableOffersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListPurchasableOffersRequest_descriptor, @@ -1055,7 +1081,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Entitlement", "NewSku", }); internal_static_google_cloud_channel_v1_ListPurchasableOffersResponse_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_channel_v1_ListPurchasableOffersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListPurchasableOffersResponse_descriptor, @@ -1063,7 +1089,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PurchasableOffers", "NextPageToken", }); internal_static_google_cloud_channel_v1_PurchasableOffer_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_channel_v1_PurchasableOffer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_PurchasableOffer_descriptor, @@ -1071,7 +1097,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offer", }); internal_static_google_cloud_channel_v1_RegisterSubscriberRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_channel_v1_RegisterSubscriberRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_RegisterSubscriberRequest_descriptor, @@ -1079,7 +1105,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Account", "ServiceAccount", }); internal_static_google_cloud_channel_v1_RegisterSubscriberResponse_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_channel_v1_RegisterSubscriberResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_RegisterSubscriberResponse_descriptor, @@ -1087,7 +1113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_cloud_channel_v1_UnregisterSubscriberRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_channel_v1_UnregisterSubscriberRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_UnregisterSubscriberRequest_descriptor, @@ -1095,7 +1121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Account", "ServiceAccount", }); internal_static_google_cloud_channel_v1_UnregisterSubscriberResponse_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_channel_v1_UnregisterSubscriberResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_UnregisterSubscriberResponse_descriptor, @@ -1103,7 +1129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_cloud_channel_v1_ListSubscribersRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_channel_v1_ListSubscribersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListSubscribersRequest_descriptor, @@ -1111,7 +1137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Account", "PageSize", "PageToken", }); internal_static_google_cloud_channel_v1_ListSubscribersResponse_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_channel_v1_ListSubscribersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListSubscribersResponse_descriptor, diff --git a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/SubscriberEventProto.java b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/SubscriberEventProto.java index 1136924a..262c8b4a 100644 --- a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/SubscriberEventProto.java +++ b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/SubscriberEventProto.java @@ -57,24 +57,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loud.channel.v1.CustomerEvent.Type\"U\n\004Ty" + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\032\n\026PRIMARY_DOMA" + "IN_CHANGED\020\001\022\033\n\027PRIMARY_DOMAIN_VERIFIED\020" - + "\002\"\230\003\n\020EntitlementEvent\022A\n\013entitlement\030\001 " + + "\002\"\261\003\n\020EntitlementEvent\022A\n\013entitlement\030\001 " + "\001(\tB,\372A)\n\'cloudchannel.googleapis.com/En" + "titlement\022B\n\nevent_type\030\002 \001(\0162..google.c" - + "loud.channel.v1.EntitlementEvent.Type\"\374\001" + + "loud.channel.v1.EntitlementEvent.Type\"\225\002" + "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020" + "\001\022\027\n\023PRICE_PLAN_SWITCHED\020\003\022\026\n\022COMMITMENT" + "_CHANGED\020\004\022\013\n\007RENEWED\020\005\022\r\n\tSUSPENDED\020\006\022\r" + "\n\tACTIVATED\020\007\022\r\n\tCANCELLED\020\010\022\017\n\013SKU_CHAN" + "GED\020\t\022\033\n\027RENEWAL_SETTING_CHANGED\020\n\022\030\n\024PA" + "ID_SERVICE_STARTED\020\013\022\036\n\032LICENSE_ASSIGNME" - + "NT_CHANGED\020\014\"\244\001\n\017SubscriberEvent\022@\n\016cust" - + "omer_event\030\001 \001(\0132&.google.cloud.channel." - + "v1.CustomerEventH\000\022F\n\021entitlement_event\030" - + "\002 \001(\0132).google.cloud.channel.v1.Entitlem" - + "entEventH\000B\007\n\005eventBu\n\033com.google.cloud." - + "channel.v1B\024SubscriberEventProtoP\001Z>goog" - + "le.golang.org/genproto/googleapis/cloud/" - + "channel/v1;channelb\006proto3" + + "NT_CHANGED\020\014\022\027\n\023LICENSE_CAP_CHANGED\020\r\"\244\001" + + "\n\017SubscriberEvent\022@\n\016customer_event\030\001 \001(" + + "\0132&.google.cloud.channel.v1.CustomerEven" + + "tH\000\022F\n\021entitlement_event\030\002 \001(\0132).google." + + "cloud.channel.v1.EntitlementEventH\000B\007\n\005e" + + "ventBu\n\033com.google.cloud.channel.v1B\024Sub" + + "scriberEventProtoP\001Z>google.golang.org/g" + + "enproto/googleapis/cloud/channel/v1;chan" + + "nelb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto b/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto index f41d7e0b..3ba96c0a 100644 --- a/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto +++ b/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto @@ -42,36 +42,33 @@ message Customer { // Required. Name of the organization that the customer entity represents. string org_display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. Address of the organization of the customer entity. - // Region and zip codes are required to enforce US laws and embargoes. - // Valid address lines are required for all customers. - // Language code is discarded. Use the Customer-level language code to set the - // customer's language. + // Required. The organization address for the customer. To enforce US laws and + // embargoes, we require a region and zip code. You must provide valid + // addresses for every customer. To set the customer's language, use the + // Customer-level language code. google.type.PostalAddress org_postal_address = 3 [(google.api.field_behavior) = REQUIRED]; // Primary contact info. ContactInfo primary_contact_info = 4; - // Secondary contact email. - // Alternate email and primary contact email are required to have different - // domains if primary contact email is present. - // When creating admin.google.com accounts, users get notified credentials at - // this email. This email address is also used as a recovery email. + // Secondary contact email. You need to provide an alternate email to create + // different domains if a primary contact email already exists. Users will + // receive a notification with credentials when you create an admin.google.com + // account. Secondary emails are also recovery email addresses. string alternate_email = 5; - // Required. Primary domain used by the customer. - // Domain of primary contact email is required to be same as the provided - // domain. + // Required. The customer's primary domain. Must match the primary contact + // email's domain. string domain = 6 [(google.api.field_behavior) = REQUIRED]; - // Output only. The time at which the customer is created. + // Output only. Time when the customer was created. google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The time at which the customer is updated. + // Output only. Time when the customer was updated. google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Customer's cloud_identity_id. - // Populated only if a Cloud Identity resource exists for this customer. + // Output only. The customer's Cloud Identity ID if the customer has a Cloud + // Identity resource. string cloud_identity_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more @@ -90,25 +87,24 @@ message Customer { // Contact information for a customer account. message ContactInfo { - // First name of the contact in the customer account. + // The customer account contact's first name. string first_name = 1; - // Last name of the contact in the customer account. + // The customer account contact's last name. string last_name = 2; - // Output only. Display name of the contact in the customer account. - // Populated by combining customer first name and last name. + // Output only. The customer account contact's display name, formatted as a + // combination of the customer's first and last name. string display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Email of the contact in the customer account. - // Email is required for entitlements that need creation of admin.google.com - // accounts. The email will be the username used in credentials to access the - // admin.google.com account. + // The customer account's contact email. Required for entitlements that create + // admin.google.com accounts, and serves as the customer's username for those + // accounts. string email = 5; - // Optional. Job title of the contact in the customer account. + // Optional. The customer account contact's job title. string title = 6 [(google.api.field_behavior) = OPTIONAL]; - // Phone number of the contact in the customer account. + // The customer account's contact phone number. string phone = 7; } diff --git a/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto b/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto index d8954ee7..62aa3cd7 100644 --- a/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto +++ b/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto @@ -71,10 +71,13 @@ service CloudChannelService { rpc ListCustomers(ListCustomersRequest) returns (ListCustomersResponse) { option (google.api.http) = { get: "/v1/{parent=accounts/*}/customers" + additional_bindings { + get: "/v1/{parent=accounts/*/channelPartnerLinks/*}/customers" + } }; } - // Returns a requested [Customer][google.cloud.channel.v1.Customer] resource. + // Returns the requested [Customer][google.cloud.channel.v1.Customer] resource. // // Possible error codes: // @@ -89,6 +92,9 @@ service CloudChannelService { rpc GetCustomer(GetCustomerRequest) returns (Customer) { option (google.api.http) = { get: "/v1/{name=accounts/*/customers/*}" + additional_bindings { + get: "/v1/{name=accounts/*/channelPartnerLinks/*/customers/*}" + } }; option (google.api.method_signature) = "name"; } @@ -133,6 +139,10 @@ service CloudChannelService { option (google.api.http) = { post: "/v1/{parent=accounts/*}/customers" body: "customer" + additional_bindings { + post: "/v1/{parent=accounts/*/channelPartnerLinks/*}/customers" + body: "customer" + } }; } @@ -152,10 +162,14 @@ service CloudChannelService { option (google.api.http) = { patch: "/v1/{customer.name=accounts/*/customers/*}" body: "customer" + additional_bindings { + patch: "/v1/{customer.name=accounts/*/channelPartnerLinks/*/customers/*}" + body: "customer" + } }; } - // Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently and irreversibly. + // Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently. // // Possible error codes: // @@ -167,6 +181,9 @@ service CloudChannelService { rpc DeleteCustomer(DeleteCustomerRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=accounts/*/customers/*}" + additional_bindings { + delete: "/v1/{name=accounts/*/channelPartnerLinks/*/customers/*}" + } }; option (google.api.method_signature) = "name"; } @@ -268,7 +285,7 @@ service CloudChannelService { }; } - // Returns a requested [Entitlement][google.cloud.channel.v1.Entitlement] resource. + // Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource. // // Possible error codes: // @@ -670,7 +687,7 @@ service CloudChannelService { }; } - // Returns a requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. + // Returns the requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. // You must be a distributor to call this method. // // Possible error codes: @@ -746,6 +763,22 @@ service CloudChannelService { }; } + // Returns the requested [Offer][google.cloud.channel.v1.Offer] resource. + // + // Possible error codes: + // + // * PERMISSION_DENIED: The entitlement doesn't belong to the reseller. + // * INVALID_ARGUMENT: Required request parameters are missing or invalid. + // * NOT_FOUND: Entitlement or offer was not found. + // + // Return value: + // The [Offer][google.cloud.channel.v1.Offer] resource. + rpc LookupOffer(LookupOfferRequest) returns (Offer) { + option (google.api.http) = { + get: "/v1/{entitlement=accounts/*/customers/*/entitlements/*}:lookupOffer" + }; + } + // Lists the Products the reseller is authorized to sell. // // Possible error codes: @@ -1508,6 +1541,19 @@ message ActivateEntitlementRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for LookupOffer. +message LookupOfferRequest { + // Required. The resource name of the entitlement to retrieve the Offer. + // Entitlement uses the format: + // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} + string entitlement = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudchannel.googleapis.com/Entitlement" + } + ]; +} + // Request message for ListProducts. message ListProductsRequest { // Required. The resource name of the reseller account. diff --git a/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto b/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto index a45c47e7..3b6ec045 100644 --- a/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto +++ b/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto @@ -90,6 +90,9 @@ message EntitlementEvent { // License was assigned to or revoked from a user. LICENSE_ASSIGNMENT_CHANGED = 12; + + // License cap was changed for the entitlement. + LICENSE_CAP_CHANGED = 13; } // Resource name of an entitlement of the form: diff --git a/synth.metadata b/synth.metadata index eb181385..d59943c9 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-channel.git", - "sha": "40c490928d97f45ffafe84f09a5ee578dba85cd8" + "sha": "aedb38abe0d8e67fe5668b0dea16b1331fa979c9" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda", - "internalRef": "377081269" + "sha": "97d42c651f42bc3173b39ac8a9f97ea1d6b1196c", + "internalRef": "378177991" } }, { @@ -224,6 +224,8 @@ "proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListTransferableSkusRequestOrBuilder.java", "proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListTransferableSkusResponse.java", "proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListTransferableSkusResponseOrBuilder.java", + "proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/LookupOfferRequest.java", + "proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/LookupOfferRequestOrBuilder.java", "proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/MarketingInfo.java", "proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/MarketingInfoOrBuilder.java", "proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Media.java",