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 9de1c632..12ea9bf0 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 @@ -805,6 +805,92 @@ public final UnaryCallable deleteCustomerCallable( return stub.deleteCustomerCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud Identity associated with + * the provided Cloud Identity ID or domain before a TransferEntitlements call. If a linked + * Customer already exists and overwrite_if_exists is true, it will update that Customer's data. + * + *

Possible error codes: + * + *

+ * + *

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

Sample code: + * + *

{@code
+   * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
+   *   ImportCustomerRequest request =
+   *       ImportCustomerRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setAuthToken("authToken1450587441")
+   *           .setOverwriteIfExists(true)
+   *           .setChannelPartnerId("channelPartnerId-170366400")
+   *           .setCustomer(CustomerName.of("[ACCOUNT]", "[CUSTOMER]").toString())
+   *           .build();
+   *   Customer response = cloudChannelServiceClient.importCustomer(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 Customer importCustomer(ImportCustomerRequest request) { + return importCustomerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud Identity associated with + * the provided Cloud Identity ID or domain before a TransferEntitlements call. If a linked + * Customer already exists and overwrite_if_exists is true, it will update that Customer's data. + * + *

Possible error codes: + * + *

+ * + *

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

Sample code: + * + *

{@code
+   * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
+   *   ImportCustomerRequest request =
+   *       ImportCustomerRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setAuthToken("authToken1450587441")
+   *           .setOverwriteIfExists(true)
+   *           .setChannelPartnerId("channelPartnerId-170366400")
+   *           .setCustomer(CustomerName.of("[ACCOUNT]", "[CUSTOMER]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudChannelServiceClient.importCustomerCallable().futureCall(request);
+   *   // Do something.
+   *   Customer response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable importCustomerCallable() { + return stub.importCustomerCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a Cloud Identity for the given customer using the customer's information, or the 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 47fadbb6..cc4d2bac 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 @@ -117,6 +117,11 @@ public UnaryCallSettings deleteCustomerSettings() return ((CloudChannelServiceStubSettings) getStubSettings()).deleteCustomerSettings(); } + /** Returns the object with the settings used for calls to importCustomer. */ + public UnaryCallSettings importCustomerSettings() { + return ((CloudChannelServiceStubSettings) getStubSettings()).importCustomerSettings(); + } + /** Returns the object with the settings used for calls to provisionCloudIdentity. */ public UnaryCallSettings provisionCloudIdentitySettings() { @@ -499,6 +504,11 @@ public UnaryCallSettings.Builder deleteCustomerSet return getStubSettingsBuilder().deleteCustomerSettings(); } + /** Returns the builder for the settings used for calls to importCustomer. */ + public UnaryCallSettings.Builder importCustomerSettings() { + return getStubSettingsBuilder().importCustomerSettings(); + } + /** Returns the builder for the settings used for calls to provisionCloudIdentity. */ public UnaryCallSettings.Builder provisionCloudIdentitySettings() { 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 e7b29970..55a95afc 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 @@ -49,6 +49,9 @@ "GetEntitlement": { "methods": ["getEntitlement", "getEntitlementCallable"] }, + "ImportCustomer": { + "methods": ["importCustomer", "importCustomerCallable"] + }, "ListChannelPartnerLinks": { "methods": ["listChannelPartnerLinks", "listChannelPartnerLinksPagedCallable", "listChannelPartnerLinksCallable"] }, 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 a6108b0a..70689cb8 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 @@ -48,6 +48,7 @@ import com.google.cloud.channel.v1.GetChannelPartnerLinkRequest; import com.google.cloud.channel.v1.GetCustomerRequest; import com.google.cloud.channel.v1.GetEntitlementRequest; +import com.google.cloud.channel.v1.ImportCustomerRequest; import com.google.cloud.channel.v1.ListChannelPartnerLinksRequest; import com.google.cloud.channel.v1.ListChannelPartnerLinksResponse; import com.google.cloud.channel.v1.ListCustomersRequest; @@ -135,6 +136,10 @@ public UnaryCallable deleteCustomerCallable() { throw new UnsupportedOperationException("Not implemented: deleteCustomerCallable()"); } + public UnaryCallable importCustomerCallable() { + throw new UnsupportedOperationException("Not implemented: importCustomerCallable()"); + } + public OperationCallable provisionCloudIdentityOperationCallable() { throw new UnsupportedOperationException( 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 de6ec833..6b47c4a7 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 @@ -71,6 +71,7 @@ import com.google.cloud.channel.v1.GetChannelPartnerLinkRequest; import com.google.cloud.channel.v1.GetCustomerRequest; import com.google.cloud.channel.v1.GetEntitlementRequest; +import com.google.cloud.channel.v1.ImportCustomerRequest; import com.google.cloud.channel.v1.ListChannelPartnerLinksRequest; import com.google.cloud.channel.v1.ListChannelPartnerLinksResponse; import com.google.cloud.channel.v1.ListCustomersRequest; @@ -174,6 +175,7 @@ public class CloudChannelServiceStubSettings extends StubSettings createCustomerSettings; private final UnaryCallSettings updateCustomerSettings; private final UnaryCallSettings deleteCustomerSettings; + private final UnaryCallSettings importCustomerSettings; private final UnaryCallSettings provisionCloudIdentitySettings; private final OperationCallSettings @@ -953,6 +955,11 @@ public UnaryCallSettings deleteCustomerSettings() return deleteCustomerSettings; } + /** Returns the object with the settings used for calls to importCustomer. */ + public UnaryCallSettings importCustomerSettings() { + return importCustomerSettings; + } + /** Returns the object with the settings used for calls to provisionCloudIdentity. */ public UnaryCallSettings provisionCloudIdentitySettings() { @@ -1276,6 +1283,7 @@ protected CloudChannelServiceStubSettings(Builder settingsBuilder) throws IOExce createCustomerSettings = settingsBuilder.createCustomerSettings().build(); updateCustomerSettings = settingsBuilder.updateCustomerSettings().build(); deleteCustomerSettings = settingsBuilder.deleteCustomerSettings().build(); + importCustomerSettings = settingsBuilder.importCustomerSettings().build(); provisionCloudIdentitySettings = settingsBuilder.provisionCloudIdentitySettings().build(); provisionCloudIdentityOperationSettings = settingsBuilder.provisionCloudIdentityOperationSettings().build(); @@ -1340,6 +1348,7 @@ public static class Builder private final UnaryCallSettings.Builder createCustomerSettings; private final UnaryCallSettings.Builder updateCustomerSettings; private final UnaryCallSettings.Builder deleteCustomerSettings; + private final UnaryCallSettings.Builder importCustomerSettings; private final UnaryCallSettings.Builder provisionCloudIdentitySettings; private final OperationCallSettings.Builder< @@ -1500,6 +1509,7 @@ protected Builder(ClientContext clientContext) { createCustomerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateCustomerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteCustomerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importCustomerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); provisionCloudIdentitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); provisionCloudIdentityOperationSettings = OperationCallSettings.newBuilder(); listEntitlementsSettings = PagedCallSettings.newBuilder(LIST_ENTITLEMENTS_PAGE_STR_FACT); @@ -1553,6 +1563,7 @@ protected Builder(ClientContext clientContext) { createCustomerSettings, updateCustomerSettings, deleteCustomerSettings, + importCustomerSettings, provisionCloudIdentitySettings, listEntitlementsSettings, listTransferableSkusSettings, @@ -1594,6 +1605,7 @@ protected Builder(CloudChannelServiceStubSettings settings) { createCustomerSettings = settings.createCustomerSettings.toBuilder(); updateCustomerSettings = settings.updateCustomerSettings.toBuilder(); deleteCustomerSettings = settings.deleteCustomerSettings.toBuilder(); + importCustomerSettings = settings.importCustomerSettings.toBuilder(); provisionCloudIdentitySettings = settings.provisionCloudIdentitySettings.toBuilder(); provisionCloudIdentityOperationSettings = settings.provisionCloudIdentityOperationSettings.toBuilder(); @@ -1649,6 +1661,7 @@ protected Builder(CloudChannelServiceStubSettings settings) { createCustomerSettings, updateCustomerSettings, deleteCustomerSettings, + importCustomerSettings, provisionCloudIdentitySettings, listEntitlementsSettings, listTransferableSkusSettings, @@ -1723,6 +1736,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 + .importCustomerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .provisionCloudIdentitySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -2180,6 +2198,11 @@ public UnaryCallSettings.Builder deleteCustomerSet return deleteCustomerSettings; } + /** Returns the builder for the settings used for calls to importCustomer. */ + public UnaryCallSettings.Builder importCustomerSettings() { + return importCustomerSettings; + } + /** Returns the builder for the settings used for calls to provisionCloudIdentity. */ public UnaryCallSettings.Builder provisionCloudIdentitySettings() { 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 d9972398..bf3d3960 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 @@ -52,6 +52,7 @@ import com.google.cloud.channel.v1.GetChannelPartnerLinkRequest; import com.google.cloud.channel.v1.GetCustomerRequest; import com.google.cloud.channel.v1.GetEntitlementRequest; +import com.google.cloud.channel.v1.ImportCustomerRequest; import com.google.cloud.channel.v1.ListChannelPartnerLinksRequest; import com.google.cloud.channel.v1.ListChannelPartnerLinksResponse; import com.google.cloud.channel.v1.ListCustomersRequest; @@ -173,6 +174,16 @@ public class GrpcCloudChannelServiceStub extends CloudChannelServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + importCustomerMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.channel.v1.CloudChannelService/ImportCustomer") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportCustomerRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Customer.getDefaultInstance())) + .build(); + private static final MethodDescriptor provisionCloudIdentityMethodDescriptor = MethodDescriptor.newBuilder() @@ -479,6 +490,7 @@ public class GrpcCloudChannelServiceStub extends CloudChannelServiceStub { private final UnaryCallable createCustomerCallable; private final UnaryCallable updateCustomerCallable; private final UnaryCallable deleteCustomerCallable; + private final UnaryCallable importCustomerCallable; private final UnaryCallable provisionCloudIdentityCallable; private final OperationCallable @@ -672,6 +684,16 @@ protected GrpcCloudChannelServiceStub( return params.build(); }) .build(); + GrpcCallSettings importCustomerTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importCustomerMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); GrpcCallSettings provisionCloudIdentityTransportSettings = GrpcCallSettings.newBuilder() @@ -988,6 +1010,9 @@ protected GrpcCloudChannelServiceStub( this.deleteCustomerCallable = callableFactory.createUnaryCallable( deleteCustomerTransportSettings, settings.deleteCustomerSettings(), clientContext); + this.importCustomerCallable = + callableFactory.createUnaryCallable( + importCustomerTransportSettings, settings.importCustomerSettings(), clientContext); this.provisionCloudIdentityCallable = callableFactory.createUnaryCallable( provisionCloudIdentityTransportSettings, @@ -1261,6 +1286,11 @@ public UnaryCallable deleteCustomerCallable() { return deleteCustomerCallable; } + @Override + public UnaryCallable importCustomerCallable() { + return importCustomerCallable; + } + @Override public UnaryCallable provisionCloudIdentityCallable() { return provisionCloudIdentityCallable; 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 905a2755..6ac7c52c 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 @@ -484,6 +484,75 @@ public void deleteCustomerExceptionTest2() throws Exception { } } + @Test + public void importCustomerTest() throws Exception { + Customer expectedResponse = + Customer.newBuilder() + .setName(CustomerName.of("[ACCOUNT]", "[CUSTOMER]").toString()) + .setOrgDisplayName("orgDisplayName127031529") + .setOrgPostalAddress(PostalAddress.newBuilder().build()) + .setPrimaryContactInfo(ContactInfo.newBuilder().build()) + .setAlternateEmail("alternateEmail-232564926") + .setDomain("domain-1326197564") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCloudIdentityId("cloudIdentityId941784718") + .setLanguageCode("languageCode-2092349083") + .setCloudIdentityInfo(CloudIdentityInfo.newBuilder().build()) + .setChannelPartnerId("channelPartnerId-170366400") + .build(); + mockCloudChannelService.addResponse(expectedResponse); + + ImportCustomerRequest request = + ImportCustomerRequest.newBuilder() + .setParent("parent-995424086") + .setAuthToken("authToken1450587441") + .setOverwriteIfExists(true) + .setChannelPartnerId("channelPartnerId-170366400") + .setCustomer(CustomerName.of("[ACCOUNT]", "[CUSTOMER]").toString()) + .build(); + + Customer actualResponse = client.importCustomer(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudChannelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportCustomerRequest actualRequest = ((ImportCustomerRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getDomain(), actualRequest.getDomain()); + Assert.assertEquals(request.getCloudIdentityId(), actualRequest.getCloudIdentityId()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getAuthToken(), actualRequest.getAuthToken()); + Assert.assertEquals(request.getOverwriteIfExists(), actualRequest.getOverwriteIfExists()); + Assert.assertEquals(request.getChannelPartnerId(), actualRequest.getChannelPartnerId()); + Assert.assertEquals(request.getCustomer(), actualRequest.getCustomer()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importCustomerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudChannelService.addException(exception); + + try { + ImportCustomerRequest request = + ImportCustomerRequest.newBuilder() + .setParent("parent-995424086") + .setAuthToken("authToken1450587441") + .setOverwriteIfExists(true) + .setChannelPartnerId("channelPartnerId-170366400") + .setCustomer(CustomerName.of("[ACCOUNT]", "[CUSTOMER]").toString()) + .build(); + client.importCustomer(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void provisionCloudIdentityTest() throws Exception { Customer expectedResponse = 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 580bb78f..bff7ed00 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 @@ -186,6 +186,27 @@ public void deleteCustomer( } } + @Override + public void importCustomer( + ImportCustomerRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Customer) { + requests.add(request); + responseObserver.onNext(((Customer) 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 ImportCustomer, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Customer.class.getName(), + Exception.class.getName()))); + } + } + @Override public void provisionCloudIdentity( ProvisionCloudIdentityRequest 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 3249f3ee..1f12df70 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 @@ -319,6 +319,49 @@ private CloudChannelServiceGrpc() {} return getDeleteCustomerMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.channel.v1.ImportCustomerRequest, com.google.cloud.channel.v1.Customer> + getImportCustomerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportCustomer", + requestType = com.google.cloud.channel.v1.ImportCustomerRequest.class, + responseType = com.google.cloud.channel.v1.Customer.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.channel.v1.ImportCustomerRequest, com.google.cloud.channel.v1.Customer> + getImportCustomerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.channel.v1.ImportCustomerRequest, com.google.cloud.channel.v1.Customer> + getImportCustomerMethod; + if ((getImportCustomerMethod = CloudChannelServiceGrpc.getImportCustomerMethod) == null) { + synchronized (CloudChannelServiceGrpc.class) { + if ((getImportCustomerMethod = CloudChannelServiceGrpc.getImportCustomerMethod) == null) { + CloudChannelServiceGrpc.getImportCustomerMethod = + getImportCustomerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportCustomer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.channel.v1.ImportCustomerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.channel.v1.Customer.getDefaultInstance())) + .setSchemaDescriptor( + new CloudChannelServiceMethodDescriptorSupplier("ImportCustomer")) + .build(); + } + } + } + return getImportCustomerMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.channel.v1.ProvisionCloudIdentityRequest, com.google.longrunning.Operation> @@ -1852,6 +1895,33 @@ public void deleteCustomer( getDeleteCustomerMethod(), responseObserver); } + /** + * + * + *
+     * Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud Identity associated with the provided
+     * Cloud Identity ID or domain before a TransferEntitlements call. If a
+     * linked Customer already exists and overwrite_if_exists is true, it will
+     * update that Customer's data.
+     * Possible error codes:
+     * * PERMISSION_DENIED: The reseller account making the request is different
+     * from the reseller account in the API request.
+     * * NOT_FOUND: Cloud Identity doesn't exist or was deleted.
+     * * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is
+     * expired or invalid.
+     * * ALREADY_EXISTS: A customer already exists and has conflicting critical
+     * fields. Requires an overwrite.
+     * Return value:
+     * The [Customer][google.cloud.channel.v1.Customer].
+     * 
+ */ + public void importCustomer( + com.google.cloud.channel.v1.ImportCustomerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportCustomerMethod(), responseObserver); + } + /** * * @@ -2669,6 +2739,12 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.channel.v1.DeleteCustomerRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_CUSTOMER))) + .addMethod( + getImportCustomerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.channel.v1.ImportCustomerRequest, + com.google.cloud.channel.v1.Customer>(this, METHODID_IMPORT_CUSTOMER))) .addMethod( getProvisionCloudIdentityMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3035,6 +3111,35 @@ public void deleteCustomer( responseObserver); } + /** + * + * + *
+     * Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud Identity associated with the provided
+     * Cloud Identity ID or domain before a TransferEntitlements call. If a
+     * linked Customer already exists and overwrite_if_exists is true, it will
+     * update that Customer's data.
+     * Possible error codes:
+     * * PERMISSION_DENIED: The reseller account making the request is different
+     * from the reseller account in the API request.
+     * * NOT_FOUND: Cloud Identity doesn't exist or was deleted.
+     * * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is
+     * expired or invalid.
+     * * ALREADY_EXISTS: A customer already exists and has conflicting critical
+     * fields. Requires an overwrite.
+     * Return value:
+     * The [Customer][google.cloud.channel.v1.Customer].
+     * 
+ */ + public void importCustomer( + com.google.cloud.channel.v1.ImportCustomerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportCustomerMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4027,6 +4132,32 @@ public com.google.protobuf.Empty deleteCustomer( getChannel(), getDeleteCustomerMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud Identity associated with the provided
+     * Cloud Identity ID or domain before a TransferEntitlements call. If a
+     * linked Customer already exists and overwrite_if_exists is true, it will
+     * update that Customer's data.
+     * Possible error codes:
+     * * PERMISSION_DENIED: The reseller account making the request is different
+     * from the reseller account in the API request.
+     * * NOT_FOUND: Cloud Identity doesn't exist or was deleted.
+     * * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is
+     * expired or invalid.
+     * * ALREADY_EXISTS: A customer already exists and has conflicting critical
+     * fields. Requires an overwrite.
+     * Return value:
+     * The [Customer][google.cloud.channel.v1.Customer].
+     * 
+ */ + public com.google.cloud.channel.v1.Customer importCustomer( + com.google.cloud.channel.v1.ImportCustomerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportCustomerMethod(), getCallOptions(), request); + } + /** * * @@ -4927,6 +5058,32 @@ protected CloudChannelServiceFutureStub build( getChannel().newCall(getDeleteCustomerMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud Identity associated with the provided
+     * Cloud Identity ID or domain before a TransferEntitlements call. If a
+     * linked Customer already exists and overwrite_if_exists is true, it will
+     * update that Customer's data.
+     * Possible error codes:
+     * * PERMISSION_DENIED: The reseller account making the request is different
+     * from the reseller account in the API request.
+     * * NOT_FOUND: Cloud Identity doesn't exist or was deleted.
+     * * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is
+     * expired or invalid.
+     * * ALREADY_EXISTS: A customer already exists and has conflicting critical
+     * fields. Requires an overwrite.
+     * Return value:
+     * The [Customer][google.cloud.channel.v1.Customer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + importCustomer(com.google.cloud.channel.v1.ImportCustomerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportCustomerMethod(), getCallOptions()), request); + } + /** * * @@ -5689,34 +5846,35 @@ protected CloudChannelServiceFutureStub build( private static final int METHODID_CREATE_CUSTOMER = 3; private static final int METHODID_UPDATE_CUSTOMER = 4; private static final int METHODID_DELETE_CUSTOMER = 5; - private static final int METHODID_PROVISION_CLOUD_IDENTITY = 6; - private static final int METHODID_LIST_ENTITLEMENTS = 7; - private static final int METHODID_LIST_TRANSFERABLE_SKUS = 8; - private static final int METHODID_LIST_TRANSFERABLE_OFFERS = 9; - private static final int METHODID_GET_ENTITLEMENT = 10; - private static final int METHODID_CREATE_ENTITLEMENT = 11; - private static final int METHODID_CHANGE_PARAMETERS = 12; - private static final int METHODID_CHANGE_RENEWAL_SETTINGS = 13; - private static final int METHODID_CHANGE_OFFER = 14; - private static final int METHODID_START_PAID_SERVICE = 15; - private static final int METHODID_SUSPEND_ENTITLEMENT = 16; - private static final int METHODID_CANCEL_ENTITLEMENT = 17; - private static final int METHODID_ACTIVATE_ENTITLEMENT = 18; - private static final int METHODID_TRANSFER_ENTITLEMENTS = 19; - private static final int METHODID_TRANSFER_ENTITLEMENTS_TO_GOOGLE = 20; - private static final int METHODID_LIST_CHANNEL_PARTNER_LINKS = 21; - 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_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 int METHODID_IMPORT_CUSTOMER = 6; + private static final int METHODID_PROVISION_CLOUD_IDENTITY = 7; + private static final int METHODID_LIST_ENTITLEMENTS = 8; + private static final int METHODID_LIST_TRANSFERABLE_SKUS = 9; + private static final int METHODID_LIST_TRANSFERABLE_OFFERS = 10; + private static final int METHODID_GET_ENTITLEMENT = 11; + private static final int METHODID_CREATE_ENTITLEMENT = 12; + private static final int METHODID_CHANGE_PARAMETERS = 13; + private static final int METHODID_CHANGE_RENEWAL_SETTINGS = 14; + private static final int METHODID_CHANGE_OFFER = 15; + private static final int METHODID_START_PAID_SERVICE = 16; + private static final int METHODID_SUSPEND_ENTITLEMENT = 17; + private static final int METHODID_CANCEL_ENTITLEMENT = 18; + private static final int METHODID_ACTIVATE_ENTITLEMENT = 19; + private static final int METHODID_TRANSFER_ENTITLEMENTS = 20; + private static final int METHODID_TRANSFER_ENTITLEMENTS_TO_GOOGLE = 21; + private static final int METHODID_LIST_CHANNEL_PARTNER_LINKS = 22; + private static final int METHODID_GET_CHANNEL_PARTNER_LINK = 23; + private static final int METHODID_CREATE_CHANNEL_PARTNER_LINK = 24; + private static final int METHODID_UPDATE_CHANNEL_PARTNER_LINK = 25; + private static final int METHODID_LOOKUP_OFFER = 26; + private static final int METHODID_LIST_PRODUCTS = 27; + private static final int METHODID_LIST_SKUS = 28; + private static final int METHODID_LIST_OFFERS = 29; + private static final int METHODID_LIST_PURCHASABLE_SKUS = 30; + private static final int METHODID_LIST_PURCHASABLE_OFFERS = 31; + private static final int METHODID_REGISTER_SUBSCRIBER = 32; + private static final int METHODID_UNREGISTER_SUBSCRIBER = 33; + private static final int METHODID_LIST_SUBSCRIBERS = 34; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -5768,6 +5926,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.channel.v1.DeleteCustomerRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_IMPORT_CUSTOMER: + serviceImpl.importCustomer( + (com.google.cloud.channel.v1.ImportCustomerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_PROVISION_CLOUD_IDENTITY: serviceImpl.provisionCloudIdentity( (com.google.cloud.channel.v1.ProvisionCloudIdentityRequest) request, @@ -5999,6 +6162,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateCustomerMethod()) .addMethod(getUpdateCustomerMethod()) .addMethod(getDeleteCustomerMethod()) + .addMethod(getImportCustomerMethod()) .addMethod(getProvisionCloudIdentityMethod()) .addMethod(getListEntitlementsMethod()) .addMethod(getListTransferableSkusMethod()) 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 769c1225..01380357 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() { * * *
-   * The customer account contact's first name.
+   * The customer account contact's first name. Optional for Team customers.
    * 
* * string first_name = 1; @@ -180,7 +180,7 @@ public java.lang.String getFirstName() { * * *
-   * The customer account contact's first name.
+   * The customer account contact's first name. Optional for Team customers.
    * 
* * string first_name = 1; @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getFirstNameBytes() { * * *
-   * The customer account contact's last name.
+   * The customer account contact's last name. Optional for Team customers.
    * 
* * string last_name = 2; @@ -229,7 +229,7 @@ public java.lang.String getLastName() { * * *
-   * The customer account contact's last name.
+   * The customer account contact's last name. Optional for Team customers.
    * 
* * string last_name = 2; @@ -308,7 +308,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { *
    * 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.
+   * accounts. Use this email to invite Team customers.
    * 
* * string email = 5; @@ -333,7 +333,7 @@ public java.lang.String getEmail() { *
    * 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.
+   * accounts. Use this email to invite Team customers.
    * 
* * string email = 5; @@ -851,7 +851,7 @@ public Builder mergeFrom( * * *
-     * The customer account contact's first name.
+     * The customer account contact's first name. Optional for Team customers.
      * 
* * string first_name = 1; @@ -873,7 +873,7 @@ public java.lang.String getFirstName() { * * *
-     * The customer account contact's first name.
+     * The customer account contact's first name. Optional for Team customers.
      * 
* * string first_name = 1; @@ -895,7 +895,7 @@ public com.google.protobuf.ByteString getFirstNameBytes() { * * *
-     * The customer account contact's first name.
+     * The customer account contact's first name. Optional for Team customers.
      * 
* * string first_name = 1; @@ -916,7 +916,7 @@ public Builder setFirstName(java.lang.String value) { * * *
-     * The customer account contact's first name.
+     * The customer account contact's first name. Optional for Team customers.
      * 
* * string first_name = 1; @@ -933,7 +933,7 @@ public Builder clearFirstName() { * * *
-     * The customer account contact's first name.
+     * The customer account contact's first name. Optional for Team customers.
      * 
* * string first_name = 1; @@ -957,7 +957,7 @@ public Builder setFirstNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The customer account contact's last name.
+     * The customer account contact's last name. Optional for Team customers.
      * 
* * string last_name = 2; @@ -979,7 +979,7 @@ public java.lang.String getLastName() { * * *
-     * The customer account contact's last name.
+     * The customer account contact's last name. Optional for Team customers.
      * 
* * string last_name = 2; @@ -1001,7 +1001,7 @@ public com.google.protobuf.ByteString getLastNameBytes() { * * *
-     * The customer account contact's last name.
+     * The customer account contact's last name. Optional for Team customers.
      * 
* * string last_name = 2; @@ -1022,7 +1022,7 @@ public Builder setLastName(java.lang.String value) { * * *
-     * The customer account contact's last name.
+     * The customer account contact's last name. Optional for Team customers.
      * 
* * string last_name = 2; @@ -1039,7 +1039,7 @@ public Builder clearLastName() { * * *
-     * The customer account contact's last name.
+     * The customer account contact's last name. Optional for Team customers.
      * 
* * string last_name = 2; @@ -1176,7 +1176,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { *
      * 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.
+     * accounts. Use this email to invite Team customers.
      * 
* * string email = 5; @@ -1200,7 +1200,7 @@ public java.lang.String getEmail() { *
      * 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.
+     * accounts. Use this email to invite Team customers.
      * 
* * string email = 5; @@ -1224,7 +1224,7 @@ public com.google.protobuf.ByteString getEmailBytes() { *
      * 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.
+     * accounts. Use this email to invite Team customers.
      * 
* * string email = 5; @@ -1247,7 +1247,7 @@ public Builder setEmail(java.lang.String value) { *
      * 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.
+     * accounts. Use this email to invite Team customers.
      * 
* * string email = 5; @@ -1266,7 +1266,7 @@ public Builder clearEmail() { *
      * 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.
+     * accounts. Use this email to invite Team customers.
      * 
* * string email = 5; 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 c1b0476d..37e36940 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 * * *
-   * The customer account contact's first name.
+   * The customer account contact's first name. Optional for Team customers.
    * 
* * string first_name = 1; @@ -39,7 +39,7 @@ public interface ContactInfoOrBuilder * * *
-   * The customer account contact's first name.
+   * The customer account contact's first name. Optional for Team customers.
    * 
* * string first_name = 1; @@ -52,7 +52,7 @@ public interface ContactInfoOrBuilder * * *
-   * The customer account contact's last name.
+   * The customer account contact's last name. Optional for Team customers.
    * 
* * string last_name = 2; @@ -64,7 +64,7 @@ public interface ContactInfoOrBuilder * * *
-   * The customer account contact's last name.
+   * The customer account contact's last name. Optional for Team customers.
    * 
* * string last_name = 2; @@ -106,7 +106,7 @@ public interface ContactInfoOrBuilder *
    * 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.
+   * accounts. Use this email to invite Team customers.
    * 
* * string email = 5; @@ -120,7 +120,7 @@ public interface ContactInfoOrBuilder *
    * 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.
+   * accounts. Use this email to invite Team customers.
    * 
* * string email = 5; 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 dc251e52..3ae3247d 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 @@ -456,7 +456,8 @@ public com.google.cloud.channel.v1.ContactInfoOrBuilder getPrimaryContactInfoOrB * 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. + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. * * * string alternate_email = 5; @@ -482,7 +483,8 @@ public java.lang.String getAlternateEmail() { * 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. + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. * * * string alternate_email = 5; @@ -2053,7 +2055,8 @@ public com.google.cloud.channel.v1.ContactInfoOrBuilder getPrimaryContactInfoOrB * 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. + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. * * * string alternate_email = 5; @@ -2078,7 +2081,8 @@ public java.lang.String getAlternateEmail() { * 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. + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. * * * string alternate_email = 5; @@ -2103,7 +2107,8 @@ public com.google.protobuf.ByteString getAlternateEmailBytes() { * 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. + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. * * * string alternate_email = 5; @@ -2127,7 +2132,8 @@ public Builder setAlternateEmail(java.lang.String value) { * 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. + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. * * * string alternate_email = 5; @@ -2147,7 +2153,8 @@ public Builder clearAlternateEmail() { * 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. + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. * * * string alternate_email = 5; 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 ead9e2ce..e7501b72 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 @@ -167,7 +167,8 @@ public interface CustomerOrBuilder * 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. + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. * * * string alternate_email = 5; @@ -182,7 +183,8 @@ public interface CustomerOrBuilder * 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. + * account. Secondary emails are also recovery email addresses. Alternate + * emails are optional when you create Team customers. * * * string alternate_email = 5; diff --git a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ImportCustomerRequest.java b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ImportCustomerRequest.java new file mode 100644 index 00000000..58a7ca88 --- /dev/null +++ b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ImportCustomerRequest.java @@ -0,0 +1,1895 @@ +/* + * 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 [CloudChannelService.ImportCustomer][google.cloud.channel.v1.CloudChannelService.ImportCustomer]
+ * 
+ * + * Protobuf type {@code google.cloud.channel.v1.ImportCustomerRequest} + */ +public final class ImportCustomerRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.ImportCustomerRequest) + ImportCustomerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportCustomerRequest.newBuilder() to construct. + private ImportCustomerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportCustomerRequest() { + parent_ = ""; + authToken_ = ""; + channelPartnerId_ = ""; + customer_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportCustomerRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImportCustomerRequest( + 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(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + customerIdentityCase_ = 2; + customerIdentity_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + customerIdentityCase_ = 3; + customerIdentity_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + authToken_ = s; + break; + } + case 40: + { + overwriteIfExists_ = input.readBool(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + channelPartnerId_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + customer_ = 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_ImportCustomerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.channel.v1.ServiceProto + .internal_static_google_cloud_channel_v1_ImportCustomerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.channel.v1.ImportCustomerRequest.class, + com.google.cloud.channel.v1.ImportCustomerRequest.Builder.class); + } + + private int customerIdentityCase_ = 0; + private java.lang.Object customerIdentity_; + + public enum CustomerIdentityCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DOMAIN(2), + CLOUD_IDENTITY_ID(3), + CUSTOMERIDENTITY_NOT_SET(0); + private final int value; + + private CustomerIdentityCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CustomerIdentityCase valueOf(int value) { + return forNumber(value); + } + + public static CustomerIdentityCase forNumber(int value) { + switch (value) { + case 2: + return DOMAIN; + case 3: + return CLOUD_IDENTITY_ID; + case 0: + return CUSTOMERIDENTITY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CustomerIdentityCase getCustomerIdentityCase() { + return CustomerIdentityCase.forNumber(customerIdentityCase_); + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + /** + * + * + *
+   * Required. Customer domain.
+   * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the domain field is set. + */ + public boolean hasDomain() { + return customerIdentityCase_ == 2; + } + /** + * + * + *
+   * Required. Customer domain.
+   * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = ""; + if (customerIdentityCase_ == 2) { + ref = customerIdentity_; + } + 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(); + if (customerIdentityCase_ == 2) { + customerIdentity_ = s; + } + return s; + } + } + /** + * + * + *
+   * Required. Customer domain.
+   * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = ""; + if (customerIdentityCase_ == 2) { + ref = customerIdentity_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (customerIdentityCase_ == 2) { + customerIdentity_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_IDENTITY_ID_FIELD_NUMBER = 3; + /** + * + * + *
+   * Required. Customer's Cloud Identity ID
+   * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the cloudIdentityId field is set. + */ + public boolean hasCloudIdentityId() { + return customerIdentityCase_ == 3; + } + /** + * + * + *
+   * Required. Customer's Cloud Identity ID
+   * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cloudIdentityId. + */ + public java.lang.String getCloudIdentityId() { + java.lang.Object ref = ""; + if (customerIdentityCase_ == 3) { + ref = customerIdentity_; + } + 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(); + if (customerIdentityCase_ == 3) { + customerIdentity_ = s; + } + return s; + } + } + /** + * + * + *
+   * Required. Customer's Cloud Identity ID
+   * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cloudIdentityId. + */ + public com.google.protobuf.ByteString getCloudIdentityIdBytes() { + java.lang.Object ref = ""; + if (customerIdentityCase_ == 3) { + ref = customerIdentity_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (customerIdentityCase_ == 3) { + customerIdentity_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the reseller's account.
+   * Parent takes the format: accounts/{account_id} or
+   * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the reseller's account.
+   * Parent takes the format: accounts/{account_id} or
+   * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object authToken_; + /** + * + * + *
+   * Optional. The super admin of the resold customer generates this token to
+   * authorize a reseller to access their Cloud Identity and purchase
+   * entitlements on their behalf. You can omit this token after authorization.
+   * See https://support.google.com/a/answer/7643790 for more details.
+   * 
+ * + * string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The authToken. + */ + @java.lang.Override + public java.lang.String getAuthToken() { + java.lang.Object ref = authToken_; + 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(); + authToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The super admin of the resold customer generates this token to
+   * authorize a reseller to access their Cloud Identity and purchase
+   * entitlements on their behalf. You can omit this token after authorization.
+   * See https://support.google.com/a/answer/7643790 for more details.
+   * 
+ * + * string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for authToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthTokenBytes() { + java.lang.Object ref = authToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OVERWRITE_IF_EXISTS_FIELD_NUMBER = 5; + private boolean overwriteIfExists_; + /** + * + * + *
+   * Required. Choose to overwrite an existing customer if found.
+   * This must be set to true if there is an existing customer with a
+   * conflicting region code or domain.
+   * 
+ * + * bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The overwriteIfExists. + */ + @java.lang.Override + public boolean getOverwriteIfExists() { + return overwriteIfExists_; + } + + public static final int CHANNEL_PARTNER_ID_FIELD_NUMBER = 6; + private volatile java.lang.Object channelPartnerId_; + /** + * + * + *
+   * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
+   * the customer's order. This field is required for 2-tier transfer scenarios
+   * and can be provided via the request Parent binding as well.
+   * 
+ * + * string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The channelPartnerId. + */ + @java.lang.Override + public java.lang.String getChannelPartnerId() { + java.lang.Object ref = channelPartnerId_; + 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(); + channelPartnerId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
+   * the customer's order. This field is required for 2-tier transfer scenarios
+   * and can be provided via the request Parent binding as well.
+   * 
+ * + * string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for channelPartnerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChannelPartnerIdBytes() { + java.lang.Object ref = channelPartnerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelPartnerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOMER_FIELD_NUMBER = 7; + private volatile java.lang.Object customer_; + /** + * + * + *
+   * Optional. Specifies the customer that will receive imported Cloud Identity
+   * information.
+   * Format: accounts/{account_id}/customers/{customer_id}
+   * 
+ * + * + * string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customer. + */ + @java.lang.Override + public java.lang.String getCustomer() { + java.lang.Object ref = customer_; + 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(); + customer_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Specifies the customer that will receive imported Cloud Identity
+   * information.
+   * Format: accounts/{account_id}/customers/{customer_id}
+   * 
+ * + * + * string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomerBytes() { + java.lang.Object ref = customer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customer_ = 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (customerIdentityCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, customerIdentity_); + } + if (customerIdentityCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customerIdentity_); + } + if (!getAuthTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authToken_); + } + if (overwriteIfExists_ != false) { + output.writeBool(5, overwriteIfExists_); + } + if (!getChannelPartnerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, channelPartnerId_); + } + if (!getCustomerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, customer_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (customerIdentityCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customerIdentity_); + } + if (customerIdentityCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customerIdentity_); + } + if (!getAuthTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authToken_); + } + if (overwriteIfExists_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, overwriteIfExists_); + } + if (!getChannelPartnerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, channelPartnerId_); + } + if (!getCustomerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, customer_); + } + 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.ImportCustomerRequest)) { + return super.equals(obj); + } + com.google.cloud.channel.v1.ImportCustomerRequest other = + (com.google.cloud.channel.v1.ImportCustomerRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAuthToken().equals(other.getAuthToken())) return false; + if (getOverwriteIfExists() != other.getOverwriteIfExists()) return false; + if (!getChannelPartnerId().equals(other.getChannelPartnerId())) return false; + if (!getCustomer().equals(other.getCustomer())) return false; + if (!getCustomerIdentityCase().equals(other.getCustomerIdentityCase())) return false; + switch (customerIdentityCase_) { + case 2: + if (!getDomain().equals(other.getDomain())) return false; + break; + case 3: + if (!getCloudIdentityId().equals(other.getCloudIdentityId())) return false; + break; + case 0: + default: + } + 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + AUTH_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAuthToken().hashCode(); + hash = (37 * hash) + OVERWRITE_IF_EXISTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOverwriteIfExists()); + hash = (37 * hash) + CHANNEL_PARTNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getChannelPartnerId().hashCode(); + hash = (37 * hash) + CUSTOMER_FIELD_NUMBER; + hash = (53 * hash) + getCustomer().hashCode(); + switch (customerIdentityCase_) { + case 2: + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + break; + case 3: + hash = (37 * hash) + CLOUD_IDENTITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getCloudIdentityId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.channel.v1.ImportCustomerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.channel.v1.ImportCustomerRequest 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.ImportCustomerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.channel.v1.ImportCustomerRequest 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.ImportCustomerRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.channel.v1.ImportCustomerRequest 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.ImportCustomerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.channel.v1.ImportCustomerRequest 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.ImportCustomerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.channel.v1.ImportCustomerRequest 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.ImportCustomerRequest 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.ImportCustomerRequest 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.ImportCustomerRequest 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 [CloudChannelService.ImportCustomer][google.cloud.channel.v1.CloudChannelService.ImportCustomer]
+   * 
+ * + * Protobuf type {@code google.cloud.channel.v1.ImportCustomerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.ImportCustomerRequest) + com.google.cloud.channel.v1.ImportCustomerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.channel.v1.ServiceProto + .internal_static_google_cloud_channel_v1_ImportCustomerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.channel.v1.ServiceProto + .internal_static_google_cloud_channel_v1_ImportCustomerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.channel.v1.ImportCustomerRequest.class, + com.google.cloud.channel.v1.ImportCustomerRequest.Builder.class); + } + + // Construct using com.google.cloud.channel.v1.ImportCustomerRequest.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(); + parent_ = ""; + + authToken_ = ""; + + overwriteIfExists_ = false; + + channelPartnerId_ = ""; + + customer_ = ""; + + customerIdentityCase_ = 0; + customerIdentity_ = null; + 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_ImportCustomerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.channel.v1.ImportCustomerRequest getDefaultInstanceForType() { + return com.google.cloud.channel.v1.ImportCustomerRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.channel.v1.ImportCustomerRequest build() { + com.google.cloud.channel.v1.ImportCustomerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.channel.v1.ImportCustomerRequest buildPartial() { + com.google.cloud.channel.v1.ImportCustomerRequest result = + new com.google.cloud.channel.v1.ImportCustomerRequest(this); + if (customerIdentityCase_ == 2) { + result.customerIdentity_ = customerIdentity_; + } + if (customerIdentityCase_ == 3) { + result.customerIdentity_ = customerIdentity_; + } + result.parent_ = parent_; + result.authToken_ = authToken_; + result.overwriteIfExists_ = overwriteIfExists_; + result.channelPartnerId_ = channelPartnerId_; + result.customer_ = customer_; + result.customerIdentityCase_ = customerIdentityCase_; + 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.ImportCustomerRequest) { + return mergeFrom((com.google.cloud.channel.v1.ImportCustomerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.channel.v1.ImportCustomerRequest other) { + if (other == com.google.cloud.channel.v1.ImportCustomerRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getAuthToken().isEmpty()) { + authToken_ = other.authToken_; + onChanged(); + } + if (other.getOverwriteIfExists() != false) { + setOverwriteIfExists(other.getOverwriteIfExists()); + } + if (!other.getChannelPartnerId().isEmpty()) { + channelPartnerId_ = other.channelPartnerId_; + onChanged(); + } + if (!other.getCustomer().isEmpty()) { + customer_ = other.customer_; + onChanged(); + } + switch (other.getCustomerIdentityCase()) { + case DOMAIN: + { + customerIdentityCase_ = 2; + customerIdentity_ = other.customerIdentity_; + onChanged(); + break; + } + case CLOUD_IDENTITY_ID: + { + customerIdentityCase_ = 3; + customerIdentity_ = other.customerIdentity_; + onChanged(); + break; + } + case CUSTOMERIDENTITY_NOT_SET: + { + break; + } + } + 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.ImportCustomerRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.channel.v1.ImportCustomerRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int customerIdentityCase_ = 0; + private java.lang.Object customerIdentity_; + + public CustomerIdentityCase getCustomerIdentityCase() { + return CustomerIdentityCase.forNumber(customerIdentityCase_); + } + + public Builder clearCustomerIdentity() { + customerIdentityCase_ = 0; + customerIdentity_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Customer domain.
+     * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the domain field is set. + */ + @java.lang.Override + public boolean hasDomain() { + return customerIdentityCase_ == 2; + } + /** + * + * + *
+     * Required. Customer domain.
+     * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = ""; + if (customerIdentityCase_ == 2) { + ref = customerIdentity_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (customerIdentityCase_ == 2) { + customerIdentity_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Customer domain.
+     * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = ""; + if (customerIdentityCase_ == 2) { + ref = customerIdentity_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (customerIdentityCase_ == 2) { + customerIdentity_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Customer domain.
+     * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerIdentityCase_ = 2; + customerIdentity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Customer domain.
+     * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDomain() { + if (customerIdentityCase_ == 2) { + customerIdentityCase_ = 0; + customerIdentity_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Customer domain.
+     * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerIdentityCase_ = 2; + customerIdentity_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Customer's Cloud Identity ID
+     * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the cloudIdentityId field is set. + */ + @java.lang.Override + public boolean hasCloudIdentityId() { + return customerIdentityCase_ == 3; + } + /** + * + * + *
+     * Required. Customer's Cloud Identity ID
+     * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cloudIdentityId. + */ + @java.lang.Override + public java.lang.String getCloudIdentityId() { + java.lang.Object ref = ""; + if (customerIdentityCase_ == 3) { + ref = customerIdentity_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (customerIdentityCase_ == 3) { + customerIdentity_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Customer's Cloud Identity ID
+     * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cloudIdentityId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudIdentityIdBytes() { + java.lang.Object ref = ""; + if (customerIdentityCase_ == 3) { + ref = customerIdentity_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (customerIdentityCase_ == 3) { + customerIdentity_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Customer's Cloud Identity ID
+     * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The cloudIdentityId to set. + * @return This builder for chaining. + */ + public Builder setCloudIdentityId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerIdentityCase_ = 3; + customerIdentity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Customer's Cloud Identity ID
+     * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCloudIdentityId() { + if (customerIdentityCase_ == 3) { + customerIdentityCase_ = 0; + customerIdentity_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Customer's Cloud Identity ID
+     * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for cloudIdentityId to set. + * @return This builder for chaining. + */ + public Builder setCloudIdentityIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerIdentityCase_ = 3; + customerIdentity_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the reseller's account.
+     * Parent takes the format: accounts/{account_id} or
+     * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the reseller's account.
+     * Parent takes the format: accounts/{account_id} or
+     * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the reseller's account.
+     * Parent takes the format: accounts/{account_id} or
+     * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the reseller's account.
+     * Parent takes the format: accounts/{account_id} or
+     * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the reseller's account.
+     * Parent takes the format: accounts/{account_id} or
+     * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object authToken_ = ""; + /** + * + * + *
+     * Optional. The super admin of the resold customer generates this token to
+     * authorize a reseller to access their Cloud Identity and purchase
+     * entitlements on their behalf. You can omit this token after authorization.
+     * See https://support.google.com/a/answer/7643790 for more details.
+     * 
+ * + * string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The authToken. + */ + public java.lang.String getAuthToken() { + java.lang.Object ref = authToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The super admin of the resold customer generates this token to
+     * authorize a reseller to access their Cloud Identity and purchase
+     * entitlements on their behalf. You can omit this token after authorization.
+     * See https://support.google.com/a/answer/7643790 for more details.
+     * 
+ * + * string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for authToken. + */ + public com.google.protobuf.ByteString getAuthTokenBytes() { + java.lang.Object ref = authToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The super admin of the resold customer generates this token to
+     * authorize a reseller to access their Cloud Identity and purchase
+     * entitlements on their behalf. You can omit this token after authorization.
+     * See https://support.google.com/a/answer/7643790 for more details.
+     * 
+ * + * string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The authToken to set. + * @return This builder for chaining. + */ + public Builder setAuthToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + authToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The super admin of the resold customer generates this token to
+     * authorize a reseller to access their Cloud Identity and purchase
+     * entitlements on their behalf. You can omit this token after authorization.
+     * See https://support.google.com/a/answer/7643790 for more details.
+     * 
+ * + * string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAuthToken() { + + authToken_ = getDefaultInstance().getAuthToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The super admin of the resold customer generates this token to
+     * authorize a reseller to access their Cloud Identity and purchase
+     * entitlements on their behalf. You can omit this token after authorization.
+     * See https://support.google.com/a/answer/7643790 for more details.
+     * 
+ * + * string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for authToken to set. + * @return This builder for chaining. + */ + public Builder setAuthTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + authToken_ = value; + onChanged(); + return this; + } + + private boolean overwriteIfExists_; + /** + * + * + *
+     * Required. Choose to overwrite an existing customer if found.
+     * This must be set to true if there is an existing customer with a
+     * conflicting region code or domain.
+     * 
+ * + * bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The overwriteIfExists. + */ + @java.lang.Override + public boolean getOverwriteIfExists() { + return overwriteIfExists_; + } + /** + * + * + *
+     * Required. Choose to overwrite an existing customer if found.
+     * This must be set to true if there is an existing customer with a
+     * conflicting region code or domain.
+     * 
+ * + * bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The overwriteIfExists to set. + * @return This builder for chaining. + */ + public Builder setOverwriteIfExists(boolean value) { + + overwriteIfExists_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Choose to overwrite an existing customer if found.
+     * This must be set to true if there is an existing customer with a
+     * conflicting region code or domain.
+     * 
+ * + * bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOverwriteIfExists() { + + overwriteIfExists_ = false; + onChanged(); + return this; + } + + private java.lang.Object channelPartnerId_ = ""; + /** + * + * + *
+     * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
+     * the customer's order. This field is required for 2-tier transfer scenarios
+     * and can be provided via the request Parent binding as well.
+     * 
+ * + * string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The channelPartnerId. + */ + public java.lang.String getChannelPartnerId() { + java.lang.Object ref = channelPartnerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channelPartnerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
+     * the customer's order. This field is required for 2-tier transfer scenarios
+     * and can be provided via the request Parent binding as well.
+     * 
+ * + * string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for channelPartnerId. + */ + public com.google.protobuf.ByteString getChannelPartnerIdBytes() { + java.lang.Object ref = channelPartnerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelPartnerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
+     * the customer's order. This field is required for 2-tier transfer scenarios
+     * and can be provided via the request Parent binding as well.
+     * 
+ * + * string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The channelPartnerId to set. + * @return This builder for chaining. + */ + public Builder setChannelPartnerId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + channelPartnerId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
+     * the customer's order. This field is required for 2-tier transfer scenarios
+     * and can be provided via the request Parent binding as well.
+     * 
+ * + * string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearChannelPartnerId() { + + channelPartnerId_ = getDefaultInstance().getChannelPartnerId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
+     * the customer's order. This field is required for 2-tier transfer scenarios
+     * and can be provided via the request Parent binding as well.
+     * 
+ * + * string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for channelPartnerId to set. + * @return This builder for chaining. + */ + public Builder setChannelPartnerIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + channelPartnerId_ = value; + onChanged(); + return this; + } + + private java.lang.Object customer_ = ""; + /** + * + * + *
+     * Optional. Specifies the customer that will receive imported Cloud Identity
+     * information.
+     * Format: accounts/{account_id}/customers/{customer_id}
+     * 
+ * + * + * string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customer. + */ + public java.lang.String getCustomer() { + java.lang.Object ref = customer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the customer that will receive imported Cloud Identity
+     * information.
+     * Format: accounts/{account_id}/customers/{customer_id}
+     * 
+ * + * + * string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customer. + */ + public com.google.protobuf.ByteString getCustomerBytes() { + java.lang.Object ref = customer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the customer that will receive imported Cloud Identity
+     * information.
+     * Format: accounts/{account_id}/customers/{customer_id}
+     * 
+ * + * + * string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The customer to set. + * @return This builder for chaining. + */ + public Builder setCustomer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + customer_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the customer that will receive imported Cloud Identity
+     * information.
+     * Format: accounts/{account_id}/customers/{customer_id}
+     * 
+ * + * + * string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCustomer() { + + customer_ = getDefaultInstance().getCustomer(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the customer that will receive imported Cloud Identity
+     * information.
+     * Format: accounts/{account_id}/customers/{customer_id}
+     * 
+ * + * + * string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for customer to set. + * @return This builder for chaining. + */ + public Builder setCustomerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + customer_ = 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.ImportCustomerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.ImportCustomerRequest) + private static final com.google.cloud.channel.v1.ImportCustomerRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.channel.v1.ImportCustomerRequest(); + } + + public static com.google.cloud.channel.v1.ImportCustomerRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportCustomerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportCustomerRequest(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.ImportCustomerRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ImportCustomerRequestOrBuilder.java b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ImportCustomerRequestOrBuilder.java new file mode 100644 index 00000000..0f23504c --- /dev/null +++ b/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ImportCustomerRequestOrBuilder.java @@ -0,0 +1,239 @@ +/* + * 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 ImportCustomerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.ImportCustomerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Customer domain.
+   * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the domain field is set. + */ + boolean hasDomain(); + /** + * + * + *
+   * Required. Customer domain.
+   * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The domain. + */ + java.lang.String getDomain(); + /** + * + * + *
+   * Required. Customer domain.
+   * 
+ * + * string domain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for domain. + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
+   * Required. Customer's Cloud Identity ID
+   * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the cloudIdentityId field is set. + */ + boolean hasCloudIdentityId(); + /** + * + * + *
+   * Required. Customer's Cloud Identity ID
+   * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cloudIdentityId. + */ + java.lang.String getCloudIdentityId(); + /** + * + * + *
+   * Required. Customer's Cloud Identity ID
+   * 
+ * + * string cloud_identity_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cloudIdentityId. + */ + com.google.protobuf.ByteString getCloudIdentityIdBytes(); + + /** + * + * + *
+   * Required. The resource name of the reseller's account.
+   * Parent takes the format: accounts/{account_id} or
+   * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the reseller's account.
+   * Parent takes the format: accounts/{account_id} or
+   * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The super admin of the resold customer generates this token to
+   * authorize a reseller to access their Cloud Identity and purchase
+   * entitlements on their behalf. You can omit this token after authorization.
+   * See https://support.google.com/a/answer/7643790 for more details.
+   * 
+ * + * string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The authToken. + */ + java.lang.String getAuthToken(); + /** + * + * + *
+   * Optional. The super admin of the resold customer generates this token to
+   * authorize a reseller to access their Cloud Identity and purchase
+   * entitlements on their behalf. You can omit this token after authorization.
+   * See https://support.google.com/a/answer/7643790 for more details.
+   * 
+ * + * string auth_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for authToken. + */ + com.google.protobuf.ByteString getAuthTokenBytes(); + + /** + * + * + *
+   * Required. Choose to overwrite an existing customer if found.
+   * This must be set to true if there is an existing customer with a
+   * conflicting region code or domain.
+   * 
+ * + * bool overwrite_if_exists = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The overwriteIfExists. + */ + boolean getOverwriteIfExists(); + + /** + * + * + *
+   * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
+   * the customer's order. This field is required for 2-tier transfer scenarios
+   * and can be provided via the request Parent binding as well.
+   * 
+ * + * string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The channelPartnerId. + */ + java.lang.String getChannelPartnerId(); + /** + * + * + *
+   * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
+   * the customer's order. This field is required for 2-tier transfer scenarios
+   * and can be provided via the request Parent binding as well.
+   * 
+ * + * string channel_partner_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for channelPartnerId. + */ + com.google.protobuf.ByteString getChannelPartnerIdBytes(); + + /** + * + * + *
+   * Optional. Specifies the customer that will receive imported Cloud Identity
+   * information.
+   * Format: accounts/{account_id}/customers/{customer_id}
+   * 
+ * + * + * string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customer. + */ + java.lang.String getCustomer(); + /** + * + * + *
+   * Optional. Specifies the customer that will receive imported Cloud Identity
+   * information.
+   * Format: accounts/{account_id}/customers/{customer_id}
+   * 
+ * + * + * string customer = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customer. + */ + com.google.protobuf.ByteString getCustomerBytes(); + + public com.google.cloud.channel.v1.ImportCustomerRequest.CustomerIdentityCase + getCustomerIdentityCase(); +} 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 6c2c2452..5e418c67 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 @@ -63,6 +63,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_channel_v1_DeleteCustomerRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_channel_v1_DeleteCustomerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_channel_v1_ImportCustomerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_channel_v1_ImportCustomerRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_channel_v1_ProvisionCloudIdentityRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -300,341 +304,354 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nnel.v1.CustomerB\003\340A\002\022/\n\013update_mask\030\003 \001" + "(\0132\032.google.protobuf.FieldMask\"S\n\025Delete" + "CustomerRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$c" - + "loudchannel.googleapis.com/Customer\"\361\001\n\035" - + "ProvisionCloudIdentityRequest\022>\n\010custome" - + "r\030\001 \001(\tB,\340A\002\372A&\n$cloudchannel.googleapis" - + ".com/Customer\022G\n\023cloud_identity_info\030\002 \001" - + "(\0132*.google.cloud.channel.v1.CloudIdenti" - + "tyInfo\0220\n\004user\030\003 \001(\0132\".google.cloud.chan" - + "nel.v1.AdminUser\022\025\n\rvalidate_only\030\004 \001(\010\"" - + "\210\001\n\027ListEntitlementsRequest\022<\n\006parent\030\001 " - + "\001(\tB,\340A\002\372A&\n$cloudchannel.googleapis.com" - + "/Customer\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\"o\n\030ListEntitlementsRe" - + "sponse\022:\n\014entitlements\030\001 \003(\0132$.google.cl" - + "oud.channel.v1.Entitlement\022\027\n\017next_page_" - + "token\030\002 \001(\t\"\333\001\n\033ListTransferableSkusRequ" - + "est\022\033\n\021cloud_identity_id\030\004 \001(\tH\000\022\027\n\rcust" - + "omer_name\030\007 \001(\tH\000\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\022\n" - + "\nauth_token\030\005 \001(\t\022\025\n\rlanguage_code\030\006 \001(\t" - + "B\037\n\035transferred_customer_identity\"|\n\034Lis" - + "tTransferableSkusResponse\022C\n\021transferabl" - + "e_skus\030\001 \003(\0132(.google.cloud.channel.v1.T" - + "ransferableSku\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\333\001\n\035ListTransferableOffersRequest\022\033\n\021clo" - + "ud_identity_id\030\004 \001(\tH\000\022\027\n\rcustomer_name\030" - + "\005 \001(\tH\000\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\020\n\003sku\030\006 \001(\t" - + "B\003\340A\002\022\025\n\rlanguage_code\030\007 \001(\tB\037\n\035transfer" - + "red_customer_identity\"\202\001\n\036ListTransferab" - + "leOffersResponse\022G\n\023transferable_offers\030" - + "\001 \003(\0132*.google.cloud.channel.v1.Transfer" - + "ableOffer\022\027\n\017next_page_token\030\002 \001(\t\"B\n\021Tr" - + "ansferableOffer\022-\n\005offer\030\001 \001(\0132\036.google." - + "cloud.channel.v1.Offer\"V\n\025GetEntitlement" - + "Request\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'cloudchan" - + "nel.googleapis.com/Entitlement\"\252\001\n\036ListC" - + "hannelPartnerLinksRequest\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\npage_t" - + "oken\030\003 \001(\tB\003\340A\001\022B\n\004view\030\004 \001(\0162/.google.c" - + "loud.channel.v1.ChannelPartnerLinkViewB\003" - + "\340A\001\"\206\001\n\037ListChannelPartnerLinksResponse\022" - + "J\n\025channel_partner_links\030\001 \003(\0132+.google." - + "cloud.channel.v1.ChannelPartnerLink\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"u\n\034GetChannelPartne" - + "rLinkRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022B\n\004view\030" - + "\002 \001(\0162/.google.cloud.channel.v1.ChannelP" - + "artnerLinkViewB\003\340A\001\"\206\001\n\037CreateChannelPar" - + "tnerLinkRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022N\n\024" - + "channel_partner_link\030\002 \001(\0132+.google.clou" - + "d.channel.v1.ChannelPartnerLinkB\003\340A\002\"\272\001\n" - + "\037UpdateChannelPartnerLinkRequest\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\002\022N\n\024channel_partner_link\030\002 \001(" - + "\0132+.google.cloud.channel.v1.ChannelPartn" - + "erLinkB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"\261\001\n\030CreateEnti" - + "tlementRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$" - + "cloudchannel.googleapis.com/Customer\022>\n\013" - + "entitlement\030\002 \001(\0132$.google.cloud.channel" - + ".v1.EntitlementB\003\340A\002\022\027\n\nrequest_id\030\005 \001(\t" - + "B\003\340A\001\"\240\001\n\033TransferEntitlementsRequest\022\023\n" - + "\006parent\030\001 \001(\tB\003\340A\002\022?\n\014entitlements\030\002 \003(\013" - + "2$.google.cloud.channel.v1.EntitlementB\003" - + "\340A\002\022\022\n\nauth_token\030\004 \001(\t\022\027\n\nrequest_id\030\006 " - + "\001(\tB\003\340A\001\"Z\n\034TransferEntitlementsResponse" - + "\022:\n\014entitlements\030\001 \003(\0132$.google.cloud.ch" - + "annel.v1.Entitlement\"\224\001\n#TransferEntitle" - + "mentsToGoogleRequest\022\023\n\006parent\030\001 \001(\tB\003\340A" - + "\002\022?\n\014entitlements\030\002 \003(\0132$.google.cloud.c" - + "hannel.v1.EntitlementB\003\340A\002\022\027\n\nrequest_id" - + "\030\003 \001(\tB\003\340A\001\"\242\001\n\027ChangeParametersRequest\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\nparameters\030\002 \003(\0132\"" - + ".google.cloud.channel.v1.ParameterB\003\340A\002\022" - + "\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\036\n\021purchase_ord" - + "er_id\030\005 \001(\tB\003\340A\001\"\223\001\n\034ChangeRenewalSettin" - + "gsRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022G\n\020renewal_" - + "settings\030\004 \001(\0132(.google.cloud.channel.v1" - + ".RenewalSettingsB\003\340A\002\022\027\n\nrequest_id\030\005 \001(" - + "\tB\003\340A\001\"\327\001\n\022ChangeOfferRequest\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\002\0228\n\005offer\030\002 \001(\tB)\340A\002\372A#\n!cloudch" - + "annel.googleapis.com/Offer\022;\n\nparameters" - + "\030\003 \003(\0132\".google.cloud.channel.v1.Paramet" - + "erB\003\340A\001\022\036\n\021purchase_order_id\030\005 \001(\tB\003\340A\001\022" - + "\027\n\nrequest_id\030\006 \001(\tB\003\340A\001\"E\n\027StartPaidSer" - + "viceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\027\n\nreques" - + "t_id\030\003 \001(\tB\003\340A\001\"F\n\030CancelEntitlementRequ" - + "est\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\027\n\nrequest_id\030\003 \001" - + "(\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\"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\"\n\010custo" + + "mer\030\007 \001(\tB,\340A\001\372A&\n$cloudchannel.googleap" + + "is.com/CustomerB\023\n\021customer_identity\"\361\001\n" + + "\035ProvisionCloudIdentityRequest\022>\n\010custom" + + "er\030\001 \001(\tB,\340A\002\372A&\n$cloudchannel.googleapi" + + "s.com/Customer\022G\n\023cloud_identity_info\030\002 " + + "\001(\0132*.google.cloud.channel.v1.CloudIdent" + + "ityInfo\0220\n\004user\030\003 \001(\0132\".google.cloud.cha" + + "nnel.v1.AdminUser\022\025\n\rvalidate_only\030\004 \001(\010" + + "\"\210\001\n\027ListEntitlementsRequest\022<\n\006parent\030\001" + + " \001(\tB,\340A\002\372A&\n$cloudchannel.googleapis.co" + + "m/Customer\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" + + "ge_token\030\003 \001(\tB\003\340A\001\"o\n\030ListEntitlementsR" + + "esponse\022:\n\014entitlements\030\001 \003(\0132$.google.c" + + "loud.channel.v1.Entitlement\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\333\001\n\033ListTransferableSkusReq" + + "uest\022\033\n\021cloud_identity_id\030\004 \001(\tH\000\022\027\n\rcus" + + "tomer_name\030\007 \001(\tH\000\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\022" + + "\n\nauth_token\030\005 \001(\t\022\025\n\rlanguage_code\030\006 \001(" + + "\tB\037\n\035transferred_customer_identity\"|\n\034Li" + + "stTransferableSkusResponse\022C\n\021transferab" + + "le_skus\030\001 \003(\0132(.google.cloud.channel.v1." + + "TransferableSku\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\333\001\n\035ListTransferableOffersRequest\022\033\n\021cl" + + "oud_identity_id\030\004 \001(\tH\000\022\027\n\rcustomer_name" + + "\030\005 \001(\tH\000\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\020\n\003sku\030\006 \001(" + + "\tB\003\340A\002\022\025\n\rlanguage_code\030\007 \001(\tB\037\n\035transfe" + + "rred_customer_identity\"\202\001\n\036ListTransfera" + + "bleOffersResponse\022G\n\023transferable_offers" + + "\030\001 \003(\0132*.google.cloud.channel.v1.Transfe" + + "rableOffer\022\027\n\017next_page_token\030\002 \001(\t\"B\n\021T" + + "ransferableOffer\022-\n\005offer\030\001 \001(\0132\036.google" + + ".cloud.channel.v1.Offer\"V\n\025GetEntitlemen" + + "tRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'cloudcha" + + "nnel.googleapis.com/Entitlement\"\252\001\n\036List" + + "ChannelPartnerLinksRequest\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\npage_" + + "token\030\003 \001(\tB\003\340A\001\022B\n\004view\030\004 \001(\0162/.google." + + "cloud.channel.v1.ChannelPartnerLinkViewB" + + "\003\340A\001\"\206\001\n\037ListChannelPartnerLinksResponse" + + "\022J\n\025channel_partner_links\030\001 \003(\0132+.google" + + ".cloud.channel.v1.ChannelPartnerLink\022\027\n\017" + + "next_page_token\030\002 \001(\t\"u\n\034GetChannelPartn" + + "erLinkRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022B\n\004view" + + "\030\002 \001(\0162/.google.cloud.channel.v1.Channel" + + "PartnerLinkViewB\003\340A\001\"\206\001\n\037CreateChannelPa" + + "rtnerLinkRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022N\n" + + "\024channel_partner_link\030\002 \001(\0132+.google.clo" + + "ud.channel.v1.ChannelPartnerLinkB\003\340A\002\"\272\001" + + "\n\037UpdateChannelPartnerLinkRequest\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\002\022N\n\024channel_partner_link\030\002 \001" + + "(\0132+.google.cloud.channel.v1.ChannelPart" + + "nerLinkB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\002\"\261\001\n\030CreateEnt" + + "itlementRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n" + + "$cloudchannel.googleapis.com/Customer\022>\n" + + "\013entitlement\030\002 \001(\0132$.google.cloud.channe" + + "l.v1.EntitlementB\003\340A\002\022\027\n\nrequest_id\030\005 \001(" + + "\tB\003\340A\001\"\240\001\n\033TransferEntitlementsRequest\022\023" + + "\n\006parent\030\001 \001(\tB\003\340A\002\022?\n\014entitlements\030\002 \003(" + + "\0132$.google.cloud.channel.v1.EntitlementB" + + "\003\340A\002\022\022\n\nauth_token\030\004 \001(\t\022\027\n\nrequest_id\030\006" + + " \001(\tB\003\340A\001\"Z\n\034TransferEntitlementsRespons" + + "e\022:\n\014entitlements\030\001 \003(\0132$.google.cloud.c" + + "hannel.v1.Entitlement\"\224\001\n#TransferEntitl" + + "ementsToGoogleRequest\022\023\n\006parent\030\001 \001(\tB\003\340" + + "A\002\022?\n\014entitlements\030\002 \003(\0132$.google.cloud." + + "channel.v1.EntitlementB\003\340A\002\022\027\n\nrequest_i" + + "d\030\003 \001(\tB\003\340A\001\"\242\001\n\027ChangeParametersRequest" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\nparameters\030\002 \003(\0132" + + "\".google.cloud.channel.v1.ParameterB\003\340A\002" + + "\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\036\n\021purchase_or" + + "der_id\030\005 \001(\tB\003\340A\001\"\223\001\n\034ChangeRenewalSetti" + + "ngsRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022G\n\020renewal" + + "_settings\030\004 \001(\0132(.google.cloud.channel.v" + + "1.RenewalSettingsB\003\340A\002\022\027\n\nrequest_id\030\005 \001" + + "(\tB\003\340A\001\"\327\001\n\022ChangeOfferRequest\022\021\n\004name\030\001" + + " \001(\tB\003\340A\002\0228\n\005offer\030\002 \001(\tB)\340A\002\372A#\n!cloudc" + + "hannel.googleapis.com/Offer\022;\n\nparameter" + + "s\030\003 \003(\0132\".google.cloud.channel.v1.Parame" + + "terB\003\340A\001\022\036\n\021purchase_order_id\030\005 \001(\tB\003\340A\001" + + "\022\027\n\nrequest_id\030\006 \001(\tB\003\340A\001\"E\n\027StartPaidSe" + + "rviceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\027\n\nreque" + + "st_id\030\003 \001(\tB\003\340A\001\"F\n\030CancelEntitlementReq" + + "uest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\027\n\nrequest_id\030\003 " + + "\001(\tB\003\340A\001\"G\n\031SuspendEntitlementRequest\022\021\n" + + "\004name\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\"Z\n\022L" + + "ookupOfferRequest\022D\n\013entitlement\030\001 \001(\tB/" + + "\340A\002\372A)\n\'cloudchannel.googleapis.com/Enti" + + "tlement\"x\n\023ListProductsRequest\022\024\n\007accoun" + + "t\030\001 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_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\010pro" + + "ducts\030\001 \003(\0132 .google.cloud.channel.v1.Pr" + + "oduct\022\027\n\017next_page_token\030\002 \001(\t\"\261\001\n\017ListS" + + "kusRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#clou" + + "dchannel.googleapis.com/Product\022\024\n\007accou" + + "nt\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\017ne" + + "xt_page_token\030\002 \001(\t\"\212\001\n\021ListOffersReques" + + "t\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\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filte" + + "r\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_p" + + "age_token\030\002 \001(\t\"\266\005\n\032ListPurchasableSkusR" + + "equest\022t\n\033create_entitlement_purchase\030\002 " + + "\001(\0132M.google.cloud.channel.v1.ListPurcha" + + "sableSkusRequest.CreateEntitlementPurcha" + + "seH\000\022h\n\025change_offer_purchase\030\003 \001(\0132G.go" + + "ogle.cloud.channel.v1.ListPurchasableSku" + + "sRequest.ChangeOfferPurchaseH\000\022>\n\010custom" + + "er\030\001 \001(\tB,\340A\002\372A&\n$cloudchannel.googleapi" + + "s.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\023ChangeOfferPu" + + "rchase\022\030\n\013entitlement\030\001 \001(\tB\003\340A\002\022l\n\013chan" + + "ge_type\030\002 \001(\0162R.google.cloud.channel.v1." + + "ListPurchasableSkusRequest.ChangeOfferPu" + + "rchase.ChangeTypeB\003\340A\002\"E\n\nChangeType\022\033\n\027" + + "CHANGE_TYPE_UNSPECIFIED\020\000\022\013\n\007UPGRADE\020\001\022\r" + + "\n\tDOWNGRADE\020\002B\021\n\017purchase_option\"y\n\033List" + + "PurchasableSkusResponse\022A\n\020purchasable_s" + + "kus\030\001 \003(\0132\'.google.cloud.channel.v1.Purc" + + "hasableSku\022\027\n\017next_page_token\030\002 \001(\t\";\n\016P" + + "urchasableSku\022)\n\003sku\030\001 \001(\0132\034.google.clou" + + "d.channel.v1.Sku\"\230\004\n\034ListPurchasableOffe" + + "rsRequest\022v\n\033create_entitlement_purchase" + + "\030\002 \001(\0132O.google.cloud.channel.v1.ListPur" + + "chasableOffersRequest.CreateEntitlementP" + + "urchaseH\000\022j\n\025change_offer_purchase\030\003 \001(\013" + + "2I.google.cloud.channel.v1.ListPurchasab" + + "leOffersRequest.ChangeOfferPurchaseH\000\022>\n" + + "\010customer\030\001 \001(\tB,\340A\002\372A&\n$cloudchannel.go" + + "ogleapis.com/Customer\022\026\n\tpage_size\030\004 \001(\005" + + "B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\022\032\n\rlangua" + + "ge_code\030\006 \001(\tB\003\340A\001\032-\n\031CreateEntitlementP" + + "urchase\022\020\n\003sku\030\001 \001(\tB\003\340A\002\032E\n\023ChangeOffer" + + "Purchase\022\030\n\013entitlement\030\001 \001(\tB\003\340A\002\022\024\n\007ne" + + "w_sku\030\002 \001(\tB\003\340A\001B\021\n\017purchase_option\"\177\n\035L" + + "istPurchasableOffersResponse\022E\n\022purchasa" + + "ble_offers\030\001 \003(\0132).google.cloud.channel." + + "v1.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\031Regis" + + "terSubscriberRequest\022\024\n\007account\030\001 \001(\tB\003\340" + + "A\002\022\034\n\017service_account\030\002 \001(\tB\003\340A\002\"+\n\032Regi" + + "sterSubscriberResponse\022\r\n\005topic\030\001 \001(\t\"Q\n" + + "\033UnregisterSubscriberRequest\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\005topi" + + "c\030\001 \001(\t\"_\n\026ListSubscribersRequest\022\024\n\007acc" + + "ount\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\027ListSubscrib" + + "ersResponse\022\r\n\005topic\030\001 \001(\t\022\030\n\020service_ac" + + "counts\030\002 \003(\t\022\027\n\017next_page_token\030\003 \001(\t2\2217" + + "\n\023CloudChannelService\022\324\001\n\rListCustomers\022" + + "-.google.cloud.channel.v1.ListCustomersR" + + "equest\032..google.cloud.channel.v1.ListCus" + + "tomersResponse\"d\202\323\344\223\002^\022!/v1/{parent=acco" + + "unts/*}/customersZ9\0227/v1/{parent=account" + + "s/*/channelPartnerLinks/*}/customers\022\312\001\n" + + "\013GetCustomer\022+.google.cloud.channel.v1.G" + + "etCustomerRequest\032!.google.cloud.channel" + + ".v1.Customer\"k\202\323\344\223\002^\022!/v1/{name=accounts" + + "/*/customers/*}Z9\0227/v1/{name=accounts/*/" + + "channelPartnerLinks/*/customers/*}\332A\004nam" + + "e\022\350\001\n\037CheckCloudIdentityAccountsExist\022?." + + "google.cloud.channel.v1.CheckCloudIdenti" + + "tyAccountsExistRequest\032@.google.cloud.ch" + + "annel.v1.CheckCloudIdentityAccountsExist" + + "Response\"B\202\323\344\223\002<\"7/v1/{parent=accounts/*" + + "}:checkCloudIdentityAccountsExist:\001*\022\335\001\n" + + "\016CreateCustomer\022..google.cloud.channel.v" + + "1.CreateCustomerRequest\032!.google.cloud.c" + + "hannel.v1.Customer\"x\202\323\344\223\002r\"!/v1/{parent=" + + "accounts/*}/customers:\010customerZC\"7/v1/{" + + "parent=accounts/*/channelPartnerLinks/*}" + + "/customers:\010customer\022\361\001\n\016UpdateCustomer\022" + + "..google.cloud.channel.v1.UpdateCustomer" + + "Request\032!.google.cloud.channel.v1.Custom" + + "er\"\213\001\202\323\344\223\002\204\0012*/v1/{customer.name=account" + + "s/*/customers/*}:\010customerZL2@/v1/{custo" + + "mer.name=accounts/*/channelPartnerLinks/" + + "*/customers/*}:\010customer\022\305\001\n\016DeleteCusto" + + "mer\022..google.cloud.channel.v1.DeleteCust" + + "omerRequest\032\026.google.protobuf.Empty\"k\202\323\344" + + "\223\002^*!/v1/{name=accounts/*/customers/*}Z9" + + "*7/v1/{name=accounts/*/channelPartnerLin" + + "ks/*/customers/*}\332A\004name\022\335\001\n\016ImportCusto" + + "mer\022..google.cloud.channel.v1.ImportCust" + + "omerRequest\032!.google.cloud.channel.v1.Cu" + + "stomer\"x\202\323\344\223\002r\"(/v1/{parent=accounts/*}/" + + "customers:import:\001*ZC\">/v1/{parent=accou" + + "nts/*/channelPartnerLinks/*}/customers:i" + + "mport:\001*\022\330\001\n\026ProvisionCloudIdentity\0226.go" + + "ogle.cloud.channel.v1.ProvisionCloudIden" + + "tityRequest\032\035.google.longrunning.Operati" + + "on\"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" + + "\022\305\001\n\021CreateEntitlement\0221.google.cloud.ch" + + "annel.v1.CreateEntitlementRequest\032\035.goog" + + "le.longrunning.Operation\"^\202\323\344\223\0025\"0/v1/{p" + + "arent=accounts/*/customers/*}/entitlemen" + + "ts:\001*\312A \n\013Entitlement\022\021OperationMetadata" + + "\022\324\001\n\020ChangeParameters\0220.google.cloud.cha" + + "nnel.v1.ChangeParametersRequest\032\035.google" + + ".longrunning.Operation\"o\202\323\344\223\002F\"A/v1/{nam" + + "e=accounts/*/customers/*/entitlements/*}" + + ":changeParameters:\001*\312A \n\013Entitlement\022\021Op" + + "erationMetadata\022\343\001\n\025ChangeRenewalSetting" + + "s\0225.google.cloud.channel.v1.ChangeRenewa" + + "lSettingsRequest\032\035.google.longrunning.Op" + + "eration\"t\202\323\344\223\002K\"F/v1/{name=accounts/*/cu" + + "stomers/*/entitlements/*}:changeRenewalS" + + "ettings:\001*\312A \n\013Entitlement\022\021OperationMet" + + "adata\022\305\001\n\013ChangeOffer\022+.google.cloud.cha" + + "nnel.v1.ChangeOfferRequest\032\035.google.long" + + "running.Operation\"j\202\323\344\223\002A\"\"9/v1/{name=accounts/*/customers/*/en" + + "titlements/*}:activate:\001*\312A \n\013Entitlemen" + + "t\022\021OperationMetadata\022\344\001\n\024TransferEntitle" + + "ments\0224.google.cloud.channel.v1.Transfer" + + "EntitlementsRequest\032\035.google.longrunning" + + ".Operation\"w\202\323\344\223\002=\"8/v1/{parent=accounts" + + "/*/customers/*}:transferEntitlements:\001*\312" + + "A1\n\034TransferEntitlementsResponse\022\021Operat" + + "ionMetadata\022\365\001\n\034TransferEntitlementsToGo" + + "ogle\022<.google.cloud.channel.v1.TransferE" + + "ntitlementsToGoogleRequest\032\035.google.long" + + "running.Operation\"x\202\323\344\223\002E\"@/v1/{parent=a" + + "ccounts/*/customers/*}:transferEntitleme" + + "ntsToGoogle:\001*\312A*\n\025google.protobuf.Empty" + + "\022\021OperationMetadata\022\301\001\n\027ListChannelPartn" + + "erLinks\0227.google.cloud.channel.v1.ListCh" + + "annelPartnerLinksRequest\0328.google.cloud." + + "channel.v1.ListChannelPartnerLinksRespon" + + "se\"3\202\323\344\223\002-\022+/v1/{parent=accounts/*}/chan" + + "nelPartnerLinks\022\260\001\n\025GetChannelPartnerLin" + + "k\0225.google.cloud.channel.v1.GetChannelPa" + "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" + + "v1.ChannelPartnerLink\"3\202\323\344\223\002-\022+/v1/{name" + + "=accounts/*/channelPartnerLinks/*}\022\314\001\n\030C" + + "reateChannelPartnerLink\0228.google.cloud.c" + + "hannel.v1.CreateChannelPartnerLinkReques" + + "t\032+.google.cloud.channel.v1.ChannelPartn" + + "erLink\"I\202\323\344\223\002C\"+/v1/{parent=accounts/*}/" + + "channelPartnerLinks:\024channel_partner_lin" + + "k\022\271\001\n\030UpdateChannelPartnerLink\0228.google." + + "cloud.channel.v1.UpdateChannelPartnerLin" + + "kRequest\032+.google.cloud.channel.v1.Chann" + + "elPartnerLink\"6\202\323\344\223\00202+/v1/{name=account" + + "s/*/channelPartnerLinks/*}:\001*\022\247\001\n\013Lookup" + + "Offer\022+.google.cloud.channel.v1.LookupOf" + + "ferRequest\032\036.google.cloud.channel.v1.Off" + + "er\"K\202\323\344\223\002E\022C/v1/{entitlement=accounts/*/" + + "customers/*/entitlements/*}:lookupOffer\022" + + "\201\001\n\014ListProducts\022,.google.cloud.channel." + + "v1.ListProductsRequest\032-.google.cloud.ch" + + "annel.v1.ListProductsResponse\"\024\202\323\344\223\002\016\022\014/" + + "v1/products\022\205\001\n\010ListSkus\022(.google.cloud." + + "channel.v1.ListSkusRequest\032).google.clou" + + "d.channel.v1.ListSkusResponse\"$\202\323\344\223\002\036\022\034/" + + "v1/{parent=products/*}/skus\022\215\001\n\nListOffe" + + "rs\022*.google.cloud.channel.v1.ListOffersR" + + "equest\032+.google.cloud.channel.v1.ListOff" + + "ersResponse\"&\202\323\344\223\002 \022\036/v1/{parent=account" + + "s/*}/offers\022\303\001\n\023ListPurchasableSkus\0223.go" + + "ogle.cloud.channel.v1.ListPurchasableSku" + + "sRequest\0324.google.cloud.channel.v1.ListP" + + "urchasableSkusResponse\"A\202\323\344\223\002;\0229/v1/{cus" + + "tomer=accounts/*/customers/*}:listPurcha" + + "sableSkus\022\313\001\n\025ListPurchasableOffers\0225.go" + + "ogle.cloud.channel.v1.ListPurchasableOff" + + "ersRequest\0326.google.cloud.channel.v1.Lis" + + "tPurchasableOffersResponse\"C\202\323\344\223\002=\022;/v1/" + + "{customer=accounts/*/customers/*}:listPu" + + "rchasableOffers\022\253\001\n\022RegisterSubscriber\0222" + + ".google.cloud.channel.v1.RegisterSubscri" + + "berRequest\0323.google.cloud.channel.v1.Reg" + + "isterSubscriberResponse\",\202\323\344\223\002&\"!/v1/{ac" + + "count=accounts/*}:register:\001*\022\263\001\n\024Unregi" + + "sterSubscriber\0224.google.cloud.channel.v1" + + ".UnregisterSubscriberRequest\0325.google.cl" + + "oud.channel.v1.UnregisterSubscriberRespo" + + "nse\".\202\323\344\223\002(\"#/v1/{account=accounts/*}:un" + + "register:\001*\022\246\001\n\017ListSubscribers\022/.google" + + ".cloud.channel.v1.ListSubscribersRequest" + + "\0320.google.cloud.channel.v1.ListSubscribe" + + "rsResponse\"0\202\323\344\223\002*\022(/v1/{account=account" + + "s/*}:listSubscribers\032K\312A\033cloudchannel.go" + + "ogleapis.com\322A*https://www.googleapis.co" + + "m/auth/apps.orderBm\n\033com.google.cloud.ch" + + "annel.v1B\014ServiceProtoP\001Z>google.golang." + + "org/genproto/googleapis/cloud/channel/v1" + + ";channelb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -726,8 +743,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_cloud_channel_v1_ProvisionCloudIdentityRequest_descriptor = + internal_static_google_cloud_channel_v1_ImportCustomerRequest_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_channel_v1_ImportCustomerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_channel_v1_ImportCustomerRequest_descriptor, + new java.lang.String[] { + "Domain", + "CloudIdentityId", + "Parent", + "AuthToken", + "OverwriteIfExists", + "ChannelPartnerId", + "Customer", + "CustomerIdentity", + }); + internal_static_google_cloud_channel_v1_ProvisionCloudIdentityRequest_descriptor = + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_channel_v1_ProvisionCloudIdentityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ProvisionCloudIdentityRequest_descriptor, @@ -735,7 +767,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Customer", "CloudIdentityInfo", "User", "ValidateOnly", }); internal_static_google_cloud_channel_v1_ListEntitlementsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_channel_v1_ListEntitlementsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListEntitlementsRequest_descriptor, @@ -743,7 +775,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_channel_v1_ListEntitlementsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_channel_v1_ListEntitlementsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListEntitlementsResponse_descriptor, @@ -751,7 +783,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Entitlements", "NextPageToken", }); internal_static_google_cloud_channel_v1_ListTransferableSkusRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_channel_v1_ListTransferableSkusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListTransferableSkusRequest_descriptor, @@ -766,7 +798,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TransferredCustomerIdentity", }); internal_static_google_cloud_channel_v1_ListTransferableSkusResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_channel_v1_ListTransferableSkusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListTransferableSkusResponse_descriptor, @@ -774,7 +806,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TransferableSkus", "NextPageToken", }); internal_static_google_cloud_channel_v1_ListTransferableOffersRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_channel_v1_ListTransferableOffersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListTransferableOffersRequest_descriptor, @@ -789,7 +821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TransferredCustomerIdentity", }); internal_static_google_cloud_channel_v1_ListTransferableOffersResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_channel_v1_ListTransferableOffersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListTransferableOffersResponse_descriptor, @@ -797,7 +829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TransferableOffers", "NextPageToken", }); internal_static_google_cloud_channel_v1_TransferableOffer_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_channel_v1_TransferableOffer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_TransferableOffer_descriptor, @@ -805,7 +837,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offer", }); internal_static_google_cloud_channel_v1_GetEntitlementRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_channel_v1_GetEntitlementRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_GetEntitlementRequest_descriptor, @@ -813,7 +845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_channel_v1_ListChannelPartnerLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_channel_v1_ListChannelPartnerLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListChannelPartnerLinksRequest_descriptor, @@ -821,7 +853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "View", }); internal_static_google_cloud_channel_v1_ListChannelPartnerLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_channel_v1_ListChannelPartnerLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListChannelPartnerLinksResponse_descriptor, @@ -829,7 +861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChannelPartnerLinks", "NextPageToken", }); internal_static_google_cloud_channel_v1_GetChannelPartnerLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_channel_v1_GetChannelPartnerLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_GetChannelPartnerLinkRequest_descriptor, @@ -837,7 +869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "View", }); internal_static_google_cloud_channel_v1_CreateChannelPartnerLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_channel_v1_CreateChannelPartnerLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_CreateChannelPartnerLinkRequest_descriptor, @@ -845,7 +877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ChannelPartnerLink", }); internal_static_google_cloud_channel_v1_UpdateChannelPartnerLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_channel_v1_UpdateChannelPartnerLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_UpdateChannelPartnerLinkRequest_descriptor, @@ -853,7 +885,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ChannelPartnerLink", "UpdateMask", }); internal_static_google_cloud_channel_v1_CreateEntitlementRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_channel_v1_CreateEntitlementRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_CreateEntitlementRequest_descriptor, @@ -861,7 +893,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Entitlement", "RequestId", }); internal_static_google_cloud_channel_v1_TransferEntitlementsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_channel_v1_TransferEntitlementsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_TransferEntitlementsRequest_descriptor, @@ -869,7 +901,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Entitlements", "AuthToken", "RequestId", }); internal_static_google_cloud_channel_v1_TransferEntitlementsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_channel_v1_TransferEntitlementsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_TransferEntitlementsResponse_descriptor, @@ -877,7 +909,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Entitlements", }); internal_static_google_cloud_channel_v1_TransferEntitlementsToGoogleRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_channel_v1_TransferEntitlementsToGoogleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_TransferEntitlementsToGoogleRequest_descriptor, @@ -885,7 +917,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Entitlements", "RequestId", }); internal_static_google_cloud_channel_v1_ChangeParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_channel_v1_ChangeParametersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ChangeParametersRequest_descriptor, @@ -893,7 +925,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Parameters", "RequestId", "PurchaseOrderId", }); internal_static_google_cloud_channel_v1_ChangeRenewalSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_channel_v1_ChangeRenewalSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ChangeRenewalSettingsRequest_descriptor, @@ -901,7 +933,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RenewalSettings", "RequestId", }); internal_static_google_cloud_channel_v1_ChangeOfferRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_channel_v1_ChangeOfferRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ChangeOfferRequest_descriptor, @@ -909,7 +941,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Offer", "Parameters", "PurchaseOrderId", "RequestId", }); internal_static_google_cloud_channel_v1_StartPaidServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_channel_v1_StartPaidServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_StartPaidServiceRequest_descriptor, @@ -917,7 +949,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_channel_v1_CancelEntitlementRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_channel_v1_CancelEntitlementRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_CancelEntitlementRequest_descriptor, @@ -925,7 +957,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_channel_v1_SuspendEntitlementRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_channel_v1_SuspendEntitlementRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_SuspendEntitlementRequest_descriptor, @@ -933,7 +965,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_channel_v1_ActivateEntitlementRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_channel_v1_ActivateEntitlementRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ActivateEntitlementRequest_descriptor, @@ -941,7 +973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_channel_v1_LookupOfferRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_channel_v1_LookupOfferRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_LookupOfferRequest_descriptor, @@ -949,7 +981,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Entitlement", }); internal_static_google_cloud_channel_v1_ListProductsRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_channel_v1_ListProductsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListProductsRequest_descriptor, @@ -957,7 +989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Account", "PageSize", "PageToken", "LanguageCode", }); internal_static_google_cloud_channel_v1_ListProductsResponse_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_channel_v1_ListProductsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListProductsResponse_descriptor, @@ -965,7 +997,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Products", "NextPageToken", }); internal_static_google_cloud_channel_v1_ListSkusRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_channel_v1_ListSkusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListSkusRequest_descriptor, @@ -973,7 +1005,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(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_channel_v1_ListSkusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListSkusResponse_descriptor, @@ -981,7 +1013,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Skus", "NextPageToken", }); internal_static_google_cloud_channel_v1_ListOffersRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_channel_v1_ListOffersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListOffersRequest_descriptor, @@ -989,7 +1021,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(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_channel_v1_ListOffersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListOffersResponse_descriptor, @@ -997,7 +1029,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offers", "NextPageToken", }); internal_static_google_cloud_channel_v1_ListPurchasableSkusRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_channel_v1_ListPurchasableSkusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListPurchasableSkusRequest_descriptor, @@ -1031,7 +1063,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Entitlement", "ChangeType", }); internal_static_google_cloud_channel_v1_ListPurchasableSkusResponse_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_channel_v1_ListPurchasableSkusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListPurchasableSkusResponse_descriptor, @@ -1039,7 +1071,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PurchasableSkus", "NextPageToken", }); internal_static_google_cloud_channel_v1_PurchasableSku_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_channel_v1_PurchasableSku_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_PurchasableSku_descriptor, @@ -1047,7 +1079,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Sku", }); internal_static_google_cloud_channel_v1_ListPurchasableOffersRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_channel_v1_ListPurchasableOffersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListPurchasableOffersRequest_descriptor, @@ -1081,7 +1113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Entitlement", "NewSku", }); internal_static_google_cloud_channel_v1_ListPurchasableOffersResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_channel_v1_ListPurchasableOffersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListPurchasableOffersResponse_descriptor, @@ -1089,7 +1121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PurchasableOffers", "NextPageToken", }); internal_static_google_cloud_channel_v1_PurchasableOffer_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_channel_v1_PurchasableOffer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_PurchasableOffer_descriptor, @@ -1097,7 +1129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offer", }); internal_static_google_cloud_channel_v1_RegisterSubscriberRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_channel_v1_RegisterSubscriberRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_RegisterSubscriberRequest_descriptor, @@ -1105,7 +1137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Account", "ServiceAccount", }); internal_static_google_cloud_channel_v1_RegisterSubscriberResponse_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_channel_v1_RegisterSubscriberResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_RegisterSubscriberResponse_descriptor, @@ -1113,7 +1145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_cloud_channel_v1_UnregisterSubscriberRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_channel_v1_UnregisterSubscriberRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_UnregisterSubscriberRequest_descriptor, @@ -1121,7 +1153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Account", "ServiceAccount", }); internal_static_google_cloud_channel_v1_UnregisterSubscriberResponse_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_channel_v1_UnregisterSubscriberResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_UnregisterSubscriberResponse_descriptor, @@ -1129,7 +1161,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_cloud_channel_v1_ListSubscribersRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_channel_v1_ListSubscribersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_ListSubscribersRequest_descriptor, @@ -1137,7 +1169,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Account", "PageSize", "PageToken", }); internal_static_google_cloud_channel_v1_ListSubscribersResponse_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(53); 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/proto/google/cloud/channel/v1/customers.proto b/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto index 3ba96c0a..1ed316ca 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 @@ -54,7 +54,8 @@ message Customer { // 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. + // account. Secondary emails are also recovery email addresses. Alternate + // emails are optional when you create Team customers. string alternate_email = 5; // Required. The customer's primary domain. Must match the primary contact @@ -87,10 +88,10 @@ message Customer { // Contact information for a customer account. message ContactInfo { - // The customer account contact's first name. + // The customer account contact's first name. Optional for Team customers. string first_name = 1; - // The customer account contact's last name. + // The customer account contact's last name. Optional for Team customers. string last_name = 2; // Output only. The customer account contact's display name, formatted as a @@ -99,7 +100,7 @@ message ContactInfo { // 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. + // accounts. Use this email to invite Team customers. string email = 5; // Optional. The customer account contact's job title. 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 62aa3cd7..b781cfaa 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 @@ -188,6 +188,34 @@ service CloudChannelService { option (google.api.method_signature) = "name"; } + // Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud Identity associated with the provided + // Cloud Identity ID or domain before a TransferEntitlements call. If a + // linked Customer already exists and overwrite_if_exists is true, it will + // update that Customer's data. + // + // Possible error codes: + // + // * PERMISSION_DENIED: The reseller account making the request is different + // from the reseller account in the API request. + // * NOT_FOUND: Cloud Identity doesn't exist or was deleted. + // * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is + // expired or invalid. + // * ALREADY_EXISTS: A customer already exists and has conflicting critical + // fields. Requires an overwrite. + // + // Return value: + // The [Customer][google.cloud.channel.v1.Customer]. + rpc ImportCustomer(ImportCustomerRequest) returns (Customer) { + option (google.api.http) = { + post: "/v1/{parent=accounts/*}/customers:import" + body: "*" + additional_bindings { + post: "/v1/{parent=accounts/*/channelPartnerLinks/*}/customers:import" + body: "*" + } + }; + } + // Creates a Cloud Identity for the given customer using the customer's // information, or the information provided here. // @@ -1026,6 +1054,52 @@ message DeleteCustomerRequest { ]; } +// Request message for [CloudChannelService.ImportCustomer][google.cloud.channel.v1.CloudChannelService.ImportCustomer] +message ImportCustomerRequest { + // Specifies the identity of the transfer customer. + // A customer's cloud_identity_id or domain is required to look up the + // customer's Cloud Identity. For Team customers, only the cloud_identity_id + // option is valid. + oneof customer_identity { + // Required. Customer domain. + string domain = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Customer's Cloud Identity ID + string cloud_identity_id = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. The resource name of the reseller's account. + // Parent takes the format: accounts/{account_id} or + // accounts/{account_id}/channelPartnerLinks/{channel_partner_id} + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The super admin of the resold customer generates this token to + // authorize a reseller to access their Cloud Identity and purchase + // entitlements on their behalf. You can omit this token after authorization. + // See https://support.google.com/a/answer/7643790 for more details. + string auth_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Choose to overwrite an existing customer if found. + // This must be set to true if there is an existing customer with a + // conflicting region code or domain. + bool overwrite_if_exists = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Cloud Identity ID of a channel partner who will be the direct reseller for + // the customer's order. This field is required for 2-tier transfer scenarios + // and can be provided via the request Parent binding as well. + string channel_partner_id = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the customer that will receive imported Cloud Identity + // information. + // Format: accounts/{account_id}/customers/{customer_id} + string customer = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudchannel.googleapis.com/Customer" + } + ]; +} + // Request message for [CloudChannelService.ProvisionCloudIdentity][google.cloud.channel.v1.CloudChannelService.ProvisionCloudIdentity] message ProvisionCloudIdentityRequest { // Required. Resource name of the customer.