From 24f60bc2664cc0377ca354fe44a1a05103ffe08b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 12 Oct 2020 14:36:07 -0700 Subject: [PATCH] feat!: remove CreateCertificateRevocationList, create/delete/updateReusableConfig methods (#33) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/7f78e411-cdf9-4f4d-9380-e4042f91684d/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 334847962 Source-Link: https://github.com/googleapis/googleapis/commit/7ab31c71fd81b85dc4b5a439fe654dbd6578c858 --- .../clirr-ignored-differences.xml | 45 + .../CertificateAuthorityServiceClient.java | 618 +-- .../CertificateAuthorityServiceSettings.java | 122 - .../stub/CertificateAuthorityServiceStub.java | 52 - ...rtificateAuthorityServiceStubSettings.java | 321 +- .../GrpcCertificateAuthorityServiceStub.java | 202 - ...CertificateAuthorityServiceClientTest.java | 234 -- .../MockCertificateAuthorityServiceImpl.java | 60 - .../CertificateAuthorityServiceClient.java | 3690 ----------------- .../CertificateAuthorityServiceSettings.java | 729 ---- .../privateca/v1beta1/package-info.java | 45 - .../stub/CertificateAuthorityServiceStub.java | 325 -- ...rtificateAuthorityServiceStubSettings.java | 1919 --------- ...ficateAuthorityServiceCallableFactory.java | 115 - .../GrpcCertificateAuthorityServiceStub.java | 1297 ------ ...CertificateAuthorityServiceClientTest.java | 1366 ------ .../MockCertificateAuthorityService.java | 57 - .../MockCertificateAuthorityServiceImpl.java | 426 -- .../clirr-ignored-differences.xml | 45 + .../CertificateAuthorityServiceGrpc.java | 518 +-- .../clirr-ignored-differences.xml | 39 + .../privateca/v1beta1/Certificate.java | 63 +- .../v1beta1/CertificateAuthority.java | 130 +- .../v1beta1/CertificateOrBuilder.java | 18 +- .../CreateCertificateAuthorityRequest.java | 14 +- ...eCertificateAuthorityRequestOrBuilder.java | 4 +- .../v1beta1/CreateCertificateRequest.java | 14 +- .../CreateCertificateRequestOrBuilder.java | 4 +- ...reateCertificateRevocationListRequest.java | 1469 ------- ...ificateRevocationListRequestOrBuilder.java | 175 - .../v1beta1/CreateReusableConfigRequest.java | 1425 ------- .../CreateReusableConfigRequestOrBuilder.java | 171 - .../v1beta1/DeleteReusableConfigRequest.java | 924 ----- .../DeleteReusableConfigRequestOrBuilder.java | 101 - .../v1beta1/ListCertificatesRequest.java | 56 +- .../ListCertificatesRequestOrBuilder.java | 16 +- .../privateca/v1beta1/PrivateCaProto.java | 626 ++- .../v1beta1/PrivateCaResourcesProto.java | 370 +- .../v1beta1/ReusableConfigValues.java | 46 +- .../ReusableConfigValuesOrBuilder.java | 10 +- .../privateca/v1beta1/RevocationReason.java | 6 +- .../v1beta1/UpdateReusableConfigRequest.java | 1316 ------ .../UpdateReusableConfigRequestOrBuilder.java | 149 - .../privateca/v1beta1/resources.proto | 40 +- .../security/privateca/v1beta1/service.proto | 193 +- synth.metadata | 14 +- 46 files changed, 909 insertions(+), 18670 deletions(-) create mode 100644 google-cloud-security-private-ca/clirr-ignored-differences.xml delete mode 100644 google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java delete mode 100644 google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java delete mode 100644 google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java delete mode 100644 google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java delete mode 100644 google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java delete mode 100644 google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java delete mode 100644 google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java delete mode 100644 google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java delete mode 100644 google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java delete mode 100644 google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java create mode 100644 grpc-google-cloud-security-private-ca-v1beta1/clirr-ignored-differences.xml create mode 100644 proto-google-cloud-security-private-ca-v1beta1/clirr-ignored-differences.xml delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRevocationListRequest.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRevocationListRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateReusableConfigRequest.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateReusableConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DeleteReusableConfigRequest.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DeleteReusableConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateReusableConfigRequest.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateReusableConfigRequestOrBuilder.java diff --git a/google-cloud-security-private-ca/clirr-ignored-differences.xml b/google-cloud-security-private-ca/clirr-ignored-differences.xml new file mode 100644 index 00000000..446db430 --- /dev/null +++ b/google-cloud-security-private-ca/clirr-ignored-differences.xml @@ -0,0 +1,45 @@ + + + + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityService* + * createCertificateRevocationList*(*) + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityService* + * createReusableConfig*(*) + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityService* + * deleteReusableConfig*(*) + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityService* + * updateReusableConfig*(*) + + + 7002 + com/google/cloud/security/privateca/v1beta1/stub/*CertificateAuthorityService* + * createCertificateRevocationList*(*) + + + 7002 + com/google/cloud/security/privateca/v1beta1/stub/*CertificateAuthorityService* + * createReusableConfig*(*) + + + 7002 + com/google/cloud/security/privateca/v1beta1/stub/*CertificateAuthorityService* + * deleteReusableConfig*(*) + + + 7002 + com/google/cloud/security/privateca/v1beta1/stub/*CertificateAuthorityService* + * updateReusableConfig*(*) + + diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java index cd30e502..ea2bfaa9 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java @@ -32,7 +32,6 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; @@ -205,7 +204,7 @@ public final OperationsClient getOperationsClient() { * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field * values. * @param certificateId Optional. It must be unique within a location and match the regular - * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a + * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the * Enterprise * [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier], @@ -248,7 +247,7 @@ public final Certificate createCertificate( * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field * values. * @param certificateId Optional. It must be unique within a location and match the regular - * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a + * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the * Enterprise * [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier], @@ -645,7 +644,9 @@ public final UnaryCallable revokeCertific // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. + * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the + * only field you can update is the + * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field. * *

Sample code: * @@ -673,7 +674,9 @@ public final Certificate updateCertificate(Certificate certificate, FieldMask up // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. + * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the + * only field you can update is the + * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field. * *

Sample code: * @@ -698,7 +701,9 @@ public final Certificate updateCertificate(UpdateCertificateRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. + * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the + * only field you can update is the + * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field. * *

Sample code: * @@ -921,7 +926,7 @@ public final UnaryCallable updateCertific * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with * initial field values. * @param certificateAuthorityId Required. It must be unique within a location and match the - * regular expression `[a-zA-Z0-9-]{1,63}` + * regular expression `[a-zA-Z0-9_-]{1,63}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -964,7 +969,7 @@ public final UnaryCallable updateCertific * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with * initial field values. * @param certificateAuthorityId Required. It must be unique within a location and match the - * regular expression `[a-zA-Z0-9-]{1,63}` + * regular expression `[a-zA-Z0-9_-]{1,63}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -2089,193 +2094,6 @@ public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities( return stub.updateCertificateAuthorityCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * in a given Project, Location for a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   String certificateRevocationListId = "";
-   *   CertificateRevocationList response = certificateAuthorityServiceClient.createCertificateRevocationListAsync(parent, certificateRevocationList, certificateRevocationListId).get();
-   * }
-   * 
- * - * @param parent Required. The resource name of the location and - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * associated with the - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], - * in the format `projects/*/locations/*/certificateAuthorities/*`. - * @param certificateRevocationList Required. A - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * with initial field values. - * @param certificateRevocationListId Required. It must be unique within a location and match the - * regular expression `[a-zA-Z0-9-]{1,63}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - createCertificateRevocationListAsync( - CertificateAuthorityName parent, - CertificateRevocationList certificateRevocationList, - String certificateRevocationListId) { - CreateCertificateRevocationListRequest request = - CreateCertificateRevocationListRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCertificateRevocationList(certificateRevocationList) - .setCertificateRevocationListId(certificateRevocationListId) - .build(); - return createCertificateRevocationListAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * in a given Project, Location for a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   String certificateRevocationListId = "";
-   *   CertificateRevocationList response = certificateAuthorityServiceClient.createCertificateRevocationListAsync(parent.toString(), certificateRevocationList, certificateRevocationListId).get();
-   * }
-   * 
- * - * @param parent Required. The resource name of the location and - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * associated with the - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], - * in the format `projects/*/locations/*/certificateAuthorities/*`. - * @param certificateRevocationList Required. A - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * with initial field values. - * @param certificateRevocationListId Required. It must be unique within a location and match the - * regular expression `[a-zA-Z0-9-]{1,63}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - createCertificateRevocationListAsync( - String parent, - CertificateRevocationList certificateRevocationList, - String certificateRevocationListId) { - CreateCertificateRevocationListRequest request = - CreateCertificateRevocationListRequest.newBuilder() - .setParent(parent) - .setCertificateRevocationList(certificateRevocationList) - .setCertificateRevocationListId(certificateRevocationListId) - .build(); - return createCertificateRevocationListAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * in a given Project, Location for a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   String certificateRevocationListId = "";
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   CreateCertificateRevocationListRequest request = CreateCertificateRevocationListRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setCertificateRevocationListId(certificateRevocationListId)
-   *     .setCertificateRevocationList(certificateRevocationList)
-   *     .build();
-   *   CertificateRevocationList response = certificateAuthorityServiceClient.createCertificateRevocationListAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - createCertificateRevocationListAsync(CreateCertificateRevocationListRequest request) { - return createCertificateRevocationListOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * in a given Project, Location for a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   String certificateRevocationListId = "";
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   CreateCertificateRevocationListRequest request = CreateCertificateRevocationListRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setCertificateRevocationListId(certificateRevocationListId)
-   *     .setCertificateRevocationList(certificateRevocationList)
-   *     .build();
-   *   OperationFuture<CertificateRevocationList, OperationMetadata> future = certificateAuthorityServiceClient.createCertificateRevocationListOperationCallable().futureCall(request);
-   *   // Do something
-   *   CertificateRevocationList response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationCallable() { - return stub.createCertificateRevocationListOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * in a given Project, Location for a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   String certificateRevocationListId = "";
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   CreateCertificateRevocationListRequest request = CreateCertificateRevocationListRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setCertificateRevocationListId(certificateRevocationListId)
-   *     .setCertificateRevocationList(certificateRevocationList)
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.createCertificateRevocationListCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - createCertificateRevocationListCallable() { - return stub.createCertificateRevocationListCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Returns a @@ -2643,305 +2461,6 @@ public final ListCertificateRevocationListsPagedResponse listCertificateRevocati return stub.updateCertificateRevocationListCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a - * given Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   String reusableConfigId = "";
-   *   ReusableConfig response = certificateAuthorityServiceClient.createReusableConfigAsync(parent, reusableConfig, reusableConfigId).get();
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format - * `projects/*/locations/*`. - * @param reusableConfig Required. A - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field - * values. - * @param reusableConfigId Required. It must be unique within a location and match the regular - * expression `[a-zA-Z0-9-]{1,63}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createReusableConfigAsync( - LocationName parent, ReusableConfig reusableConfig, String reusableConfigId) { - CreateReusableConfigRequest request = - CreateReusableConfigRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setReusableConfig(reusableConfig) - .setReusableConfigId(reusableConfigId) - .build(); - return createReusableConfigAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a - * given Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   String reusableConfigId = "";
-   *   ReusableConfig response = certificateAuthorityServiceClient.createReusableConfigAsync(parent.toString(), reusableConfig, reusableConfigId).get();
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format - * `projects/*/locations/*`. - * @param reusableConfig Required. A - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field - * values. - * @param reusableConfigId Required. It must be unique within a location and match the regular - * expression `[a-zA-Z0-9-]{1,63}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createReusableConfigAsync( - String parent, ReusableConfig reusableConfig, String reusableConfigId) { - CreateReusableConfigRequest request = - CreateReusableConfigRequest.newBuilder() - .setParent(parent) - .setReusableConfig(reusableConfig) - .setReusableConfigId(reusableConfigId) - .build(); - return createReusableConfigAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a - * given Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String reusableConfigId = "";
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   CreateReusableConfigRequest request = CreateReusableConfigRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setReusableConfigId(reusableConfigId)
-   *     .setReusableConfig(reusableConfig)
-   *     .build();
-   *   ReusableConfig response = certificateAuthorityServiceClient.createReusableConfigAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createReusableConfigAsync( - CreateReusableConfigRequest request) { - return createReusableConfigOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a - * given Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String reusableConfigId = "";
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   CreateReusableConfigRequest request = CreateReusableConfigRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setReusableConfigId(reusableConfigId)
-   *     .setReusableConfig(reusableConfig)
-   *     .build();
-   *   OperationFuture<ReusableConfig, OperationMetadata> future = certificateAuthorityServiceClient.createReusableConfigOperationCallable().futureCall(request);
-   *   // Do something
-   *   ReusableConfig response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - createReusableConfigOperationCallable() { - return stub.createReusableConfigOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a - * given Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String reusableConfigId = "";
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   CreateReusableConfigRequest request = CreateReusableConfigRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setReusableConfigId(reusableConfigId)
-   *     .setReusableConfig(reusableConfig)
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.createReusableConfigCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - createReusableConfigCallable() { - return stub.createReusableConfigCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * DeleteReusableConfig deletes a - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   certificateAuthorityServiceClient.deleteReusableConfigAsync(name).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format - * `projects/*/locations/*/reusableConfigs/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteReusableConfigAsync( - ReusableConfigName name) { - DeleteReusableConfigRequest request = - DeleteReusableConfigRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return deleteReusableConfigAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * DeleteReusableConfig deletes a - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   certificateAuthorityServiceClient.deleteReusableConfigAsync(name.toString()).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format - * `projects/*/locations/*/reusableConfigs/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteReusableConfigAsync(String name) { - DeleteReusableConfigRequest request = - DeleteReusableConfigRequest.newBuilder().setName(name).build(); - return deleteReusableConfigAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * DeleteReusableConfig deletes a - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   DeleteReusableConfigRequest request = DeleteReusableConfigRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   certificateAuthorityServiceClient.deleteReusableConfigAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteReusableConfigAsync( - DeleteReusableConfigRequest request) { - return deleteReusableConfigOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * DeleteReusableConfig deletes a - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   DeleteReusableConfigRequest request = DeleteReusableConfigRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   OperationFuture<Empty, OperationMetadata> future = certificateAuthorityServiceClient.deleteReusableConfigOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - deleteReusableConfigOperationCallable() { - return stub.deleteReusableConfigOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * DeleteReusableConfig deletes a - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   DeleteReusableConfigRequest request = DeleteReusableConfigRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.deleteReusableConfigCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - public final UnaryCallable - deleteReusableConfigCallable() { - return stub.deleteReusableConfigCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. @@ -3169,117 +2688,6 @@ public final ListReusableConfigsPagedResponse listReusableConfigs( return stub.listReusableConfigsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   ReusableConfig response = certificateAuthorityServiceClient.updateReusableConfigAsync(reusableConfig, updateMask).get();
-   * }
-   * 
- * - * @param reusableConfig Required. - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated - * values. - * @param updateMask Required. A list of fields to be updated in this request. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateReusableConfigAsync( - ReusableConfig reusableConfig, FieldMask updateMask) { - UpdateReusableConfigRequest request = - UpdateReusableConfigRequest.newBuilder() - .setReusableConfig(reusableConfig) - .setUpdateMask(updateMask) - .build(); - return updateReusableConfigAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateReusableConfigRequest request = UpdateReusableConfigRequest.newBuilder()
-   *     .setReusableConfig(reusableConfig)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ReusableConfig response = certificateAuthorityServiceClient.updateReusableConfigAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateReusableConfigAsync( - UpdateReusableConfigRequest request) { - return updateReusableConfigOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateReusableConfigRequest request = UpdateReusableConfigRequest.newBuilder()
-   *     .setReusableConfig(reusableConfig)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   OperationFuture<ReusableConfig, OperationMetadata> future = certificateAuthorityServiceClient.updateReusableConfigOperationCallable().futureCall(request);
-   *   // Do something
-   *   ReusableConfig response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - updateReusableConfigOperationCallable() { - return stub.updateReusableConfigOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateReusableConfigRequest request = UpdateReusableConfigRequest.newBuilder()
-   *     .setReusableConfig(reusableConfig)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.updateReusableConfigCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - updateReusableConfigCallable() { - return stub.updateReusableConfigCallable(); - } - @Override public final void close() { stub.close(); diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java index 55edd864..a99b8fb0 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java @@ -34,7 +34,6 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.security.privateca.v1beta1.stub.CertificateAuthorityServiceStubSettings; import com.google.longrunning.Operation; -import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -248,23 +247,6 @@ public UnaryCallSettings updateCertificat .updateCertificateAuthorityOperationSettings(); } - /** Returns the object with the settings used for calls to createCertificateRevocationList. */ - public UnaryCallSettings - createCertificateRevocationListSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .createCertificateRevocationListSettings(); - } - - /** Returns the object with the settings used for calls to createCertificateRevocationList. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .createCertificateRevocationListOperationSettings(); - } - /** Returns the object with the settings used for calls to getCertificateRevocationList. */ public UnaryCallSettings getCertificateRevocationListSettings() { @@ -299,36 +281,6 @@ public UnaryCallSettings updateCertificat .updateCertificateRevocationListOperationSettings(); } - /** Returns the object with the settings used for calls to createReusableConfig. */ - public UnaryCallSettings createReusableConfigSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .createReusableConfigSettings(); - } - - /** Returns the object with the settings used for calls to createReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - createReusableConfigOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .createReusableConfigOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteReusableConfig. */ - public UnaryCallSettings deleteReusableConfigSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .deleteReusableConfigSettings(); - } - - /** Returns the object with the settings used for calls to deleteReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - deleteReusableConfigOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .deleteReusableConfigOperationSettings(); - } - /** Returns the object with the settings used for calls to getReusableConfig. */ public UnaryCallSettings getReusableConfigSettings() { return ((CertificateAuthorityServiceStubSettings) getStubSettings()) @@ -343,21 +295,6 @@ public UnaryCallSettings getReusableCo .listReusableConfigsSettings(); } - /** Returns the object with the settings used for calls to updateReusableConfig. */ - public UnaryCallSettings updateReusableConfigSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .updateReusableConfigSettings(); - } - - /** Returns the object with the settings used for calls to updateReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - updateReusableConfigOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .updateReusableConfigOperationSettings(); - } - public static final CertificateAuthorityServiceSettings create( CertificateAuthorityServiceStubSettings stub) throws IOException { return new CertificateAuthorityServiceSettings.Builder(stub.toBuilder()).build(); @@ -617,21 +554,6 @@ public UnaryCallSettings.Builder getCertific return getStubSettingsBuilder().updateCertificateAuthorityOperationSettings(); } - /** Returns the builder for the settings used for calls to createCertificateRevocationList. */ - public UnaryCallSettings.Builder - createCertificateRevocationListSettings() { - return getStubSettingsBuilder().createCertificateRevocationListSettings(); - } - - /** Returns the builder for the settings used for calls to createCertificateRevocationList. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings() { - return getStubSettingsBuilder().createCertificateRevocationListOperationSettings(); - } - /** Returns the builder for the settings used for calls to getCertificateRevocationList. */ public UnaryCallSettings.Builder getCertificateRevocationListSettings() { @@ -662,35 +584,6 @@ public UnaryCallSettings.Builder getCertific return getStubSettingsBuilder().updateCertificateRevocationListOperationSettings(); } - /** Returns the builder for the settings used for calls to createReusableConfig. */ - public UnaryCallSettings.Builder - createReusableConfigSettings() { - return getStubSettingsBuilder().createReusableConfigSettings(); - } - - /** Returns the builder for the settings used for calls to createReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateReusableConfigRequest, ReusableConfig, OperationMetadata> - createReusableConfigOperationSettings() { - return getStubSettingsBuilder().createReusableConfigOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteReusableConfig. */ - public UnaryCallSettings.Builder - deleteReusableConfigSettings() { - return getStubSettingsBuilder().deleteReusableConfigSettings(); - } - - /** Returns the builder for the settings used for calls to deleteReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteReusableConfigOperationSettings() { - return getStubSettingsBuilder().deleteReusableConfigOperationSettings(); - } - /** Returns the builder for the settings used for calls to getReusableConfig. */ public UnaryCallSettings.Builder getReusableConfigSettings() { @@ -706,21 +599,6 @@ public UnaryCallSettings.Builder getCertific return getStubSettingsBuilder().listReusableConfigsSettings(); } - /** Returns the builder for the settings used for calls to updateReusableConfig. */ - public UnaryCallSettings.Builder - updateReusableConfigSettings() { - return getStubSettingsBuilder().updateReusableConfigSettings(); - } - - /** Returns the builder for the settings used for calls to updateReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateReusableConfigRequest, ReusableConfig, OperationMetadata> - updateReusableConfigOperationSettings() { - return getStubSettingsBuilder().updateReusableConfigOperationSettings(); - } - @Override public CertificateAuthorityServiceSettings build() throws IOException { return new CertificateAuthorityServiceSettings(this); diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java index 78a11693..a2b8a22b 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java @@ -30,9 +30,6 @@ import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; import com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest; import com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest; @@ -57,10 +54,8 @@ import com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest; import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS @@ -225,20 +220,6 @@ public UnaryCallable updateCertificateCal "Not implemented: updateCertificateAuthorityCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createCertificateRevocationListOperationCallable()"); - } - - public UnaryCallable - createCertificateRevocationListCallable() { - throw new UnsupportedOperationException( - "Not implemented: createCertificateRevocationListCallable()"); - } - public UnaryCallable getCertificateRevocationListCallable() { throw new UnsupportedOperationException( @@ -273,28 +254,6 @@ public UnaryCallable updateCertificateCal "Not implemented: updateCertificateRevocationListCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createReusableConfigOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createReusableConfigOperationCallable()"); - } - - public UnaryCallable createReusableConfigCallable() { - throw new UnsupportedOperationException("Not implemented: createReusableConfigCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteReusableConfigOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteReusableConfigOperationCallable()"); - } - - public UnaryCallable deleteReusableConfigCallable() { - throw new UnsupportedOperationException("Not implemented: deleteReusableConfigCallable()"); - } - public UnaryCallable getReusableConfigCallable() { throw new UnsupportedOperationException("Not implemented: getReusableConfigCallable()"); } @@ -309,17 +268,6 @@ public UnaryCallable getReusableConfig throw new UnsupportedOperationException("Not implemented: listReusableConfigsCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateReusableConfigOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateReusableConfigOperationCallable()"); - } - - public UnaryCallable updateReusableConfigCallable() { - throw new UnsupportedOperationException("Not implemented: updateReusableConfigCallable()"); - } - @Override public abstract void close(); } diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java index d7232aee..6578f8a1 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java @@ -52,9 +52,6 @@ import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; import com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest; import com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest; @@ -79,13 +76,11 @@ import com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest; import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; import com.google.longrunning.Operation; -import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -182,11 +177,6 @@ public class CertificateAuthorityServiceStubSettings private final OperationCallSettings< UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> updateCertificateAuthorityOperationSettings; - private final UnaryCallSettings - createCertificateRevocationListSettings; - private final OperationCallSettings< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings; private final UnaryCallSettings getCertificateRevocationListSettings; private final PagedCallSettings< @@ -199,25 +189,11 @@ public class CertificateAuthorityServiceStubSettings private final OperationCallSettings< UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> updateCertificateRevocationListOperationSettings; - private final UnaryCallSettings - createReusableConfigSettings; - private final OperationCallSettings< - CreateReusableConfigRequest, ReusableConfig, OperationMetadata> - createReusableConfigOperationSettings; - private final UnaryCallSettings - deleteReusableConfigSettings; - private final OperationCallSettings - deleteReusableConfigOperationSettings; private final UnaryCallSettings getReusableConfigSettings; private final PagedCallSettings< ListReusableConfigsRequest, ListReusableConfigsResponse, ListReusableConfigsPagedResponse> listReusableConfigsSettings; - private final UnaryCallSettings - updateReusableConfigSettings; - private final OperationCallSettings< - UpdateReusableConfigRequest, ReusableConfig, OperationMetadata> - updateReusableConfigOperationSettings; /** Returns the object with the settings used for calls to createCertificate. */ public UnaryCallSettings createCertificateSettings() { @@ -366,20 +342,6 @@ public UnaryCallSettings updateCertificat return updateCertificateAuthorityOperationSettings; } - /** Returns the object with the settings used for calls to createCertificateRevocationList. */ - public UnaryCallSettings - createCertificateRevocationListSettings() { - return createCertificateRevocationListSettings; - } - - /** Returns the object with the settings used for calls to createCertificateRevocationList. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings() { - return createCertificateRevocationListOperationSettings; - } - /** Returns the object with the settings used for calls to getCertificateRevocationList. */ public UnaryCallSettings getCertificateRevocationListSettings() { @@ -409,30 +371,6 @@ public UnaryCallSettings updateCertificat return updateCertificateRevocationListOperationSettings; } - /** Returns the object with the settings used for calls to createReusableConfig. */ - public UnaryCallSettings createReusableConfigSettings() { - return createReusableConfigSettings; - } - - /** Returns the object with the settings used for calls to createReusableConfig. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - createReusableConfigOperationSettings() { - return createReusableConfigOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteReusableConfig. */ - public UnaryCallSettings deleteReusableConfigSettings() { - return deleteReusableConfigSettings; - } - - /** Returns the object with the settings used for calls to deleteReusableConfig. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - deleteReusableConfigOperationSettings() { - return deleteReusableConfigOperationSettings; - } - /** Returns the object with the settings used for calls to getReusableConfig. */ public UnaryCallSettings getReusableConfigSettings() { return getReusableConfigSettings; @@ -445,18 +383,6 @@ public UnaryCallSettings getReusableCo return listReusableConfigsSettings; } - /** Returns the object with the settings used for calls to updateReusableConfig. */ - public UnaryCallSettings updateReusableConfigSettings() { - return updateReusableConfigSettings; - } - - /** Returns the object with the settings used for calls to updateReusableConfig. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - updateReusableConfigOperationSettings() { - return updateReusableConfigOperationSettings; - } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CertificateAuthorityServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -564,10 +490,6 @@ protected CertificateAuthorityServiceStubSettings(Builder settingsBuilder) throw settingsBuilder.updateCertificateAuthoritySettings().build(); updateCertificateAuthorityOperationSettings = settingsBuilder.updateCertificateAuthorityOperationSettings().build(); - createCertificateRevocationListSettings = - settingsBuilder.createCertificateRevocationListSettings().build(); - createCertificateRevocationListOperationSettings = - settingsBuilder.createCertificateRevocationListOperationSettings().build(); getCertificateRevocationListSettings = settingsBuilder.getCertificateRevocationListSettings().build(); listCertificateRevocationListsSettings = @@ -576,17 +498,8 @@ protected CertificateAuthorityServiceStubSettings(Builder settingsBuilder) throw settingsBuilder.updateCertificateRevocationListSettings().build(); updateCertificateRevocationListOperationSettings = settingsBuilder.updateCertificateRevocationListOperationSettings().build(); - createReusableConfigSettings = settingsBuilder.createReusableConfigSettings().build(); - createReusableConfigOperationSettings = - settingsBuilder.createReusableConfigOperationSettings().build(); - deleteReusableConfigSettings = settingsBuilder.deleteReusableConfigSettings().build(); - deleteReusableConfigOperationSettings = - settingsBuilder.deleteReusableConfigOperationSettings().build(); getReusableConfigSettings = settingsBuilder.getReusableConfigSettings().build(); listReusableConfigsSettings = settingsBuilder.listReusableConfigsSettings().build(); - updateReusableConfigSettings = settingsBuilder.updateReusableConfigSettings().build(); - updateReusableConfigOperationSettings = - settingsBuilder.updateReusableConfigOperationSettings().build(); } private static final PagedListDescriptor< @@ -929,11 +842,6 @@ public static class Builder private final OperationCallSettings.Builder< UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> updateCertificateAuthorityOperationSettings; - private final UnaryCallSettings.Builder - createCertificateRevocationListSettings; - private final OperationCallSettings.Builder< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings; private final UnaryCallSettings.Builder< GetCertificateRevocationListRequest, CertificateRevocationList> getCertificateRevocationListSettings; @@ -947,16 +855,6 @@ public static class Builder private final OperationCallSettings.Builder< UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> updateCertificateRevocationListOperationSettings; - private final UnaryCallSettings.Builder - createReusableConfigSettings; - private final OperationCallSettings.Builder< - CreateReusableConfigRequest, ReusableConfig, OperationMetadata> - createReusableConfigOperationSettings; - private final UnaryCallSettings.Builder - deleteReusableConfigSettings; - private final OperationCallSettings.Builder< - DeleteReusableConfigRequest, Empty, OperationMetadata> - deleteReusableConfigOperationSettings; private final UnaryCallSettings.Builder getReusableConfigSettings; private final PagedCallSettings.Builder< @@ -964,11 +862,6 @@ public static class Builder ListReusableConfigsResponse, ListReusableConfigsPagedResponse> listReusableConfigsSettings; - private final UnaryCallSettings.Builder - updateReusableConfigSettings; - private final OperationCallSettings.Builder< - UpdateReusableConfigRequest, ReusableConfig, OperationMetadata> - updateReusableConfigOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -1060,10 +953,6 @@ protected Builder(ClientContext clientContext) { updateCertificateAuthorityOperationSettings = OperationCallSettings.newBuilder(); - createCertificateRevocationListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createCertificateRevocationListOperationSettings = OperationCallSettings.newBuilder(); - getCertificateRevocationListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listCertificateRevocationListsSettings = @@ -1073,23 +962,11 @@ protected Builder(ClientContext clientContext) { updateCertificateRevocationListOperationSettings = OperationCallSettings.newBuilder(); - createReusableConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createReusableConfigOperationSettings = OperationCallSettings.newBuilder(); - - deleteReusableConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - deleteReusableConfigOperationSettings = OperationCallSettings.newBuilder(); - getReusableConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listReusableConfigsSettings = PagedCallSettings.newBuilder(LIST_REUSABLE_CONFIGS_PAGE_STR_FACT); - updateReusableConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - updateReusableConfigOperationSettings = OperationCallSettings.newBuilder(); - unaryMethodSettingsBuilders = ImmutableList.>of( createCertificateSettings, @@ -1107,15 +984,11 @@ protected Builder(ClientContext clientContext) { restoreCertificateAuthoritySettings, scheduleDeleteCertificateAuthoritySettings, updateCertificateAuthoritySettings, - createCertificateRevocationListSettings, getCertificateRevocationListSettings, listCertificateRevocationListsSettings, updateCertificateRevocationListSettings, - createReusableConfigSettings, - deleteReusableConfigSettings, getReusableConfigSettings, - listReusableConfigsSettings, - updateReusableConfigSettings); + listReusableConfigsSettings); initDefaults(this); } @@ -1206,11 +1079,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - builder - .createCertificateRevocationListSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - builder .getCertificateRevocationListSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) @@ -1226,16 +1094,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - builder - .createReusableConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .deleteReusableConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - builder .getReusableConfigSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) @@ -1245,11 +1103,6 @@ private static Builder initDefaults(Builder builder) { .listReusableConfigsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .updateReusableConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); builder .activateCertificateAuthorityOperationSettings() .setInitialCallSettings( @@ -1418,31 +1271,6 @@ private static Builder initDefaults(Builder builder) { .setMaxRpcTimeout(Duration.ZERO) // ignored .setTotalTimeout(Duration.ofMillis(300000L)) .build())); - builder - .createCertificateRevocationListOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create( - CertificateRevocationList.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); builder .updateCertificateRevocationListOperationSettings() .setInitialCallSettings( @@ -1468,75 +1296,6 @@ private static Builder initDefaults(Builder builder) { .setMaxRpcTimeout(Duration.ZERO) // ignored .setTotalTimeout(Duration.ofMillis(300000L)) .build())); - builder - .createReusableConfigOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ReusableConfig.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .deleteReusableConfigOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .updateReusableConfigOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ReusableConfig.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); return builder; } @@ -1578,10 +1337,6 @@ protected Builder(CertificateAuthorityServiceStubSettings settings) { updateCertificateAuthoritySettings = settings.updateCertificateAuthoritySettings.toBuilder(); updateCertificateAuthorityOperationSettings = settings.updateCertificateAuthorityOperationSettings.toBuilder(); - createCertificateRevocationListSettings = - settings.createCertificateRevocationListSettings.toBuilder(); - createCertificateRevocationListOperationSettings = - settings.createCertificateRevocationListOperationSettings.toBuilder(); getCertificateRevocationListSettings = settings.getCertificateRevocationListSettings.toBuilder(); listCertificateRevocationListsSettings = @@ -1590,17 +1345,8 @@ protected Builder(CertificateAuthorityServiceStubSettings settings) { settings.updateCertificateRevocationListSettings.toBuilder(); updateCertificateRevocationListOperationSettings = settings.updateCertificateRevocationListOperationSettings.toBuilder(); - createReusableConfigSettings = settings.createReusableConfigSettings.toBuilder(); - createReusableConfigOperationSettings = - settings.createReusableConfigOperationSettings.toBuilder(); - deleteReusableConfigSettings = settings.deleteReusableConfigSettings.toBuilder(); - deleteReusableConfigOperationSettings = - settings.deleteReusableConfigOperationSettings.toBuilder(); getReusableConfigSettings = settings.getReusableConfigSettings.toBuilder(); listReusableConfigsSettings = settings.listReusableConfigsSettings.toBuilder(); - updateReusableConfigSettings = settings.updateReusableConfigSettings.toBuilder(); - updateReusableConfigOperationSettings = - settings.updateReusableConfigOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1619,15 +1365,11 @@ protected Builder(CertificateAuthorityServiceStubSettings settings) { restoreCertificateAuthoritySettings, scheduleDeleteCertificateAuthoritySettings, updateCertificateAuthoritySettings, - createCertificateRevocationListSettings, getCertificateRevocationListSettings, listCertificateRevocationListsSettings, updateCertificateRevocationListSettings, - createReusableConfigSettings, - deleteReusableConfigSettings, getReusableConfigSettings, - listReusableConfigsSettings, - updateReusableConfigSettings); + listReusableConfigsSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -1807,21 +1549,6 @@ public UnaryCallSettings.Builder getCertific return updateCertificateAuthorityOperationSettings; } - /** Returns the builder for the settings used for calls to createCertificateRevocationList. */ - public UnaryCallSettings.Builder - createCertificateRevocationListSettings() { - return createCertificateRevocationListSettings; - } - - /** Returns the builder for the settings used for calls to createCertificateRevocationList. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings() { - return createCertificateRevocationListOperationSettings; - } - /** Returns the builder for the settings used for calls to getCertificateRevocationList. */ public UnaryCallSettings.Builder getCertificateRevocationListSettings() { @@ -1852,35 +1579,6 @@ public UnaryCallSettings.Builder getCertific return updateCertificateRevocationListOperationSettings; } - /** Returns the builder for the settings used for calls to createReusableConfig. */ - public UnaryCallSettings.Builder - createReusableConfigSettings() { - return createReusableConfigSettings; - } - - /** Returns the builder for the settings used for calls to createReusableConfig. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateReusableConfigRequest, ReusableConfig, OperationMetadata> - createReusableConfigOperationSettings() { - return createReusableConfigOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteReusableConfig. */ - public UnaryCallSettings.Builder - deleteReusableConfigSettings() { - return deleteReusableConfigSettings; - } - - /** Returns the builder for the settings used for calls to deleteReusableConfig. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteReusableConfigOperationSettings() { - return deleteReusableConfigOperationSettings; - } - /** Returns the builder for the settings used for calls to getReusableConfig. */ public UnaryCallSettings.Builder getReusableConfigSettings() { @@ -1896,21 +1594,6 @@ public UnaryCallSettings.Builder getCertific return listReusableConfigsSettings; } - /** Returns the builder for the settings used for calls to updateReusableConfig. */ - public UnaryCallSettings.Builder - updateReusableConfigSettings() { - return updateReusableConfigSettings; - } - - /** Returns the builder for the settings used for calls to updateReusableConfig. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateReusableConfigRequest, ReusableConfig, OperationMetadata> - updateReusableConfigOperationSettings() { - return updateReusableConfigOperationSettings; - } - @Override public CertificateAuthorityServiceStubSettings build() throws IOException { return new CertificateAuthorityServiceStubSettings(this); diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java index 3ba3a939..e6ae7996 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java @@ -35,9 +35,6 @@ import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; import com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest; import com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest; @@ -62,11 +59,9 @@ import com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest; import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; @@ -244,17 +239,6 @@ public class GrpcCertificateAuthorityServiceStub extends CertificateAuthoritySer ProtoUtils.marshaller(UpdateCertificateAuthorityRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); - private static final MethodDescriptor - createCertificateRevocationListMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/CreateCertificateRevocationList") - .setRequestMarshaller( - ProtoUtils.marshaller( - CreateCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); private static final MethodDescriptor< GetCertificateRevocationListRequest, CertificateRevocationList> getCertificateRevocationListMethodDescriptor = @@ -294,26 +278,6 @@ public class GrpcCertificateAuthorityServiceStub extends CertificateAuthoritySer UpdateCertificateRevocationListRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); - private static final MethodDescriptor - createReusableConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/CreateReusableConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateReusableConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - deleteReusableConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/DeleteReusableConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteReusableConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); private static final MethodDescriptor getReusableConfigMethodDescriptor = MethodDescriptor.newBuilder() @@ -335,16 +299,6 @@ public class GrpcCertificateAuthorityServiceStub extends CertificateAuthoritySer .setResponseMarshaller( ProtoUtils.marshaller(ListReusableConfigsResponse.getDefaultInstance())) .build(); - private static final MethodDescriptor - updateReusableConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/UpdateReusableConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateReusableConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -402,11 +356,6 @@ public class GrpcCertificateAuthorityServiceStub extends CertificateAuthoritySer private final OperationCallable< UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> updateCertificateAuthorityOperationCallable; - private final UnaryCallable - createCertificateRevocationListCallable; - private final OperationCallable< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationCallable; private final UnaryCallable getCertificateRevocationListCallable; private final UnaryCallable< @@ -420,20 +369,11 @@ public class GrpcCertificateAuthorityServiceStub extends CertificateAuthoritySer private final OperationCallable< UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> updateCertificateRevocationListOperationCallable; - private final UnaryCallable createReusableConfigCallable; - private final OperationCallable - createReusableConfigOperationCallable; - private final UnaryCallable deleteReusableConfigCallable; - private final OperationCallable - deleteReusableConfigOperationCallable; private final UnaryCallable getReusableConfigCallable; private final UnaryCallable listReusableConfigsCallable; private final UnaryCallable listReusableConfigsPagedCallable; - private final UnaryCallable updateReusableConfigCallable; - private final OperationCallable - updateReusableConfigOperationCallable; private final GrpcStubCallableFactory callableFactory; @@ -701,21 +641,6 @@ public Map extract( } }) .build(); - GrpcCallSettings - createCertificateRevocationListTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCertificateRevocationListMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CreateCertificateRevocationListRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); GrpcCallSettings getCertificateRevocationListTransportSettings = GrpcCallSettings @@ -766,32 +691,6 @@ public Map extract( } }) .build(); - GrpcCallSettings createReusableConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createReusableConfigMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateReusableConfigRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings deleteReusableConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteReusableConfigMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteReusableConfigRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); GrpcCallSettings getReusableConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getReusableConfigMethodDescriptor) @@ -819,21 +718,6 @@ public Map extract(ListReusableConfigsRequest request) { } }) .build(); - GrpcCallSettings updateReusableConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateReusableConfigMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateReusableConfigRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "reusable_config.name", - String.valueOf(request.getReusableConfig().getName())); - return params.build(); - } - }) - .build(); this.createCertificateCallable = callableFactory.createUnaryCallable( @@ -956,17 +840,6 @@ public Map extract(UpdateReusableConfigRequest request) { settings.updateCertificateAuthorityOperationSettings(), clientContext, this.operationsStub); - this.createCertificateRevocationListCallable = - callableFactory.createUnaryCallable( - createCertificateRevocationListTransportSettings, - settings.createCertificateRevocationListSettings(), - clientContext); - this.createCertificateRevocationListOperationCallable = - callableFactory.createOperationCallable( - createCertificateRevocationListTransportSettings, - settings.createCertificateRevocationListOperationSettings(), - clientContext, - this.operationsStub); this.getCertificateRevocationListCallable = callableFactory.createUnaryCallable( getCertificateRevocationListTransportSettings, @@ -993,28 +866,6 @@ public Map extract(UpdateReusableConfigRequest request) { settings.updateCertificateRevocationListOperationSettings(), clientContext, this.operationsStub); - this.createReusableConfigCallable = - callableFactory.createUnaryCallable( - createReusableConfigTransportSettings, - settings.createReusableConfigSettings(), - clientContext); - this.createReusableConfigOperationCallable = - callableFactory.createOperationCallable( - createReusableConfigTransportSettings, - settings.createReusableConfigOperationSettings(), - clientContext, - this.operationsStub); - this.deleteReusableConfigCallable = - callableFactory.createUnaryCallable( - deleteReusableConfigTransportSettings, - settings.deleteReusableConfigSettings(), - clientContext); - this.deleteReusableConfigOperationCallable = - callableFactory.createOperationCallable( - deleteReusableConfigTransportSettings, - settings.deleteReusableConfigOperationSettings(), - clientContext, - this.operationsStub); this.getReusableConfigCallable = callableFactory.createUnaryCallable( getReusableConfigTransportSettings, @@ -1030,17 +881,6 @@ public Map extract(UpdateReusableConfigRequest request) { listReusableConfigsTransportSettings, settings.listReusableConfigsSettings(), clientContext); - this.updateReusableConfigCallable = - callableFactory.createUnaryCallable( - updateReusableConfigTransportSettings, - settings.updateReusableConfigSettings(), - clientContext); - this.updateReusableConfigOperationCallable = - callableFactory.createOperationCallable( - updateReusableConfigTransportSettings, - settings.updateReusableConfigOperationSettings(), - clientContext, - this.operationsStub); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -1180,18 +1020,6 @@ public UnaryCallable updateCertificateCal return updateCertificateAuthorityCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationCallable() { - return createCertificateRevocationListOperationCallable; - } - - public UnaryCallable - createCertificateRevocationListCallable() { - return createCertificateRevocationListCallable; - } - public UnaryCallable getCertificateRevocationListCallable() { return getCertificateRevocationListCallable; @@ -1221,26 +1049,6 @@ public UnaryCallable updateCertificateCal return updateCertificateRevocationListCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createReusableConfigOperationCallable() { - return createReusableConfigOperationCallable; - } - - public UnaryCallable createReusableConfigCallable() { - return createReusableConfigCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteReusableConfigOperationCallable() { - return deleteReusableConfigOperationCallable; - } - - public UnaryCallable deleteReusableConfigCallable() { - return deleteReusableConfigCallable; - } - public UnaryCallable getReusableConfigCallable() { return getReusableConfigCallable; } @@ -1255,16 +1063,6 @@ public UnaryCallable getReusableConfig return listReusableConfigsCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateReusableConfigOperationCallable() { - return updateReusableConfigOperationCallable; - } - - public UnaryCallable updateReusableConfigCallable() { - return updateReusableConfigCallable; - } - @Override public final void close() { shutdown(); diff --git a/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java index 8180da35..97b856d8 100644 --- a/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java +++ b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java @@ -32,7 +32,6 @@ import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; -import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import io.grpc.Status; import io.grpc.StatusRuntimeException; @@ -862,83 +861,6 @@ public void updateCertificateAuthorityExceptionTest() throws Exception { } } - @Test - @SuppressWarnings("all") - public void createCertificateRevocationListTest() throws Exception { - CertificateRevocationListName name = - CertificateRevocationListName.of( - "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"); - long sequenceNumber = 1309190777L; - String pemCrl = "pemCrl-683665866"; - String accessUrl = "accessUrl-1141680108"; - CertificateRevocationList expectedResponse = - CertificateRevocationList.newBuilder() - .setName(name.toString()) - .setSequenceNumber(sequenceNumber) - .setPemCrl(pemCrl) - .setAccessUrl(accessUrl) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createCertificateRevocationListTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - CertificateAuthorityName parent = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - CertificateRevocationList certificateRevocationList = - CertificateRevocationList.newBuilder().build(); - String certificateRevocationListId = "certificateRevocationListId1847074915"; - - CertificateRevocationList actualResponse = - client - .createCertificateRevocationListAsync( - parent, certificateRevocationList, certificateRevocationListId) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCertificateRevocationListRequest actualRequest = - (CreateCertificateRevocationListRequest) actualRequests.get(0); - - Assert.assertEquals(parent, CertificateAuthorityName.parse(actualRequest.getParent())); - Assert.assertEquals(certificateRevocationList, actualRequest.getCertificateRevocationList()); - Assert.assertEquals( - certificateRevocationListId, actualRequest.getCertificateRevocationListId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createCertificateRevocationListExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName parent = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - CertificateRevocationList certificateRevocationList = - CertificateRevocationList.newBuilder().build(); - String certificateRevocationListId = "certificateRevocationListId1847074915"; - - client - .createCertificateRevocationListAsync( - parent, certificateRevocationList, certificateRevocationListId) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - @Test @SuppressWarnings("all") public void getCertificateRevocationListTest() { @@ -1117,109 +1039,6 @@ public void updateCertificateRevocationListExceptionTest() throws Exception { } } - @Test - @SuppressWarnings("all") - public void createReusableConfigTest() throws Exception { - ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); - String description = "description-1724546052"; - ReusableConfig expectedResponse = - ReusableConfig.newBuilder().setName(name.toString()).setDescription(description).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createReusableConfigTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ReusableConfig reusableConfig = ReusableConfig.newBuilder().build(); - String reusableConfigId = "reusableConfigId685940964"; - - ReusableConfig actualResponse = - client.createReusableConfigAsync(parent, reusableConfig, reusableConfigId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateReusableConfigRequest actualRequest = (CreateReusableConfigRequest) actualRequests.get(0); - - Assert.assertEquals(parent, LocationName.parse(actualRequest.getParent())); - Assert.assertEquals(reusableConfig, actualRequest.getReusableConfig()); - Assert.assertEquals(reusableConfigId, actualRequest.getReusableConfigId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createReusableConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ReusableConfig reusableConfig = ReusableConfig.newBuilder().build(); - String reusableConfigId = "reusableConfigId685940964"; - - client.createReusableConfigAsync(parent, reusableConfig, reusableConfigId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void deleteReusableConfigTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteReusableConfigTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); - - Empty actualResponse = client.deleteReusableConfigAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteReusableConfigRequest actualRequest = (DeleteReusableConfigRequest) actualRequests.get(0); - - Assert.assertEquals(name, ReusableConfigName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void deleteReusableConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - ReusableConfigName name = - ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); - - client.deleteReusableConfigAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - @Test @SuppressWarnings("all") public void getReusableConfigTest() { @@ -1310,57 +1129,4 @@ public void listReusableConfigsExceptionTest() throws Exception { // Expected exception } } - - @Test - @SuppressWarnings("all") - public void updateReusableConfigTest() throws Exception { - ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); - String description = "description-1724546052"; - ReusableConfig expectedResponse = - ReusableConfig.newBuilder().setName(name.toString()).setDescription(description).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateReusableConfigTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - ReusableConfig reusableConfig = ReusableConfig.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - ReusableConfig actualResponse = - client.updateReusableConfigAsync(reusableConfig, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateReusableConfigRequest actualRequest = (UpdateReusableConfigRequest) actualRequests.get(0); - - Assert.assertEquals(reusableConfig, actualRequest.getReusableConfig()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateReusableConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - ReusableConfig reusableConfig = ReusableConfig.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - client.updateReusableConfigAsync(reusableConfig, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } } diff --git a/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java index 1afd1b71..6b4b3f92 100644 --- a/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java +++ b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java @@ -286,21 +286,6 @@ public void updateCertificateAuthority( } } - @Override - public void createCertificateRevocationList( - CreateCertificateRevocationListRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - @Override public void getCertificateRevocationList( GetCertificateRevocationListRequest request, @@ -348,36 +333,6 @@ public void updateCertificateRevocationList( } } - @Override - public void createReusableConfig( - CreateReusableConfigRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void deleteReusableConfig( - DeleteReusableConfigRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - @Override public void getReusableConfig( GetReusableConfigRequest request, StreamObserver responseObserver) { @@ -408,19 +363,4 @@ public void listReusableConfigs( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } - - @Override - public void updateReusableConfig( - UpdateReusableConfigRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } } diff --git a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java b/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java deleted file mode 100644 index cd30e502..00000000 --- a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java +++ /dev/null @@ -1,3690 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.security.privateca.v1beta1; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.security.privateca.v1beta1.stub.CertificateAuthorityServiceStub; -import com.google.cloud.security.privateca.v1beta1.stub.CertificateAuthorityServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND SERVICE -/** - * Service Description: [Certificate Authority - * Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private - * certificate authorities and issued certificates. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

- * 
- * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
- *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
- *   Certificate certificate = Certificate.newBuilder().build();
- *   String certificateId = "";
- *   Certificate response = certificateAuthorityServiceClient.createCertificate(parent, certificate, certificateId);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the certificateAuthorityServiceClient object to clean up - * resources such as threads. In the example above, try-with-resources is used, which automatically - * calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of - * CertificateAuthorityServiceSettings to create(). For example: - * - *

To customize credentials: - * - *

- * 
- * CertificateAuthorityServiceSettings certificateAuthorityServiceSettings =
- *     CertificateAuthorityServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * CertificateAuthorityServiceClient certificateAuthorityServiceClient =
- *     CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings);
- * 
- * 
- * - * To customize the endpoint: - * - *
- * 
- * CertificateAuthorityServiceSettings certificateAuthorityServiceSettings =
- *     CertificateAuthorityServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * CertificateAuthorityServiceClient certificateAuthorityServiceClient =
- *     CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings);
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class CertificateAuthorityServiceClient implements BackgroundResource { - private final CertificateAuthorityServiceSettings settings; - private final CertificateAuthorityServiceStub stub; - private final OperationsClient operationsClient; - - /** Constructs an instance of CertificateAuthorityServiceClient with default settings. */ - public static final CertificateAuthorityServiceClient create() throws IOException { - return create(CertificateAuthorityServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of CertificateAuthorityServiceClient, using the given settings. The - * channels are created based on the settings passed in, or defaults for any settings that are not - * set. - */ - public static final CertificateAuthorityServiceClient create( - CertificateAuthorityServiceSettings settings) throws IOException { - return new CertificateAuthorityServiceClient(settings); - } - - /** - * Constructs an instance of CertificateAuthorityServiceClient, using the given stub for making - * calls. This is for advanced usage - prefer to use CertificateAuthorityServiceSettings}. - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final CertificateAuthorityServiceClient create( - CertificateAuthorityServiceStub stub) { - return new CertificateAuthorityServiceClient(stub); - } - - /** - * Constructs an instance of CertificateAuthorityServiceClient, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected CertificateAuthorityServiceClient(CertificateAuthorityServiceSettings settings) - throws IOException { - this.settings = settings; - this.stub = ((CertificateAuthorityServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected CertificateAuthorityServiceClient(CertificateAuthorityServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final CertificateAuthorityServiceSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public CertificateAuthorityServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given - * Project, Location from a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   Certificate certificate = Certificate.newBuilder().build();
-   *   String certificateId = "";
-   *   Certificate response = certificateAuthorityServiceClient.createCertificate(parent, certificate, certificateId);
-   * }
-   * 
- * - * @param parent Required. The resource name of the location and - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in - * the format `projects/*/locations/*/certificateAuthorities/*`. - * @param certificate Required. A - * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field - * values. - * @param certificateId Optional. It must be unique within a location and match the regular - * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * Enterprise - * [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier], - * but is optional and its value is ignored otherwise. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Certificate createCertificate( - CertificateAuthorityName parent, Certificate certificate, String certificateId) { - CreateCertificateRequest request = - CreateCertificateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCertificate(certificate) - .setCertificateId(certificateId) - .build(); - return createCertificate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given - * Project, Location from a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   Certificate certificate = Certificate.newBuilder().build();
-   *   String certificateId = "";
-   *   Certificate response = certificateAuthorityServiceClient.createCertificate(parent.toString(), certificate, certificateId);
-   * }
-   * 
- * - * @param parent Required. The resource name of the location and - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in - * the format `projects/*/locations/*/certificateAuthorities/*`. - * @param certificate Required. A - * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field - * values. - * @param certificateId Optional. It must be unique within a location and match the regular - * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * Enterprise - * [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier], - * but is optional and its value is ignored otherwise. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Certificate createCertificate( - String parent, Certificate certificate, String certificateId) { - CreateCertificateRequest request = - CreateCertificateRequest.newBuilder() - .setParent(parent) - .setCertificate(certificate) - .setCertificateId(certificateId) - .build(); - return createCertificate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given - * Project, Location from a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   Certificate certificate = Certificate.newBuilder().build();
-   *   CreateCertificateRequest request = CreateCertificateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setCertificate(certificate)
-   *     .build();
-   *   Certificate response = certificateAuthorityServiceClient.createCertificate(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 Certificate createCertificate(CreateCertificateRequest request) { - return createCertificateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given - * Project, Location from a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   Certificate certificate = Certificate.newBuilder().build();
-   *   CreateCertificateRequest request = CreateCertificateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setCertificate(certificate)
-   *     .build();
-   *   ApiFuture<Certificate> future = certificateAuthorityServiceClient.createCertificateCallable().futureCall(request);
-   *   // Do something
-   *   Certificate response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable createCertificateCallable() { - return stub.createCertificateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
-   *   Certificate response = certificateAuthorityServiceClient.getCertificate(name);
-   * }
-   * 
- * - * @param name Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of - * the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] to get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Certificate getCertificate(CertificateName name) { - GetCertificateRequest request = - GetCertificateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getCertificate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
-   *   Certificate response = certificateAuthorityServiceClient.getCertificate(name.toString());
-   * }
-   * 
- * - * @param name Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of - * the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] to get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Certificate getCertificate(String name) { - GetCertificateRequest request = GetCertificateRequest.newBuilder().setName(name).build(); - return getCertificate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
-   *   GetCertificateRequest request = GetCertificateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   Certificate response = certificateAuthorityServiceClient.getCertificate(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 Certificate getCertificate(GetCertificateRequest request) { - return getCertificateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
-   *   GetCertificateRequest request = GetCertificateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Certificate> future = certificateAuthorityServiceClient.getCertificateCallable().futureCall(request);
-   *   // Do something
-   *   Certificate response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable getCertificateCallable() { - return stub.getCertificateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   for (Certificate element : certificateAuthorityServiceClient.listCertificates(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format - * `projects/*/locations/*/certificateauthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCertificatesPagedResponse listCertificates(CertificateAuthorityName parent) { - ListCertificatesRequest request = - ListCertificatesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listCertificates(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   for (Certificate element : certificateAuthorityServiceClient.listCertificates(parent.toString()).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format - * `projects/*/locations/*/certificateauthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCertificatesPagedResponse listCertificates(String parent) { - ListCertificatesRequest request = - ListCertificatesRequest.newBuilder().setParent(parent).build(); - return listCertificates(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   ListCertificatesRequest request = ListCertificatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   for (Certificate element : certificateAuthorityServiceClient.listCertificates(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @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 ListCertificatesPagedResponse listCertificates(ListCertificatesRequest request) { - return listCertificatesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   ListCertificatesRequest request = ListCertificatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   ApiFuture<ListCertificatesPagedResponse> future = certificateAuthorityServiceClient.listCertificatesPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (Certificate element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listCertificatesPagedCallable() { - return stub.listCertificatesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   ListCertificatesRequest request = ListCertificatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   while (true) {
-   *     ListCertificatesResponse response = certificateAuthorityServiceClient.listCertificatesCallable().call(request);
-   *     for (Certificate element : response.getCertificatesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listCertificatesCallable() { - return stub.listCertificatesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
-   *   Certificate response = certificateAuthorityServiceClient.revokeCertificate(name);
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format - * `projects/*/locations/*/certificateAuthorities/*/certificates/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Certificate revokeCertificate(CertificateName name) { - RevokeCertificateRequest request = - RevokeCertificateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return revokeCertificate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
-   *   Certificate response = certificateAuthorityServiceClient.revokeCertificate(name.toString());
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format - * `projects/*/locations/*/certificateAuthorities/*/certificates/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Certificate revokeCertificate(String name) { - RevokeCertificateRequest request = RevokeCertificateRequest.newBuilder().setName(name).build(); - return revokeCertificate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
-   *   RevocationReason reason = RevocationReason.REVOCATION_REASON_UNSPECIFIED;
-   *   RevokeCertificateRequest request = RevokeCertificateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .setReason(reason)
-   *     .build();
-   *   Certificate response = certificateAuthorityServiceClient.revokeCertificate(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 Certificate revokeCertificate(RevokeCertificateRequest request) { - return revokeCertificateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
-   *   RevocationReason reason = RevocationReason.REVOCATION_REASON_UNSPECIFIED;
-   *   RevokeCertificateRequest request = RevokeCertificateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .setReason(reason)
-   *     .build();
-   *   ApiFuture<Certificate> future = certificateAuthorityServiceClient.revokeCertificateCallable().futureCall(request);
-   *   // Do something
-   *   Certificate response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable revokeCertificateCallable() { - return stub.revokeCertificateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   Certificate certificate = Certificate.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Certificate response = certificateAuthorityServiceClient.updateCertificate(certificate, updateMask);
-   * }
-   * 
- * - * @param certificate Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] - * with updated values. - * @param updateMask Required. A list of fields to be updated in this request. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Certificate updateCertificate(Certificate certificate, FieldMask updateMask) { - UpdateCertificateRequest request = - UpdateCertificateRequest.newBuilder() - .setCertificate(certificate) - .setUpdateMask(updateMask) - .build(); - return updateCertificate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   Certificate certificate = Certificate.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateCertificateRequest request = UpdateCertificateRequest.newBuilder()
-   *     .setCertificate(certificate)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   Certificate response = certificateAuthorityServiceClient.updateCertificate(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 Certificate updateCertificate(UpdateCertificateRequest request) { - return updateCertificateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   Certificate certificate = Certificate.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateCertificateRequest request = UpdateCertificateRequest.newBuilder()
-   *     .setCertificate(certificate)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Certificate> future = certificateAuthorityServiceClient.updateCertificateCallable().futureCall(request);
-   *   // Do something
-   *   Certificate response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable updateCertificateCallable() { - return stub.updateCertificateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * that is in state - * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] - * and is of type - * [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. - * After the parent Certificate Authority signs a certificate signing request from - * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], - * this method can complete the activation process. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.activateCertificateAuthorityAsync(name).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - activateCertificateAuthorityAsync(CertificateAuthorityName name) { - ActivateCertificateAuthorityRequest request = - ActivateCertificateAuthorityRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return activateCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * that is in state - * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] - * and is of type - * [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. - * After the parent Certificate Authority signs a certificate signing request from - * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], - * this method can complete the activation process. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.activateCertificateAuthorityAsync(name.toString()).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - activateCertificateAuthorityAsync(String name) { - ActivateCertificateAuthorityRequest request = - ActivateCertificateAuthorityRequest.newBuilder().setName(name).build(); - return activateCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * that is in state - * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] - * and is of type - * [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. - * After the parent Certificate Authority signs a certificate signing request from - * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], - * this method can complete the activation process. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   String pemCaCertificate = "";
-   *   SubordinateConfig subordinateConfig = SubordinateConfig.newBuilder().build();
-   *   ActivateCertificateAuthorityRequest request = ActivateCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .setPemCaCertificate(pemCaCertificate)
-   *     .setSubordinateConfig(subordinateConfig)
-   *     .build();
-   *   CertificateAuthority response = certificateAuthorityServiceClient.activateCertificateAuthorityAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - activateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest request) { - return activateCertificateAuthorityOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * that is in state - * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] - * and is of type - * [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. - * After the parent Certificate Authority signs a certificate signing request from - * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], - * this method can complete the activation process. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   String pemCaCertificate = "";
-   *   SubordinateConfig subordinateConfig = SubordinateConfig.newBuilder().build();
-   *   ActivateCertificateAuthorityRequest request = ActivateCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .setPemCaCertificate(pemCaCertificate)
-   *     .setSubordinateConfig(subordinateConfig)
-   *     .build();
-   *   OperationFuture<CertificateAuthority, OperationMetadata> future = certificateAuthorityServiceClient.activateCertificateAuthorityOperationCallable().futureCall(request);
-   *   // Do something
-   *   CertificateAuthority response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - activateCertificateAuthorityOperationCallable() { - return stub.activateCertificateAuthorityOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * that is in state - * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] - * and is of type - * [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. - * After the parent Certificate Authority signs a certificate signing request from - * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], - * this method can complete the activation process. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   String pemCaCertificate = "";
-   *   SubordinateConfig subordinateConfig = SubordinateConfig.newBuilder().build();
-   *   ActivateCertificateAuthorityRequest request = ActivateCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .setPemCaCertificate(pemCaCertificate)
-   *     .setSubordinateConfig(subordinateConfig)
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.activateCertificateAuthorityCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - activateCertificateAuthorityCallable() { - return stub.activateCertificateAuthorityCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given - * Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build();
-   *   String certificateAuthorityId = "";
-   *   CertificateAuthority response = certificateAuthorityServiceClient.createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId).get();
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], in - * the format `projects/*/locations/*`. - * @param certificateAuthority Required. A - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with - * initial field values. - * @param certificateAuthorityId Required. It must be unique within a location and match the - * regular expression `[a-zA-Z0-9-]{1,63}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - createCertificateAuthorityAsync( - LocationName parent, - CertificateAuthority certificateAuthority, - String certificateAuthorityId) { - CreateCertificateAuthorityRequest request = - CreateCertificateAuthorityRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCertificateAuthority(certificateAuthority) - .setCertificateAuthorityId(certificateAuthorityId) - .build(); - return createCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given - * Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build();
-   *   String certificateAuthorityId = "";
-   *   CertificateAuthority response = certificateAuthorityServiceClient.createCertificateAuthorityAsync(parent.toString(), certificateAuthority, certificateAuthorityId).get();
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], in - * the format `projects/*/locations/*`. - * @param certificateAuthority Required. A - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with - * initial field values. - * @param certificateAuthorityId Required. It must be unique within a location and match the - * regular expression `[a-zA-Z0-9-]{1,63}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - createCertificateAuthorityAsync( - String parent, CertificateAuthority certificateAuthority, String certificateAuthorityId) { - CreateCertificateAuthorityRequest request = - CreateCertificateAuthorityRequest.newBuilder() - .setParent(parent) - .setCertificateAuthority(certificateAuthority) - .setCertificateAuthorityId(certificateAuthorityId) - .build(); - return createCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given - * Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String certificateAuthorityId = "";
-   *   CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build();
-   *   CreateCertificateAuthorityRequest request = CreateCertificateAuthorityRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setCertificateAuthorityId(certificateAuthorityId)
-   *     .setCertificateAuthority(certificateAuthority)
-   *     .build();
-   *   CertificateAuthority response = certificateAuthorityServiceClient.createCertificateAuthorityAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - createCertificateAuthorityAsync(CreateCertificateAuthorityRequest request) { - return createCertificateAuthorityOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given - * Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String certificateAuthorityId = "";
-   *   CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build();
-   *   CreateCertificateAuthorityRequest request = CreateCertificateAuthorityRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setCertificateAuthorityId(certificateAuthorityId)
-   *     .setCertificateAuthority(certificateAuthority)
-   *     .build();
-   *   OperationFuture<CertificateAuthority, OperationMetadata> future = certificateAuthorityServiceClient.createCertificateAuthorityOperationCallable().futureCall(request);
-   *   // Do something
-   *   CertificateAuthority response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - createCertificateAuthorityOperationCallable() { - return stub.createCertificateAuthorityOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given - * Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String certificateAuthorityId = "";
-   *   CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build();
-   *   CreateCertificateAuthorityRequest request = CreateCertificateAuthorityRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setCertificateAuthorityId(certificateAuthorityId)
-   *     .setCertificateAuthority(certificateAuthority)
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.createCertificateAuthorityCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - createCertificateAuthorityCallable() { - return stub.createCertificateAuthorityCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.disableCertificateAuthorityAsync(name).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - disableCertificateAuthorityAsync(CertificateAuthorityName name) { - DisableCertificateAuthorityRequest request = - DisableCertificateAuthorityRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return disableCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.disableCertificateAuthorityAsync(name.toString()).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - disableCertificateAuthorityAsync(String name) { - DisableCertificateAuthorityRequest request = - DisableCertificateAuthorityRequest.newBuilder().setName(name).build(); - return disableCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   DisableCertificateAuthorityRequest request = DisableCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   CertificateAuthority response = certificateAuthorityServiceClient.disableCertificateAuthorityAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - disableCertificateAuthorityAsync(DisableCertificateAuthorityRequest request) { - return disableCertificateAuthorityOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   DisableCertificateAuthorityRequest request = DisableCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   OperationFuture<CertificateAuthority, OperationMetadata> future = certificateAuthorityServiceClient.disableCertificateAuthorityOperationCallable().futureCall(request);
-   *   // Do something
-   *   CertificateAuthority response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - disableCertificateAuthorityOperationCallable() { - return stub.disableCertificateAuthorityOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   DisableCertificateAuthorityRequest request = DisableCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.disableCertificateAuthorityCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - disableCertificateAuthorityCallable() { - return stub.disableCertificateAuthorityCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.enableCertificateAuthorityAsync(name).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - enableCertificateAuthorityAsync(CertificateAuthorityName name) { - EnableCertificateAuthorityRequest request = - EnableCertificateAuthorityRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return enableCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.enableCertificateAuthorityAsync(name.toString()).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - enableCertificateAuthorityAsync(String name) { - EnableCertificateAuthorityRequest request = - EnableCertificateAuthorityRequest.newBuilder().setName(name).build(); - return enableCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   EnableCertificateAuthorityRequest request = EnableCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   CertificateAuthority response = certificateAuthorityServiceClient.enableCertificateAuthorityAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - enableCertificateAuthorityAsync(EnableCertificateAuthorityRequest request) { - return enableCertificateAuthorityOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   EnableCertificateAuthorityRequest request = EnableCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   OperationFuture<CertificateAuthority, OperationMetadata> future = certificateAuthorityServiceClient.enableCertificateAuthorityOperationCallable().futureCall(request);
-   *   // Do something
-   *   CertificateAuthority response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - enableCertificateAuthorityOperationCallable() { - return stub.enableCertificateAuthorityOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   EnableCertificateAuthorityRequest request = EnableCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.enableCertificateAuthorityCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - enableCertificateAuthorityCallable() { - return stub.enableCertificateAuthorityCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Fetch a certificate signing request (CSR) from a - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in - * state - * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] - * and is of type - * [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. - * The CSR must then be signed by the desired parent Certificate Authority, which could be another - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, - * or could be an on-prem certificate authority. See also - * [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.fetchCertificateAuthorityCsr(name);
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr( - CertificateAuthorityName name) { - FetchCertificateAuthorityCsrRequest request = - FetchCertificateAuthorityCsrRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return fetchCertificateAuthorityCsr(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Fetch a certificate signing request (CSR) from a - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in - * state - * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] - * and is of type - * [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. - * The CSR must then be signed by the desired parent Certificate Authority, which could be another - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, - * or could be an on-prem certificate authority. See also - * [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.fetchCertificateAuthorityCsr(name.toString());
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr(String name) { - FetchCertificateAuthorityCsrRequest request = - FetchCertificateAuthorityCsrRequest.newBuilder().setName(name).build(); - return fetchCertificateAuthorityCsr(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Fetch a certificate signing request (CSR) from a - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in - * state - * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] - * and is of type - * [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. - * The CSR must then be signed by the desired parent Certificate Authority, which could be another - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, - * or could be an on-prem certificate authority. See also - * [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   FetchCertificateAuthorityCsrRequest request = FetchCertificateAuthorityCsrRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.fetchCertificateAuthorityCsr(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 FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr( - FetchCertificateAuthorityCsrRequest request) { - return fetchCertificateAuthorityCsrCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Fetch a certificate signing request (CSR) from a - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in - * state - * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] - * and is of type - * [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. - * The CSR must then be signed by the desired parent Certificate Authority, which could be another - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, - * or could be an on-prem certificate authority. See also - * [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   FetchCertificateAuthorityCsrRequest request = FetchCertificateAuthorityCsrRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<FetchCertificateAuthorityCsrResponse> future = certificateAuthorityServiceClient.fetchCertificateAuthorityCsrCallable().futureCall(request);
-   *   // Do something
-   *   FetchCertificateAuthorityCsrResponse response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable< - FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> - fetchCertificateAuthorityCsrCallable() { - return stub.fetchCertificateAuthorityCsrCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.getCertificateAuthority(name);
-   * }
-   * 
- * - * @param name Required. The - * [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] to - * get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CertificateAuthority getCertificateAuthority(CertificateAuthorityName name) { - GetCertificateAuthorityRequest request = - GetCertificateAuthorityRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getCertificateAuthority(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.getCertificateAuthority(name.toString());
-   * }
-   * 
- * - * @param name Required. The - * [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] to - * get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CertificateAuthority getCertificateAuthority(String name) { - GetCertificateAuthorityRequest request = - GetCertificateAuthorityRequest.newBuilder().setName(name).build(); - return getCertificateAuthority(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   GetCertificateAuthorityRequest request = GetCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   CertificateAuthority response = certificateAuthorityServiceClient.getCertificateAuthority(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 CertificateAuthority getCertificateAuthority( - GetCertificateAuthorityRequest request) { - return getCertificateAuthorityCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   GetCertificateAuthorityRequest request = GetCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<CertificateAuthority> future = certificateAuthorityServiceClient.getCertificateAuthorityCallable().futureCall(request);
-   *   // Do something
-   *   CertificateAuthority response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - getCertificateAuthorityCallable() { - return stub.getCertificateAuthorityCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (CertificateAuthority element : certificateAuthorityServiceClient.listCertificateAuthorities(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], in - * the format `projects/*/locations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities( - LocationName parent) { - ListCertificateAuthoritiesRequest request = - ListCertificateAuthoritiesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listCertificateAuthorities(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (CertificateAuthority element : certificateAuthorityServiceClient.listCertificateAuthorities(parent.toString()).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], in - * the format `projects/*/locations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities(String parent) { - ListCertificateAuthoritiesRequest request = - ListCertificateAuthoritiesRequest.newBuilder().setParent(parent).build(); - return listCertificateAuthorities(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   ListCertificateAuthoritiesRequest request = ListCertificateAuthoritiesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   for (CertificateAuthority element : certificateAuthorityServiceClient.listCertificateAuthorities(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @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 ListCertificateAuthoritiesPagedResponse listCertificateAuthorities( - ListCertificateAuthoritiesRequest request) { - return listCertificateAuthoritiesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   ListCertificateAuthoritiesRequest request = ListCertificateAuthoritiesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   ApiFuture<ListCertificateAuthoritiesPagedResponse> future = certificateAuthorityServiceClient.listCertificateAuthoritiesPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (CertificateAuthority element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesPagedResponse> - listCertificateAuthoritiesPagedCallable() { - return stub.listCertificateAuthoritiesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   ListCertificateAuthoritiesRequest request = ListCertificateAuthoritiesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   while (true) {
-   *     ListCertificateAuthoritiesResponse response = certificateAuthorityServiceClient.listCertificateAuthoritiesCallable().call(request);
-   *     for (CertificateAuthority element : response.getCertificateAuthoritiesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listCertificateAuthoritiesCallable() { - return stub.listCertificateAuthoritiesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * that is scheduled for deletion. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.restoreCertificateAuthorityAsync(name).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - restoreCertificateAuthorityAsync(CertificateAuthorityName name) { - RestoreCertificateAuthorityRequest request = - RestoreCertificateAuthorityRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return restoreCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * that is scheduled for deletion. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.restoreCertificateAuthorityAsync(name.toString()).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - restoreCertificateAuthorityAsync(String name) { - RestoreCertificateAuthorityRequest request = - RestoreCertificateAuthorityRequest.newBuilder().setName(name).build(); - return restoreCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * that is scheduled for deletion. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   RestoreCertificateAuthorityRequest request = RestoreCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   CertificateAuthority response = certificateAuthorityServiceClient.restoreCertificateAuthorityAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - restoreCertificateAuthorityAsync(RestoreCertificateAuthorityRequest request) { - return restoreCertificateAuthorityOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * that is scheduled for deletion. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   RestoreCertificateAuthorityRequest request = RestoreCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   OperationFuture<CertificateAuthority, OperationMetadata> future = certificateAuthorityServiceClient.restoreCertificateAuthorityOperationCallable().futureCall(request);
-   *   // Do something
-   *   CertificateAuthority response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - restoreCertificateAuthorityOperationCallable() { - return stub.restoreCertificateAuthorityOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * that is scheduled for deletion. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   RestoreCertificateAuthorityRequest request = RestoreCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.restoreCertificateAuthorityCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - restoreCertificateAuthorityCallable() { - return stub.restoreCertificateAuthorityCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * for deletion. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.scheduleDeleteCertificateAuthorityAsync(name).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - scheduleDeleteCertificateAuthorityAsync(CertificateAuthorityName name) { - ScheduleDeleteCertificateAuthorityRequest request = - ScheduleDeleteCertificateAuthorityRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return scheduleDeleteCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * for deletion. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateAuthority response = certificateAuthorityServiceClient.scheduleDeleteCertificateAuthorityAsync(name.toString()).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the - * format `projects/*/locations/*/certificateAuthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - scheduleDeleteCertificateAuthorityAsync(String name) { - ScheduleDeleteCertificateAuthorityRequest request = - ScheduleDeleteCertificateAuthorityRequest.newBuilder().setName(name).build(); - return scheduleDeleteCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * for deletion. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   ScheduleDeleteCertificateAuthorityRequest request = ScheduleDeleteCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   CertificateAuthority response = certificateAuthorityServiceClient.scheduleDeleteCertificateAuthorityAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - scheduleDeleteCertificateAuthorityAsync(ScheduleDeleteCertificateAuthorityRequest request) { - return scheduleDeleteCertificateAuthorityOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * for deletion. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   ScheduleDeleteCertificateAuthorityRequest request = ScheduleDeleteCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   OperationFuture<CertificateAuthority, OperationMetadata> future = certificateAuthorityServiceClient.scheduleDeleteCertificateAuthorityOperationCallable().futureCall(request);
-   *   // Do something
-   *   CertificateAuthority response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - scheduleDeleteCertificateAuthorityOperationCallable() { - return stub.scheduleDeleteCertificateAuthorityOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * for deletion. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   ScheduleDeleteCertificateAuthorityRequest request = ScheduleDeleteCertificateAuthorityRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.scheduleDeleteCertificateAuthorityCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - scheduleDeleteCertificateAuthorityCallable() { - return stub.scheduleDeleteCertificateAuthorityCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   CertificateAuthority response = certificateAuthorityServiceClient.updateCertificateAuthorityAsync(certificateAuthority, updateMask).get();
-   * }
-   * 
- * - * @param certificateAuthority Required. - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with - * updated values. - * @param updateMask Required. A list of fields to be updated in this request. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - updateCertificateAuthorityAsync( - CertificateAuthority certificateAuthority, FieldMask updateMask) { - UpdateCertificateAuthorityRequest request = - UpdateCertificateAuthorityRequest.newBuilder() - .setCertificateAuthority(certificateAuthority) - .setUpdateMask(updateMask) - .build(); - return updateCertificateAuthorityAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateCertificateAuthorityRequest request = UpdateCertificateAuthorityRequest.newBuilder()
-   *     .setCertificateAuthority(certificateAuthority)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   CertificateAuthority response = certificateAuthorityServiceClient.updateCertificateAuthorityAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - updateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest request) { - return updateCertificateAuthorityOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateCertificateAuthorityRequest request = UpdateCertificateAuthorityRequest.newBuilder()
-   *     .setCertificateAuthority(certificateAuthority)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   OperationFuture<CertificateAuthority, OperationMetadata> future = certificateAuthorityServiceClient.updateCertificateAuthorityOperationCallable().futureCall(request);
-   *   // Do something
-   *   CertificateAuthority response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - updateCertificateAuthorityOperationCallable() { - return stub.updateCertificateAuthorityOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateCertificateAuthorityRequest request = UpdateCertificateAuthorityRequest.newBuilder()
-   *     .setCertificateAuthority(certificateAuthority)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.updateCertificateAuthorityCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - updateCertificateAuthorityCallable() { - return stub.updateCertificateAuthorityCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * in a given Project, Location for a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   String certificateRevocationListId = "";
-   *   CertificateRevocationList response = certificateAuthorityServiceClient.createCertificateRevocationListAsync(parent, certificateRevocationList, certificateRevocationListId).get();
-   * }
-   * 
- * - * @param parent Required. The resource name of the location and - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * associated with the - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], - * in the format `projects/*/locations/*/certificateAuthorities/*`. - * @param certificateRevocationList Required. A - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * with initial field values. - * @param certificateRevocationListId Required. It must be unique within a location and match the - * regular expression `[a-zA-Z0-9-]{1,63}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - createCertificateRevocationListAsync( - CertificateAuthorityName parent, - CertificateRevocationList certificateRevocationList, - String certificateRevocationListId) { - CreateCertificateRevocationListRequest request = - CreateCertificateRevocationListRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCertificateRevocationList(certificateRevocationList) - .setCertificateRevocationListId(certificateRevocationListId) - .build(); - return createCertificateRevocationListAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * in a given Project, Location for a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   String certificateRevocationListId = "";
-   *   CertificateRevocationList response = certificateAuthorityServiceClient.createCertificateRevocationListAsync(parent.toString(), certificateRevocationList, certificateRevocationListId).get();
-   * }
-   * 
- * - * @param parent Required. The resource name of the location and - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - * associated with the - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], - * in the format `projects/*/locations/*/certificateAuthorities/*`. - * @param certificateRevocationList Required. A - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * with initial field values. - * @param certificateRevocationListId Required. It must be unique within a location and match the - * regular expression `[a-zA-Z0-9-]{1,63}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - createCertificateRevocationListAsync( - String parent, - CertificateRevocationList certificateRevocationList, - String certificateRevocationListId) { - CreateCertificateRevocationListRequest request = - CreateCertificateRevocationListRequest.newBuilder() - .setParent(parent) - .setCertificateRevocationList(certificateRevocationList) - .setCertificateRevocationListId(certificateRevocationListId) - .build(); - return createCertificateRevocationListAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * in a given Project, Location for a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   String certificateRevocationListId = "";
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   CreateCertificateRevocationListRequest request = CreateCertificateRevocationListRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setCertificateRevocationListId(certificateRevocationListId)
-   *     .setCertificateRevocationList(certificateRevocationList)
-   *     .build();
-   *   CertificateRevocationList response = certificateAuthorityServiceClient.createCertificateRevocationListAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - createCertificateRevocationListAsync(CreateCertificateRevocationListRequest request) { - return createCertificateRevocationListOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * in a given Project, Location for a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   String certificateRevocationListId = "";
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   CreateCertificateRevocationListRequest request = CreateCertificateRevocationListRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setCertificateRevocationListId(certificateRevocationListId)
-   *     .setCertificateRevocationList(certificateRevocationList)
-   *     .build();
-   *   OperationFuture<CertificateRevocationList, OperationMetadata> future = certificateAuthorityServiceClient.createCertificateRevocationListOperationCallable().futureCall(request);
-   *   // Do something
-   *   CertificateRevocationList response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationCallable() { - return stub.createCertificateRevocationListOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * in a given Project, Location for a particular - * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   String certificateRevocationListId = "";
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   CreateCertificateRevocationListRequest request = CreateCertificateRevocationListRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setCertificateRevocationListId(certificateRevocationListId)
-   *     .setCertificateRevocationList(certificateRevocationList)
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.createCertificateRevocationListCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - createCertificateRevocationListCallable() { - return stub.createCertificateRevocationListCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateRevocationListName name = CertificateRevocationListName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]");
-   *   CertificateRevocationList response = certificateAuthorityServiceClient.getCertificateRevocationList(name);
-   * }
-   * 
- * - * @param name Required. The - * [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * to get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CertificateRevocationList getCertificateRevocationList( - CertificateRevocationListName name) { - GetCertificateRevocationListRequest request = - GetCertificateRevocationListRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getCertificateRevocationList(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateRevocationListName name = CertificateRevocationListName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]");
-   *   CertificateRevocationList response = certificateAuthorityServiceClient.getCertificateRevocationList(name.toString());
-   * }
-   * 
- * - * @param name Required. The - * [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * to get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CertificateRevocationList getCertificateRevocationList(String name) { - GetCertificateRevocationListRequest request = - GetCertificateRevocationListRequest.newBuilder().setName(name).build(); - return getCertificateRevocationList(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateRevocationListName name = CertificateRevocationListName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]");
-   *   GetCertificateRevocationListRequest request = GetCertificateRevocationListRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   CertificateRevocationList response = certificateAuthorityServiceClient.getCertificateRevocationList(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 CertificateRevocationList getCertificateRevocationList( - GetCertificateRevocationListRequest request) { - return getCertificateRevocationListCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateRevocationListName name = CertificateRevocationListName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]");
-   *   GetCertificateRevocationListRequest request = GetCertificateRevocationListRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<CertificateRevocationList> future = certificateAuthorityServiceClient.getCertificateRevocationListCallable().futureCall(request);
-   *   // Do something
-   *   CertificateRevocationList response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - getCertificateRevocationListCallable() { - return stub.getCertificateRevocationListCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists - * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   for (CertificateRevocationList element : certificateAuthorityServiceClient.listCertificateRevocationLists(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], - * in the format `projects/*/locations/*/certificateauthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCertificateRevocationListsPagedResponse listCertificateRevocationLists( - CertificateAuthorityName parent) { - ListCertificateRevocationListsRequest request = - ListCertificateRevocationListsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listCertificateRevocationLists(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists - * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   for (CertificateRevocationList element : certificateAuthorityServiceClient.listCertificateRevocationLists(parent.toString()).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], - * in the format `projects/*/locations/*/certificateauthorities/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCertificateRevocationListsPagedResponse listCertificateRevocationLists( - String parent) { - ListCertificateRevocationListsRequest request = - ListCertificateRevocationListsRequest.newBuilder().setParent(parent).build(); - return listCertificateRevocationLists(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists - * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   ListCertificateRevocationListsRequest request = ListCertificateRevocationListsRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   for (CertificateRevocationList element : certificateAuthorityServiceClient.listCertificateRevocationLists(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @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 ListCertificateRevocationListsPagedResponse listCertificateRevocationLists( - ListCertificateRevocationListsRequest request) { - return listCertificateRevocationListsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists - * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   ListCertificateRevocationListsRequest request = ListCertificateRevocationListsRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   ApiFuture<ListCertificateRevocationListsPagedResponse> future = certificateAuthorityServiceClient.listCertificateRevocationListsPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (CertificateRevocationList element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsPagedResponse> - listCertificateRevocationListsPagedCallable() { - return stub.listCertificateRevocationListsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists - * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
-   *   ListCertificateRevocationListsRequest request = ListCertificateRevocationListsRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   while (true) {
-   *     ListCertificateRevocationListsResponse response = certificateAuthorityServiceClient.listCertificateRevocationListsCallable().call(request);
-   *     for (CertificateRevocationList element : response.getCertificateRevocationListsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> - listCertificateRevocationListsCallable() { - return stub.listCertificateRevocationListsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   CertificateRevocationList response = certificateAuthorityServiceClient.updateCertificateRevocationListAsync(certificateRevocationList, updateMask).get();
-   * }
-   * 
- * - * @param certificateRevocationList Required. - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] - * with updated values. - * @param updateMask Required. A list of fields to be updated in this request. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - updateCertificateRevocationListAsync( - CertificateRevocationList certificateRevocationList, FieldMask updateMask) { - UpdateCertificateRevocationListRequest request = - UpdateCertificateRevocationListRequest.newBuilder() - .setCertificateRevocationList(certificateRevocationList) - .setUpdateMask(updateMask) - .build(); - return updateCertificateRevocationListAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateCertificateRevocationListRequest request = UpdateCertificateRevocationListRequest.newBuilder()
-   *     .setCertificateRevocationList(certificateRevocationList)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   CertificateRevocationList response = certificateAuthorityServiceClient.updateCertificateRevocationListAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - updateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest request) { - return updateCertificateRevocationListOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateCertificateRevocationListRequest request = UpdateCertificateRevocationListRequest.newBuilder()
-   *     .setCertificateRevocationList(certificateRevocationList)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   OperationFuture<CertificateRevocationList, OperationMetadata> future = certificateAuthorityServiceClient.updateCertificateRevocationListOperationCallable().futureCall(request);
-   *   // Do something
-   *   CertificateRevocationList response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - updateCertificateRevocationListOperationCallable() { - return stub.updateCertificateRevocationListOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a - * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   CertificateRevocationList certificateRevocationList = CertificateRevocationList.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateCertificateRevocationListRequest request = UpdateCertificateRevocationListRequest.newBuilder()
-   *     .setCertificateRevocationList(certificateRevocationList)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.updateCertificateRevocationListCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - updateCertificateRevocationListCallable() { - return stub.updateCertificateRevocationListCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a - * given Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   String reusableConfigId = "";
-   *   ReusableConfig response = certificateAuthorityServiceClient.createReusableConfigAsync(parent, reusableConfig, reusableConfigId).get();
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format - * `projects/*/locations/*`. - * @param reusableConfig Required. A - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field - * values. - * @param reusableConfigId Required. It must be unique within a location and match the regular - * expression `[a-zA-Z0-9-]{1,63}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createReusableConfigAsync( - LocationName parent, ReusableConfig reusableConfig, String reusableConfigId) { - CreateReusableConfigRequest request = - CreateReusableConfigRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setReusableConfig(reusableConfig) - .setReusableConfigId(reusableConfigId) - .build(); - return createReusableConfigAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a - * given Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   String reusableConfigId = "";
-   *   ReusableConfig response = certificateAuthorityServiceClient.createReusableConfigAsync(parent.toString(), reusableConfig, reusableConfigId).get();
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format - * `projects/*/locations/*`. - * @param reusableConfig Required. A - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field - * values. - * @param reusableConfigId Required. It must be unique within a location and match the regular - * expression `[a-zA-Z0-9-]{1,63}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createReusableConfigAsync( - String parent, ReusableConfig reusableConfig, String reusableConfigId) { - CreateReusableConfigRequest request = - CreateReusableConfigRequest.newBuilder() - .setParent(parent) - .setReusableConfig(reusableConfig) - .setReusableConfigId(reusableConfigId) - .build(); - return createReusableConfigAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a - * given Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String reusableConfigId = "";
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   CreateReusableConfigRequest request = CreateReusableConfigRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setReusableConfigId(reusableConfigId)
-   *     .setReusableConfig(reusableConfig)
-   *     .build();
-   *   ReusableConfig response = certificateAuthorityServiceClient.createReusableConfigAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createReusableConfigAsync( - CreateReusableConfigRequest request) { - return createReusableConfigOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a - * given Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String reusableConfigId = "";
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   CreateReusableConfigRequest request = CreateReusableConfigRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setReusableConfigId(reusableConfigId)
-   *     .setReusableConfig(reusableConfig)
-   *     .build();
-   *   OperationFuture<ReusableConfig, OperationMetadata> future = certificateAuthorityServiceClient.createReusableConfigOperationCallable().futureCall(request);
-   *   // Do something
-   *   ReusableConfig response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - createReusableConfigOperationCallable() { - return stub.createReusableConfigOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a - * given Project and Location. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String reusableConfigId = "";
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   CreateReusableConfigRequest request = CreateReusableConfigRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setReusableConfigId(reusableConfigId)
-   *     .setReusableConfig(reusableConfig)
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.createReusableConfigCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - createReusableConfigCallable() { - return stub.createReusableConfigCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * DeleteReusableConfig deletes a - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   certificateAuthorityServiceClient.deleteReusableConfigAsync(name).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format - * `projects/*/locations/*/reusableConfigs/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteReusableConfigAsync( - ReusableConfigName name) { - DeleteReusableConfigRequest request = - DeleteReusableConfigRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return deleteReusableConfigAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * DeleteReusableConfig deletes a - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   certificateAuthorityServiceClient.deleteReusableConfigAsync(name.toString()).get();
-   * }
-   * 
- * - * @param name Required. The resource name for this - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format - * `projects/*/locations/*/reusableConfigs/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteReusableConfigAsync(String name) { - DeleteReusableConfigRequest request = - DeleteReusableConfigRequest.newBuilder().setName(name).build(); - return deleteReusableConfigAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * DeleteReusableConfig deletes a - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   DeleteReusableConfigRequest request = DeleteReusableConfigRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   certificateAuthorityServiceClient.deleteReusableConfigAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteReusableConfigAsync( - DeleteReusableConfigRequest request) { - return deleteReusableConfigOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * DeleteReusableConfig deletes a - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   DeleteReusableConfigRequest request = DeleteReusableConfigRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   OperationFuture<Empty, OperationMetadata> future = certificateAuthorityServiceClient.deleteReusableConfigOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - deleteReusableConfigOperationCallable() { - return stub.deleteReusableConfigOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * DeleteReusableConfig deletes a - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   DeleteReusableConfigRequest request = DeleteReusableConfigRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.deleteReusableConfigCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - public final UnaryCallable - deleteReusableConfigCallable() { - return stub.deleteReusableConfigCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   ReusableConfig response = certificateAuthorityServiceClient.getReusableConfig(name);
-   * }
-   * 
- * - * @param name Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ReusableConfig getReusableConfig(ReusableConfigName name) { - GetReusableConfigRequest request = - GetReusableConfigRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getReusableConfig(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   ReusableConfig response = certificateAuthorityServiceClient.getReusableConfig(name.toString());
-   * }
-   * 
- * - * @param name Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ReusableConfig getReusableConfig(String name) { - GetReusableConfigRequest request = GetReusableConfigRequest.newBuilder().setName(name).build(); - return getReusableConfig(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   GetReusableConfigRequest request = GetReusableConfigRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ReusableConfig response = certificateAuthorityServiceClient.getReusableConfig(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 ReusableConfig getReusableConfig(GetReusableConfigRequest request) { - return getReusableConfigCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
-   *   GetReusableConfigRequest request = GetReusableConfigRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<ReusableConfig> future = certificateAuthorityServiceClient.getReusableConfigCallable().futureCall(request);
-   *   // Do something
-   *   ReusableConfig response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable getReusableConfigCallable() { - return stub.getReusableConfigCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (ReusableConfig element : certificateAuthorityServiceClient.listReusableConfigs(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format - * `projects/*/locations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListReusableConfigsPagedResponse listReusableConfigs(LocationName parent) { - ListReusableConfigsRequest request = - ListReusableConfigsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listReusableConfigs(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (ReusableConfig element : certificateAuthorityServiceClient.listReusableConfigs(parent.toString()).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The resource name of the location associated with the - * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format - * `projects/*/locations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListReusableConfigsPagedResponse listReusableConfigs(String parent) { - ListReusableConfigsRequest request = - ListReusableConfigsRequest.newBuilder().setParent(parent).build(); - return listReusableConfigs(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   ListReusableConfigsRequest request = ListReusableConfigsRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   for (ReusableConfig element : certificateAuthorityServiceClient.listReusableConfigs(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @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 ListReusableConfigsPagedResponse listReusableConfigs( - ListReusableConfigsRequest request) { - return listReusableConfigsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   ListReusableConfigsRequest request = ListReusableConfigsRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   ApiFuture<ListReusableConfigsPagedResponse> future = certificateAuthorityServiceClient.listReusableConfigsPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (ReusableConfig element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listReusableConfigsPagedCallable() { - return stub.listReusableConfigsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   ListReusableConfigsRequest request = ListReusableConfigsRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   while (true) {
-   *     ListReusableConfigsResponse response = certificateAuthorityServiceClient.listReusableConfigsCallable().call(request);
-   *     for (ReusableConfig element : response.getReusableConfigsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listReusableConfigsCallable() { - return stub.listReusableConfigsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   ReusableConfig response = certificateAuthorityServiceClient.updateReusableConfigAsync(reusableConfig, updateMask).get();
-   * }
-   * 
- * - * @param reusableConfig Required. - * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated - * values. - * @param updateMask Required. A list of fields to be updated in this request. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateReusableConfigAsync( - ReusableConfig reusableConfig, FieldMask updateMask) { - UpdateReusableConfigRequest request = - UpdateReusableConfigRequest.newBuilder() - .setReusableConfig(reusableConfig) - .setUpdateMask(updateMask) - .build(); - return updateReusableConfigAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateReusableConfigRequest request = UpdateReusableConfigRequest.newBuilder()
-   *     .setReusableConfig(reusableConfig)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ReusableConfig response = certificateAuthorityServiceClient.updateReusableConfigAsync(request).get();
-   * }
-   * 
- * - * @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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateReusableConfigAsync( - UpdateReusableConfigRequest request) { - return updateReusableConfigOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateReusableConfigRequest request = UpdateReusableConfigRequest.newBuilder()
-   *     .setReusableConfig(reusableConfig)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   OperationFuture<ReusableConfig, OperationMetadata> future = certificateAuthorityServiceClient.updateReusableConfigOperationCallable().futureCall(request);
-   *   // Do something
-   *   ReusableConfig response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - updateReusableConfigOperationCallable() { - return stub.updateReusableConfigOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - * - *

Sample code: - * - *


-   * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
-   *   ReusableConfig reusableConfig = ReusableConfig.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateReusableConfigRequest request = UpdateReusableConfigRequest.newBuilder()
-   *     .setReusableConfig(reusableConfig)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Operation> future = certificateAuthorityServiceClient.updateReusableConfigCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - updateReusableConfigCallable() { - return stub.updateReusableConfigCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListCertificatesPagedResponse - extends AbstractPagedListResponse< - ListCertificatesRequest, - ListCertificatesResponse, - Certificate, - ListCertificatesPage, - ListCertificatesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCertificatesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListCertificatesPagedResponse apply(ListCertificatesPage input) { - return new ListCertificatesPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } - - private ListCertificatesPagedResponse(ListCertificatesPage page) { - super(page, ListCertificatesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListCertificatesPage - extends AbstractPage< - ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage> { - - private ListCertificatesPage( - PageContext context, - ListCertificatesResponse response) { - super(context, response); - } - - private static ListCertificatesPage createEmptyPage() { - return new ListCertificatesPage(null, null); - } - - @Override - protected ListCertificatesPage createPage( - PageContext context, - ListCertificatesResponse response) { - return new ListCertificatesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListCertificatesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListCertificatesRequest, - ListCertificatesResponse, - Certificate, - ListCertificatesPage, - ListCertificatesFixedSizeCollection> { - - private ListCertificatesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListCertificatesFixedSizeCollection createEmptyCollection() { - return new ListCertificatesFixedSizeCollection(null, 0); - } - - @Override - protected ListCertificatesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListCertificatesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListCertificateAuthoritiesPagedResponse - extends AbstractPagedListResponse< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority, - ListCertificateAuthoritiesPage, - ListCertificateAuthoritiesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCertificateAuthoritiesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction< - ListCertificateAuthoritiesPage, ListCertificateAuthoritiesPagedResponse>() { - @Override - public ListCertificateAuthoritiesPagedResponse apply( - ListCertificateAuthoritiesPage input) { - return new ListCertificateAuthoritiesPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } - - private ListCertificateAuthoritiesPagedResponse(ListCertificateAuthoritiesPage page) { - super(page, ListCertificateAuthoritiesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListCertificateAuthoritiesPage - extends AbstractPage< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority, - ListCertificateAuthoritiesPage> { - - private ListCertificateAuthoritiesPage( - PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority> - context, - ListCertificateAuthoritiesResponse response) { - super(context, response); - } - - private static ListCertificateAuthoritiesPage createEmptyPage() { - return new ListCertificateAuthoritiesPage(null, null); - } - - @Override - protected ListCertificateAuthoritiesPage createPage( - PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority> - context, - ListCertificateAuthoritiesResponse response) { - return new ListCertificateAuthoritiesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListCertificateAuthoritiesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority, - ListCertificateAuthoritiesPage, - ListCertificateAuthoritiesFixedSizeCollection> { - - private ListCertificateAuthoritiesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListCertificateAuthoritiesFixedSizeCollection createEmptyCollection() { - return new ListCertificateAuthoritiesFixedSizeCollection(null, 0); - } - - @Override - protected ListCertificateAuthoritiesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListCertificateAuthoritiesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListCertificateRevocationListsPagedResponse - extends AbstractPagedListResponse< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList, - ListCertificateRevocationListsPage, - ListCertificateRevocationListsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCertificateRevocationListsPage.createEmptyPage() - .createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction< - ListCertificateRevocationListsPage, ListCertificateRevocationListsPagedResponse>() { - @Override - public ListCertificateRevocationListsPagedResponse apply( - ListCertificateRevocationListsPage input) { - return new ListCertificateRevocationListsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } - - private ListCertificateRevocationListsPagedResponse(ListCertificateRevocationListsPage page) { - super(page, ListCertificateRevocationListsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListCertificateRevocationListsPage - extends AbstractPage< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList, - ListCertificateRevocationListsPage> { - - private ListCertificateRevocationListsPage( - PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList> - context, - ListCertificateRevocationListsResponse response) { - super(context, response); - } - - private static ListCertificateRevocationListsPage createEmptyPage() { - return new ListCertificateRevocationListsPage(null, null); - } - - @Override - protected ListCertificateRevocationListsPage createPage( - PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList> - context, - ListCertificateRevocationListsResponse response) { - return new ListCertificateRevocationListsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListCertificateRevocationListsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList, - ListCertificateRevocationListsPage, - ListCertificateRevocationListsFixedSizeCollection> { - - private ListCertificateRevocationListsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListCertificateRevocationListsFixedSizeCollection createEmptyCollection() { - return new ListCertificateRevocationListsFixedSizeCollection(null, 0); - } - - @Override - protected ListCertificateRevocationListsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListCertificateRevocationListsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListReusableConfigsPagedResponse - extends AbstractPagedListResponse< - ListReusableConfigsRequest, - ListReusableConfigsResponse, - ReusableConfig, - ListReusableConfigsPage, - ListReusableConfigsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListReusableConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListReusableConfigsPagedResponse apply(ListReusableConfigsPage input) { - return new ListReusableConfigsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } - - private ListReusableConfigsPagedResponse(ListReusableConfigsPage page) { - super(page, ListReusableConfigsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListReusableConfigsPage - extends AbstractPage< - ListReusableConfigsRequest, - ListReusableConfigsResponse, - ReusableConfig, - ListReusableConfigsPage> { - - private ListReusableConfigsPage( - PageContext - context, - ListReusableConfigsResponse response) { - super(context, response); - } - - private static ListReusableConfigsPage createEmptyPage() { - return new ListReusableConfigsPage(null, null); - } - - @Override - protected ListReusableConfigsPage createPage( - PageContext - context, - ListReusableConfigsResponse response) { - return new ListReusableConfigsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListReusableConfigsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListReusableConfigsRequest, - ListReusableConfigsResponse, - ReusableConfig, - ListReusableConfigsPage, - ListReusableConfigsFixedSizeCollection> { - - private ListReusableConfigsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListReusableConfigsFixedSizeCollection createEmptyCollection() { - return new ListReusableConfigsFixedSizeCollection(null, 0); - } - - @Override - protected ListReusableConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListReusableConfigsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java b/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java deleted file mode 100644 index 55edd864..00000000 --- a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java +++ /dev/null @@ -1,729 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.security.privateca.v1beta1; - -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateRevocationListsPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificatesPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListReusableConfigsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.security.privateca.v1beta1.stub.CertificateAuthorityServiceStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link CertificateAuthorityServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (privateca.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of createCertificate to 30 seconds: - * - *

- * 
- * CertificateAuthorityServiceSettings.Builder certificateAuthorityServiceSettingsBuilder =
- *     CertificateAuthorityServiceSettings.newBuilder();
- * certificateAuthorityServiceSettingsBuilder
- *     .createCertificateSettings()
- *     .setRetrySettings(
- *         certificateAuthorityServiceSettingsBuilder.createCertificateSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = certificateAuthorityServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class CertificateAuthorityServiceSettings - extends ClientSettings { - /** Returns the object with the settings used for calls to createCertificate. */ - public UnaryCallSettings createCertificateSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .createCertificateSettings(); - } - - /** Returns the object with the settings used for calls to getCertificate. */ - public UnaryCallSettings getCertificateSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()).getCertificateSettings(); - } - - /** Returns the object with the settings used for calls to listCertificates. */ - public PagedCallSettings< - ListCertificatesRequest, ListCertificatesResponse, ListCertificatesPagedResponse> - listCertificatesSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()).listCertificatesSettings(); - } - - /** Returns the object with the settings used for calls to revokeCertificate. */ - public UnaryCallSettings revokeCertificateSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .revokeCertificateSettings(); - } - - /** Returns the object with the settings used for calls to updateCertificate. */ - public UnaryCallSettings updateCertificateSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .updateCertificateSettings(); - } - - /** Returns the object with the settings used for calls to activateCertificateAuthority. */ - public UnaryCallSettings - activateCertificateAuthoritySettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .activateCertificateAuthoritySettings(); - } - - /** Returns the object with the settings used for calls to activateCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - activateCertificateAuthorityOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .activateCertificateAuthorityOperationSettings(); - } - - /** Returns the object with the settings used for calls to createCertificateAuthority. */ - public UnaryCallSettings - createCertificateAuthoritySettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .createCertificateAuthoritySettings(); - } - - /** Returns the object with the settings used for calls to createCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - createCertificateAuthorityOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .createCertificateAuthorityOperationSettings(); - } - - /** Returns the object with the settings used for calls to disableCertificateAuthority. */ - public UnaryCallSettings - disableCertificateAuthoritySettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .disableCertificateAuthoritySettings(); - } - - /** Returns the object with the settings used for calls to disableCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - disableCertificateAuthorityOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .disableCertificateAuthorityOperationSettings(); - } - - /** Returns the object with the settings used for calls to enableCertificateAuthority. */ - public UnaryCallSettings - enableCertificateAuthoritySettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .enableCertificateAuthoritySettings(); - } - - /** Returns the object with the settings used for calls to enableCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - enableCertificateAuthorityOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .enableCertificateAuthorityOperationSettings(); - } - - /** Returns the object with the settings used for calls to fetchCertificateAuthorityCsr. */ - public UnaryCallSettings< - FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> - fetchCertificateAuthorityCsrSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .fetchCertificateAuthorityCsrSettings(); - } - - /** Returns the object with the settings used for calls to getCertificateAuthority. */ - public UnaryCallSettings - getCertificateAuthoritySettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .getCertificateAuthoritySettings(); - } - - /** Returns the object with the settings used for calls to listCertificateAuthorities. */ - public PagedCallSettings< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - ListCertificateAuthoritiesPagedResponse> - listCertificateAuthoritiesSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .listCertificateAuthoritiesSettings(); - } - - /** Returns the object with the settings used for calls to restoreCertificateAuthority. */ - public UnaryCallSettings - restoreCertificateAuthoritySettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .restoreCertificateAuthoritySettings(); - } - - /** Returns the object with the settings used for calls to restoreCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - restoreCertificateAuthorityOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .restoreCertificateAuthorityOperationSettings(); - } - - /** Returns the object with the settings used for calls to scheduleDeleteCertificateAuthority. */ - public UnaryCallSettings - scheduleDeleteCertificateAuthoritySettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .scheduleDeleteCertificateAuthoritySettings(); - } - - /** Returns the object with the settings used for calls to scheduleDeleteCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - scheduleDeleteCertificateAuthorityOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .scheduleDeleteCertificateAuthorityOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateCertificateAuthority. */ - public UnaryCallSettings - updateCertificateAuthoritySettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .updateCertificateAuthoritySettings(); - } - - /** Returns the object with the settings used for calls to updateCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - updateCertificateAuthorityOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .updateCertificateAuthorityOperationSettings(); - } - - /** Returns the object with the settings used for calls to createCertificateRevocationList. */ - public UnaryCallSettings - createCertificateRevocationListSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .createCertificateRevocationListSettings(); - } - - /** Returns the object with the settings used for calls to createCertificateRevocationList. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .createCertificateRevocationListOperationSettings(); - } - - /** Returns the object with the settings used for calls to getCertificateRevocationList. */ - public UnaryCallSettings - getCertificateRevocationListSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .getCertificateRevocationListSettings(); - } - - /** Returns the object with the settings used for calls to listCertificateRevocationLists. */ - public PagedCallSettings< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - ListCertificateRevocationListsPagedResponse> - listCertificateRevocationListsSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .listCertificateRevocationListsSettings(); - } - - /** Returns the object with the settings used for calls to updateCertificateRevocationList. */ - public UnaryCallSettings - updateCertificateRevocationListSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .updateCertificateRevocationListSettings(); - } - - /** Returns the object with the settings used for calls to updateCertificateRevocationList. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - updateCertificateRevocationListOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .updateCertificateRevocationListOperationSettings(); - } - - /** Returns the object with the settings used for calls to createReusableConfig. */ - public UnaryCallSettings createReusableConfigSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .createReusableConfigSettings(); - } - - /** Returns the object with the settings used for calls to createReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - createReusableConfigOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .createReusableConfigOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteReusableConfig. */ - public UnaryCallSettings deleteReusableConfigSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .deleteReusableConfigSettings(); - } - - /** Returns the object with the settings used for calls to deleteReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - deleteReusableConfigOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .deleteReusableConfigOperationSettings(); - } - - /** Returns the object with the settings used for calls to getReusableConfig. */ - public UnaryCallSettings getReusableConfigSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .getReusableConfigSettings(); - } - - /** Returns the object with the settings used for calls to listReusableConfigs. */ - public PagedCallSettings< - ListReusableConfigsRequest, ListReusableConfigsResponse, ListReusableConfigsPagedResponse> - listReusableConfigsSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .listReusableConfigsSettings(); - } - - /** Returns the object with the settings used for calls to updateReusableConfig. */ - public UnaryCallSettings updateReusableConfigSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .updateReusableConfigSettings(); - } - - /** Returns the object with the settings used for calls to updateReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - updateReusableConfigOperationSettings() { - return ((CertificateAuthorityServiceStubSettings) getStubSettings()) - .updateReusableConfigOperationSettings(); - } - - public static final CertificateAuthorityServiceSettings create( - CertificateAuthorityServiceStubSettings stub) throws IOException { - return new CertificateAuthorityServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return CertificateAuthorityServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return CertificateAuthorityServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return CertificateAuthorityServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return CertificateAuthorityServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return CertificateAuthorityServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return CertificateAuthorityServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return CertificateAuthorityServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected CertificateAuthorityServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for CertificateAuthorityServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - protected Builder() throws IOException { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(CertificateAuthorityServiceStubSettings.newBuilder(clientContext)); - } - - private static Builder createDefault() { - return new Builder(CertificateAuthorityServiceStubSettings.newBuilder()); - } - - protected Builder(CertificateAuthorityServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(CertificateAuthorityServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - public CertificateAuthorityServiceStubSettings.Builder getStubSettingsBuilder() { - return ((CertificateAuthorityServiceStubSettings.Builder) getStubSettings()); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to createCertificate. */ - public UnaryCallSettings.Builder - createCertificateSettings() { - return getStubSettingsBuilder().createCertificateSettings(); - } - - /** Returns the builder for the settings used for calls to getCertificate. */ - public UnaryCallSettings.Builder getCertificateSettings() { - return getStubSettingsBuilder().getCertificateSettings(); - } - - /** Returns the builder for the settings used for calls to listCertificates. */ - public PagedCallSettings.Builder< - ListCertificatesRequest, ListCertificatesResponse, ListCertificatesPagedResponse> - listCertificatesSettings() { - return getStubSettingsBuilder().listCertificatesSettings(); - } - - /** Returns the builder for the settings used for calls to revokeCertificate. */ - public UnaryCallSettings.Builder - revokeCertificateSettings() { - return getStubSettingsBuilder().revokeCertificateSettings(); - } - - /** Returns the builder for the settings used for calls to updateCertificate. */ - public UnaryCallSettings.Builder - updateCertificateSettings() { - return getStubSettingsBuilder().updateCertificateSettings(); - } - - /** Returns the builder for the settings used for calls to activateCertificateAuthority. */ - public UnaryCallSettings.Builder - activateCertificateAuthoritySettings() { - return getStubSettingsBuilder().activateCertificateAuthoritySettings(); - } - - /** Returns the builder for the settings used for calls to activateCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - activateCertificateAuthorityOperationSettings() { - return getStubSettingsBuilder().activateCertificateAuthorityOperationSettings(); - } - - /** Returns the builder for the settings used for calls to createCertificateAuthority. */ - public UnaryCallSettings.Builder - createCertificateAuthoritySettings() { - return getStubSettingsBuilder().createCertificateAuthoritySettings(); - } - - /** Returns the builder for the settings used for calls to createCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - createCertificateAuthorityOperationSettings() { - return getStubSettingsBuilder().createCertificateAuthorityOperationSettings(); - } - - /** Returns the builder for the settings used for calls to disableCertificateAuthority. */ - public UnaryCallSettings.Builder - disableCertificateAuthoritySettings() { - return getStubSettingsBuilder().disableCertificateAuthoritySettings(); - } - - /** Returns the builder for the settings used for calls to disableCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - disableCertificateAuthorityOperationSettings() { - return getStubSettingsBuilder().disableCertificateAuthorityOperationSettings(); - } - - /** Returns the builder for the settings used for calls to enableCertificateAuthority. */ - public UnaryCallSettings.Builder - enableCertificateAuthoritySettings() { - return getStubSettingsBuilder().enableCertificateAuthoritySettings(); - } - - /** Returns the builder for the settings used for calls to enableCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - enableCertificateAuthorityOperationSettings() { - return getStubSettingsBuilder().enableCertificateAuthorityOperationSettings(); - } - - /** Returns the builder for the settings used for calls to fetchCertificateAuthorityCsr. */ - public UnaryCallSettings.Builder< - FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> - fetchCertificateAuthorityCsrSettings() { - return getStubSettingsBuilder().fetchCertificateAuthorityCsrSettings(); - } - - /** Returns the builder for the settings used for calls to getCertificateAuthority. */ - public UnaryCallSettings.Builder - getCertificateAuthoritySettings() { - return getStubSettingsBuilder().getCertificateAuthoritySettings(); - } - - /** Returns the builder for the settings used for calls to listCertificateAuthorities. */ - public PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - ListCertificateAuthoritiesPagedResponse> - listCertificateAuthoritiesSettings() { - return getStubSettingsBuilder().listCertificateAuthoritiesSettings(); - } - - /** Returns the builder for the settings used for calls to restoreCertificateAuthority. */ - public UnaryCallSettings.Builder - restoreCertificateAuthoritySettings() { - return getStubSettingsBuilder().restoreCertificateAuthoritySettings(); - } - - /** Returns the builder for the settings used for calls to restoreCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - restoreCertificateAuthorityOperationSettings() { - return getStubSettingsBuilder().restoreCertificateAuthorityOperationSettings(); - } - - /** - * Returns the builder for the settings used for calls to scheduleDeleteCertificateAuthority. - */ - public UnaryCallSettings.Builder - scheduleDeleteCertificateAuthoritySettings() { - return getStubSettingsBuilder().scheduleDeleteCertificateAuthoritySettings(); - } - - /** - * Returns the builder for the settings used for calls to scheduleDeleteCertificateAuthority. - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - scheduleDeleteCertificateAuthorityOperationSettings() { - return getStubSettingsBuilder().scheduleDeleteCertificateAuthorityOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateCertificateAuthority. */ - public UnaryCallSettings.Builder - updateCertificateAuthoritySettings() { - return getStubSettingsBuilder().updateCertificateAuthoritySettings(); - } - - /** Returns the builder for the settings used for calls to updateCertificateAuthority. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - updateCertificateAuthorityOperationSettings() { - return getStubSettingsBuilder().updateCertificateAuthorityOperationSettings(); - } - - /** Returns the builder for the settings used for calls to createCertificateRevocationList. */ - public UnaryCallSettings.Builder - createCertificateRevocationListSettings() { - return getStubSettingsBuilder().createCertificateRevocationListSettings(); - } - - /** Returns the builder for the settings used for calls to createCertificateRevocationList. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings() { - return getStubSettingsBuilder().createCertificateRevocationListOperationSettings(); - } - - /** Returns the builder for the settings used for calls to getCertificateRevocationList. */ - public UnaryCallSettings.Builder - getCertificateRevocationListSettings() { - return getStubSettingsBuilder().getCertificateRevocationListSettings(); - } - - /** Returns the builder for the settings used for calls to listCertificateRevocationLists. */ - public PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - ListCertificateRevocationListsPagedResponse> - listCertificateRevocationListsSettings() { - return getStubSettingsBuilder().listCertificateRevocationListsSettings(); - } - - /** Returns the builder for the settings used for calls to updateCertificateRevocationList. */ - public UnaryCallSettings.Builder - updateCertificateRevocationListSettings() { - return getStubSettingsBuilder().updateCertificateRevocationListSettings(); - } - - /** Returns the builder for the settings used for calls to updateCertificateRevocationList. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - updateCertificateRevocationListOperationSettings() { - return getStubSettingsBuilder().updateCertificateRevocationListOperationSettings(); - } - - /** Returns the builder for the settings used for calls to createReusableConfig. */ - public UnaryCallSettings.Builder - createReusableConfigSettings() { - return getStubSettingsBuilder().createReusableConfigSettings(); - } - - /** Returns the builder for the settings used for calls to createReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateReusableConfigRequest, ReusableConfig, OperationMetadata> - createReusableConfigOperationSettings() { - return getStubSettingsBuilder().createReusableConfigOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteReusableConfig. */ - public UnaryCallSettings.Builder - deleteReusableConfigSettings() { - return getStubSettingsBuilder().deleteReusableConfigSettings(); - } - - /** Returns the builder for the settings used for calls to deleteReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteReusableConfigOperationSettings() { - return getStubSettingsBuilder().deleteReusableConfigOperationSettings(); - } - - /** Returns the builder for the settings used for calls to getReusableConfig. */ - public UnaryCallSettings.Builder - getReusableConfigSettings() { - return getStubSettingsBuilder().getReusableConfigSettings(); - } - - /** Returns the builder for the settings used for calls to listReusableConfigs. */ - public PagedCallSettings.Builder< - ListReusableConfigsRequest, - ListReusableConfigsResponse, - ListReusableConfigsPagedResponse> - listReusableConfigsSettings() { - return getStubSettingsBuilder().listReusableConfigsSettings(); - } - - /** Returns the builder for the settings used for calls to updateReusableConfig. */ - public UnaryCallSettings.Builder - updateReusableConfigSettings() { - return getStubSettingsBuilder().updateReusableConfigSettings(); - } - - /** Returns the builder for the settings used for calls to updateReusableConfig. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateReusableConfigRequest, ReusableConfig, OperationMetadata> - updateReusableConfigOperationSettings() { - return getStubSettingsBuilder().updateReusableConfigOperationSettings(); - } - - @Override - public CertificateAuthorityServiceSettings build() throws IOException { - return new CertificateAuthorityServiceSettings(this); - } - } -} diff --git a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java b/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java deleted file mode 100644 index 424a80de..00000000 --- a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -/** - * A client to Certificate Authority API. - * - *

The interfaces provided are listed below, along with usage samples. - * - *

================================= CertificateAuthorityServiceClient - * ================================= - * - *

Service Description: [Certificate Authority - * Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private - * certificate authorities and issued certificates. - * - *

Sample for CertificateAuthorityServiceClient: - * - *

- * 
- * try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.create()) {
- *   CertificateAuthorityName parent = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
- *   Certificate certificate = Certificate.newBuilder().build();
- *   String certificateId = "";
- *   Certificate response = certificateAuthorityServiceClient.createCertificate(parent, certificate, certificateId);
- * }
- * 
- * 
- */ -@Generated("by gapic-generator") -package com.google.cloud.security.privateca.v1beta1; - -import javax.annotation.Generated; diff --git a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java b/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java deleted file mode 100644 index 78a11693..00000000 --- a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java +++ /dev/null @@ -1,325 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.security.privateca.v1beta1.stub; - -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateRevocationListsPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificatesPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListReusableConfigsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.Certificate; -import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; -import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest; -import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse; -import com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.GetCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse; -import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse; -import com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse; -import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest; -import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse; -import com.google.cloud.security.privateca.v1beta1.OperationMetadata; -import com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.ReusableConfig; -import com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Base stub class for Certificate Authority API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public abstract class CertificateAuthorityServiceStub implements BackgroundResource { - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public UnaryCallable createCertificateCallable() { - throw new UnsupportedOperationException("Not implemented: createCertificateCallable()"); - } - - public UnaryCallable getCertificateCallable() { - throw new UnsupportedOperationException("Not implemented: getCertificateCallable()"); - } - - public UnaryCallable - listCertificatesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listCertificatesPagedCallable()"); - } - - public UnaryCallable - listCertificatesCallable() { - throw new UnsupportedOperationException("Not implemented: listCertificatesCallable()"); - } - - public UnaryCallable revokeCertificateCallable() { - throw new UnsupportedOperationException("Not implemented: revokeCertificateCallable()"); - } - - public UnaryCallable updateCertificateCallable() { - throw new UnsupportedOperationException("Not implemented: updateCertificateCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - activateCertificateAuthorityOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: activateCertificateAuthorityOperationCallable()"); - } - - public UnaryCallable - activateCertificateAuthorityCallable() { - throw new UnsupportedOperationException( - "Not implemented: activateCertificateAuthorityCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - createCertificateAuthorityOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createCertificateAuthorityOperationCallable()"); - } - - public UnaryCallable - createCertificateAuthorityCallable() { - throw new UnsupportedOperationException( - "Not implemented: createCertificateAuthorityCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - disableCertificateAuthorityOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: disableCertificateAuthorityOperationCallable()"); - } - - public UnaryCallable - disableCertificateAuthorityCallable() { - throw new UnsupportedOperationException( - "Not implemented: disableCertificateAuthorityCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - enableCertificateAuthorityOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: enableCertificateAuthorityOperationCallable()"); - } - - public UnaryCallable - enableCertificateAuthorityCallable() { - throw new UnsupportedOperationException( - "Not implemented: enableCertificateAuthorityCallable()"); - } - - public UnaryCallable - fetchCertificateAuthorityCsrCallable() { - throw new UnsupportedOperationException( - "Not implemented: fetchCertificateAuthorityCsrCallable()"); - } - - public UnaryCallable - getCertificateAuthorityCallable() { - throw new UnsupportedOperationException("Not implemented: getCertificateAuthorityCallable()"); - } - - public UnaryCallable - listCertificateAuthoritiesPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listCertificateAuthoritiesPagedCallable()"); - } - - public UnaryCallable - listCertificateAuthoritiesCallable() { - throw new UnsupportedOperationException( - "Not implemented: listCertificateAuthoritiesCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - restoreCertificateAuthorityOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: restoreCertificateAuthorityOperationCallable()"); - } - - public UnaryCallable - restoreCertificateAuthorityCallable() { - throw new UnsupportedOperationException( - "Not implemented: restoreCertificateAuthorityCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - scheduleDeleteCertificateAuthorityOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: scheduleDeleteCertificateAuthorityOperationCallable()"); - } - - public UnaryCallable - scheduleDeleteCertificateAuthorityCallable() { - throw new UnsupportedOperationException( - "Not implemented: scheduleDeleteCertificateAuthorityCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - updateCertificateAuthorityOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateCertificateAuthorityOperationCallable()"); - } - - public UnaryCallable - updateCertificateAuthorityCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateCertificateAuthorityCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createCertificateRevocationListOperationCallable()"); - } - - public UnaryCallable - createCertificateRevocationListCallable() { - throw new UnsupportedOperationException( - "Not implemented: createCertificateRevocationListCallable()"); - } - - public UnaryCallable - getCertificateRevocationListCallable() { - throw new UnsupportedOperationException( - "Not implemented: getCertificateRevocationListCallable()"); - } - - public UnaryCallable< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsPagedResponse> - listCertificateRevocationListsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listCertificateRevocationListsPagedCallable()"); - } - - public UnaryCallable< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> - listCertificateRevocationListsCallable() { - throw new UnsupportedOperationException( - "Not implemented: listCertificateRevocationListsCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - updateCertificateRevocationListOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateCertificateRevocationListOperationCallable()"); - } - - public UnaryCallable - updateCertificateRevocationListCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateCertificateRevocationListCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createReusableConfigOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createReusableConfigOperationCallable()"); - } - - public UnaryCallable createReusableConfigCallable() { - throw new UnsupportedOperationException("Not implemented: createReusableConfigCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteReusableConfigOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteReusableConfigOperationCallable()"); - } - - public UnaryCallable deleteReusableConfigCallable() { - throw new UnsupportedOperationException("Not implemented: deleteReusableConfigCallable()"); - } - - public UnaryCallable getReusableConfigCallable() { - throw new UnsupportedOperationException("Not implemented: getReusableConfigCallable()"); - } - - public UnaryCallable - listReusableConfigsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listReusableConfigsPagedCallable()"); - } - - public UnaryCallable - listReusableConfigsCallable() { - throw new UnsupportedOperationException("Not implemented: listReusableConfigsCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateReusableConfigOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateReusableConfigOperationCallable()"); - } - - public UnaryCallable updateReusableConfigCallable() { - throw new UnsupportedOperationException("Not implemented: updateReusableConfigCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java b/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java deleted file mode 100644 index d7232aee..00000000 --- a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java +++ /dev/null @@ -1,1919 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.security.privateca.v1beta1.stub; - -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateRevocationListsPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificatesPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListReusableConfigsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.Certificate; -import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; -import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest; -import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse; -import com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.GetCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse; -import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse; -import com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse; -import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest; -import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse; -import com.google.cloud.security.privateca.v1beta1.OperationMetadata; -import com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.ReusableConfig; -import com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link CertificateAuthorityServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (privateca.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of createCertificate to 30 seconds: - * - *

- * 
- * CertificateAuthorityServiceStubSettings.Builder certificateAuthorityServiceSettingsBuilder =
- *     CertificateAuthorityServiceStubSettings.newBuilder();
- * certificateAuthorityServiceSettingsBuilder
- *     .createCertificateSettings()
- *     .setRetrySettings(
- *         certificateAuthorityServiceSettingsBuilder.createCertificateSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * CertificateAuthorityServiceStubSettings certificateAuthorityServiceSettings = certificateAuthorityServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class CertificateAuthorityServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final UnaryCallSettings createCertificateSettings; - private final UnaryCallSettings getCertificateSettings; - private final PagedCallSettings< - ListCertificatesRequest, ListCertificatesResponse, ListCertificatesPagedResponse> - listCertificatesSettings; - private final UnaryCallSettings revokeCertificateSettings; - private final UnaryCallSettings updateCertificateSettings; - private final UnaryCallSettings - activateCertificateAuthoritySettings; - private final OperationCallSettings< - ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - activateCertificateAuthorityOperationSettings; - private final UnaryCallSettings - createCertificateAuthoritySettings; - private final OperationCallSettings< - CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - createCertificateAuthorityOperationSettings; - private final UnaryCallSettings - disableCertificateAuthoritySettings; - private final OperationCallSettings< - DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - disableCertificateAuthorityOperationSettings; - private final UnaryCallSettings - enableCertificateAuthoritySettings; - private final OperationCallSettings< - EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - enableCertificateAuthorityOperationSettings; - private final UnaryCallSettings< - FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> - fetchCertificateAuthorityCsrSettings; - private final UnaryCallSettings - getCertificateAuthoritySettings; - private final PagedCallSettings< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - ListCertificateAuthoritiesPagedResponse> - listCertificateAuthoritiesSettings; - private final UnaryCallSettings - restoreCertificateAuthoritySettings; - private final OperationCallSettings< - RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - restoreCertificateAuthorityOperationSettings; - private final UnaryCallSettings - scheduleDeleteCertificateAuthoritySettings; - private final OperationCallSettings< - ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - scheduleDeleteCertificateAuthorityOperationSettings; - private final UnaryCallSettings - updateCertificateAuthoritySettings; - private final OperationCallSettings< - UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - updateCertificateAuthorityOperationSettings; - private final UnaryCallSettings - createCertificateRevocationListSettings; - private final OperationCallSettings< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings; - private final UnaryCallSettings - getCertificateRevocationListSettings; - private final PagedCallSettings< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - ListCertificateRevocationListsPagedResponse> - listCertificateRevocationListsSettings; - private final UnaryCallSettings - updateCertificateRevocationListSettings; - private final OperationCallSettings< - UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - updateCertificateRevocationListOperationSettings; - private final UnaryCallSettings - createReusableConfigSettings; - private final OperationCallSettings< - CreateReusableConfigRequest, ReusableConfig, OperationMetadata> - createReusableConfigOperationSettings; - private final UnaryCallSettings - deleteReusableConfigSettings; - private final OperationCallSettings - deleteReusableConfigOperationSettings; - private final UnaryCallSettings - getReusableConfigSettings; - private final PagedCallSettings< - ListReusableConfigsRequest, ListReusableConfigsResponse, ListReusableConfigsPagedResponse> - listReusableConfigsSettings; - private final UnaryCallSettings - updateReusableConfigSettings; - private final OperationCallSettings< - UpdateReusableConfigRequest, ReusableConfig, OperationMetadata> - updateReusableConfigOperationSettings; - - /** Returns the object with the settings used for calls to createCertificate. */ - public UnaryCallSettings createCertificateSettings() { - return createCertificateSettings; - } - - /** Returns the object with the settings used for calls to getCertificate. */ - public UnaryCallSettings getCertificateSettings() { - return getCertificateSettings; - } - - /** Returns the object with the settings used for calls to listCertificates. */ - public PagedCallSettings< - ListCertificatesRequest, ListCertificatesResponse, ListCertificatesPagedResponse> - listCertificatesSettings() { - return listCertificatesSettings; - } - - /** Returns the object with the settings used for calls to revokeCertificate. */ - public UnaryCallSettings revokeCertificateSettings() { - return revokeCertificateSettings; - } - - /** Returns the object with the settings used for calls to updateCertificate. */ - public UnaryCallSettings updateCertificateSettings() { - return updateCertificateSettings; - } - - /** Returns the object with the settings used for calls to activateCertificateAuthority. */ - public UnaryCallSettings - activateCertificateAuthoritySettings() { - return activateCertificateAuthoritySettings; - } - - /** Returns the object with the settings used for calls to activateCertificateAuthority. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - activateCertificateAuthorityOperationSettings() { - return activateCertificateAuthorityOperationSettings; - } - - /** Returns the object with the settings used for calls to createCertificateAuthority. */ - public UnaryCallSettings - createCertificateAuthoritySettings() { - return createCertificateAuthoritySettings; - } - - /** Returns the object with the settings used for calls to createCertificateAuthority. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - createCertificateAuthorityOperationSettings() { - return createCertificateAuthorityOperationSettings; - } - - /** Returns the object with the settings used for calls to disableCertificateAuthority. */ - public UnaryCallSettings - disableCertificateAuthoritySettings() { - return disableCertificateAuthoritySettings; - } - - /** Returns the object with the settings used for calls to disableCertificateAuthority. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - disableCertificateAuthorityOperationSettings() { - return disableCertificateAuthorityOperationSettings; - } - - /** Returns the object with the settings used for calls to enableCertificateAuthority. */ - public UnaryCallSettings - enableCertificateAuthoritySettings() { - return enableCertificateAuthoritySettings; - } - - /** Returns the object with the settings used for calls to enableCertificateAuthority. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - enableCertificateAuthorityOperationSettings() { - return enableCertificateAuthorityOperationSettings; - } - - /** Returns the object with the settings used for calls to fetchCertificateAuthorityCsr. */ - public UnaryCallSettings< - FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> - fetchCertificateAuthorityCsrSettings() { - return fetchCertificateAuthorityCsrSettings; - } - - /** Returns the object with the settings used for calls to getCertificateAuthority. */ - public UnaryCallSettings - getCertificateAuthoritySettings() { - return getCertificateAuthoritySettings; - } - - /** Returns the object with the settings used for calls to listCertificateAuthorities. */ - public PagedCallSettings< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - ListCertificateAuthoritiesPagedResponse> - listCertificateAuthoritiesSettings() { - return listCertificateAuthoritiesSettings; - } - - /** Returns the object with the settings used for calls to restoreCertificateAuthority. */ - public UnaryCallSettings - restoreCertificateAuthoritySettings() { - return restoreCertificateAuthoritySettings; - } - - /** Returns the object with the settings used for calls to restoreCertificateAuthority. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - restoreCertificateAuthorityOperationSettings() { - return restoreCertificateAuthorityOperationSettings; - } - - /** Returns the object with the settings used for calls to scheduleDeleteCertificateAuthority. */ - public UnaryCallSettings - scheduleDeleteCertificateAuthoritySettings() { - return scheduleDeleteCertificateAuthoritySettings; - } - - /** Returns the object with the settings used for calls to scheduleDeleteCertificateAuthority. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - scheduleDeleteCertificateAuthorityOperationSettings() { - return scheduleDeleteCertificateAuthorityOperationSettings; - } - - /** Returns the object with the settings used for calls to updateCertificateAuthority. */ - public UnaryCallSettings - updateCertificateAuthoritySettings() { - return updateCertificateAuthoritySettings; - } - - /** Returns the object with the settings used for calls to updateCertificateAuthority. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - updateCertificateAuthorityOperationSettings() { - return updateCertificateAuthorityOperationSettings; - } - - /** Returns the object with the settings used for calls to createCertificateRevocationList. */ - public UnaryCallSettings - createCertificateRevocationListSettings() { - return createCertificateRevocationListSettings; - } - - /** Returns the object with the settings used for calls to createCertificateRevocationList. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings() { - return createCertificateRevocationListOperationSettings; - } - - /** Returns the object with the settings used for calls to getCertificateRevocationList. */ - public UnaryCallSettings - getCertificateRevocationListSettings() { - return getCertificateRevocationListSettings; - } - - /** Returns the object with the settings used for calls to listCertificateRevocationLists. */ - public PagedCallSettings< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - ListCertificateRevocationListsPagedResponse> - listCertificateRevocationListsSettings() { - return listCertificateRevocationListsSettings; - } - - /** Returns the object with the settings used for calls to updateCertificateRevocationList. */ - public UnaryCallSettings - updateCertificateRevocationListSettings() { - return updateCertificateRevocationListSettings; - } - - /** Returns the object with the settings used for calls to updateCertificateRevocationList. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - updateCertificateRevocationListOperationSettings() { - return updateCertificateRevocationListOperationSettings; - } - - /** Returns the object with the settings used for calls to createReusableConfig. */ - public UnaryCallSettings createReusableConfigSettings() { - return createReusableConfigSettings; - } - - /** Returns the object with the settings used for calls to createReusableConfig. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - createReusableConfigOperationSettings() { - return createReusableConfigOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteReusableConfig. */ - public UnaryCallSettings deleteReusableConfigSettings() { - return deleteReusableConfigSettings; - } - - /** Returns the object with the settings used for calls to deleteReusableConfig. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - deleteReusableConfigOperationSettings() { - return deleteReusableConfigOperationSettings; - } - - /** Returns the object with the settings used for calls to getReusableConfig. */ - public UnaryCallSettings getReusableConfigSettings() { - return getReusableConfigSettings; - } - - /** Returns the object with the settings used for calls to listReusableConfigs. */ - public PagedCallSettings< - ListReusableConfigsRequest, ListReusableConfigsResponse, ListReusableConfigsPagedResponse> - listReusableConfigsSettings() { - return listReusableConfigsSettings; - } - - /** Returns the object with the settings used for calls to updateReusableConfig. */ - public UnaryCallSettings updateReusableConfigSettings() { - return updateReusableConfigSettings; - } - - /** Returns the object with the settings used for calls to updateReusableConfig. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - updateReusableConfigOperationSettings() { - return updateReusableConfigOperationSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public CertificateAuthorityServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcCertificateAuthorityServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); - } - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "privateca.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(CertificateAuthorityServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected CertificateAuthorityServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createCertificateSettings = settingsBuilder.createCertificateSettings().build(); - getCertificateSettings = settingsBuilder.getCertificateSettings().build(); - listCertificatesSettings = settingsBuilder.listCertificatesSettings().build(); - revokeCertificateSettings = settingsBuilder.revokeCertificateSettings().build(); - updateCertificateSettings = settingsBuilder.updateCertificateSettings().build(); - activateCertificateAuthoritySettings = - settingsBuilder.activateCertificateAuthoritySettings().build(); - activateCertificateAuthorityOperationSettings = - settingsBuilder.activateCertificateAuthorityOperationSettings().build(); - createCertificateAuthoritySettings = - settingsBuilder.createCertificateAuthoritySettings().build(); - createCertificateAuthorityOperationSettings = - settingsBuilder.createCertificateAuthorityOperationSettings().build(); - disableCertificateAuthoritySettings = - settingsBuilder.disableCertificateAuthoritySettings().build(); - disableCertificateAuthorityOperationSettings = - settingsBuilder.disableCertificateAuthorityOperationSettings().build(); - enableCertificateAuthoritySettings = - settingsBuilder.enableCertificateAuthoritySettings().build(); - enableCertificateAuthorityOperationSettings = - settingsBuilder.enableCertificateAuthorityOperationSettings().build(); - fetchCertificateAuthorityCsrSettings = - settingsBuilder.fetchCertificateAuthorityCsrSettings().build(); - getCertificateAuthoritySettings = settingsBuilder.getCertificateAuthoritySettings().build(); - listCertificateAuthoritiesSettings = - settingsBuilder.listCertificateAuthoritiesSettings().build(); - restoreCertificateAuthoritySettings = - settingsBuilder.restoreCertificateAuthoritySettings().build(); - restoreCertificateAuthorityOperationSettings = - settingsBuilder.restoreCertificateAuthorityOperationSettings().build(); - scheduleDeleteCertificateAuthoritySettings = - settingsBuilder.scheduleDeleteCertificateAuthoritySettings().build(); - scheduleDeleteCertificateAuthorityOperationSettings = - settingsBuilder.scheduleDeleteCertificateAuthorityOperationSettings().build(); - updateCertificateAuthoritySettings = - settingsBuilder.updateCertificateAuthoritySettings().build(); - updateCertificateAuthorityOperationSettings = - settingsBuilder.updateCertificateAuthorityOperationSettings().build(); - createCertificateRevocationListSettings = - settingsBuilder.createCertificateRevocationListSettings().build(); - createCertificateRevocationListOperationSettings = - settingsBuilder.createCertificateRevocationListOperationSettings().build(); - getCertificateRevocationListSettings = - settingsBuilder.getCertificateRevocationListSettings().build(); - listCertificateRevocationListsSettings = - settingsBuilder.listCertificateRevocationListsSettings().build(); - updateCertificateRevocationListSettings = - settingsBuilder.updateCertificateRevocationListSettings().build(); - updateCertificateRevocationListOperationSettings = - settingsBuilder.updateCertificateRevocationListOperationSettings().build(); - createReusableConfigSettings = settingsBuilder.createReusableConfigSettings().build(); - createReusableConfigOperationSettings = - settingsBuilder.createReusableConfigOperationSettings().build(); - deleteReusableConfigSettings = settingsBuilder.deleteReusableConfigSettings().build(); - deleteReusableConfigOperationSettings = - settingsBuilder.deleteReusableConfigOperationSettings().build(); - getReusableConfigSettings = settingsBuilder.getReusableConfigSettings().build(); - listReusableConfigsSettings = settingsBuilder.listReusableConfigsSettings().build(); - updateReusableConfigSettings = settingsBuilder.updateReusableConfigSettings().build(); - updateReusableConfigOperationSettings = - settingsBuilder.updateReusableConfigOperationSettings().build(); - } - - private static final PagedListDescriptor< - ListCertificatesRequest, ListCertificatesResponse, Certificate> - LIST_CERTIFICATES_PAGE_STR_DESC = - new PagedListDescriptor< - ListCertificatesRequest, ListCertificatesResponse, Certificate>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListCertificatesRequest injectToken( - ListCertificatesRequest payload, String token) { - return ListCertificatesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListCertificatesRequest injectPageSize( - ListCertificatesRequest payload, int pageSize) { - return ListCertificatesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListCertificatesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListCertificatesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListCertificatesResponse payload) { - return payload.getCertificatesList() != null - ? payload.getCertificatesList() - : ImmutableList.of(); - } - }; - - private static final PagedListDescriptor< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority> - LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_DESC = - new PagedListDescriptor< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListCertificateAuthoritiesRequest injectToken( - ListCertificateAuthoritiesRequest payload, String token) { - return ListCertificateAuthoritiesRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public ListCertificateAuthoritiesRequest injectPageSize( - ListCertificateAuthoritiesRequest payload, int pageSize) { - return ListCertificateAuthoritiesRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListCertificateAuthoritiesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListCertificateAuthoritiesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListCertificateAuthoritiesResponse payload) { - return payload.getCertificateAuthoritiesList() != null - ? payload.getCertificateAuthoritiesList() - : ImmutableList.of(); - } - }; - - private static final PagedListDescriptor< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList> - LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_DESC = - new PagedListDescriptor< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListCertificateRevocationListsRequest injectToken( - ListCertificateRevocationListsRequest payload, String token) { - return ListCertificateRevocationListsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public ListCertificateRevocationListsRequest injectPageSize( - ListCertificateRevocationListsRequest payload, int pageSize) { - return ListCertificateRevocationListsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListCertificateRevocationListsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListCertificateRevocationListsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListCertificateRevocationListsResponse payload) { - return payload.getCertificateRevocationListsList() != null - ? payload.getCertificateRevocationListsList() - : ImmutableList.of(); - } - }; - - private static final PagedListDescriptor< - ListReusableConfigsRequest, ListReusableConfigsResponse, ReusableConfig> - LIST_REUSABLE_CONFIGS_PAGE_STR_DESC = - new PagedListDescriptor< - ListReusableConfigsRequest, ListReusableConfigsResponse, ReusableConfig>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListReusableConfigsRequest injectToken( - ListReusableConfigsRequest payload, String token) { - return ListReusableConfigsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListReusableConfigsRequest injectPageSize( - ListReusableConfigsRequest payload, int pageSize) { - return ListReusableConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListReusableConfigsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListReusableConfigsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListReusableConfigsResponse payload) { - return payload.getReusableConfigsList() != null - ? payload.getReusableConfigsList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListCertificatesRequest, ListCertificatesResponse, ListCertificatesPagedResponse> - LIST_CERTIFICATES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListCertificatesRequest, ListCertificatesResponse, ListCertificatesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListCertificatesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_CERTIFICATES_PAGE_STR_DESC, request, context); - return ListCertificatesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - ListCertificateAuthoritiesPagedResponse> - LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - ListCertificateAuthoritiesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListCertificateAuthoritiesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority> - pageContext = - PageContext.create( - callable, LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_DESC, request, context); - return ListCertificateAuthoritiesPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - ListCertificateRevocationListsPagedResponse> - LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - ListCertificateRevocationListsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse> - callable, - ListCertificateRevocationListsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList> - pageContext = - PageContext.create( - callable, - LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_DESC, - request, - context); - return ListCertificateRevocationListsPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListReusableConfigsRequest, ListReusableConfigsResponse, ListReusableConfigsPagedResponse> - LIST_REUSABLE_CONFIGS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListReusableConfigsRequest, - ListReusableConfigsResponse, - ListReusableConfigsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListReusableConfigsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_REUSABLE_CONFIGS_PAGE_STR_DESC, request, context); - return ListReusableConfigsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Builder for CertificateAuthorityServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - - private final UnaryCallSettings.Builder - createCertificateSettings; - private final UnaryCallSettings.Builder - getCertificateSettings; - private final PagedCallSettings.Builder< - ListCertificatesRequest, ListCertificatesResponse, ListCertificatesPagedResponse> - listCertificatesSettings; - private final UnaryCallSettings.Builder - revokeCertificateSettings; - private final UnaryCallSettings.Builder - updateCertificateSettings; - private final UnaryCallSettings.Builder - activateCertificateAuthoritySettings; - private final OperationCallSettings.Builder< - ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - activateCertificateAuthorityOperationSettings; - private final UnaryCallSettings.Builder - createCertificateAuthoritySettings; - private final OperationCallSettings.Builder< - CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - createCertificateAuthorityOperationSettings; - private final UnaryCallSettings.Builder - disableCertificateAuthoritySettings; - private final OperationCallSettings.Builder< - DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - disableCertificateAuthorityOperationSettings; - private final UnaryCallSettings.Builder - enableCertificateAuthoritySettings; - private final OperationCallSettings.Builder< - EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - enableCertificateAuthorityOperationSettings; - private final UnaryCallSettings.Builder< - FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> - fetchCertificateAuthorityCsrSettings; - private final UnaryCallSettings.Builder - getCertificateAuthoritySettings; - private final PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - ListCertificateAuthoritiesPagedResponse> - listCertificateAuthoritiesSettings; - private final UnaryCallSettings.Builder - restoreCertificateAuthoritySettings; - private final OperationCallSettings.Builder< - RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - restoreCertificateAuthorityOperationSettings; - private final UnaryCallSettings.Builder - scheduleDeleteCertificateAuthoritySettings; - private final OperationCallSettings.Builder< - ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - scheduleDeleteCertificateAuthorityOperationSettings; - private final UnaryCallSettings.Builder - updateCertificateAuthoritySettings; - private final OperationCallSettings.Builder< - UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - updateCertificateAuthorityOperationSettings; - private final UnaryCallSettings.Builder - createCertificateRevocationListSettings; - private final OperationCallSettings.Builder< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings; - private final UnaryCallSettings.Builder< - GetCertificateRevocationListRequest, CertificateRevocationList> - getCertificateRevocationListSettings; - private final PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - ListCertificateRevocationListsPagedResponse> - listCertificateRevocationListsSettings; - private final UnaryCallSettings.Builder - updateCertificateRevocationListSettings; - private final OperationCallSettings.Builder< - UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - updateCertificateRevocationListOperationSettings; - private final UnaryCallSettings.Builder - createReusableConfigSettings; - private final OperationCallSettings.Builder< - CreateReusableConfigRequest, ReusableConfig, OperationMetadata> - createReusableConfigOperationSettings; - private final UnaryCallSettings.Builder - deleteReusableConfigSettings; - private final OperationCallSettings.Builder< - DeleteReusableConfigRequest, Empty, OperationMetadata> - deleteReusableConfigOperationSettings; - private final UnaryCallSettings.Builder - getReusableConfigSettings; - private final PagedCallSettings.Builder< - ListReusableConfigsRequest, - ListReusableConfigsResponse, - ListReusableConfigsPagedResponse> - listReusableConfigsSettings; - private final UnaryCallSettings.Builder - updateReusableConfigSettings; - private final OperationCallSettings.Builder< - UpdateReusableConfigRequest, ReusableConfig, OperationMetadata> - updateReusableConfigOperationSettings; - - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.UNKNOWN, - StatusCode.Code.UNAVAILABLE, - StatusCode.Code.DEADLINE_EXCEEDED))); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - createCertificateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - getCertificateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - listCertificatesSettings = PagedCallSettings.newBuilder(LIST_CERTIFICATES_PAGE_STR_FACT); - - revokeCertificateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - updateCertificateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - activateCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - activateCertificateAuthorityOperationSettings = OperationCallSettings.newBuilder(); - - createCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createCertificateAuthorityOperationSettings = OperationCallSettings.newBuilder(); - - disableCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - disableCertificateAuthorityOperationSettings = OperationCallSettings.newBuilder(); - - enableCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - enableCertificateAuthorityOperationSettings = OperationCallSettings.newBuilder(); - - fetchCertificateAuthorityCsrSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - getCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - listCertificateAuthoritiesSettings = - PagedCallSettings.newBuilder(LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_FACT); - - restoreCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - restoreCertificateAuthorityOperationSettings = OperationCallSettings.newBuilder(); - - scheduleDeleteCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - scheduleDeleteCertificateAuthorityOperationSettings = OperationCallSettings.newBuilder(); - - updateCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - updateCertificateAuthorityOperationSettings = OperationCallSettings.newBuilder(); - - createCertificateRevocationListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createCertificateRevocationListOperationSettings = OperationCallSettings.newBuilder(); - - getCertificateRevocationListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - listCertificateRevocationListsSettings = - PagedCallSettings.newBuilder(LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_FACT); - - updateCertificateRevocationListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - updateCertificateRevocationListOperationSettings = OperationCallSettings.newBuilder(); - - createReusableConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createReusableConfigOperationSettings = OperationCallSettings.newBuilder(); - - deleteReusableConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - deleteReusableConfigOperationSettings = OperationCallSettings.newBuilder(); - - getReusableConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - listReusableConfigsSettings = - PagedCallSettings.newBuilder(LIST_REUSABLE_CONFIGS_PAGE_STR_FACT); - - updateReusableConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - updateReusableConfigOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createCertificateSettings, - getCertificateSettings, - listCertificatesSettings, - revokeCertificateSettings, - updateCertificateSettings, - activateCertificateAuthoritySettings, - createCertificateAuthoritySettings, - disableCertificateAuthoritySettings, - enableCertificateAuthoritySettings, - fetchCertificateAuthorityCsrSettings, - getCertificateAuthoritySettings, - listCertificateAuthoritiesSettings, - restoreCertificateAuthoritySettings, - scheduleDeleteCertificateAuthoritySettings, - updateCertificateAuthoritySettings, - createCertificateRevocationListSettings, - getCertificateRevocationListSettings, - listCertificateRevocationListsSettings, - updateCertificateRevocationListSettings, - createReusableConfigSettings, - deleteReusableConfigSettings, - getReusableConfigSettings, - listReusableConfigsSettings, - updateReusableConfigSettings); - - initDefaults(this); - } - - private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - - builder - .createCertificateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .getCertificateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listCertificatesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .revokeCertificateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .updateCertificateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .activateCertificateAuthoritySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .createCertificateAuthoritySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .disableCertificateAuthoritySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .enableCertificateAuthoritySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .fetchCertificateAuthorityCsrSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .getCertificateAuthoritySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listCertificateAuthoritiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .restoreCertificateAuthoritySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .scheduleDeleteCertificateAuthoritySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .updateCertificateAuthoritySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .createCertificateRevocationListSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .getCertificateRevocationListSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listCertificateRevocationListsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .updateCertificateRevocationListSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .createReusableConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .deleteReusableConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .getReusableConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listReusableConfigsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .updateReusableConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - builder - .activateCertificateAuthorityOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(CertificateAuthority.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .createCertificateAuthorityOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(CertificateAuthority.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .disableCertificateAuthorityOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(CertificateAuthority.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .enableCertificateAuthorityOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(CertificateAuthority.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .restoreCertificateAuthorityOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(CertificateAuthority.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .scheduleDeleteCertificateAuthorityOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(CertificateAuthority.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .updateCertificateAuthorityOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(CertificateAuthority.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .createCertificateRevocationListOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create( - CertificateRevocationList.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .updateCertificateRevocationListOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create( - CertificateRevocationList.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .createReusableConfigOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ReusableConfig.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .deleteReusableConfigOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .updateReusableConfigOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ReusableConfig.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - protected Builder(CertificateAuthorityServiceStubSettings settings) { - super(settings); - - createCertificateSettings = settings.createCertificateSettings.toBuilder(); - getCertificateSettings = settings.getCertificateSettings.toBuilder(); - listCertificatesSettings = settings.listCertificatesSettings.toBuilder(); - revokeCertificateSettings = settings.revokeCertificateSettings.toBuilder(); - updateCertificateSettings = settings.updateCertificateSettings.toBuilder(); - activateCertificateAuthoritySettings = - settings.activateCertificateAuthoritySettings.toBuilder(); - activateCertificateAuthorityOperationSettings = - settings.activateCertificateAuthorityOperationSettings.toBuilder(); - createCertificateAuthoritySettings = settings.createCertificateAuthoritySettings.toBuilder(); - createCertificateAuthorityOperationSettings = - settings.createCertificateAuthorityOperationSettings.toBuilder(); - disableCertificateAuthoritySettings = - settings.disableCertificateAuthoritySettings.toBuilder(); - disableCertificateAuthorityOperationSettings = - settings.disableCertificateAuthorityOperationSettings.toBuilder(); - enableCertificateAuthoritySettings = settings.enableCertificateAuthoritySettings.toBuilder(); - enableCertificateAuthorityOperationSettings = - settings.enableCertificateAuthorityOperationSettings.toBuilder(); - fetchCertificateAuthorityCsrSettings = - settings.fetchCertificateAuthorityCsrSettings.toBuilder(); - getCertificateAuthoritySettings = settings.getCertificateAuthoritySettings.toBuilder(); - listCertificateAuthoritiesSettings = settings.listCertificateAuthoritiesSettings.toBuilder(); - restoreCertificateAuthoritySettings = - settings.restoreCertificateAuthoritySettings.toBuilder(); - restoreCertificateAuthorityOperationSettings = - settings.restoreCertificateAuthorityOperationSettings.toBuilder(); - scheduleDeleteCertificateAuthoritySettings = - settings.scheduleDeleteCertificateAuthoritySettings.toBuilder(); - scheduleDeleteCertificateAuthorityOperationSettings = - settings.scheduleDeleteCertificateAuthorityOperationSettings.toBuilder(); - updateCertificateAuthoritySettings = settings.updateCertificateAuthoritySettings.toBuilder(); - updateCertificateAuthorityOperationSettings = - settings.updateCertificateAuthorityOperationSettings.toBuilder(); - createCertificateRevocationListSettings = - settings.createCertificateRevocationListSettings.toBuilder(); - createCertificateRevocationListOperationSettings = - settings.createCertificateRevocationListOperationSettings.toBuilder(); - getCertificateRevocationListSettings = - settings.getCertificateRevocationListSettings.toBuilder(); - listCertificateRevocationListsSettings = - settings.listCertificateRevocationListsSettings.toBuilder(); - updateCertificateRevocationListSettings = - settings.updateCertificateRevocationListSettings.toBuilder(); - updateCertificateRevocationListOperationSettings = - settings.updateCertificateRevocationListOperationSettings.toBuilder(); - createReusableConfigSettings = settings.createReusableConfigSettings.toBuilder(); - createReusableConfigOperationSettings = - settings.createReusableConfigOperationSettings.toBuilder(); - deleteReusableConfigSettings = settings.deleteReusableConfigSettings.toBuilder(); - deleteReusableConfigOperationSettings = - settings.deleteReusableConfigOperationSettings.toBuilder(); - getReusableConfigSettings = settings.getReusableConfigSettings.toBuilder(); - listReusableConfigsSettings = settings.listReusableConfigsSettings.toBuilder(); - updateReusableConfigSettings = settings.updateReusableConfigSettings.toBuilder(); - updateReusableConfigOperationSettings = - settings.updateReusableConfigOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createCertificateSettings, - getCertificateSettings, - listCertificatesSettings, - revokeCertificateSettings, - updateCertificateSettings, - activateCertificateAuthoritySettings, - createCertificateAuthoritySettings, - disableCertificateAuthoritySettings, - enableCertificateAuthoritySettings, - fetchCertificateAuthorityCsrSettings, - getCertificateAuthoritySettings, - listCertificateAuthoritiesSettings, - restoreCertificateAuthoritySettings, - scheduleDeleteCertificateAuthoritySettings, - updateCertificateAuthoritySettings, - createCertificateRevocationListSettings, - getCertificateRevocationListSettings, - listCertificateRevocationListsSettings, - updateCertificateRevocationListSettings, - createReusableConfigSettings, - deleteReusableConfigSettings, - getReusableConfigSettings, - listReusableConfigsSettings, - updateReusableConfigSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to createCertificate. */ - public UnaryCallSettings.Builder - createCertificateSettings() { - return createCertificateSettings; - } - - /** Returns the builder for the settings used for calls to getCertificate. */ - public UnaryCallSettings.Builder getCertificateSettings() { - return getCertificateSettings; - } - - /** Returns the builder for the settings used for calls to listCertificates. */ - public PagedCallSettings.Builder< - ListCertificatesRequest, ListCertificatesResponse, ListCertificatesPagedResponse> - listCertificatesSettings() { - return listCertificatesSettings; - } - - /** Returns the builder for the settings used for calls to revokeCertificate. */ - public UnaryCallSettings.Builder - revokeCertificateSettings() { - return revokeCertificateSettings; - } - - /** Returns the builder for the settings used for calls to updateCertificate. */ - public UnaryCallSettings.Builder - updateCertificateSettings() { - return updateCertificateSettings; - } - - /** Returns the builder for the settings used for calls to activateCertificateAuthority. */ - public UnaryCallSettings.Builder - activateCertificateAuthoritySettings() { - return activateCertificateAuthoritySettings; - } - - /** Returns the builder for the settings used for calls to activateCertificateAuthority. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - activateCertificateAuthorityOperationSettings() { - return activateCertificateAuthorityOperationSettings; - } - - /** Returns the builder for the settings used for calls to createCertificateAuthority. */ - public UnaryCallSettings.Builder - createCertificateAuthoritySettings() { - return createCertificateAuthoritySettings; - } - - /** Returns the builder for the settings used for calls to createCertificateAuthority. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - createCertificateAuthorityOperationSettings() { - return createCertificateAuthorityOperationSettings; - } - - /** Returns the builder for the settings used for calls to disableCertificateAuthority. */ - public UnaryCallSettings.Builder - disableCertificateAuthoritySettings() { - return disableCertificateAuthoritySettings; - } - - /** Returns the builder for the settings used for calls to disableCertificateAuthority. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - disableCertificateAuthorityOperationSettings() { - return disableCertificateAuthorityOperationSettings; - } - - /** Returns the builder for the settings used for calls to enableCertificateAuthority. */ - public UnaryCallSettings.Builder - enableCertificateAuthoritySettings() { - return enableCertificateAuthoritySettings; - } - - /** Returns the builder for the settings used for calls to enableCertificateAuthority. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - enableCertificateAuthorityOperationSettings() { - return enableCertificateAuthorityOperationSettings; - } - - /** Returns the builder for the settings used for calls to fetchCertificateAuthorityCsr. */ - public UnaryCallSettings.Builder< - FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> - fetchCertificateAuthorityCsrSettings() { - return fetchCertificateAuthorityCsrSettings; - } - - /** Returns the builder for the settings used for calls to getCertificateAuthority. */ - public UnaryCallSettings.Builder - getCertificateAuthoritySettings() { - return getCertificateAuthoritySettings; - } - - /** Returns the builder for the settings used for calls to listCertificateAuthorities. */ - public PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - ListCertificateAuthoritiesPagedResponse> - listCertificateAuthoritiesSettings() { - return listCertificateAuthoritiesSettings; - } - - /** Returns the builder for the settings used for calls to restoreCertificateAuthority. */ - public UnaryCallSettings.Builder - restoreCertificateAuthoritySettings() { - return restoreCertificateAuthoritySettings; - } - - /** Returns the builder for the settings used for calls to restoreCertificateAuthority. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - restoreCertificateAuthorityOperationSettings() { - return restoreCertificateAuthorityOperationSettings; - } - - /** - * Returns the builder for the settings used for calls to scheduleDeleteCertificateAuthority. - */ - public UnaryCallSettings.Builder - scheduleDeleteCertificateAuthoritySettings() { - return scheduleDeleteCertificateAuthoritySettings; - } - - /** - * Returns the builder for the settings used for calls to scheduleDeleteCertificateAuthority. - */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - scheduleDeleteCertificateAuthorityOperationSettings() { - return scheduleDeleteCertificateAuthorityOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateCertificateAuthority. */ - public UnaryCallSettings.Builder - updateCertificateAuthoritySettings() { - return updateCertificateAuthoritySettings; - } - - /** Returns the builder for the settings used for calls to updateCertificateAuthority. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - updateCertificateAuthorityOperationSettings() { - return updateCertificateAuthorityOperationSettings; - } - - /** Returns the builder for the settings used for calls to createCertificateRevocationList. */ - public UnaryCallSettings.Builder - createCertificateRevocationListSettings() { - return createCertificateRevocationListSettings; - } - - /** Returns the builder for the settings used for calls to createCertificateRevocationList. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationSettings() { - return createCertificateRevocationListOperationSettings; - } - - /** Returns the builder for the settings used for calls to getCertificateRevocationList. */ - public UnaryCallSettings.Builder - getCertificateRevocationListSettings() { - return getCertificateRevocationListSettings; - } - - /** Returns the builder for the settings used for calls to listCertificateRevocationLists. */ - public PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - ListCertificateRevocationListsPagedResponse> - listCertificateRevocationListsSettings() { - return listCertificateRevocationListsSettings; - } - - /** Returns the builder for the settings used for calls to updateCertificateRevocationList. */ - public UnaryCallSettings.Builder - updateCertificateRevocationListSettings() { - return updateCertificateRevocationListSettings; - } - - /** Returns the builder for the settings used for calls to updateCertificateRevocationList. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - updateCertificateRevocationListOperationSettings() { - return updateCertificateRevocationListOperationSettings; - } - - /** Returns the builder for the settings used for calls to createReusableConfig. */ - public UnaryCallSettings.Builder - createReusableConfigSettings() { - return createReusableConfigSettings; - } - - /** Returns the builder for the settings used for calls to createReusableConfig. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateReusableConfigRequest, ReusableConfig, OperationMetadata> - createReusableConfigOperationSettings() { - return createReusableConfigOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteReusableConfig. */ - public UnaryCallSettings.Builder - deleteReusableConfigSettings() { - return deleteReusableConfigSettings; - } - - /** Returns the builder for the settings used for calls to deleteReusableConfig. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteReusableConfigOperationSettings() { - return deleteReusableConfigOperationSettings; - } - - /** Returns the builder for the settings used for calls to getReusableConfig. */ - public UnaryCallSettings.Builder - getReusableConfigSettings() { - return getReusableConfigSettings; - } - - /** Returns the builder for the settings used for calls to listReusableConfigs. */ - public PagedCallSettings.Builder< - ListReusableConfigsRequest, - ListReusableConfigsResponse, - ListReusableConfigsPagedResponse> - listReusableConfigsSettings() { - return listReusableConfigsSettings; - } - - /** Returns the builder for the settings used for calls to updateReusableConfig. */ - public UnaryCallSettings.Builder - updateReusableConfigSettings() { - return updateReusableConfigSettings; - } - - /** Returns the builder for the settings used for calls to updateReusableConfig. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateReusableConfigRequest, ReusableConfig, OperationMetadata> - updateReusableConfigOperationSettings() { - return updateReusableConfigOperationSettings; - } - - @Override - public CertificateAuthorityServiceStubSettings build() throws IOException { - return new CertificateAuthorityServiceStubSettings(this); - } - } -} diff --git a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java b/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java deleted file mode 100644 index 7d944cd4..00000000 --- a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.security.privateca.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC callable factory implementation for Certificate Authority API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class GrpcCertificateAuthorityServiceCallableFactory implements GrpcStubCallableFactory { - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } -} diff --git a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java b/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java deleted file mode 100644 index 3ba3a939..00000000 --- a/google-cloud-security-privateca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java +++ /dev/null @@ -1,1297 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.security.privateca.v1beta1.stub; - -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateRevocationListsPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificatesPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListReusableConfigsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.Certificate; -import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; -import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest; -import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse; -import com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.GetCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse; -import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse; -import com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest; -import com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse; -import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest; -import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse; -import com.google.cloud.security.privateca.v1beta1.OperationMetadata; -import com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.ReusableConfig; -import com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest; -import com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC stub implementation for Certificate Authority API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public class GrpcCertificateAuthorityServiceStub extends CertificateAuthorityServiceStub { - - private static final MethodDescriptor - createCertificateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/CreateCertificate") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Certificate.getDefaultInstance())) - .build(); - private static final MethodDescriptor - getCertificateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/GetCertificate") - .setRequestMarshaller( - ProtoUtils.marshaller(GetCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Certificate.getDefaultInstance())) - .build(); - private static final MethodDescriptor - listCertificatesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ListCertificates") - .setRequestMarshaller( - ProtoUtils.marshaller(ListCertificatesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListCertificatesResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor - revokeCertificateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/RevokeCertificate") - .setRequestMarshaller( - ProtoUtils.marshaller(RevokeCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Certificate.getDefaultInstance())) - .build(); - private static final MethodDescriptor - updateCertificateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/UpdateCertificate") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Certificate.getDefaultInstance())) - .build(); - private static final MethodDescriptor - activateCertificateAuthorityMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ActivateCertificateAuthority") - .setRequestMarshaller( - ProtoUtils.marshaller(ActivateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - createCertificateAuthorityMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/CreateCertificateAuthority") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - disableCertificateAuthorityMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/DisableCertificateAuthority") - .setRequestMarshaller( - ProtoUtils.marshaller(DisableCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - enableCertificateAuthorityMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/EnableCertificateAuthority") - .setRequestMarshaller( - ProtoUtils.marshaller(EnableCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor< - FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> - fetchCertificateAuthorityCsrMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/FetchCertificateAuthorityCsr") - .setRequestMarshaller( - ProtoUtils.marshaller(FetchCertificateAuthorityCsrRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(FetchCertificateAuthorityCsrResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor - getCertificateAuthorityMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/GetCertificateAuthority") - .setRequestMarshaller( - ProtoUtils.marshaller(GetCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(CertificateAuthority.getDefaultInstance())) - .build(); - private static final MethodDescriptor< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse> - listCertificateAuthoritiesMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ListCertificateAuthorities") - .setRequestMarshaller( - ProtoUtils.marshaller(ListCertificateAuthoritiesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListCertificateAuthoritiesResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor - restoreCertificateAuthorityMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/RestoreCertificateAuthority") - .setRequestMarshaller( - ProtoUtils.marshaller(RestoreCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - scheduleDeleteCertificateAuthorityMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ScheduleDeleteCertificateAuthority") - .setRequestMarshaller( - ProtoUtils.marshaller( - ScheduleDeleteCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - updateCertificateAuthorityMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/UpdateCertificateAuthority") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - createCertificateRevocationListMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/CreateCertificateRevocationList") - .setRequestMarshaller( - ProtoUtils.marshaller( - CreateCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor< - GetCertificateRevocationListRequest, CertificateRevocationList> - getCertificateRevocationListMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/GetCertificateRevocationList") - .setRequestMarshaller( - ProtoUtils.marshaller(GetCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(CertificateRevocationList.getDefaultInstance())) - .build(); - private static final MethodDescriptor< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> - listCertificateRevocationListsMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ListCertificateRevocationLists") - .setRequestMarshaller( - ProtoUtils.marshaller(ListCertificateRevocationListsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - ListCertificateRevocationListsResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor - updateCertificateRevocationListMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/UpdateCertificateRevocationList") - .setRequestMarshaller( - ProtoUtils.marshaller( - UpdateCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - createReusableConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/CreateReusableConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateReusableConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - deleteReusableConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/DeleteReusableConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteReusableConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - getReusableConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/GetReusableConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(GetReusableConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ReusableConfig.getDefaultInstance())) - .build(); - private static final MethodDescriptor - listReusableConfigsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ListReusableConfigs") - .setRequestMarshaller( - ProtoUtils.marshaller(ListReusableConfigsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListReusableConfigsResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor - updateReusableConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/UpdateReusableConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateReusableConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - - private final UnaryCallable createCertificateCallable; - private final UnaryCallable getCertificateCallable; - private final UnaryCallable - listCertificatesCallable; - private final UnaryCallable - listCertificatesPagedCallable; - private final UnaryCallable revokeCertificateCallable; - private final UnaryCallable updateCertificateCallable; - private final UnaryCallable - activateCertificateAuthorityCallable; - private final OperationCallable< - ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - activateCertificateAuthorityOperationCallable; - private final UnaryCallable - createCertificateAuthorityCallable; - private final OperationCallable< - CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - createCertificateAuthorityOperationCallable; - private final UnaryCallable - disableCertificateAuthorityCallable; - private final OperationCallable< - DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - disableCertificateAuthorityOperationCallable; - private final UnaryCallable - enableCertificateAuthorityCallable; - private final OperationCallable< - EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - enableCertificateAuthorityOperationCallable; - private final UnaryCallable< - FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> - fetchCertificateAuthorityCsrCallable; - private final UnaryCallable - getCertificateAuthorityCallable; - private final UnaryCallable - listCertificateAuthoritiesCallable; - private final UnaryCallable< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesPagedResponse> - listCertificateAuthoritiesPagedCallable; - private final UnaryCallable - restoreCertificateAuthorityCallable; - private final OperationCallable< - RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - restoreCertificateAuthorityOperationCallable; - private final UnaryCallable - scheduleDeleteCertificateAuthorityCallable; - private final OperationCallable< - ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - scheduleDeleteCertificateAuthorityOperationCallable; - private final UnaryCallable - updateCertificateAuthorityCallable; - private final OperationCallable< - UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - updateCertificateAuthorityOperationCallable; - private final UnaryCallable - createCertificateRevocationListCallable; - private final OperationCallable< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationCallable; - private final UnaryCallable - getCertificateRevocationListCallable; - private final UnaryCallable< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> - listCertificateRevocationListsCallable; - private final UnaryCallable< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsPagedResponse> - listCertificateRevocationListsPagedCallable; - private final UnaryCallable - updateCertificateRevocationListCallable; - private final OperationCallable< - UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - updateCertificateRevocationListOperationCallable; - private final UnaryCallable createReusableConfigCallable; - private final OperationCallable - createReusableConfigOperationCallable; - private final UnaryCallable deleteReusableConfigCallable; - private final OperationCallable - deleteReusableConfigOperationCallable; - private final UnaryCallable getReusableConfigCallable; - private final UnaryCallable - listReusableConfigsCallable; - private final UnaryCallable - listReusableConfigsPagedCallable; - private final UnaryCallable updateReusableConfigCallable; - private final OperationCallable - updateReusableConfigOperationCallable; - - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcCertificateAuthorityServiceStub create( - CertificateAuthorityServiceStubSettings settings) throws IOException { - return new GrpcCertificateAuthorityServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcCertificateAuthorityServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcCertificateAuthorityServiceStub( - CertificateAuthorityServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcCertificateAuthorityServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcCertificateAuthorityServiceStub( - CertificateAuthorityServiceStubSettings.newBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of GrpcCertificateAuthorityServiceStub, using the given settings. This - * is protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcCertificateAuthorityServiceStub( - CertificateAuthorityServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcCertificateAuthorityServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcCertificateAuthorityServiceStub, using the given settings. This - * is protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcCertificateAuthorityServiceStub( - CertificateAuthorityServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings createCertificateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCertificateMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateCertificateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings getCertificateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCertificateMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetCertificateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - listCertificatesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listCertificatesMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListCertificatesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings revokeCertificateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(revokeCertificateMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(RevokeCertificateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings updateCertificateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCertificateMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateCertificateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "certificate.name", String.valueOf(request.getCertificate().getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - activateCertificateAuthorityTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(activateCertificateAuthorityMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - ActivateCertificateAuthorityRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - createCertificateAuthorityTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCertificateAuthorityMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CreateCertificateAuthorityRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - disableCertificateAuthorityTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(disableCertificateAuthorityMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - DisableCertificateAuthorityRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - enableCertificateAuthorityTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(enableCertificateAuthorityMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - EnableCertificateAuthorityRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - fetchCertificateAuthorityCsrTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(fetchCertificateAuthorityCsrMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - FetchCertificateAuthorityCsrRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - getCertificateAuthorityTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCertificateAuthorityMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetCertificateAuthorityRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - listCertificateAuthoritiesTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listCertificateAuthoritiesMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - ListCertificateAuthoritiesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - restoreCertificateAuthorityTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(restoreCertificateAuthorityMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - RestoreCertificateAuthorityRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - scheduleDeleteCertificateAuthorityTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(scheduleDeleteCertificateAuthorityMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - ScheduleDeleteCertificateAuthorityRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - updateCertificateAuthorityTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCertificateAuthorityMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - UpdateCertificateAuthorityRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "certificate_authority.name", - String.valueOf(request.getCertificateAuthority().getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - createCertificateRevocationListTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCertificateRevocationListMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CreateCertificateRevocationListRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - getCertificateRevocationListTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getCertificateRevocationListMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - GetCertificateRevocationListRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - listCertificateRevocationListsTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listCertificateRevocationListsMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - ListCertificateRevocationListsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - updateCertificateRevocationListTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCertificateRevocationListMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - UpdateCertificateRevocationListRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "certificate_revocation_list.name", - String.valueOf(request.getCertificateRevocationList().getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings createReusableConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createReusableConfigMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateReusableConfigRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings deleteReusableConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteReusableConfigMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteReusableConfigRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings getReusableConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getReusableConfigMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetReusableConfigRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - listReusableConfigsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listReusableConfigsMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListReusableConfigsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings updateReusableConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateReusableConfigMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateReusableConfigRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "reusable_config.name", - String.valueOf(request.getReusableConfig().getName())); - return params.build(); - } - }) - .build(); - - this.createCertificateCallable = - callableFactory.createUnaryCallable( - createCertificateTransportSettings, - settings.createCertificateSettings(), - clientContext); - this.getCertificateCallable = - callableFactory.createUnaryCallable( - getCertificateTransportSettings, settings.getCertificateSettings(), clientContext); - this.listCertificatesCallable = - callableFactory.createUnaryCallable( - listCertificatesTransportSettings, settings.listCertificatesSettings(), clientContext); - this.listCertificatesPagedCallable = - callableFactory.createPagedCallable( - listCertificatesTransportSettings, settings.listCertificatesSettings(), clientContext); - this.revokeCertificateCallable = - callableFactory.createUnaryCallable( - revokeCertificateTransportSettings, - settings.revokeCertificateSettings(), - clientContext); - this.updateCertificateCallable = - callableFactory.createUnaryCallable( - updateCertificateTransportSettings, - settings.updateCertificateSettings(), - clientContext); - this.activateCertificateAuthorityCallable = - callableFactory.createUnaryCallable( - activateCertificateAuthorityTransportSettings, - settings.activateCertificateAuthoritySettings(), - clientContext); - this.activateCertificateAuthorityOperationCallable = - callableFactory.createOperationCallable( - activateCertificateAuthorityTransportSettings, - settings.activateCertificateAuthorityOperationSettings(), - clientContext, - this.operationsStub); - this.createCertificateAuthorityCallable = - callableFactory.createUnaryCallable( - createCertificateAuthorityTransportSettings, - settings.createCertificateAuthoritySettings(), - clientContext); - this.createCertificateAuthorityOperationCallable = - callableFactory.createOperationCallable( - createCertificateAuthorityTransportSettings, - settings.createCertificateAuthorityOperationSettings(), - clientContext, - this.operationsStub); - this.disableCertificateAuthorityCallable = - callableFactory.createUnaryCallable( - disableCertificateAuthorityTransportSettings, - settings.disableCertificateAuthoritySettings(), - clientContext); - this.disableCertificateAuthorityOperationCallable = - callableFactory.createOperationCallable( - disableCertificateAuthorityTransportSettings, - settings.disableCertificateAuthorityOperationSettings(), - clientContext, - this.operationsStub); - this.enableCertificateAuthorityCallable = - callableFactory.createUnaryCallable( - enableCertificateAuthorityTransportSettings, - settings.enableCertificateAuthoritySettings(), - clientContext); - this.enableCertificateAuthorityOperationCallable = - callableFactory.createOperationCallable( - enableCertificateAuthorityTransportSettings, - settings.enableCertificateAuthorityOperationSettings(), - clientContext, - this.operationsStub); - this.fetchCertificateAuthorityCsrCallable = - callableFactory.createUnaryCallable( - fetchCertificateAuthorityCsrTransportSettings, - settings.fetchCertificateAuthorityCsrSettings(), - clientContext); - this.getCertificateAuthorityCallable = - callableFactory.createUnaryCallable( - getCertificateAuthorityTransportSettings, - settings.getCertificateAuthoritySettings(), - clientContext); - this.listCertificateAuthoritiesCallable = - callableFactory.createUnaryCallable( - listCertificateAuthoritiesTransportSettings, - settings.listCertificateAuthoritiesSettings(), - clientContext); - this.listCertificateAuthoritiesPagedCallable = - callableFactory.createPagedCallable( - listCertificateAuthoritiesTransportSettings, - settings.listCertificateAuthoritiesSettings(), - clientContext); - this.restoreCertificateAuthorityCallable = - callableFactory.createUnaryCallable( - restoreCertificateAuthorityTransportSettings, - settings.restoreCertificateAuthoritySettings(), - clientContext); - this.restoreCertificateAuthorityOperationCallable = - callableFactory.createOperationCallable( - restoreCertificateAuthorityTransportSettings, - settings.restoreCertificateAuthorityOperationSettings(), - clientContext, - this.operationsStub); - this.scheduleDeleteCertificateAuthorityCallable = - callableFactory.createUnaryCallable( - scheduleDeleteCertificateAuthorityTransportSettings, - settings.scheduleDeleteCertificateAuthoritySettings(), - clientContext); - this.scheduleDeleteCertificateAuthorityOperationCallable = - callableFactory.createOperationCallable( - scheduleDeleteCertificateAuthorityTransportSettings, - settings.scheduleDeleteCertificateAuthorityOperationSettings(), - clientContext, - this.operationsStub); - this.updateCertificateAuthorityCallable = - callableFactory.createUnaryCallable( - updateCertificateAuthorityTransportSettings, - settings.updateCertificateAuthoritySettings(), - clientContext); - this.updateCertificateAuthorityOperationCallable = - callableFactory.createOperationCallable( - updateCertificateAuthorityTransportSettings, - settings.updateCertificateAuthorityOperationSettings(), - clientContext, - this.operationsStub); - this.createCertificateRevocationListCallable = - callableFactory.createUnaryCallable( - createCertificateRevocationListTransportSettings, - settings.createCertificateRevocationListSettings(), - clientContext); - this.createCertificateRevocationListOperationCallable = - callableFactory.createOperationCallable( - createCertificateRevocationListTransportSettings, - settings.createCertificateRevocationListOperationSettings(), - clientContext, - this.operationsStub); - this.getCertificateRevocationListCallable = - callableFactory.createUnaryCallable( - getCertificateRevocationListTransportSettings, - settings.getCertificateRevocationListSettings(), - clientContext); - this.listCertificateRevocationListsCallable = - callableFactory.createUnaryCallable( - listCertificateRevocationListsTransportSettings, - settings.listCertificateRevocationListsSettings(), - clientContext); - this.listCertificateRevocationListsPagedCallable = - callableFactory.createPagedCallable( - listCertificateRevocationListsTransportSettings, - settings.listCertificateRevocationListsSettings(), - clientContext); - this.updateCertificateRevocationListCallable = - callableFactory.createUnaryCallable( - updateCertificateRevocationListTransportSettings, - settings.updateCertificateRevocationListSettings(), - clientContext); - this.updateCertificateRevocationListOperationCallable = - callableFactory.createOperationCallable( - updateCertificateRevocationListTransportSettings, - settings.updateCertificateRevocationListOperationSettings(), - clientContext, - this.operationsStub); - this.createReusableConfigCallable = - callableFactory.createUnaryCallable( - createReusableConfigTransportSettings, - settings.createReusableConfigSettings(), - clientContext); - this.createReusableConfigOperationCallable = - callableFactory.createOperationCallable( - createReusableConfigTransportSettings, - settings.createReusableConfigOperationSettings(), - clientContext, - this.operationsStub); - this.deleteReusableConfigCallable = - callableFactory.createUnaryCallable( - deleteReusableConfigTransportSettings, - settings.deleteReusableConfigSettings(), - clientContext); - this.deleteReusableConfigOperationCallable = - callableFactory.createOperationCallable( - deleteReusableConfigTransportSettings, - settings.deleteReusableConfigOperationSettings(), - clientContext, - this.operationsStub); - this.getReusableConfigCallable = - callableFactory.createUnaryCallable( - getReusableConfigTransportSettings, - settings.getReusableConfigSettings(), - clientContext); - this.listReusableConfigsCallable = - callableFactory.createUnaryCallable( - listReusableConfigsTransportSettings, - settings.listReusableConfigsSettings(), - clientContext); - this.listReusableConfigsPagedCallable = - callableFactory.createPagedCallable( - listReusableConfigsTransportSettings, - settings.listReusableConfigsSettings(), - clientContext); - this.updateReusableConfigCallable = - callableFactory.createUnaryCallable( - updateReusableConfigTransportSettings, - settings.updateReusableConfigSettings(), - clientContext); - this.updateReusableConfigOperationCallable = - callableFactory.createOperationCallable( - updateReusableConfigTransportSettings, - settings.updateReusableConfigOperationSettings(), - clientContext, - this.operationsStub); - - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - public UnaryCallable createCertificateCallable() { - return createCertificateCallable; - } - - public UnaryCallable getCertificateCallable() { - return getCertificateCallable; - } - - public UnaryCallable - listCertificatesPagedCallable() { - return listCertificatesPagedCallable; - } - - public UnaryCallable - listCertificatesCallable() { - return listCertificatesCallable; - } - - public UnaryCallable revokeCertificateCallable() { - return revokeCertificateCallable; - } - - public UnaryCallable updateCertificateCallable() { - return updateCertificateCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - activateCertificateAuthorityOperationCallable() { - return activateCertificateAuthorityOperationCallable; - } - - public UnaryCallable - activateCertificateAuthorityCallable() { - return activateCertificateAuthorityCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - createCertificateAuthorityOperationCallable() { - return createCertificateAuthorityOperationCallable; - } - - public UnaryCallable - createCertificateAuthorityCallable() { - return createCertificateAuthorityCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - disableCertificateAuthorityOperationCallable() { - return disableCertificateAuthorityOperationCallable; - } - - public UnaryCallable - disableCertificateAuthorityCallable() { - return disableCertificateAuthorityCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - enableCertificateAuthorityOperationCallable() { - return enableCertificateAuthorityOperationCallable; - } - - public UnaryCallable - enableCertificateAuthorityCallable() { - return enableCertificateAuthorityCallable; - } - - public UnaryCallable - fetchCertificateAuthorityCsrCallable() { - return fetchCertificateAuthorityCsrCallable; - } - - public UnaryCallable - getCertificateAuthorityCallable() { - return getCertificateAuthorityCallable; - } - - public UnaryCallable - listCertificateAuthoritiesPagedCallable() { - return listCertificateAuthoritiesPagedCallable; - } - - public UnaryCallable - listCertificateAuthoritiesCallable() { - return listCertificateAuthoritiesCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - restoreCertificateAuthorityOperationCallable() { - return restoreCertificateAuthorityOperationCallable; - } - - public UnaryCallable - restoreCertificateAuthorityCallable() { - return restoreCertificateAuthorityCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - scheduleDeleteCertificateAuthorityOperationCallable() { - return scheduleDeleteCertificateAuthorityOperationCallable; - } - - public UnaryCallable - scheduleDeleteCertificateAuthorityCallable() { - return scheduleDeleteCertificateAuthorityCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> - updateCertificateAuthorityOperationCallable() { - return updateCertificateAuthorityOperationCallable; - } - - public UnaryCallable - updateCertificateAuthorityCallable() { - return updateCertificateAuthorityCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - CreateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - createCertificateRevocationListOperationCallable() { - return createCertificateRevocationListOperationCallable; - } - - public UnaryCallable - createCertificateRevocationListCallable() { - return createCertificateRevocationListCallable; - } - - public UnaryCallable - getCertificateRevocationListCallable() { - return getCertificateRevocationListCallable; - } - - public UnaryCallable< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsPagedResponse> - listCertificateRevocationListsPagedCallable() { - return listCertificateRevocationListsPagedCallable; - } - - public UnaryCallable< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> - listCertificateRevocationListsCallable() { - return listCertificateRevocationListsCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> - updateCertificateRevocationListOperationCallable() { - return updateCertificateRevocationListOperationCallable; - } - - public UnaryCallable - updateCertificateRevocationListCallable() { - return updateCertificateRevocationListCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createReusableConfigOperationCallable() { - return createReusableConfigOperationCallable; - } - - public UnaryCallable createReusableConfigCallable() { - return createReusableConfigCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteReusableConfigOperationCallable() { - return deleteReusableConfigOperationCallable; - } - - public UnaryCallable deleteReusableConfigCallable() { - return deleteReusableConfigCallable; - } - - public UnaryCallable getReusableConfigCallable() { - return getReusableConfigCallable; - } - - public UnaryCallable - listReusableConfigsPagedCallable() { - return listReusableConfigsPagedCallable; - } - - public UnaryCallable - listReusableConfigsCallable() { - return listReusableConfigsCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateReusableConfigOperationCallable() { - return updateReusableConfigOperationCallable; - } - - public UnaryCallable updateReusableConfigCallable() { - return updateReusableConfigCallable; - } - - @Override - public final void close() { - shutdown(); - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java b/google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java deleted file mode 100644 index 8180da35..00000000 --- a/google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java +++ /dev/null @@ -1,1366 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.security.privateca.v1beta1; - -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateRevocationListsPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificatesPagedResponse; -import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListReusableConfigsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.Status; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@javax.annotation.Generated("by GAPIC") -public class CertificateAuthorityServiceClientTest { - private static MockCertificateAuthorityService mockCertificateAuthorityService; - private static MockServiceHelper serviceHelper; - private CertificateAuthorityServiceClient client; - private LocalChannelProvider channelProvider; - - @BeforeClass - public static void startStaticServer() { - mockCertificateAuthorityService = new MockCertificateAuthorityService(); - serviceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockCertificateAuthorityService)); - serviceHelper.start(); - } - - @AfterClass - public static void stopServer() { - serviceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); - CertificateAuthorityServiceSettings settings = - CertificateAuthorityServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = CertificateAuthorityServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - @SuppressWarnings("all") - public void createCertificateTest() { - CertificateName name = - CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); - String pemCsr = "pemCsr-683665829"; - String pemCertificate = "pemCertificate1234463984"; - Certificate expectedResponse = - Certificate.newBuilder() - .setName(name.toString()) - .setPemCsr(pemCsr) - .setPemCertificate(pemCertificate) - .build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - CertificateAuthorityName parent = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - Certificate certificate = Certificate.newBuilder().build(); - String certificateId = "certificateId1494430915"; - - Certificate actualResponse = client.createCertificate(parent, certificate, certificateId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCertificateRequest actualRequest = (CreateCertificateRequest) actualRequests.get(0); - - Assert.assertEquals(parent, CertificateAuthorityName.parse(actualRequest.getParent())); - Assert.assertEquals(certificate, actualRequest.getCertificate()); - Assert.assertEquals(certificateId, actualRequest.getCertificateId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createCertificateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName parent = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - Certificate certificate = Certificate.newBuilder().build(); - String certificateId = "certificateId1494430915"; - - client.createCertificate(parent, certificate, certificateId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void getCertificateTest() { - CertificateName name2 = - CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); - String pemCsr = "pemCsr-683665829"; - String pemCertificate = "pemCertificate1234463984"; - Certificate expectedResponse = - Certificate.newBuilder() - .setName(name2.toString()) - .setPemCsr(pemCsr) - .setPemCertificate(pemCertificate) - .build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - CertificateName name = - CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); - - Certificate actualResponse = client.getCertificate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCertificateRequest actualRequest = (GetCertificateRequest) actualRequests.get(0); - - Assert.assertEquals(name, CertificateName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getCertificateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateName name = - CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); - - client.getCertificate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void listCertificatesTest() { - String nextPageToken = ""; - Certificate certificatesElement = Certificate.newBuilder().build(); - List certificates = Arrays.asList(certificatesElement); - ListCertificatesResponse expectedResponse = - ListCertificatesResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllCertificates(certificates) - .build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - CertificateAuthorityName parent = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - ListCertificatesPagedResponse pagedListResponse = client.listCertificates(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCertificatesList().get(0), resources.get(0)); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListCertificatesRequest actualRequest = (ListCertificatesRequest) actualRequests.get(0); - - Assert.assertEquals(parent, CertificateAuthorityName.parse(actualRequest.getParent())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void listCertificatesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName parent = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - client.listCertificates(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void revokeCertificateTest() { - CertificateName name2 = - CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); - String pemCsr = "pemCsr-683665829"; - String pemCertificate = "pemCertificate1234463984"; - Certificate expectedResponse = - Certificate.newBuilder() - .setName(name2.toString()) - .setPemCsr(pemCsr) - .setPemCertificate(pemCertificate) - .build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - CertificateName name = - CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); - - Certificate actualResponse = client.revokeCertificate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RevokeCertificateRequest actualRequest = (RevokeCertificateRequest) actualRequests.get(0); - - Assert.assertEquals(name, CertificateName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void revokeCertificateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateName name = - CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); - - client.revokeCertificate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void updateCertificateTest() { - CertificateName name = - CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); - String pemCsr = "pemCsr-683665829"; - String pemCertificate = "pemCertificate1234463984"; - Certificate expectedResponse = - Certificate.newBuilder() - .setName(name.toString()) - .setPemCsr(pemCsr) - .setPemCertificate(pemCertificate) - .build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - Certificate certificate = Certificate.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Certificate actualResponse = client.updateCertificate(certificate, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateCertificateRequest actualRequest = (UpdateCertificateRequest) actualRequests.get(0); - - Assert.assertEquals(certificate, actualRequest.getCertificate()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateCertificateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - Certificate certificate = Certificate.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - client.updateCertificate(certificate, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void activateCertificateAuthorityTest() throws Exception { - CertificateAuthorityName name2 = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - String gcsBucket = "gcsBucket-1720393710"; - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder().setName(name2.toString()).setGcsBucket(gcsBucket).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("activateCertificateAuthorityTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - CertificateAuthority actualResponse = client.activateCertificateAuthorityAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ActivateCertificateAuthorityRequest actualRequest = - (ActivateCertificateAuthorityRequest) actualRequests.get(0); - - Assert.assertEquals(name, CertificateAuthorityName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void activateCertificateAuthorityExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - client.activateCertificateAuthorityAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void createCertificateAuthorityTest() throws Exception { - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - String gcsBucket = "gcsBucket-1720393710"; - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder().setName(name.toString()).setGcsBucket(gcsBucket).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createCertificateAuthorityTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); - String certificateAuthorityId = "certificateAuthorityId561919295"; - - CertificateAuthority actualResponse = - client - .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCertificateAuthorityRequest actualRequest = - (CreateCertificateAuthorityRequest) actualRequests.get(0); - - Assert.assertEquals(parent, LocationName.parse(actualRequest.getParent())); - Assert.assertEquals(certificateAuthority, actualRequest.getCertificateAuthority()); - Assert.assertEquals(certificateAuthorityId, actualRequest.getCertificateAuthorityId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createCertificateAuthorityExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); - String certificateAuthorityId = "certificateAuthorityId561919295"; - - client - .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void disableCertificateAuthorityTest() throws Exception { - CertificateAuthorityName name2 = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - String gcsBucket = "gcsBucket-1720393710"; - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder().setName(name2.toString()).setGcsBucket(gcsBucket).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("disableCertificateAuthorityTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - CertificateAuthority actualResponse = client.disableCertificateAuthorityAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DisableCertificateAuthorityRequest actualRequest = - (DisableCertificateAuthorityRequest) actualRequests.get(0); - - Assert.assertEquals(name, CertificateAuthorityName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void disableCertificateAuthorityExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - client.disableCertificateAuthorityAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void enableCertificateAuthorityTest() throws Exception { - CertificateAuthorityName name2 = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - String gcsBucket = "gcsBucket-1720393710"; - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder().setName(name2.toString()).setGcsBucket(gcsBucket).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("enableCertificateAuthorityTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - CertificateAuthority actualResponse = client.enableCertificateAuthorityAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - EnableCertificateAuthorityRequest actualRequest = - (EnableCertificateAuthorityRequest) actualRequests.get(0); - - Assert.assertEquals(name, CertificateAuthorityName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void enableCertificateAuthorityExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - client.enableCertificateAuthorityAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void fetchCertificateAuthorityCsrTest() { - String pemCsr = "pemCsr-683665829"; - FetchCertificateAuthorityCsrResponse expectedResponse = - FetchCertificateAuthorityCsrResponse.newBuilder().setPemCsr(pemCsr).build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - FetchCertificateAuthorityCsrResponse actualResponse = client.fetchCertificateAuthorityCsr(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - FetchCertificateAuthorityCsrRequest actualRequest = - (FetchCertificateAuthorityCsrRequest) actualRequests.get(0); - - Assert.assertEquals(name, CertificateAuthorityName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void fetchCertificateAuthorityCsrExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - client.fetchCertificateAuthorityCsr(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void getCertificateAuthorityTest() { - CertificateAuthorityName name2 = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - String gcsBucket = "gcsBucket-1720393710"; - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder().setName(name2.toString()).setGcsBucket(gcsBucket).build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - CertificateAuthority actualResponse = client.getCertificateAuthority(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCertificateAuthorityRequest actualRequest = - (GetCertificateAuthorityRequest) actualRequests.get(0); - - Assert.assertEquals(name, CertificateAuthorityName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getCertificateAuthorityExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - client.getCertificateAuthority(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void listCertificateAuthoritiesTest() { - String nextPageToken = ""; - CertificateAuthority certificateAuthoritiesElement = CertificateAuthority.newBuilder().build(); - List certificateAuthorities = - Arrays.asList(certificateAuthoritiesElement); - ListCertificateAuthoritiesResponse expectedResponse = - ListCertificateAuthoritiesResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllCertificateAuthorities(certificateAuthorities) - .build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListCertificateAuthoritiesPagedResponse pagedListResponse = - client.listCertificateAuthorities(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCertificateAuthoritiesList().get(0), resources.get(0)); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListCertificateAuthoritiesRequest actualRequest = - (ListCertificateAuthoritiesRequest) actualRequests.get(0); - - Assert.assertEquals(parent, LocationName.parse(actualRequest.getParent())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void listCertificateAuthoritiesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - client.listCertificateAuthorities(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void restoreCertificateAuthorityTest() throws Exception { - CertificateAuthorityName name2 = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - String gcsBucket = "gcsBucket-1720393710"; - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder().setName(name2.toString()).setGcsBucket(gcsBucket).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("restoreCertificateAuthorityTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - CertificateAuthority actualResponse = client.restoreCertificateAuthorityAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RestoreCertificateAuthorityRequest actualRequest = - (RestoreCertificateAuthorityRequest) actualRequests.get(0); - - Assert.assertEquals(name, CertificateAuthorityName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void restoreCertificateAuthorityExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - client.restoreCertificateAuthorityAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void scheduleDeleteCertificateAuthorityTest() throws Exception { - CertificateAuthorityName name2 = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - String gcsBucket = "gcsBucket-1720393710"; - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder().setName(name2.toString()).setGcsBucket(gcsBucket).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("scheduleDeleteCertificateAuthorityTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - CertificateAuthority actualResponse = - client.scheduleDeleteCertificateAuthorityAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ScheduleDeleteCertificateAuthorityRequest actualRequest = - (ScheduleDeleteCertificateAuthorityRequest) actualRequests.get(0); - - Assert.assertEquals(name, CertificateAuthorityName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void scheduleDeleteCertificateAuthorityExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - client.scheduleDeleteCertificateAuthorityAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void updateCertificateAuthorityTest() throws Exception { - CertificateAuthorityName name = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - String gcsBucket = "gcsBucket-1720393710"; - CertificateAuthority expectedResponse = - CertificateAuthority.newBuilder().setName(name.toString()).setGcsBucket(gcsBucket).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateCertificateAuthorityTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - CertificateAuthority actualResponse = - client.updateCertificateAuthorityAsync(certificateAuthority, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateCertificateAuthorityRequest actualRequest = - (UpdateCertificateAuthorityRequest) actualRequests.get(0); - - Assert.assertEquals(certificateAuthority, actualRequest.getCertificateAuthority()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateCertificateAuthorityExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - client.updateCertificateAuthorityAsync(certificateAuthority, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void createCertificateRevocationListTest() throws Exception { - CertificateRevocationListName name = - CertificateRevocationListName.of( - "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"); - long sequenceNumber = 1309190777L; - String pemCrl = "pemCrl-683665866"; - String accessUrl = "accessUrl-1141680108"; - CertificateRevocationList expectedResponse = - CertificateRevocationList.newBuilder() - .setName(name.toString()) - .setSequenceNumber(sequenceNumber) - .setPemCrl(pemCrl) - .setAccessUrl(accessUrl) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createCertificateRevocationListTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - CertificateAuthorityName parent = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - CertificateRevocationList certificateRevocationList = - CertificateRevocationList.newBuilder().build(); - String certificateRevocationListId = "certificateRevocationListId1847074915"; - - CertificateRevocationList actualResponse = - client - .createCertificateRevocationListAsync( - parent, certificateRevocationList, certificateRevocationListId) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCertificateRevocationListRequest actualRequest = - (CreateCertificateRevocationListRequest) actualRequests.get(0); - - Assert.assertEquals(parent, CertificateAuthorityName.parse(actualRequest.getParent())); - Assert.assertEquals(certificateRevocationList, actualRequest.getCertificateRevocationList()); - Assert.assertEquals( - certificateRevocationListId, actualRequest.getCertificateRevocationListId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createCertificateRevocationListExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName parent = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - CertificateRevocationList certificateRevocationList = - CertificateRevocationList.newBuilder().build(); - String certificateRevocationListId = "certificateRevocationListId1847074915"; - - client - .createCertificateRevocationListAsync( - parent, certificateRevocationList, certificateRevocationListId) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void getCertificateRevocationListTest() { - CertificateRevocationListName name2 = - CertificateRevocationListName.of( - "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"); - long sequenceNumber = 1309190777L; - String pemCrl = "pemCrl-683665866"; - String accessUrl = "accessUrl-1141680108"; - CertificateRevocationList expectedResponse = - CertificateRevocationList.newBuilder() - .setName(name2.toString()) - .setSequenceNumber(sequenceNumber) - .setPemCrl(pemCrl) - .setAccessUrl(accessUrl) - .build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - CertificateRevocationListName name = - CertificateRevocationListName.of( - "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"); - - CertificateRevocationList actualResponse = client.getCertificateRevocationList(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCertificateRevocationListRequest actualRequest = - (GetCertificateRevocationListRequest) actualRequests.get(0); - - Assert.assertEquals(name, CertificateRevocationListName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getCertificateRevocationListExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateRevocationListName name = - CertificateRevocationListName.of( - "[PROJECT]", - "[LOCATION]", - "[CERTIFICATE_AUTHORITY]", - "[CERTIFICATE_REVOCATION_LIST]"); - - client.getCertificateRevocationList(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void listCertificateRevocationListsTest() { - String nextPageToken = ""; - CertificateRevocationList certificateRevocationListsElement = - CertificateRevocationList.newBuilder().build(); - List certificateRevocationLists = - Arrays.asList(certificateRevocationListsElement); - ListCertificateRevocationListsResponse expectedResponse = - ListCertificateRevocationListsResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllCertificateRevocationLists(certificateRevocationLists) - .build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - CertificateAuthorityName parent = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - ListCertificateRevocationListsPagedResponse pagedListResponse = - client.listCertificateRevocationLists(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getCertificateRevocationListsList().get(0), resources.get(0)); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListCertificateRevocationListsRequest actualRequest = - (ListCertificateRevocationListsRequest) actualRequests.get(0); - - Assert.assertEquals(parent, CertificateAuthorityName.parse(actualRequest.getParent())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void listCertificateRevocationListsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateAuthorityName parent = - CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); - - client.listCertificateRevocationLists(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void updateCertificateRevocationListTest() throws Exception { - CertificateRevocationListName name = - CertificateRevocationListName.of( - "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"); - long sequenceNumber = 1309190777L; - String pemCrl = "pemCrl-683665866"; - String accessUrl = "accessUrl-1141680108"; - CertificateRevocationList expectedResponse = - CertificateRevocationList.newBuilder() - .setName(name.toString()) - .setSequenceNumber(sequenceNumber) - .setPemCrl(pemCrl) - .setAccessUrl(accessUrl) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateCertificateRevocationListTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - CertificateRevocationList certificateRevocationList = - CertificateRevocationList.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - CertificateRevocationList actualResponse = - client.updateCertificateRevocationListAsync(certificateRevocationList, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateCertificateRevocationListRequest actualRequest = - (UpdateCertificateRevocationListRequest) actualRequests.get(0); - - Assert.assertEquals(certificateRevocationList, actualRequest.getCertificateRevocationList()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateCertificateRevocationListExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - CertificateRevocationList certificateRevocationList = - CertificateRevocationList.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - client.updateCertificateRevocationListAsync(certificateRevocationList, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void createReusableConfigTest() throws Exception { - ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); - String description = "description-1724546052"; - ReusableConfig expectedResponse = - ReusableConfig.newBuilder().setName(name.toString()).setDescription(description).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createReusableConfigTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ReusableConfig reusableConfig = ReusableConfig.newBuilder().build(); - String reusableConfigId = "reusableConfigId685940964"; - - ReusableConfig actualResponse = - client.createReusableConfigAsync(parent, reusableConfig, reusableConfigId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateReusableConfigRequest actualRequest = (CreateReusableConfigRequest) actualRequests.get(0); - - Assert.assertEquals(parent, LocationName.parse(actualRequest.getParent())); - Assert.assertEquals(reusableConfig, actualRequest.getReusableConfig()); - Assert.assertEquals(reusableConfigId, actualRequest.getReusableConfigId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createReusableConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ReusableConfig reusableConfig = ReusableConfig.newBuilder().build(); - String reusableConfigId = "reusableConfigId685940964"; - - client.createReusableConfigAsync(parent, reusableConfig, reusableConfigId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void deleteReusableConfigTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteReusableConfigTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); - - Empty actualResponse = client.deleteReusableConfigAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteReusableConfigRequest actualRequest = (DeleteReusableConfigRequest) actualRequests.get(0); - - Assert.assertEquals(name, ReusableConfigName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void deleteReusableConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - ReusableConfigName name = - ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); - - client.deleteReusableConfigAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void getReusableConfigTest() { - ReusableConfigName name2 = - ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); - String description = "description-1724546052"; - ReusableConfig expectedResponse = - ReusableConfig.newBuilder().setName(name2.toString()).setDescription(description).build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); - - ReusableConfig actualResponse = client.getReusableConfig(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetReusableConfigRequest actualRequest = (GetReusableConfigRequest) actualRequests.get(0); - - Assert.assertEquals(name, ReusableConfigName.parse(actualRequest.getName())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getReusableConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - ReusableConfigName name = - ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); - - client.getReusableConfig(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void listReusableConfigsTest() { - String nextPageToken = ""; - ReusableConfig reusableConfigsElement = ReusableConfig.newBuilder().build(); - List reusableConfigs = Arrays.asList(reusableConfigsElement); - ListReusableConfigsResponse expectedResponse = - ListReusableConfigsResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllReusableConfigs(reusableConfigs) - .build(); - mockCertificateAuthorityService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListReusableConfigsPagedResponse pagedListResponse = client.listReusableConfigs(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getReusableConfigsList().get(0), resources.get(0)); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListReusableConfigsRequest actualRequest = (ListReusableConfigsRequest) actualRequests.get(0); - - Assert.assertEquals(parent, LocationName.parse(actualRequest.getParent())); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void listReusableConfigsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - client.listReusableConfigs(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void updateReusableConfigTest() throws Exception { - ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); - String description = "description-1724546052"; - ReusableConfig expectedResponse = - ReusableConfig.newBuilder().setName(name.toString()).setDescription(description).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateReusableConfigTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCertificateAuthorityService.addResponse(resultOperation); - - ReusableConfig reusableConfig = ReusableConfig.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - ReusableConfig actualResponse = - client.updateReusableConfigAsync(reusableConfig, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCertificateAuthorityService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateReusableConfigRequest actualRequest = (UpdateReusableConfigRequest) actualRequests.get(0); - - Assert.assertEquals(reusableConfig, actualRequest.getReusableConfig()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateReusableConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCertificateAuthorityService.addException(exception); - - try { - ReusableConfig reusableConfig = ReusableConfig.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - client.updateReusableConfigAsync(reusableConfig, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java b/google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java deleted file mode 100644 index ebe6d8c7..00000000 --- a/google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.security.privateca.v1beta1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockCertificateAuthorityService implements MockGrpcService { - private final MockCertificateAuthorityServiceImpl serviceImpl; - - public MockCertificateAuthorityService() { - serviceImpl = new MockCertificateAuthorityServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java b/google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java deleted file mode 100644 index 1afd1b71..00000000 --- a/google-cloud-security-privateca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java +++ /dev/null @@ -1,426 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.security.privateca.v1beta1; - -import com.google.api.core.BetaApi; -import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceGrpc.CertificateAuthorityServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockCertificateAuthorityServiceImpl extends CertificateAuthorityServiceImplBase { - private List requests; - private Queue responses; - - public MockCertificateAuthorityServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void createCertificate( - CreateCertificateRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Certificate) { - requests.add(request); - responseObserver.onNext((Certificate) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getCertificate( - GetCertificateRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Certificate) { - requests.add(request); - responseObserver.onNext((Certificate) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void listCertificates( - ListCertificatesRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListCertificatesResponse) { - requests.add(request); - responseObserver.onNext((ListCertificatesResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void revokeCertificate( - RevokeCertificateRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Certificate) { - requests.add(request); - responseObserver.onNext((Certificate) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void updateCertificate( - UpdateCertificateRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Certificate) { - requests.add(request); - responseObserver.onNext((Certificate) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void activateCertificateAuthority( - ActivateCertificateAuthorityRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void createCertificateAuthority( - CreateCertificateAuthorityRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void disableCertificateAuthority( - DisableCertificateAuthorityRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void enableCertificateAuthority( - EnableCertificateAuthorityRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void fetchCertificateAuthorityCsr( - FetchCertificateAuthorityCsrRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof FetchCertificateAuthorityCsrResponse) { - requests.add(request); - responseObserver.onNext((FetchCertificateAuthorityCsrResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getCertificateAuthority( - GetCertificateAuthorityRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof CertificateAuthority) { - requests.add(request); - responseObserver.onNext((CertificateAuthority) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void listCertificateAuthorities( - ListCertificateAuthoritiesRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListCertificateAuthoritiesResponse) { - requests.add(request); - responseObserver.onNext((ListCertificateAuthoritiesResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void restoreCertificateAuthority( - RestoreCertificateAuthorityRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void scheduleDeleteCertificateAuthority( - ScheduleDeleteCertificateAuthorityRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void updateCertificateAuthority( - UpdateCertificateAuthorityRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void createCertificateRevocationList( - CreateCertificateRevocationListRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getCertificateRevocationList( - GetCertificateRevocationListRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof CertificateRevocationList) { - requests.add(request); - responseObserver.onNext((CertificateRevocationList) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void listCertificateRevocationLists( - ListCertificateRevocationListsRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListCertificateRevocationListsResponse) { - requests.add(request); - responseObserver.onNext((ListCertificateRevocationListsResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void updateCertificateRevocationList( - UpdateCertificateRevocationListRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void createReusableConfig( - CreateReusableConfigRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void deleteReusableConfig( - DeleteReusableConfigRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getReusableConfig( - GetReusableConfigRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ReusableConfig) { - requests.add(request); - responseObserver.onNext((ReusableConfig) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void listReusableConfigs( - ListReusableConfigsRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListReusableConfigsResponse) { - requests.add(request); - responseObserver.onNext((ListReusableConfigsResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void updateReusableConfig( - UpdateReusableConfigRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } -} diff --git a/grpc-google-cloud-security-private-ca-v1beta1/clirr-ignored-differences.xml b/grpc-google-cloud-security-private-ca-v1beta1/clirr-ignored-differences.xml new file mode 100644 index 00000000..71ae7aed --- /dev/null +++ b/grpc-google-cloud-security-private-ca-v1beta1/clirr-ignored-differences.xml @@ -0,0 +1,45 @@ + + + + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc + io.grpc.MethodDescriptor getCreateCertificateRevocationListMethod() + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc + io.grpc.MethodDescriptor getCreateReusableConfigMethod() + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc + io.grpc.MethodDescriptor getDeleteReusableConfigMethod() + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc + io.grpc.MethodDescriptor getUpdateReusableConfigMethod() + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc* + * createCertificateRevocationList(*) + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc* + * createReusableConfig(*) + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc* + * deleteReusableConfig(*) + + + 7002 + com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc* + * updateReusableConfig(*) + + diff --git a/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java b/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java index bebd5bf0..3269986d 100644 --- a/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java +++ b/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java @@ -841,60 +841,6 @@ private CertificateAuthorityServiceGrpc() {} return getUpdateCertificateAuthorityMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest, - com.google.longrunning.Operation> - getCreateCertificateRevocationListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificateRevocationList", - requestType = - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest, - com.google.longrunning.Operation> - getCreateCertificateRevocationListMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest, - com.google.longrunning.Operation> - getCreateCertificateRevocationListMethod; - if ((getCreateCertificateRevocationListMethod = - CertificateAuthorityServiceGrpc.getCreateCertificateRevocationListMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCertificateRevocationListMethod = - CertificateAuthorityServiceGrpc.getCreateCertificateRevocationListMethod) - == null) { - CertificateAuthorityServiceGrpc.getCreateCertificateRevocationListMethod = - getCreateCertificateRevocationListMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateCertificateRevocationList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .CreateCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "CreateCertificateRevocationList")) - .build(); - } - } - } - return getCreateCertificateRevocationListMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> @@ -1061,110 +1007,6 @@ private CertificateAuthorityServiceGrpc() {} return getUpdateCertificateRevocationListMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest, - com.google.longrunning.Operation> - getCreateReusableConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateReusableConfig", - requestType = com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest, - com.google.longrunning.Operation> - getCreateReusableConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest, - com.google.longrunning.Operation> - getCreateReusableConfigMethod; - if ((getCreateReusableConfigMethod = - CertificateAuthorityServiceGrpc.getCreateReusableConfigMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateReusableConfigMethod = - CertificateAuthorityServiceGrpc.getCreateReusableConfigMethod) - == null) { - CertificateAuthorityServiceGrpc.getCreateReusableConfigMethod = - getCreateReusableConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateReusableConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .CreateReusableConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "CreateReusableConfig")) - .build(); - } - } - } - return getCreateReusableConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest, - com.google.longrunning.Operation> - getDeleteReusableConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteReusableConfig", - requestType = com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest, - com.google.longrunning.Operation> - getDeleteReusableConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest, - com.google.longrunning.Operation> - getDeleteReusableConfigMethod; - if ((getDeleteReusableConfigMethod = - CertificateAuthorityServiceGrpc.getDeleteReusableConfigMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getDeleteReusableConfigMethod = - CertificateAuthorityServiceGrpc.getDeleteReusableConfigMethod) - == null) { - CertificateAuthorityServiceGrpc.getDeleteReusableConfigMethod = - getDeleteReusableConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteReusableConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .DeleteReusableConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "DeleteReusableConfig")) - .build(); - } - } - } - return getDeleteReusableConfigMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest, com.google.cloud.security.privateca.v1beta1.ReusableConfig> @@ -1269,58 +1111,6 @@ private CertificateAuthorityServiceGrpc() {} return getListReusableConfigsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest, - com.google.longrunning.Operation> - getUpdateReusableConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateReusableConfig", - requestType = com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest, - com.google.longrunning.Operation> - getUpdateReusableConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest, - com.google.longrunning.Operation> - getUpdateReusableConfigMethod; - if ((getUpdateReusableConfigMethod = - CertificateAuthorityServiceGrpc.getUpdateReusableConfigMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateReusableConfigMethod = - CertificateAuthorityServiceGrpc.getUpdateReusableConfigMethod) - == null) { - CertificateAuthorityServiceGrpc.getUpdateReusableConfigMethod = - getUpdateReusableConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateReusableConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .UpdateReusableConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "UpdateReusableConfig")) - .build(); - } - } - } - return getUpdateReusableConfigMethod; - } - /** Creates a new async stub that supports all call types for the service */ public static CertificateAuthorityServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1435,7 +1225,8 @@ public void revokeCertificate( * * *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
      * 
*/ public void updateCertificate( @@ -1593,20 +1384,6 @@ public void updateCertificateAuthority( asyncUnimplementedUnaryCall(getUpdateCertificateAuthorityMethod(), responseObserver); } - /** - * - * - *
-     * Create a new [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in a given Project, Location
-     * for a particular [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void createCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateCertificateRevocationListMethod(), responseObserver); - } - /** * * @@ -1650,32 +1427,6 @@ public void updateCertificateRevocationList( asyncUnimplementedUnaryCall(getUpdateCertificateRevocationListMethod(), responseObserver); } - /** - * - * - *
-     * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a given Project and Location.
-     * 
- */ - public void createReusableConfig( - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateReusableConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * DeleteReusableConfig deletes a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void deleteReusableConfig( - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteReusableConfigMethod(), responseObserver); - } - /** * * @@ -1705,19 +1456,6 @@ public void listReusableConfigs( asyncUnimplementedUnaryCall(getListReusableConfigsMethod(), responseObserver); } - /** - * - * - *
-     * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void updateReusableConfig( - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateReusableConfigMethod(), responseObserver); - } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -1833,14 +1571,6 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest, com.google.longrunning.Operation>( this, METHODID_UPDATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getCreateCertificateRevocationListMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1 - .CreateCertificateRevocationListRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CERTIFICATE_REVOCATION_LIST))) .addMethod( getGetCertificateRevocationListMethod(), asyncUnaryCall( @@ -1866,18 +1596,6 @@ public final io.grpc.ServerServiceDefinition bindService() { .UpdateCertificateRevocationListRequest, com.google.longrunning.Operation>( this, METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST))) - .addMethod( - getCreateReusableConfigMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_REUSABLE_CONFIG))) - .addMethod( - getDeleteReusableConfigMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_REUSABLE_CONFIG))) .addMethod( getGetReusableConfigMethod(), asyncUnaryCall( @@ -1892,12 +1610,6 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest, com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse>( this, METHODID_LIST_REUSABLE_CONFIGS))) - .addMethod( - getUpdateReusableConfigMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_REUSABLE_CONFIG))) .build(); } } @@ -1997,7 +1709,8 @@ public void revokeCertificate( * * *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
      * 
*/ public void updateCertificate( @@ -2188,23 +1901,6 @@ public void updateCertificateAuthority( responseObserver); } - /** - * - * - *
-     * Create a new [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in a given Project, Location
-     * for a particular [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void createCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateCertificateRevocationListMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -2257,38 +1953,6 @@ public void updateCertificateRevocationList( responseObserver); } - /** - * - * - *
-     * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a given Project and Location.
-     * 
- */ - public void createReusableConfig( - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateReusableConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * DeleteReusableConfig deletes a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void deleteReusableConfig( - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteReusableConfigMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -2323,22 +1987,6 @@ public void listReusableConfigs( request, responseObserver); } - - /** - * - * - *
-     * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void updateReusableConfig( - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateReusableConfigMethod(), getCallOptions()), - request, - responseObserver); - } } /** @@ -2418,7 +2066,8 @@ public com.google.cloud.security.privateca.v1beta1.Certificate revokeCertificate * * *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
      * 
*/ public com.google.cloud.security.privateca.v1beta1.Certificate updateCertificate( @@ -2572,21 +2221,6 @@ public com.google.longrunning.Operation updateCertificateAuthority( getChannel(), getUpdateCertificateAuthorityMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Create a new [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in a given Project, Location
-     * for a particular [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation createCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - request) { - return blockingUnaryCall( - getChannel(), getCreateCertificateRevocationListMethod(), getCallOptions(), request); - } - /** * * @@ -2631,32 +2265,6 @@ public com.google.longrunning.Operation updateCertificateRevocationList( getChannel(), getUpdateCertificateRevocationListMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a given Project and Location.
-     * 
- */ - public com.google.longrunning.Operation createReusableConfig( - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest request) { - return blockingUnaryCall( - getChannel(), getCreateReusableConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * DeleteReusableConfig deletes a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.longrunning.Operation deleteReusableConfig( - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteReusableConfigMethod(), getCallOptions(), request); - } - /** * * @@ -2683,19 +2291,6 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableCon return blockingUnaryCall( getChannel(), getListReusableConfigsMethod(), getCallOptions(), request); } - - /** - * - * - *
-     * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.longrunning.Operation updateReusableConfig( - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest request) { - return blockingUnaryCall( - getChannel(), getUpdateReusableConfigMethod(), getCallOptions(), request); - } } /** @@ -2783,7 +2378,8 @@ protected CertificateAuthorityServiceFutureStub build( * * *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -2954,23 +2550,6 @@ protected CertificateAuthorityServiceFutureStub build( getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Create a new [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in a given Project, Location
-     * for a particular [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - request) { - return futureUnaryCall( - getChannel().newCall(getCreateCertificateRevocationListMethod(), getCallOptions()), - request); - } - /** * * @@ -3020,34 +2599,6 @@ protected CertificateAuthorityServiceFutureStub build( request); } - /** - * - * - *
-     * Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a given Project and Location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createReusableConfig( - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest request) { - return futureUnaryCall( - getChannel().newCall(getCreateReusableConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * DeleteReusableConfig deletes a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteReusableConfig( - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest request) { - return futureUnaryCall( - getChannel().newCall(getDeleteReusableConfigMethod(), getCallOptions()), request); - } - /** * * @@ -3077,20 +2628,6 @@ protected CertificateAuthorityServiceFutureStub build( return futureUnaryCall( getChannel().newCall(getListReusableConfigsMethod(), getCallOptions()), request); } - - /** - * - * - *
-     * Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateReusableConfig( - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpdateReusableConfigMethod(), getCallOptions()), request); - } } private static final int METHODID_CREATE_CERTIFICATE = 0; @@ -3108,15 +2645,11 @@ protected CertificateAuthorityServiceFutureStub build( private static final int METHODID_RESTORE_CERTIFICATE_AUTHORITY = 12; private static final int METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY = 13; private static final int METHODID_UPDATE_CERTIFICATE_AUTHORITY = 14; - private static final int METHODID_CREATE_CERTIFICATE_REVOCATION_LIST = 15; - private static final int METHODID_GET_CERTIFICATE_REVOCATION_LIST = 16; - private static final int METHODID_LIST_CERTIFICATE_REVOCATION_LISTS = 17; - private static final int METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST = 18; - private static final int METHODID_CREATE_REUSABLE_CONFIG = 19; - private static final int METHODID_DELETE_REUSABLE_CONFIG = 20; - private static final int METHODID_GET_REUSABLE_CONFIG = 21; - private static final int METHODID_LIST_REUSABLE_CONFIGS = 22; - private static final int METHODID_UPDATE_REUSABLE_CONFIG = 23; + private static final int METHODID_GET_CERTIFICATE_REVOCATION_LIST = 15; + private static final int METHODID_LIST_CERTIFICATE_REVOCATION_LISTS = 16; + private static final int METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST = 17; + private static final int METHODID_GET_REUSABLE_CONFIG = 18; + private static final int METHODID_LIST_REUSABLE_CONFIGS = 19; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3234,12 +2767,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_CREATE_CERTIFICATE_REVOCATION_LIST: - serviceImpl.createCertificateRevocationList( - (com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; case METHODID_GET_CERTIFICATE_REVOCATION_LIST: serviceImpl.getCertificateRevocationList( (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) @@ -3263,16 +2790,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_CREATE_REUSABLE_CONFIG: - serviceImpl.createReusableConfig( - (com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_REUSABLE_CONFIG: - serviceImpl.deleteReusableConfig( - (com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; case METHODID_GET_REUSABLE_CONFIG: serviceImpl.getReusableConfig( (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) request, @@ -3287,11 +2804,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse>) responseObserver); break; - case METHODID_UPDATE_REUSABLE_CONFIG: - serviceImpl.updateReusableConfig( - (com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; default: throw new AssertionError(); } @@ -3371,15 +2883,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getRestoreCertificateAuthorityMethod()) .addMethod(getScheduleDeleteCertificateAuthorityMethod()) .addMethod(getUpdateCertificateAuthorityMethod()) - .addMethod(getCreateCertificateRevocationListMethod()) .addMethod(getGetCertificateRevocationListMethod()) .addMethod(getListCertificateRevocationListsMethod()) .addMethod(getUpdateCertificateRevocationListMethod()) - .addMethod(getCreateReusableConfigMethod()) - .addMethod(getDeleteReusableConfigMethod()) .addMethod(getGetReusableConfigMethod()) .addMethod(getListReusableConfigsMethod()) - .addMethod(getUpdateReusableConfigMethod()) .build(); } } diff --git a/proto-google-cloud-security-private-ca-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-security-private-ca-v1beta1/clirr-ignored-differences.xml new file mode 100644 index 00000000..37724dc9 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1beta1/clirr-ignored-differences.xml @@ -0,0 +1,39 @@ + + + + + 7012 + com/google/cloud/security/privateca/v1beta1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/security/privateca/v1beta1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/security/privateca/v1beta1/*OrBuilder + boolean has*(*) + + + + + 6001 + com/google/cloud/security/privateca/v1beta1/CertificateAuthority$SignHashAlgorithm + RSA_PSS_* + + + 6011 + com/google/cloud/security/privateca/v1beta1/CertificateAuthority$SignHashAlgorithm + RSA_PSS_* + + + 8001 + com/google/cloud/security/privateca/v1beta1/CreateCertificateRevocationListRequest* + + + 8001 + com/google/cloud/security/privateca/v1beta1/*ReusableConfigRequest* + + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java index 489ac848..184b2940 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java @@ -1467,13 +1467,15 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig() * * *
-   * Required. The desired lifetime of a certificate. Used to create the
+   * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate. Note that the lifetime may be truncated if it would extend
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return Whether the lifetime field is set. */ @@ -1485,13 +1487,15 @@ public boolean hasLifetime() { * * *
-   * Required. The desired lifetime of a certificate. Used to create the
+   * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate. Note that the lifetime may be truncated if it would extend
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The lifetime. */ @@ -1503,13 +1507,15 @@ public com.google.protobuf.Duration getLifetime() { * * *
-   * Required. The desired lifetime of a certificate. Used to create the
+   * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate. Note that the lifetime may be truncated if it would extend
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { @@ -3069,13 +3075,14 @@ public Builder clearConfig() { * * *
-     * Required. The desired lifetime of a certificate. Used to create the
+     * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate. Note that the lifetime may be truncated if it would extend
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return Whether the lifetime field is set. @@ -3087,13 +3094,14 @@ public boolean hasLifetime() { * * *
-     * Required. The desired lifetime of a certificate. Used to create the
+     * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate. Note that the lifetime may be truncated if it would extend
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The lifetime. @@ -3109,13 +3117,14 @@ public com.google.protobuf.Duration getLifetime() { * * *
-     * Required. The desired lifetime of a certificate. Used to create the
+     * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate. Note that the lifetime may be truncated if it would extend
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * */ public Builder setLifetime(com.google.protobuf.Duration value) { @@ -3135,13 +3144,14 @@ public Builder setLifetime(com.google.protobuf.Duration value) { * * *
-     * Required. The desired lifetime of a certificate. Used to create the
+     * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate. Note that the lifetime may be truncated if it would extend
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * */ public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { @@ -3158,13 +3168,14 @@ public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) * * *
-     * Required. The desired lifetime of a certificate. Used to create the
+     * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate. Note that the lifetime may be truncated if it would extend
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * */ public Builder mergeLifetime(com.google.protobuf.Duration value) { @@ -3186,13 +3197,14 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { * * *
-     * Required. The desired lifetime of a certificate. Used to create the
+     * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate. Note that the lifetime may be truncated if it would extend
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * */ public Builder clearLifetime() { @@ -3210,13 +3222,14 @@ public Builder clearLifetime() { * * *
-     * Required. The desired lifetime of a certificate. Used to create the
+     * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate. Note that the lifetime may be truncated if it would extend
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * */ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { @@ -3228,13 +3241,14 @@ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { * * *
-     * Required. The desired lifetime of a certificate. Used to create the
+     * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate. Note that the lifetime may be truncated if it would extend
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * */ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { @@ -3248,13 +3262,14 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { * * *
-     * Required. The desired lifetime of a certificate. Used to create the
+     * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate. Note that the lifetime may be truncated if it would extend
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java index ded64e67..c03e32ca 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java @@ -911,8 +911,11 @@ private State(int value) { * [CryptoKey][google.cloud.kms.v1.CryptoKey] with the * [CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] value * `ASYMMETRIC_SIGN`. These values correspond to the - * [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKey.CryptoKeyVersion.CryptoKeyVersionAlgorithm]. - * values. + * [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] + * values. For RSA signing algorithms, the PSS algorithms should be preferred, + * use PKCS1 algorithms if required for compatibility. For further + * recommandations, see + * https://cloud.google.com/kms/docs/algorithms#algorithm_recommendations. * * * Protobuf enum {@code @@ -936,9 +939,9 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256 * * - * RSA_PSS_2048_SHA_256 = 1; + * RSA_PSS_2048_SHA256 = 1; */ - RSA_PSS_2048_SHA_256(1), + RSA_PSS_2048_SHA256(1), /** * * @@ -946,9 +949,9 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum * maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256 * * - * RSA_PSS_3072_SHA_256 = 2; + * RSA_PSS_3072_SHA256 = 2; */ - RSA_PSS_3072_SHA_256(2), + RSA_PSS_3072_SHA256(2), /** * * @@ -956,9 +959,39 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256 * * - * RSA_PSS_4096_SHA_256 = 3; + * RSA_PSS_4096_SHA256 = 3; */ - RSA_PSS_4096_SHA_256(3), + RSA_PSS_4096_SHA256(3), + /** + * + * + *
+     * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
+     * 
+ * + * RSA_PKCS1_2048_SHA256 = 6; + */ + RSA_PKCS1_2048_SHA256(6), + /** + * + * + *
+     * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
+     * 
+ * + * RSA_PKCS1_3072_SHA256 = 7; + */ + RSA_PKCS1_3072_SHA256(7), + /** + * + * + *
+     * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
+     * 
+ * + * RSA_PKCS1_4096_SHA256 = 8; + */ + RSA_PKCS1_4096_SHA256(8), /** * * @@ -999,9 +1032,9 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256 * * - * RSA_PSS_2048_SHA_256 = 1; + * RSA_PSS_2048_SHA256 = 1; */ - public static final int RSA_PSS_2048_SHA_256_VALUE = 1; + public static final int RSA_PSS_2048_SHA256_VALUE = 1; /** * * @@ -1009,9 +1042,9 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum * maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256 * * - * RSA_PSS_3072_SHA_256 = 2; + * RSA_PSS_3072_SHA256 = 2; */ - public static final int RSA_PSS_3072_SHA_256_VALUE = 2; + public static final int RSA_PSS_3072_SHA256_VALUE = 2; /** * * @@ -1019,9 +1052,39 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256 * * - * RSA_PSS_4096_SHA_256 = 3; + * RSA_PSS_4096_SHA256 = 3; + */ + public static final int RSA_PSS_4096_SHA256_VALUE = 3; + /** + * + * + *
+     * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
+     * 
+ * + * RSA_PKCS1_2048_SHA256 = 6; + */ + public static final int RSA_PKCS1_2048_SHA256_VALUE = 6; + /** + * + * + *
+     * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
+     * 
+ * + * RSA_PKCS1_3072_SHA256 = 7; + */ + public static final int RSA_PKCS1_3072_SHA256_VALUE = 7; + /** + * + * + *
+     * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
+     * 
+ * + * RSA_PKCS1_4096_SHA256 = 8; */ - public static final int RSA_PSS_4096_SHA_256_VALUE = 3; + public static final int RSA_PKCS1_4096_SHA256_VALUE = 8; /** * * @@ -1070,11 +1133,17 @@ public static SignHashAlgorithm forNumber(int value) { case 0: return SIGN_HASH_ALGORITHM_UNSPECIFIED; case 1: - return RSA_PSS_2048_SHA_256; + return RSA_PSS_2048_SHA256; case 2: - return RSA_PSS_3072_SHA_256; + return RSA_PSS_3072_SHA256; case 3: - return RSA_PSS_4096_SHA_256; + return RSA_PSS_4096_SHA256; + case 6: + return RSA_PKCS1_2048_SHA256; + case 7: + return RSA_PKCS1_3072_SHA256; + case 8: + return RSA_PKCS1_4096_SHA256; case 4: return EC_P256_SHA256; case 5: @@ -10885,7 +10954,8 @@ public interface KeyVersionSpecOrBuilder * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
-     * format`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * format
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
      * This option enables full flexibility in the key's capabilities and
      * properties.
      * 
@@ -10900,7 +10970,8 @@ public interface KeyVersionSpecOrBuilder * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
-     * format`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * format
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
      * This option enables full flexibility in the key's capabilities and
      * properties.
      * 
@@ -11102,7 +11173,8 @@ public KeyVersionCase getKeyVersionCase() { * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
-     * format`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * format
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
      * This option enables full flexibility in the key's capabilities and
      * properties.
      * 
@@ -11132,7 +11204,8 @@ public java.lang.String getCloudKmsKeyVersion() { * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
-     * format`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * format
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
      * This option enables full flexibility in the key's capabilities and
      * properties.
      * 
@@ -11627,7 +11700,8 @@ public Builder clearKeyVersion() { * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
-       * format`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+       * format
+       * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
        * This option enables full flexibility in the key's capabilities and
        * properties.
        * 
@@ -11658,7 +11732,8 @@ public java.lang.String getCloudKmsKeyVersion() { * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
-       * format`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+       * format
+       * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
        * This option enables full flexibility in the key's capabilities and
        * properties.
        * 
@@ -11689,7 +11764,8 @@ public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
-       * format`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+       * format
+       * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
        * This option enables full flexibility in the key's capabilities and
        * properties.
        * 
@@ -11713,7 +11789,8 @@ public Builder setCloudKmsKeyVersion(java.lang.String value) { * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
-       * format`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+       * format
+       * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
        * This option enables full flexibility in the key's capabilities and
        * properties.
        * 
@@ -11735,7 +11812,8 @@ public Builder clearCloudKmsKeyVersion() { * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
-       * format`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+       * format
+       * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
        * This option enables full flexibility in the key's capabilities and
        * properties.
        * 
diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java index 3cfceeb4..012134f1 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java @@ -123,13 +123,15 @@ public interface CertificateOrBuilder * * *
-   * Required. The desired lifetime of a certificate. Used to create the
+   * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate. Note that the lifetime may be truncated if it would extend
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return Whether the lifetime field is set. */ @@ -138,13 +140,15 @@ public interface CertificateOrBuilder * * *
-   * Required. The desired lifetime of a certificate. Used to create the
+   * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate. Note that the lifetime may be truncated if it would extend
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The lifetime. */ @@ -153,13 +157,15 @@ public interface CertificateOrBuilder * * *
-   * Required. The desired lifetime of a certificate. Used to create the
+   * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate. Note that the lifetime may be truncated if it would extend
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder(); diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java index 122ecf61..b1ce4b63 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * Required. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`
+   * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -236,7 +236,7 @@ public java.lang.String getCertificateAuthorityId() { * *
    * Required. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`
+   * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -914,7 +914,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * Required. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`
+     * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -937,7 +937,7 @@ public java.lang.String getCertificateAuthorityId() { * *
      * Required. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`
+     * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -960,7 +960,7 @@ public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { * *
      * Required. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`
+     * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -982,7 +982,7 @@ public Builder setCertificateAuthorityId(java.lang.String value) { * *
      * Required. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`
+     * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1000,7 +1000,7 @@ public Builder clearCertificateAuthorityId() { * *
      * Required. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`
+     * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java index 47c7c7f4..15e0c27f 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java @@ -61,7 +61,7 @@ public interface CreateCertificateAuthorityRequestOrBuilder * *
    * Required. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`
+   * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -74,7 +74,7 @@ public interface CreateCertificateAuthorityRequestOrBuilder * *
    * Required. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`
+   * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java index 8ae5e95a..c4b19376 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * Optional. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a
+   * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
    * but is optional and its value is ignored otherwise.
    * 
@@ -234,7 +234,7 @@ public java.lang.String getCertificateId() { * *
    * Optional. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a
+   * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
    * but is optional and its value is ignored otherwise.
    * 
@@ -899,7 +899,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * Optional. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a
+     * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
      * but is optional and its value is ignored otherwise.
      * 
@@ -924,7 +924,7 @@ public java.lang.String getCertificateId() { * *
      * Optional. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a
+     * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
      * but is optional and its value is ignored otherwise.
      * 
@@ -949,7 +949,7 @@ public com.google.protobuf.ByteString getCertificateIdBytes() { * *
      * Optional. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a
+     * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
      * but is optional and its value is ignored otherwise.
      * 
@@ -973,7 +973,7 @@ public Builder setCertificateId(java.lang.String value) { * *
      * Optional. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a
+     * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
      * but is optional and its value is ignored otherwise.
      * 
@@ -993,7 +993,7 @@ public Builder clearCertificateId() { * *
      * Optional. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a
+     * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
      * but is optional and its value is ignored otherwise.
      * 
diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java index 583f91f5..e7a69236 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java @@ -61,7 +61,7 @@ public interface CreateCertificateRequestOrBuilder * *
    * Optional. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a
+   * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
    * but is optional and its value is ignored otherwise.
    * 
@@ -76,7 +76,7 @@ public interface CreateCertificateRequestOrBuilder * *
    * Optional. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a
+   * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
    * but is optional and its value is ignored otherwise.
    * 
diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRevocationListRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRevocationListRequest.java deleted file mode 100644 index a4a25e70..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRevocationListRequest.java +++ /dev/null @@ -1,1469 +0,0 @@ -/* - * 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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -/** - * - * - *
- * Request message for
- * [CertificateAuthorityService.CreateCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificateRevocationList].
- * 
- * - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest} - */ -public final class CreateCertificateRevocationListRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest) - CreateCertificateRevocationListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateCertificateRevocationListRequest.newBuilder() to construct. - private CreateCertificateRevocationListRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateCertificateRevocationListRequest() { - parent_ = ""; - certificateRevocationListId_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateCertificateRevocationListRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateCertificateRevocationListRequest( - 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(); - - certificateRevocationListId_ = s; - break; - } - case 26: - { - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - subBuilder = null; - if (certificateRevocationList_ != null) { - subBuilder = certificateRevocationList_.toBuilder(); - } - certificateRevocationList_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateRevocationList_); - certificateRevocationList_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = 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.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRevocationListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRevocationListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - .class, - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - .Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-   * associated with the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
-   * `projects/*/locations/*/certificateAuthorities/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-   * associated with the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
-   * `projects/*/locations/*/certificateAuthorities/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 CERTIFICATE_REVOCATION_LIST_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object certificateRevocationListId_; - /** - * - * - *
-   * Required. It must be unique within a location and match the regular expression
-   * `[a-zA-Z0-9-]{1,63}`
-   * 
- * - * string certificate_revocation_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The certificateRevocationListId. - */ - @java.lang.Override - public java.lang.String getCertificateRevocationListId() { - java.lang.Object ref = certificateRevocationListId_; - 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(); - certificateRevocationListId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. It must be unique within a location and match the regular expression
-   * `[a-zA-Z0-9-]{1,63}`
-   * 
- * - * string certificate_revocation_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for certificateRevocationListId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCertificateRevocationListIdBytes() { - java.lang.Object ref = certificateRevocationListId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - certificateRevocationListId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CERTIFICATE_REVOCATION_LIST_FIELD_NUMBER = 3; - private com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - certificateRevocationList_; - /** - * - * - *
-   * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the certificateRevocationList field is set. - */ - @java.lang.Override - public boolean hasCertificateRevocationList() { - return certificateRevocationList_ != null; - } - /** - * - * - *
-   * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The certificateRevocationList. - */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getCertificateRevocationList() { - return certificateRevocationList_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance() - : certificateRevocationList_; - } - /** - * - * - *
-   * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder - getCertificateRevocationListOrBuilder() { - return getCertificateRevocationList(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = 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 (!getCertificateRevocationListIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, certificateRevocationListId_); - } - if (certificateRevocationList_ != null) { - output.writeMessage(3, getCertificateRevocationList()); - } - if (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - 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 (!getCertificateRevocationListIdBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateRevocationListId_); - } - if (certificateRevocationList_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getCertificateRevocationList()); - } - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - 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.security.privateca.v1beta1.CreateCertificateRevocationListRequest)) { - return super.equals(obj); - } - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest other = - (com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getCertificateRevocationListId().equals(other.getCertificateRevocationListId())) - return false; - if (hasCertificateRevocationList() != other.hasCertificateRevocationList()) return false; - if (hasCertificateRevocationList()) { - if (!getCertificateRevocationList().equals(other.getCertificateRevocationList())) - return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + CERTIFICATE_REVOCATION_LIST_ID_FIELD_NUMBER; - hash = (53 * hash) + getCertificateRevocationListId().hashCode(); - if (hasCertificateRevocationList()) { - hash = (37 * hash) + CERTIFICATE_REVOCATION_LIST_FIELD_NUMBER; - hash = (53 * hash) + getCertificateRevocationList().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - 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.security.privateca.v1beta1.CreateCertificateRevocationListRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - 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.security.privateca.v1beta1.CreateCertificateRevocationListRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - 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.security.privateca.v1beta1.CreateCertificateRevocationListRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - 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.security.privateca.v1beta1.CreateCertificateRevocationListRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - 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.security.privateca.v1beta1.CreateCertificateRevocationListRequest - 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
-   * [CertificateAuthorityService.CreateCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificateRevocationList].
-   * 
- * - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest) - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRevocationListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRevocationListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - .class, - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - .Builder.class); - } - - // Construct using - // com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest.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_ = ""; - - certificateRevocationListId_ = ""; - - if (certificateRevocationListBuilder_ == null) { - certificateRevocationList_ = null; - } else { - certificateRevocationList_ = null; - certificateRevocationListBuilder_ = null; - } - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRevocationListRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - build() { - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - buildPartial() { - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest result = - new com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest( - this); - result.parent_ = parent_; - result.certificateRevocationListId_ = certificateRevocationListId_; - if (certificateRevocationListBuilder_ == null) { - result.certificateRevocationList_ = certificateRevocationList_; - } else { - result.certificateRevocationList_ = certificateRevocationListBuilder_.build(); - } - result.requestId_ = requestId_; - 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.security.privateca.v1beta1.CreateCertificateRevocationListRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getCertificateRevocationListId().isEmpty()) { - certificateRevocationListId_ = other.certificateRevocationListId_; - onChanged(); - } - if (other.hasCertificateRevocationList()) { - mergeCertificateRevocationList(other.getCertificateRevocationList()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * associated with the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
-     * `projects/*/locations/*/certificateAuthorities/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * associated with the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
-     * `projects/*/locations/*/certificateAuthorities/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * associated with the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
-     * `projects/*/locations/*/certificateAuthorities/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * associated with the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
-     * `projects/*/locations/*/certificateAuthorities/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * associated with the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
-     * `projects/*/locations/*/certificateAuthorities/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 certificateRevocationListId_ = ""; - /** - * - * - *
-     * Required. It must be unique within a location and match the regular expression
-     * `[a-zA-Z0-9-]{1,63}`
-     * 
- * - * string certificate_revocation_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The certificateRevocationListId. - */ - public java.lang.String getCertificateRevocationListId() { - java.lang.Object ref = certificateRevocationListId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - certificateRevocationListId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. It must be unique within a location and match the regular expression
-     * `[a-zA-Z0-9-]{1,63}`
-     * 
- * - * string certificate_revocation_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for certificateRevocationListId. - */ - public com.google.protobuf.ByteString getCertificateRevocationListIdBytes() { - java.lang.Object ref = certificateRevocationListId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - certificateRevocationListId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. It must be unique within a location and match the regular expression
-     * `[a-zA-Z0-9-]{1,63}`
-     * 
- * - * string certificate_revocation_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The certificateRevocationListId to set. - * @return This builder for chaining. - */ - public Builder setCertificateRevocationListId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - certificateRevocationListId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. It must be unique within a location and match the regular expression
-     * `[a-zA-Z0-9-]{1,63}`
-     * 
- * - * string certificate_revocation_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearCertificateRevocationListId() { - - certificateRevocationListId_ = getDefaultInstance().getCertificateRevocationListId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. It must be unique within a location and match the regular expression
-     * `[a-zA-Z0-9-]{1,63}`
-     * 
- * - * string certificate_revocation_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The bytes for certificateRevocationListId to set. - * @return This builder for chaining. - */ - public Builder setCertificateRevocationListIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - certificateRevocationListId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - certificateRevocationList_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> - certificateRevocationListBuilder_; - /** - * - * - *
-     * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the certificateRevocationList field is set. - */ - public boolean hasCertificateRevocationList() { - return certificateRevocationListBuilder_ != null || certificateRevocationList_ != null; - } - /** - * - * - *
-     * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The certificateRevocationList. - */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getCertificateRevocationList() { - if (certificateRevocationListBuilder_ == null) { - return certificateRevocationList_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .getDefaultInstance() - : certificateRevocationList_; - } else { - return certificateRevocationListBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { - if (certificateRevocationListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - certificateRevocationList_ = value; - onChanged(); - } else { - certificateRevocationListBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - builderForValue) { - if (certificateRevocationListBuilder_ == null) { - certificateRevocationList_ = builderForValue.build(); - onChanged(); - } else { - certificateRevocationListBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { - if (certificateRevocationListBuilder_ == null) { - if (certificateRevocationList_ != null) { - certificateRevocationList_ = - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.newBuilder( - certificateRevocationList_) - .mergeFrom(value) - .buildPartial(); - } else { - certificateRevocationList_ = value; - } - onChanged(); - } else { - certificateRevocationListBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCertificateRevocationList() { - if (certificateRevocationListBuilder_ == null) { - certificateRevocationList_ = null; - onChanged(); - } else { - certificateRevocationList_ = null; - certificateRevocationListBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - getCertificateRevocationListBuilder() { - - onChanged(); - return getCertificateRevocationListFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder - getCertificateRevocationListOrBuilder() { - if (certificateRevocationListBuilder_ != null) { - return certificateRevocationListBuilder_.getMessageOrBuilder(); - } else { - return certificateRevocationList_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .getDefaultInstance() - : certificateRevocationList_; - } - } - /** - * - * - *
-     * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> - getCertificateRevocationListFieldBuilder() { - if (certificateRevocationListBuilder_ == null) { - certificateRevocationListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder>( - getCertificateRevocationList(), getParentForChildren(), isClean()); - certificateRevocationList_ = null; - } - return certificateRevocationListBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = 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.security.privateca.v1beta1.CreateCertificateRevocationListRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest) - private static final com.google.cloud.security.privateca.v1beta1 - .CreateCertificateRevocationListRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest(); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateRevocationListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateRevocationListRequest(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.security.privateca.v1beta1.CreateCertificateRevocationListRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRevocationListRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRevocationListRequestOrBuilder.java deleted file mode 100644 index 8cc2b3a2..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRevocationListRequestOrBuilder.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * 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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface CreateCertificateRevocationListRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CreateCertificateRevocationListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-   * associated with the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
-   * `projects/*/locations/*/certificateAuthorities/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-   * associated with the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
-   * `projects/*/locations/*/certificateAuthorities/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. It must be unique within a location and match the regular expression
-   * `[a-zA-Z0-9-]{1,63}`
-   * 
- * - * string certificate_revocation_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The certificateRevocationListId. - */ - java.lang.String getCertificateRevocationListId(); - /** - * - * - *
-   * Required. It must be unique within a location and match the regular expression
-   * `[a-zA-Z0-9-]{1,63}`
-   * 
- * - * string certificate_revocation_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for certificateRevocationListId. - */ - com.google.protobuf.ByteString getCertificateRevocationListIdBytes(); - - /** - * - * - *
-   * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the certificateRevocationList field is set. - */ - boolean hasCertificateRevocationList(); - /** - * - * - *
-   * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The certificateRevocationList. - */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getCertificateRevocationList(); - /** - * - * - *
-   * Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder - getCertificateRevocationListOrBuilder(); - - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateReusableConfigRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateReusableConfigRequest.java deleted file mode 100644 index cd92ebd9..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateReusableConfigRequest.java +++ /dev/null @@ -1,1425 +0,0 @@ -/* - * 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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -/** - * - * - *
- * Request message for
- * [CertificateAuthorityService.CreateReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateReusableConfig].
- * 
- * - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest} - */ -public final class CreateReusableConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest) - CreateReusableConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateReusableConfigRequest.newBuilder() to construct. - private CreateReusableConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateReusableConfigRequest() { - parent_ = ""; - reusableConfigId_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateReusableConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateReusableConfigRequest( - 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(); - - reusableConfigId_ = s; - break; - } - case 26: - { - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder subBuilder = null; - if (reusableConfig_ != null) { - subBuilder = reusableConfig_.toBuilder(); - } - reusableConfig_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.ReusableConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reusableConfig_); - reusableConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = 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.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateReusableConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateReusableConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest.class, - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The resource name of the location associated with the
-   * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format
-   * `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 location associated with the
-   * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format
-   * `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 REUSABLE_CONFIG_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object reusableConfigId_; - /** - * - * - *
-   * Required. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`
-   * 
- * - * string reusable_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The reusableConfigId. - */ - @java.lang.Override - public java.lang.String getReusableConfigId() { - java.lang.Object ref = reusableConfigId_; - 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(); - reusableConfigId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`
-   * 
- * - * string reusable_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for reusableConfigId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getReusableConfigIdBytes() { - java.lang.Object ref = reusableConfigId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - reusableConfigId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REUSABLE_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.security.privateca.v1beta1.ReusableConfig reusableConfig_; - /** - * - * - *
-   * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the reusableConfig field is set. - */ - @java.lang.Override - public boolean hasReusableConfig() { - return reusableConfig_ != null; - } - /** - * - * - *
-   * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The reusableConfig. - */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfig() { - return reusableConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance() - : reusableConfig_; - } - /** - * - * - *
-   * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder - getReusableConfigOrBuilder() { - return getReusableConfig(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = 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 (!getReusableConfigIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reusableConfigId_); - } - if (reusableConfig_ != null) { - output.writeMessage(3, getReusableConfig()); - } - if (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - 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 (!getReusableConfigIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reusableConfigId_); - } - if (reusableConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReusableConfig()); - } - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - 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.security.privateca.v1beta1.CreateReusableConfigRequest)) { - return super.equals(obj); - } - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest other = - (com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getReusableConfigId().equals(other.getReusableConfigId())) return false; - if (hasReusableConfig() != other.hasReusableConfig()) return false; - if (hasReusableConfig()) { - if (!getReusableConfig().equals(other.getReusableConfig())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + REUSABLE_CONFIG_ID_FIELD_NUMBER; - hash = (53 * hash) + getReusableConfigId().hashCode(); - if (hasReusableConfig()) { - hash = (37 * hash) + REUSABLE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getReusableConfig().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest 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.security.privateca.v1beta1.CreateReusableConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest 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.security.privateca.v1beta1.CreateReusableConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest 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.security.privateca.v1beta1.CreateReusableConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest - 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.security.privateca.v1beta1.CreateReusableConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest 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.security.privateca.v1beta1.CreateReusableConfigRequest 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
-   * [CertificateAuthorityService.CreateReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateReusableConfig].
-   * 
- * - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest) - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateReusableConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateReusableConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest.class, - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest.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_ = ""; - - reusableConfigId_ = ""; - - if (reusableConfigBuilder_ == null) { - reusableConfig_ = null; - } else { - reusableConfig_ = null; - reusableConfigBuilder_ = null; - } - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateReusableConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest build() { - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest result = - new com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest(this); - result.parent_ = parent_; - result.reusableConfigId_ = reusableConfigId_; - if (reusableConfigBuilder_ == null) { - result.reusableConfig_ = reusableConfig_; - } else { - result.reusableConfig_ = reusableConfigBuilder_.build(); - } - result.requestId_ = requestId_; - 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.security.privateca.v1beta1.CreateReusableConfigRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getReusableConfigId().isEmpty()) { - reusableConfigId_ = other.reusableConfigId_; - onChanged(); - } - if (other.hasReusableConfig()) { - mergeReusableConfig(other.getReusableConfig()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The resource name of the location associated with the
-     * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format
-     * `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 location associated with the
-     * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format
-     * `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 location associated with the
-     * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format
-     * `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 location associated with the
-     * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format
-     * `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the location associated with the
-     * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format
-     * `projects/*/locations/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @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 reusableConfigId_ = ""; - /** - * - * - *
-     * Required. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`
-     * 
- * - * string reusable_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The reusableConfigId. - */ - public java.lang.String getReusableConfigId() { - java.lang.Object ref = reusableConfigId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reusableConfigId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`
-     * 
- * - * string reusable_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for reusableConfigId. - */ - public com.google.protobuf.ByteString getReusableConfigIdBytes() { - java.lang.Object ref = reusableConfigId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - reusableConfigId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`
-     * 
- * - * string reusable_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The reusableConfigId to set. - * @return This builder for chaining. - */ - public Builder setReusableConfigId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - reusableConfigId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`
-     * 
- * - * string reusable_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearReusableConfigId() { - - reusableConfigId_ = getDefaultInstance().getReusableConfigId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. It must be unique within a location and match the regular
-     * expression `[a-zA-Z0-9-]{1,63}`
-     * 
- * - * string reusable_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for reusableConfigId to set. - * @return This builder for chaining. - */ - public Builder setReusableConfigIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reusableConfigId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.security.privateca.v1beta1.ReusableConfig reusableConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfig, - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> - reusableConfigBuilder_; - /** - * - * - *
-     * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the reusableConfig field is set. - */ - public boolean hasReusableConfig() { - return reusableConfigBuilder_ != null || reusableConfig_ != null; - } - /** - * - * - *
-     * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The reusableConfig. - */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfig() { - if (reusableConfigBuilder_ == null) { - return reusableConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance() - : reusableConfig_; - } else { - return reusableConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setReusableConfig( - com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { - if (reusableConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reusableConfig_ = value; - onChanged(); - } else { - reusableConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setReusableConfig( - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { - if (reusableConfigBuilder_ == null) { - reusableConfig_ = builderForValue.build(); - onChanged(); - } else { - reusableConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeReusableConfig( - com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { - if (reusableConfigBuilder_ == null) { - if (reusableConfig_ != null) { - reusableConfig_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfig.newBuilder(reusableConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - reusableConfig_ = value; - } - onChanged(); - } else { - reusableConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearReusableConfig() { - if (reusableConfigBuilder_ == null) { - reusableConfig_ = null; - onChanged(); - } else { - reusableConfig_ = null; - reusableConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder - getReusableConfigBuilder() { - - onChanged(); - return getReusableConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder - getReusableConfigOrBuilder() { - if (reusableConfigBuilder_ != null) { - return reusableConfigBuilder_.getMessageOrBuilder(); - } else { - return reusableConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance() - : reusableConfig_; - } - } - /** - * - * - *
-     * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfig, - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> - getReusableConfigFieldBuilder() { - if (reusableConfigBuilder_ == null) { - reusableConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfig, - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder>( - getReusableConfig(), getParentForChildren(), isClean()); - reusableConfig_ = null; - } - return reusableConfigBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = 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.security.privateca.v1beta1.CreateReusableConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest) - private static final com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest(); - } - - public static com.google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReusableConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateReusableConfigRequest(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.security.privateca.v1beta1.CreateReusableConfigRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateReusableConfigRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateReusableConfigRequestOrBuilder.java deleted file mode 100644 index e623689d..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateReusableConfigRequestOrBuilder.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * 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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface CreateReusableConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CreateReusableConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the location associated with the
-   * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format
-   * `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The resource name of the location associated with the
-   * [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format
-   * `projects/*/locations/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`
-   * 
- * - * string reusable_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The reusableConfigId. - */ - java.lang.String getReusableConfigId(); - /** - * - * - *
-   * Required. It must be unique within a location and match the regular
-   * expression `[a-zA-Z0-9-]{1,63}`
-   * 
- * - * string reusable_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for reusableConfigId. - */ - com.google.protobuf.ByteString getReusableConfigIdBytes(); - - /** - * - * - *
-   * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the reusableConfig field is set. - */ - boolean hasReusableConfig(); - /** - * - * - *
-   * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The reusableConfig. - */ - com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfig(); - /** - * - * - *
-   * Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableConfigOrBuilder(); - - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DeleteReusableConfigRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DeleteReusableConfigRequest.java deleted file mode 100644 index 81438171..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DeleteReusableConfigRequest.java +++ /dev/null @@ -1,924 +0,0 @@ -/* - * 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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -/** - * - * - *
- * Request message for
- * [CertificateAuthorityService.DeleteReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.DeleteReusableConfig].
- * 
- * - * Protobuf type {@code google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest} - */ -public final class DeleteReusableConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest) - DeleteReusableConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteReusableConfigRequest.newBuilder() to construct. - private DeleteReusableConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteReusableConfigRequest() { - name_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteReusableConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteReusableConfigRequest( - 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(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = 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.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_DeleteReusableConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_DeleteReusableConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest.class, - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
-   * `projects/*/locations/*/reusableConfigs/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
-   * `projects/*/locations/*/reusableConfigs/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); - } - 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.security.privateca.v1beta1.DeleteReusableConfigRequest)) { - return super.equals(obj); - } - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest other = - (com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest 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.security.privateca.v1beta1.DeleteReusableConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest 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.security.privateca.v1beta1.DeleteReusableConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest 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.security.privateca.v1beta1.DeleteReusableConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest - 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.security.privateca.v1beta1.DeleteReusableConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest 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.security.privateca.v1beta1.DeleteReusableConfigRequest 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
-   * [CertificateAuthorityService.DeleteReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.DeleteReusableConfig].
-   * 
- * - * Protobuf type {@code google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest) - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_DeleteReusableConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_DeleteReusableConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest.class, - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest.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(); - name_ = ""; - - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_DeleteReusableConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest build() { - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest result = - new com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest(this); - result.name_ = name_; - result.requestId_ = requestId_; - 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.security.privateca.v1beta1.DeleteReusableConfigRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
-     * `projects/*/locations/*/reusableConfigs/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
-     * `projects/*/locations/*/reusableConfigs/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
-     * `projects/*/locations/*/reusableConfigs/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
-     * `projects/*/locations/*/reusableConfigs/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
-     * `projects/*/locations/*/reusableConfigs/*`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = 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.security.privateca.v1beta1.DeleteReusableConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest) - private static final com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest(); - } - - public static com.google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteReusableConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteReusableConfigRequest(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.security.privateca.v1beta1.DeleteReusableConfigRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DeleteReusableConfigRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DeleteReusableConfigRequestOrBuilder.java deleted file mode 100644 index 8d50a035..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DeleteReusableConfigRequestOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * 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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface DeleteReusableConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.DeleteReusableConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
-   * `projects/*/locations/*/reusableConfigs/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
-   * `projects/*/locations/*/reusableConfigs/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java index f41cd4ce..2ba33160 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java @@ -277,7 +277,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * Optional. Only include resources that match the filter in the response.
+   * Optional. Only include resources that match the filter in the response. For details
+   * on supported filters and syntax, see [Certificates Filtering
+   * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -300,7 +302,9 @@ public java.lang.String getFilter() { * * *
-   * Optional. Only include resources that match the filter in the response.
+   * Optional. Only include resources that match the filter in the response. For details
+   * on supported filters and syntax, see [Certificates Filtering
+   * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -326,7 +330,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * Optional. Specify how the results should be sorted.
+   * Optional. Specify how the results should be sorted. For details on supported fields
+   * and syntax, see [Certificates Sorting
+   * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -349,7 +355,9 @@ public java.lang.String getOrderBy() { * * *
-   * Optional. Specify how the results should be sorted.
+   * Optional. Specify how the results should be sorted. For details on supported fields
+   * and syntax, see [Certificates Sorting
+   * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1068,7 +1076,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Only include resources that match the filter in the response.
+     * Optional. Only include resources that match the filter in the response. For details
+     * on supported filters and syntax, see [Certificates Filtering
+     * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1090,7 +1100,9 @@ public java.lang.String getFilter() { * * *
-     * Optional. Only include resources that match the filter in the response.
+     * Optional. Only include resources that match the filter in the response. For details
+     * on supported filters and syntax, see [Certificates Filtering
+     * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1112,7 +1124,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Optional. Only include resources that match the filter in the response.
+     * Optional. Only include resources that match the filter in the response. For details
+     * on supported filters and syntax, see [Certificates Filtering
+     * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1133,7 +1147,9 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Optional. Only include resources that match the filter in the response.
+     * Optional. Only include resources that match the filter in the response. For details
+     * on supported filters and syntax, see [Certificates Filtering
+     * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1150,7 +1166,9 @@ public Builder clearFilter() { * * *
-     * Optional. Only include resources that match the filter in the response.
+     * Optional. Only include resources that match the filter in the response. For details
+     * on supported filters and syntax, see [Certificates Filtering
+     * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1174,7 +1192,9 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Specify how the results should be sorted.
+     * Optional. Specify how the results should be sorted. For details on supported fields
+     * and syntax, see [Certificates Sorting
+     * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1196,7 +1216,9 @@ public java.lang.String getOrderBy() { * * *
-     * Optional. Specify how the results should be sorted.
+     * Optional. Specify how the results should be sorted. For details on supported fields
+     * and syntax, see [Certificates Sorting
+     * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1218,7 +1240,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
-     * Optional. Specify how the results should be sorted.
+     * Optional. Specify how the results should be sorted. For details on supported fields
+     * and syntax, see [Certificates Sorting
+     * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1239,7 +1263,9 @@ public Builder setOrderBy(java.lang.String value) { * * *
-     * Optional. Specify how the results should be sorted.
+     * Optional. Specify how the results should be sorted. For details on supported fields
+     * and syntax, see [Certificates Sorting
+     * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1256,7 +1282,9 @@ public Builder clearOrderBy() { * * *
-     * Optional. Specify how the results should be sorted.
+     * Optional. Specify how the results should be sorted. For details on supported fields
+     * and syntax, see [Certificates Sorting
+     * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java index ad15aa59..0f0c7eb1 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java @@ -105,7 +105,9 @@ public interface ListCertificatesRequestOrBuilder * * *
-   * Optional. Only include resources that match the filter in the response.
+   * Optional. Only include resources that match the filter in the response. For details
+   * on supported filters and syntax, see [Certificates Filtering
+   * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -117,7 +119,9 @@ public interface ListCertificatesRequestOrBuilder * * *
-   * Optional. Only include resources that match the filter in the response.
+   * Optional. Only include resources that match the filter in the response. For details
+   * on supported filters and syntax, see [Certificates Filtering
+   * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -130,7 +134,9 @@ public interface ListCertificatesRequestOrBuilder * * *
-   * Optional. Specify how the results should be sorted.
+   * Optional. Specify how the results should be sorted. For details on supported fields
+   * and syntax, see [Certificates Sorting
+   * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -142,7 +148,9 @@ public interface ListCertificatesRequestOrBuilder * * *
-   * Optional. Specify how the results should be sorted.
+   * Optional. Specify how the results should be sorted. For details on supported fields
+   * and syntax, see [Certificates Sorting
+   * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java index 9b501bf8..12aa81b6 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java @@ -99,10 +99,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRevocationListRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRevocationListRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -119,14 +115,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CreateReusableConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CreateReusableConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_DeleteReusableConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_DeleteReusableConfigRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -139,10 +127,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_UpdateReusableConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_UpdateReusableConfigRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -163,320 +147,268 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "api/field_behavior.proto\032\031google/api/res" + "ource.proto\0327google/cloud/security/priva" + "teca/v1beta1/resources.proto\032#google/lon" - + "grunning/operations.proto\032 google/protob" - + "uf/field_mask.proto\032\037google/protobuf/tim" - + "estamp.proto\"\347\001\n\030CreateCertificateReques" - + "t\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-privateca.goo" - + "gleapis.com/CertificateAuthority\022\033\n\016cert" - + "ificate_id\030\002 \001(\tB\003\340A\001\022N\n\013certificate\030\003 \001" - + "(\01324.google.cloud.security.privateca.v1b" - + "eta1.CertificateB\003\340A\002\022\027\n\nrequest_id\030\004 \001(" - + "\tB\003\340A\001\"S\n\025GetCertificateRequest\022:\n\004name\030" - + "\001 \001(\tB,\340A\002\372A&\n$privateca.googleapis.com/" - + "Certificate\"\275\001\n\027ListCertificatesRequest\022" - + "E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-privateca.googl" - + "eapis.com/CertificateAuthority\022\026\n\tpage_s" - + "ize\030\002 \001(\005B\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\025\n\010order_by\030\005 \001(\tB\003" - + "\340A\001\"\224\001\n\030ListCertificatesResponse\022J\n\014cert" - + "ificates\030\001 \003(\01324.google.cloud.security.p" - + "rivateca.v1beta1.Certificate\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\277\001\n\030R" - + "evokeCertificateRequest\022:\n\004name\030\001 \001(\tB,\340" + + "grunning/operations.proto\032\036google/protob" + + "uf/duration.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\"\347\001\n\030CreateCertificateRequest\022E\n\006par" + + "ent\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis." + + "com/CertificateAuthority\022\033\n\016certificate_" + + "id\030\002 \001(\tB\003\340A\001\022N\n\013certificate\030\003 \001(\01324.goo" + + "gle.cloud.security.privateca.v1beta1.Cer" + + "tificateB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"S" + + "\n\025GetCertificateRequest\022:\n\004name\030\001 \001(\tB,\340" + "A\002\372A&\n$privateca.googleapis.com/Certific" - + "ate\022N\n\006reason\030\002 \001(\01629.google.cloud.secur" - + "ity.privateca.v1beta1.RevocationReasonB\003" - + "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\271\001\n\030UpdateC" - + "ertificateRequest\022N\n\013certificate\030\001 \001(\01324" - + ".google.cloud.security.privateca.v1beta1" - + ".CertificateB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" - + ".google.protobuf.FieldMaskB\003\340A\002\022\027\n\nreque" - + "st_id\030\003 \001(\tB\003\340A\001\"\201\002\n#ActivateCertificate" + + "ate\"\275\001\n\027ListCertificatesRequest\022E\n\006paren" + + "t\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis.co" + + "m/CertificateAuthority\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\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\224\001\n\030" + + "ListCertificatesResponse\022J\n\014certificates" + + "\030\001 \003(\01324.google.cloud.security.privateca" + + ".v1beta1.Certificate\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\277\001\n\030RevokeCer" + + "tificateRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$p" + + "rivateca.googleapis.com/Certificate\022N\n\006r" + + "eason\030\002 \001(\01629.google.cloud.security.priv" + + "ateca.v1beta1.RevocationReasonB\003\340A\002\022\027\n\nr" + + "equest_id\030\003 \001(\tB\003\340A\001\"\271\001\n\030UpdateCertifica" + + "teRequest\022N\n\013certificate\030\001 \001(\01324.google." + + "cloud.security.privateca.v1beta1.Certifi" + + "cateB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 " + + "\001(\tB\003\340A\001\"\201\002\n#ActivateCertificateAuthorit" + + "yRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privatec" + + "a.googleapis.com/CertificateAuthority\022\037\n" + + "\022pem_ca_certificate\030\002 \001(\tB\003\340A\002\022[\n\022subord" + + "inate_config\030\003 \001(\0132:.google.cloud.securi" + + "ty.privateca.v1beta1.SubordinateConfigB\003" + + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\201\002\n!CreateC" + + "ertificateAuthorityRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022%\n\030certificate_authority_id\030\002 \001(\tB" + + "\003\340A\002\022a\n\025certificate_authority\030\003 \001(\0132=.go" + + "ogle.cloud.security.privateca.v1beta1.Ce" + + "rtificateAuthorityB\003\340A\002\022\027\n\nrequest_id\030\004 " + + "\001(\tB\003\340A\001\"\202\001\n\"DisableCertificateAuthority" + + "Request\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca" + + ".googleapis.com/CertificateAuthority\022\027\n\n" + + "request_id\030\002 \001(\tB\003\340A\001\"\201\001\n!EnableCertific" + + "ateAuthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A" + + "/\n-privateca.googleapis.com/CertificateA" + + "uthority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"j\n#Fet" + + "chCertificateAuthorityCsrRequest\022C\n\004name" + + "\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis.com" + + "/CertificateAuthority\"<\n$FetchCertificat" + + "eAuthorityCsrResponse\022\024\n\007pem_csr\030\001 \001(\tB\003" + + "\340A\003\"e\n\036GetCertificateAuthorityRequest\022C\n" + + "\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapi" + + "s.com/CertificateAuthority\"\273\001\n!ListCerti" + + "ficateAuthoritiesRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010ord" + + "er_by\030\005 \001(\tB\003\340A\001\"\262\001\n\"ListCertificateAuth" + + "oritiesResponse\022^\n\027certificate_authoriti" + + "es\030\001 \003(\0132=.google.cloud.security.private" + + "ca.v1beta1.CertificateAuthority\022\027\n\017next_" + + "page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\202\001" + + "\n\"RestoreCertificateAuthorityRequest\022C\n\004" + + "name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis" + + ".com/CertificateAuthority\022\027\n\nrequest_id\030" + + "\002 \001(\tB\003\340A\001\"\211\001\n)ScheduleDeleteCertificate" + "AuthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-" + "privateca.googleapis.com/CertificateAuth" - + "ority\022\037\n\022pem_ca_certificate\030\002 \001(\tB\003\340A\002\022[" - + "\n\022subordinate_config\030\003 \001(\0132:.google.clou" - + "d.security.privateca.v1beta1.Subordinate" - + "ConfigB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\201\002\n" - + "!CreateCertificateAuthorityRequest\0229\n\006pa" + + "ority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\325\001\n!Updat" + + "eCertificateAuthorityRequest\022a\n\025certific" + + "ate_authority\030\001 \001(\0132=.google.cloud.secur" + + "ity.privateca.v1beta1.CertificateAuthori" + + "tyB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(" + + "\tB\003\340A\001\"o\n#GetCertificateRevocationListRe" + + "quest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2privateca.g" + + "oogleapis.com/CertificateRevocationList\"" + + "\313\001\n%ListCertificateRevocationListsReques" + + "t\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-privateca.goo" + + "gleapis.com/CertificateAuthority\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\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\t" + + "B\003\340A\001\"\300\001\n&ListCertificateRevocationLists" + + "Response\022h\n\034certificate_revocation_lists" + + "\030\001 \003(\0132B.google.cloud.security.privateca" + + ".v1beta1.CertificateRevocationList\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" + + "\"\345\001\n&UpdateCertificateRevocationListRequ" + + "est\022l\n\033certificate_revocation_list\030\001 \001(\013" + + "2B.google.cloud.security.privateca.v1bet" + + "a1.CertificateRevocationListB\003\340A\002\0224\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"Y\n\030GetR" + + "eusableConfigRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372" + + "A)\n\'privateca.googleapis.com/ReusableCon" + + "fig\"\264\001\n\032ListReusableConfigsRequest\0229\n\006pa" + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" - + ".com/Location\022%\n\030certificate_authority_i" - + "d\030\002 \001(\tB\003\340A\002\022a\n\025certificate_authority\030\003 " - + "\001(\0132=.google.cloud.security.privateca.v1" - + "beta1.CertificateAuthorityB\003\340A\002\022\027\n\nreque" - + "st_id\030\004 \001(\tB\003\340A\001\"\202\001\n\"DisableCertificateA" - + "uthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-p" - + "rivateca.googleapis.com/CertificateAutho" - + "rity\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\201\001\n!Enable" - + "CertificateAuthorityRequest\022C\n\004name\030\001 \001(" - + "\tB5\340A\002\372A/\n-privateca.googleapis.com/Cert" - + "ificateAuthority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A" - + "\001\"j\n#FetchCertificateAuthorityCsrRequest" - + "\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.google" - + "apis.com/CertificateAuthority\"<\n$FetchCe" - + "rtificateAuthorityCsrResponse\022\024\n\007pem_csr" - + "\030\001 \001(\tB\003\340A\003\"e\n\036GetCertificateAuthorityRe" - + "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.g" - + "oogleapis.com/CertificateAuthority\"\273\001\n!L" - + "istCertificateAuthoritiesRequest\0229\n\006pare" - + "nt\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.c" - + "om/Location\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\023\n\006filter\030\004 \001(\tB\003\340A" - + "\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\262\001\n\"ListCertifi" - + "cateAuthoritiesResponse\022^\n\027certificate_a" - + "uthorities\030\001 \003(\0132=.google.cloud.security" - + ".privateca.v1beta1.CertificateAuthority\022" - + "\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030" - + "\003 \003(\t\"\202\001\n\"RestoreCertificateAuthorityReq" - + "uest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.go" - + "ogleapis.com/CertificateAuthority\022\027\n\nreq" - + "uest_id\030\002 \001(\tB\003\340A\001\"\211\001\n)ScheduleDeleteCer" - + "tificateAuthorityRequest\022C\n\004name\030\001 \001(\tB5" - + "\340A\002\372A/\n-privateca.googleapis.com/Certifi" - + "cateAuthority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\325" - + "\001\n!UpdateCertificateAuthorityRequest\022a\n\025" - + "certificate_authority\030\001 \001(\0132=.google.clo" - + "ud.security.privateca.v1beta1.Certificat" - + "eAuthorityB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\022\027\n\nrequest" - + "_id\030\003 \001(\tB\003\340A\001\"\243\002\n&CreateCertificateRevo" - + "cationListRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A" - + "/\n-privateca.googleapis.com/CertificateA" - + "uthority\022+\n\036certificate_revocation_list_" - + "id\030\002 \001(\tB\003\340A\002\022l\n\033certificate_revocation_" - + "list\030\003 \001(\0132B.google.cloud.security.priva" - + "teca.v1beta1.CertificateRevocationListB\003" - + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"o\n#GetCerti" - + "ficateRevocationListRequest\022H\n\004name\030\001 \001(" - + "\tB:\340A\002\372A4\n2privateca.googleapis.com/Cert" - + "ificateRevocationList\"\313\001\n%ListCertificat" - + "eRevocationListsRequest\022E\n\006parent\030\001 \001(\tB" - + "5\340A\002\372A/\n-privateca.googleapis.com/Certif" - + "icateAuthority\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\006filter\030\004 \001(\tB" - + "\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\300\001\n&ListCert" - + "ificateRevocationListsResponse\022h\n\034certif" - + "icate_revocation_lists\030\001 \003(\0132B.google.cl" - + "oud.security.privateca.v1beta1.Certifica" - + "teRevocationList\022\027\n\017next_page_token\030\002 \001(" - + "\t\022\023\n\013unreachable\030\003 \003(\t\"\345\001\n&UpdateCertifi" - + "cateRevocationListRequest\022l\n\033certificate" - + "_revocation_list\030\001 \001(\0132B.google.cloud.se" - + "curity.privateca.v1beta1.CertificateRevo" - + "cationListB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\022\027\n\nrequest" - + "_id\030\003 \001(\tB\003\340A\001\"\351\001\n\033CreateReusableConfigR" - + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" - + "s.googleapis.com/Location\022\037\n\022reusable_co" - + "nfig_id\030\002 \001(\tB\003\340A\002\022U\n\017reusable_config\030\003 " - + "\001(\01327.google.cloud.security.privateca.v1" - + "beta1.ReusableConfigB\003\340A\002\022\027\n\nrequest_id\030" - + "\004 \001(\tB\003\340A\001\"u\n\033DeleteReusableConfigReques" - + "t\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'privateca.googl" - + "eapis.com/ReusableConfig\022\027\n\nrequest_id\030\002" - + " \001(\tB\003\340A\001\"Y\n\030GetReusableConfigRequest\022=\n" - + "\004name\030\001 \001(\tB/\340A\002\372A)\n\'privateca.googleapi" - + "s.com/ReusableConfig\"\264\001\n\032ListReusableCon" - + "figsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" - + "ations.googleapis.com/Location\022\026\n\tpage_s" - + "ize\030\002 \001(\005B\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\025\n\010order_by\030\005 \001(\tB\003" - + "\340A\001\"\236\001\n\033ListReusableConfigsResponse\022Q\n\020r" - + "eusable_configs\030\001 \003(\01327.google.cloud.sec" - + "urity.privateca.v1beta1.ReusableConfig\022\027" - + "\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003" - + " \003(\t\"\303\001\n\033UpdateReusableConfigRequest\022U\n\017" - + "reusable_config\030\001 \001(\01327.google.cloud.sec" - + "urity.privateca.v1beta1.ReusableConfigB\003" - + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340" - + "A\001\"\200\002\n\021OperationMetadata\0224\n\013create_time\030" - + "\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221" - + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004" - + " \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#" - + "\n\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013a" - + "pi_version\030\007 \001(\tB\003\340A\0032\3056\n\033CertificateAut" - + "horityService\022\226\002\n\021CreateCertificate\022A.go" - + "ogle.cloud.security.privateca.v1beta1.Cr" - + "eateCertificateRequest\0324.google.cloud.se" - + "curity.privateca.v1beta1.Certificate\"\207\001\202" - + "\323\344\223\002]\"N/v1beta1/{parent=projects/*/locat" - + "ions/*/certificateAuthorities/*}/certifi" - + "cates:\013certificate\332A!parent,certificate," - + "certificate_id\022\345\001\n\016GetCertificate\022>.goog" - + "le.cloud.security.privateca.v1beta1.GetC" - + "ertificateRequest\0324.google.cloud.securit" - + "y.privateca.v1beta1.Certificate\"]\202\323\344\223\002P\022" - + "N/v1beta1/{name=projects/*/locations/*/c" - + "ertificateAuthorities/*/certificates/*}\332" - + "A\004name\022\370\001\n\020ListCertificates\022@.google.clo" - + "ud.security.privateca.v1beta1.ListCertif" - + "icatesRequest\032A.google.cloud.security.pr" - + "ivateca.v1beta1.ListCertificatesResponse" - + "\"_\202\323\344\223\002P\022N/v1beta1/{parent=projects/*/lo" - + "cations/*/certificateAuthorities/*}/cert" - + "ificates\332A\006parent\022\365\001\n\021RevokeCertificate\022" - + "A.google.cloud.security.privateca.v1beta" - + "1.RevokeCertificateRequest\0324.google.clou" - + "d.security.privateca.v1beta1.Certificate" - + "\"g\202\323\344\223\002Z\"U/v1beta1/{name=projects/*/loca" - + "tions/*/certificateAuthorities/*/certifi" - + "cates/*}:revoke:\001*\332A\004name\022\230\002\n\021UpdateCert" - + "ificate\022A.google.cloud.security.privatec" - + "a.v1beta1.UpdateCertificateRequest\0324.goo" - + "gle.cloud.security.privateca.v1beta1.Cer" - + "tificate\"\211\001\202\323\344\223\002i2Z/v1beta1/{certificate" - + ".name=projects/*/locations/*/certificate" - + "Authorities/*/certificates/*}:\013certifica" - + "te\332A\027certificate,update_mask\022\224\002\n\034Activat" - + "eCertificateAuthority\022L.google.cloud.sec" - + "urity.privateca.v1beta1.ActivateCertific" - + "ateAuthorityRequest\032\035.google.longrunning" - + ".Operation\"\206\001\202\323\344\223\002M\"H/v1beta1/{name=proj" - + "ects/*/locations/*/certificateAuthoritie" - + "s/*}:activate:\001*\332A\004name\312A)\n\024CertificateA" - + "uthority\022\021OperationMetadata\022\314\002\n\032CreateCe" - + "rtificateAuthority\022J.google.cloud.securi" - + "ty.privateca.v1beta1.CreateCertificateAu" - + "thorityRequest\032\035.google.longrunning.Oper" - + "ation\"\302\001\202\323\344\223\002X\"?/v1beta1/{parent=project" - + "s/*/locations/*}/certificateAuthorities:" - + "\025certificate_authority\332A5parent,certific" - + "ate_authority,certificate_authority_id\312A" - + ")\n\024CertificateAuthority\022\021OperationMetada" - + "ta\022\221\002\n\033DisableCertificateAuthority\022K.goo" - + "gle.cloud.security.privateca.v1beta1.Dis" - + "ableCertificateAuthorityRequest\032\035.google" - + ".longrunning.Operation\"\205\001\202\323\344\223\002L\"G/v1beta" - + "1/{name=projects/*/locations/*/certifica" - + "teAuthorities/*}:disable:\001*\332A\004name\312A)\n\024C" - + "ertificateAuthority\022\021OperationMetadata\022\216" - + "\002\n\032EnableCertificateAuthority\022J.google.c" - + "loud.security.privateca.v1beta1.EnableCe" - + "rtificateAuthorityRequest\032\035.google.longr" - + "unning.Operation\"\204\001\202\323\344\223\002K\"F/v1beta1/{nam" - + "e=projects/*/locations/*/certificateAuth" - + "orities/*}:enable:\001*\332A\004name\312A)\n\024Certific" - + "ateAuthority\022\021OperationMetadata\022\221\002\n\034Fetc" - + "hCertificateAuthorityCsr\022L.google.cloud." - + "security.privateca.v1beta1.FetchCertific" - + "ateAuthorityCsrRequest\032M.google.cloud.se" - + "curity.privateca.v1beta1.FetchCertificat" - + "eAuthorityCsrResponse\"T\202\323\344\223\002G\022E/v1beta1/" - + "{name=projects/*/locations/*/certificate" - + "Authorities/*}:fetch\332A\004name\022\361\001\n\027GetCerti" - + "ficateAuthority\022G.google.cloud.security." - + "privateca.v1beta1.GetCertificateAuthorit" - + "yRequest\032=.google.cloud.security.private" - + "ca.v1beta1.CertificateAuthority\"N\202\323\344\223\002A\022" - + "?/v1beta1/{name=projects/*/locations/*/c" - + "ertificateAuthorities/*}\332A\004name\022\207\002\n\032List" - + "CertificateAuthorities\022J.google.cloud.se" - + "curity.privateca.v1beta1.ListCertificate" - + "AuthoritiesRequest\032K.google.cloud.securi" - + "ty.privateca.v1beta1.ListCertificateAuth" - + "oritiesResponse\"P\202\323\344\223\002A\022?/v1beta1/{paren" - + "t=projects/*/locations/*}/certificateAut" - + "horities\332A\006parent\022\221\002\n\033RestoreCertificate" - + "Authority\022K.google.cloud.security.privat" - + "eca.v1beta1.RestoreCertificateAuthorityR" - + "equest\032\035.google.longrunning.Operation\"\205\001" - + "\202\323\344\223\002L\"G/v1beta1/{name=projects/*/locati" - + "ons/*/certificateAuthorities/*}:restore:" - + "\001*\332A\004name\312A)\n\024CertificateAuthority\022\021Oper" - + "ationMetadata\022\246\002\n\"ScheduleDeleteCertific" - + "ateAuthority\022R.google.cloud.security.pri" - + "vateca.v1beta1.ScheduleDeleteCertificate" + + ".com/Location\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\006filter\030\004 \001(\tB\003" + + "\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\236\001\n\033ListReusa" + + "bleConfigsResponse\022Q\n\020reusable_configs\030\001" + + " \003(\01327.google.cloud.security.privateca.v" + + "1beta1.ReusableConfig\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\200\002\n\021Operatio" + + "nMetadata\0224\n\013create_time\030\001 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006ta" + + "rget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016st" + + "atus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_can" + + "cellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(" + + "\tB\003\340A\0032\321,\n\033CertificateAuthorityService\022\226" + + "\002\n\021CreateCertificate\022A.google.cloud.secu" + + "rity.privateca.v1beta1.CreateCertificate" + + "Request\0324.google.cloud.security.privatec" + + "a.v1beta1.Certificate\"\207\001\202\323\344\223\002]\"N/v1beta1" + + "/{parent=projects/*/locations/*/certific" + + "ateAuthorities/*}/certificates:\013certific" + + "ate\332A!parent,certificate,certificate_id\022" + + "\345\001\n\016GetCertificate\022>.google.cloud.securi" + + "ty.privateca.v1beta1.GetCertificateReque" + + "st\0324.google.cloud.security.privateca.v1b" + + "eta1.Certificate\"]\202\323\344\223\002P\022N/v1beta1/{name" + + "=projects/*/locations/*/certificateAutho" + + "rities/*/certificates/*}\332A\004name\022\370\001\n\020List" + + "Certificates\022@.google.cloud.security.pri" + + "vateca.v1beta1.ListCertificatesRequest\032A" + + ".google.cloud.security.privateca.v1beta1" + + ".ListCertificatesResponse\"_\202\323\344\223\002P\022N/v1be" + + "ta1/{parent=projects/*/locations/*/certi" + + "ficateAuthorities/*}/certificates\332A\006pare" + + "nt\022\365\001\n\021RevokeCertificate\022A.google.cloud." + + "security.privateca.v1beta1.RevokeCertifi" + + "cateRequest\0324.google.cloud.security.priv" + + "ateca.v1beta1.Certificate\"g\202\323\344\223\002Z\"U/v1be" + + "ta1/{name=projects/*/locations/*/certifi" + + "cateAuthorities/*/certificates/*}:revoke" + + ":\001*\332A\004name\022\230\002\n\021UpdateCertificate\022A.googl" + + "e.cloud.security.privateca.v1beta1.Updat" + + "eCertificateRequest\0324.google.cloud.secur" + + "ity.privateca.v1beta1.Certificate\"\211\001\202\323\344\223" + + "\002i2Z/v1beta1/{certificate.name=projects/" + + "*/locations/*/certificateAuthorities/*/c" + + "ertificates/*}:\013certificate\332A\027certificat" + + "e,update_mask\022\224\002\n\034ActivateCertificateAut" + + "hority\022L.google.cloud.security.privateca" + + ".v1beta1.ActivateCertificateAuthorityReq" + + "uest\032\035.google.longrunning.Operation\"\206\001\202\323" + + "\344\223\002M\"H/v1beta1/{name=projects/*/location" + + "s/*/certificateAuthorities/*}:activate:\001" + + "*\332A\004name\312A)\n\024CertificateAuthority\022\021Opera" + + "tionMetadata\022\314\002\n\032CreateCertificateAuthor" + + "ity\022J.google.cloud.security.privateca.v1" + + "beta1.CreateCertificateAuthorityRequest\032" + + "\035.google.longrunning.Operation\"\302\001\202\323\344\223\002X\"" + + "?/v1beta1/{parent=projects/*/locations/*" + + "}/certificateAuthorities:\025certificate_au" + + "thority\332A5parent,certificate_authority,c" + + "ertificate_authority_id\312A)\n\024CertificateA" + + "uthority\022\021OperationMetadata\022\221\002\n\033DisableC" + + "ertificateAuthority\022K.google.cloud.secur" + + "ity.privateca.v1beta1.DisableCertificate" + "AuthorityRequest\032\035.google.longrunning.Op" - + "eration\"\214\001\202\323\344\223\002S\"N/v1beta1/{name=project" + + "eration\"\205\001\202\323\344\223\002L\"G/v1beta1/{name=project" + "s/*/locations/*/certificateAuthorities/*" - + "}:scheduleDelete:\001*\332A\004name\312A)\n\024Certifica" - + "teAuthority\022\021OperationMetadata\022\316\002\n\032Updat" - + "eCertificateAuthority\022J.google.cloud.sec" - + "urity.privateca.v1beta1.UpdateCertificat" - + "eAuthorityRequest\032\035.google.longrunning.O" - + "peration\"\304\001\202\323\344\223\002n2U/v1beta1/{certificate" - + "_authority.name=projects/*/locations/*/c" - + "ertificateAuthorities/*}:\025certificate_au" - + "thority\332A!certificate_authority,update_m" - + "ask\312A)\n\024CertificateAuthority\022\021OperationM" - + "etadata\022\212\003\n\037CreateCertificateRevocationL" - + "ist\022O.google.cloud.security.privateca.v1" - + "beta1.CreateCertificateRevocationListReq" - + "uest\032\035.google.longrunning.Operation\"\366\001\202\323" - + "\344\223\002{\"\\/v1beta1/{parent=projects/*/locati" - + "ons/*/certificateAuthorities/*}/certific" - + "ateRevocationLists:\033certificate_revocati" - + "on_list\332AAparent,certificate_revocation_" - + "list,certificate_revocation_list_id\312A.\n\031" - + "CertificateRevocationList\022\021OperationMeta" - + "data\022\235\002\n\034GetCertificateRevocationList\022L." - + "google.cloud.security.privateca.v1beta1." - + "GetCertificateRevocationListRequest\032B.go" - + "ogle.cloud.security.privateca.v1beta1.Ce" - + "rtificateRevocationList\"k\202\323\344\223\002^\022\\/v1beta" + + "}:disable:\001*\332A\004name\312A)\n\024CertificateAutho" + + "rity\022\021OperationMetadata\022\216\002\n\032EnableCertif" + + "icateAuthority\022J.google.cloud.security.p" + + "rivateca.v1beta1.EnableCertificateAuthor" + + "ityRequest\032\035.google.longrunning.Operatio" + + "n\"\204\001\202\323\344\223\002K\"F/v1beta1/{name=projects/*/lo" + + "cations/*/certificateAuthorities/*}:enab" + + "le:\001*\332A\004name\312A)\n\024CertificateAuthority\022\021O" + + "perationMetadata\022\221\002\n\034FetchCertificateAut" + + "horityCsr\022L.google.cloud.security.privat" + + "eca.v1beta1.FetchCertificateAuthorityCsr" + + "Request\032M.google.cloud.security.privatec" + + "a.v1beta1.FetchCertificateAuthorityCsrRe" + + "sponse\"T\202\323\344\223\002G\022E/v1beta1/{name=projects/" + + "*/locations/*/certificateAuthorities/*}:" + + "fetch\332A\004name\022\361\001\n\027GetCertificateAuthority" + + "\022G.google.cloud.security.privateca.v1bet" + + "a1.GetCertificateAuthorityRequest\032=.goog" + + "le.cloud.security.privateca.v1beta1.Cert" + + "ificateAuthority\"N\202\323\344\223\002A\022?/v1beta1/{name" + + "=projects/*/locations/*/certificateAutho" + + "rities/*}\332A\004name\022\207\002\n\032ListCertificateAuth" + + "orities\022J.google.cloud.security.privatec" + + "a.v1beta1.ListCertificateAuthoritiesRequ" + + "est\032K.google.cloud.security.privateca.v1" + + "beta1.ListCertificateAuthoritiesResponse" + + "\"P\202\323\344\223\002A\022?/v1beta1/{parent=projects/*/lo" + + "cations/*}/certificateAuthorities\332A\006pare" + + "nt\022\221\002\n\033RestoreCertificateAuthority\022K.goo" + + "gle.cloud.security.privateca.v1beta1.Res" + + "toreCertificateAuthorityRequest\032\035.google" + + ".longrunning.Operation\"\205\001\202\323\344\223\002L\"G/v1beta" + "1/{name=projects/*/locations/*/certifica" - + "teAuthorities/*/certificateRevocationLis" - + "ts/*}\332A\004name\022\260\002\n\036ListCertificateRevocati" - + "onLists\022N.google.cloud.security.privatec" - + "a.v1beta1.ListCertificateRevocationLists" - + "Request\032O.google.cloud.security.privatec" - + "a.v1beta1.ListCertificateRevocationLists" - + "Response\"m\202\323\344\223\002^\022\\/v1beta1/{parent=proje" - + "cts/*/locations/*/certificateAuthorities" - + "/*}/certificateRevocationLists\332A\006parent\022" - + "\215\003\n\037UpdateCertificateRevocationList\022O.go" - + "ogle.cloud.security.privateca.v1beta1.Up" - + "dateCertificateRevocationListRequest\032\035.g" - + "oogle.longrunning.Operation\"\371\001\202\323\344\223\002\227\0012x/" - + "v1beta1/{certificate_revocation_list.nam" - + "e=projects/*/locations/*/certificateAuth" - + "orities/*/certificateRevocationLists/*}:" - + "\033certificate_revocation_list\332A\'certifica" - + "te_revocation_list,update_mask\312A.\n\031Certi" - + "ficateRevocationList\022\021OperationMetadata\022" - + "\241\002\n\024CreateReusableConfig\022D.google.cloud." - + "security.privateca.v1beta1.CreateReusabl" - + "eConfigRequest\032\035.google.longrunning.Oper" - + "ation\"\243\001\202\323\344\223\002K\"8/v1beta1/{parent=project" - + "s/*/locations/*}/reusableConfigs:\017reusab" - + "le_config\332A)parent,reusable_config,reusa" - + "ble_config_id\312A#\n\016ReusableConfig\022\021Operat" - + "ionMetadata\022\232\002\n\024DeleteReusableConfig\022D.g" - + "oogle.cloud.security.privateca.v1beta1.D" - + "eleteReusableConfigRequest\032\035.google.long" - + "running.Operation\"\234\001\202\323\344\223\002:*8/v1beta1/{na" - + "me=projects/*/locations/*/reusableConfig" - + "s/*}\332A\004name\312AR\n\025google.protobuf.Empty\0229g" - + "oogle.cloud.security.privateca.v1beta1.O" - + "perationMetadata\022\330\001\n\021GetReusableConfig\022A" - + ".google.cloud.security.privateca.v1beta1" - + ".GetReusableConfigRequest\0327.google.cloud" - + ".security.privateca.v1beta1.ReusableConf" - + "ig\"G\202\323\344\223\002:\0228/v1beta1/{name=projects/*/lo" - + "cations/*/reusableConfigs/*}\332A\004name\022\353\001\n\023" - + "ListReusableConfigs\022C.google.cloud.secur" + + "teAuthorities/*}:restore:\001*\332A\004name\312A)\n\024C" + + "ertificateAuthority\022\021OperationMetadata\022\246" + + "\002\n\"ScheduleDeleteCertificateAuthority\022R." + + "google.cloud.security.privateca.v1beta1." + + "ScheduleDeleteCertificateAuthorityReques" + + "t\032\035.google.longrunning.Operation\"\214\001\202\323\344\223\002" + + "S\"N/v1beta1/{name=projects/*/locations/*" + + "/certificateAuthorities/*}:scheduleDelet" + + "e:\001*\332A\004name\312A)\n\024CertificateAuthority\022\021Op" + + "erationMetadata\022\316\002\n\032UpdateCertificateAut" + + "hority\022J.google.cloud.security.privateca" + + ".v1beta1.UpdateCertificateAuthorityReque" + + "st\032\035.google.longrunning.Operation\"\304\001\202\323\344\223" + + "\002n2U/v1beta1/{certificate_authority.name" + + "=projects/*/locations/*/certificateAutho" + + "rities/*}:\025certificate_authority\332A!certi" + + "ficate_authority,update_mask\312A)\n\024Certifi" + + "cateAuthority\022\021OperationMetadata\022\235\002\n\034Get" + + "CertificateRevocationList\022L.google.cloud" + + ".security.privateca.v1beta1.GetCertifica" + + "teRevocationListRequest\032B.google.cloud.s" + + "ecurity.privateca.v1beta1.CertificateRev" + + "ocationList\"k\202\323\344\223\002^\022\\/v1beta1/{name=proj" + + "ects/*/locations/*/certificateAuthoritie" + + "s/*/certificateRevocationLists/*}\332A\004name" + + "\022\260\002\n\036ListCertificateRevocationLists\022N.go" + + "ogle.cloud.security.privateca.v1beta1.Li" + + "stCertificateRevocationListsRequest\032O.go" + + "ogle.cloud.security.privateca.v1beta1.Li" + + "stCertificateRevocationListsResponse\"m\202\323" + + "\344\223\002^\022\\/v1beta1/{parent=projects/*/locati" + + "ons/*/certificateAuthorities/*}/certific" + + "ateRevocationLists\332A\006parent\022\215\003\n\037UpdateCe" + + "rtificateRevocationList\022O.google.cloud.s" + + "ecurity.privateca.v1beta1.UpdateCertific" + + "ateRevocationListRequest\032\035.google.longru" + + "nning.Operation\"\371\001\202\323\344\223\002\227\0012x/v1beta1/{cer" + + "tificate_revocation_list.name=projects/*" + + "/locations/*/certificateAuthorities/*/ce" + + "rtificateRevocationLists/*}:\033certificate" + + "_revocation_list\332A\'certificate_revocatio" + + "n_list,update_mask\312A.\n\031CertificateRevoca" + + "tionList\022\021OperationMetadata\022\330\001\n\021GetReusa" + + "bleConfig\022A.google.cloud.security.privat" + + "eca.v1beta1.GetReusableConfigRequest\0327.g" + + "oogle.cloud.security.privateca.v1beta1.R" + + "eusableConfig\"G\202\323\344\223\002:\0228/v1beta1/{name=pr" + + "ojects/*/locations/*/reusableConfigs/*}\332" + + "A\004name\022\353\001\n\023ListReusableConfigs\022C.google." + + "cloud.security.privateca.v1beta1.ListReu" + + "sableConfigsRequest\032D.google.cloud.secur" + "ity.privateca.v1beta1.ListReusableConfig" - + "sRequest\032D.google.cloud.security.private" - + "ca.v1beta1.ListReusableConfigsResponse\"I" - + "\202\323\344\223\002:\0228/v1beta1/{parent=projects/*/loca" - + "tions/*}/reusableConfigs\332A\006parent\022\243\002\n\024Up" - + "dateReusableConfig\022D.google.cloud.securi" - + "ty.privateca.v1beta1.UpdateReusableConfi" - + "gRequest\032\035.google.longrunning.Operation\"" - + "\245\001\202\323\344\223\002[2H/v1beta1/{reusable_config.name" - + "=projects/*/locations/*/reusableConfigs/" - + "*}:\017reusable_config\332A\033reusable_config,up" - + "date_mask\312A#\n\016ReusableConfig\022\021OperationM" - + "etadata\032L\312A\030privateca.googleapis.com\322A.h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tformB\276\001\n+com.google.cloud.security.priv" - + "ateca.v1beta1B\016PrivateCaProtoP\001ZPgoogle." - + "golang.org/genproto/googleapis/cloud/sec" - + "urity/privateca/v1beta1;privateca\370\001\001\252\002\'G" - + "oogle.Cloud.Security.PrivateCA.V1Beta1b\006" - + "proto3" + + "sResponse\"I\202\323\344\223\002:\0228/v1beta1/{parent=proj" + + "ects/*/locations/*}/reusableConfigs\332A\006pa" + + "rent\032L\312A\030privateca.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\276\001\n+com.google.cloud.security.private" + + "ca.v1beta1B\016PrivateCaProtoP\001ZPgoogle.gol" + + "ang.org/genproto/googleapis/cloud/securi" + + "ty/privateca/v1beta1;privateca\370\001\001\252\002\'Goog" + + "le.Cloud.Security.PrivateCA.V1Beta1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -488,6 +420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -635,16 +568,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CertificateAuthority", "UpdateMask", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRevocationListRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRevocationListRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRevocationListRequest_descriptor, - new java.lang.String[] { - "Parent", "CertificateRevocationListId", "CertificateRevocationList", "RequestId", - }); internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor, @@ -652,7 +577,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor, @@ -660,7 +585,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor, @@ -668,31 +593,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CertificateRevocationLists", "NextPageToken", "Unreachable", }); internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor, new java.lang.String[] { "CertificateRevocationList", "UpdateMask", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_CreateReusableConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_security_privateca_v1beta1_CreateReusableConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CreateReusableConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "ReusableConfigId", "ReusableConfig", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_DeleteReusableConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_security_privateca_v1beta1_DeleteReusableConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_DeleteReusableConfigRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor, @@ -700,7 +609,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor, @@ -708,23 +617,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor, new java.lang.String[] { "ReusableConfigs", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_security_privateca_v1beta1_UpdateReusableConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_security_privateca_v1beta1_UpdateReusableConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_UpdateReusableConfigRequest_descriptor, - new java.lang.String[] { - "ReusableConfig", "UpdateMask", "RequestId", - }); internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor, @@ -754,6 +655,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java index 12c75107..f1ca6d25 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java @@ -187,7 +187,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/protobuf/duration.proto\032\037google/p" + "rotobuf/timestamp.proto\032\036google/protobuf" + "/wrappers.proto\032\034google/api/annotations." - + "proto\"\332\033\n\024CertificateAuthority\022\021\n\004name\030\001" + + "proto\"\250\034\n\024CertificateAuthority\022\021\n\004name\030\001" + " \001(\tB\003\340A\003\022X\n\004type\030\002 \001(\0162B.google.cloud.s" + "ecurity.privateca.v1beta1.CertificateAut" + "hority.TypeB\006\340A\002\340A\005\022X\n\004tier\030\003 \001(\0162B.goog" @@ -267,191 +267,193 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\024\n\020TIER_UNSPECIFIED\020\000\022\016\n\nENTERPRISE\020\001\022\n" + "\n\006DEVOPS\020\002\"g\n\005State\022\025\n\021STATE_UNSPECIFIED" + "\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\026\n\022PENDING" - + "_ACTIVATION\020\003\022\024\n\020PENDING_DELETION\020\004\"\256\001\n\021" + + "_ACTIVATION\020\003\022\024\n\020PENDING_DELETION\020\004\"\374\001\n\021" + "SignHashAlgorithm\022#\n\037SIGN_HASH_ALGORITHM" - + "_UNSPECIFIED\020\000\022\030\n\024RSA_PSS_2048_SHA_256\020\001" - + "\022\030\n\024RSA_PSS_3072_SHA_256\020\002\022\030\n\024RSA_PSS_40" - + "96_SHA_256\020\003\022\022\n\016EC_P256_SHA256\020\004\022\022\n\016EC_P" - + "384_SHA384\020\005:\213\001\352A\207\001\n-privateca.googleapi" - + "s.com/CertificateAuthority\022Vprojects/{pr" - + "oject}/locations/{location}/certificateA" - + "uthorities/{certificate_authority}\"\371\007\n\031C" - + "ertificateRevocationList\022\021\n\004name\030\001 \001(\tB\003" - + "\340A\003\022\034\n\017sequence_number\030\002 \001(\003B\003\340A\003\022x\n\024rev" - + "oked_certificates\030\003 \003(\0132U.google.cloud.s" - + "ecurity.privateca.v1beta1.CertificateRev" - + "ocationList.RevokedCertificateB\003\340A\003\022\024\n\007p" - + "em_crl\030\004 \001(\tB\003\340A\003\022\027\n\naccess_url\030\005 \001(\tB\003\340" - + "A\003\022\\\n\005state\030\006 \001(\0162H.google.cloud.securit" - + "y.privateca.v1beta1.CertificateRevocatio" - + "nList.StateB\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" - + "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022c\n\006labels\030\t \003(\0132N.google.cloud.secu" - + "rity.privateca.v1beta1.CertificateRevoca" - + "tionList.LabelsEntryB\003\340A\001\032\232\001\n\022RevokedCer" - + "tificate\022\023\n\013certificate\030\001 \001(\t\022\031\n\021hex_ser" - + "ial_number\030\002 \001(\t\022T\n\021revocation_reason\030\003 " - + "\001(\01629.google.cloud.security.privateca.v1" - + "beta1.RevocationReason\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nSUP" - + "ERSEDED\020\002:\312\001\352A\306\001\n2privateca.googleapis.c" - + "om/CertificateRevocationList\022\217\001projects/" - + "{project}/locations/{location}/certifica" - + "teAuthorities/{certificate_authority}/ce" - + "rtificateRevocationLists/{certificate_re" - + "vocation_list}\"\227\010\n\013Certificate\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\022\026\n\007pem_csr\030\002 \001(\tB\003\340A\005H\000\022Q\n\006con" - + "fig\030\003 \001(\0132:.google.cloud.security.privat" - + "eca.v1beta1.CertificateConfigB\003\340A\005H\000\0220\n\010" - + "lifetime\030\004 \001(\0132\031.google.protobuf.Duratio" - + "nB\003\340A\002\022g\n\022revocation_details\030\005 \001(\0132F.goo" - + "gle.cloud.security.privateca.v1beta1.Cer" - + "tificate.RevocationDetailsB\003\340A\003\022\034\n\017pem_c" - + "ertificate\030\006 \001(\tB\003\340A\003\022e\n\027certificate_des" - + "cription\030\007 \001(\0132?.google.cloud.security.p" - + "rivateca.v1beta1.CertificateDescriptionB" - + "\003\340A\003\022\"\n\025pem_certificate_chain\030\010 \003(\tB\003\340A\003" - + "\0224\n\013create_time\030\t \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022U\n\006labels\030\013" - + " \003(\0132@.google.cloud.security.privateca.v" - + "1beta1.Certificate.LabelsEntryB\003\340A\001\032\235\001\n\021" - + "RevocationDetails\022S\n\020revocation_state\030\001 " - + "\001(\01629.google.cloud.security.privateca.v1" - + "beta1.RevocationReason\0223\n\017revocation_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001:\235\001\352A\231\001\n$privateca.googleapis.com/Cert" - + "ificate\022qprojects/{project}/locations/{l" - + "ocation}/certificateAuthorities/{certifi" - + "cate_authority}/certificates/{certificat" - + "e}B\024\n\022certificate_config\"\377\003\n\016ReusableCon" - + "fig\022\021\n\004name\030\001 \001(\tB\003\340A\003\022R\n\006values\030\002 \001(\0132=" - + ".google.cloud.security.privateca.v1beta1" - + ".ReusableConfigValuesB\003\340A\002\022\030\n\013descriptio" - + "n\030\003 \001(\tB\003\340A\001\0224\n\013create_time\030\004 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" - + "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022X\n\006labels\030\006 \003(\0132C.google.cloud.security" - + ".privateca.v1beta1.ReusableConfig.Labels" - + "EntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001:w\352At\n\'privateca.google" - + "apis.com/ReusableConfig\022Iprojects/{proje" - + "ct}/locations/{location}/reusableConfigs" - + "/{reusable_config}\"\211\004\n\024ReusableConfigVal" - + "ues\022I\n\tkey_usage\030\001 \001(\01321.google.cloud.se" - + "curity.privateca.v1beta1.KeyUsageB\003\340A\001\022`" - + "\n\nca_options\030\002 \001(\0132G.google.cloud.securi" - + "ty.privateca.v1beta1.ReusableConfigValue" - + "s.CaOptionsB\003\340A\001\022J\n\npolicy_ids\030\003 \003(\01321.g" - + "oogle.cloud.security.privateca.v1beta1.O" - + "bjectIdB\003\340A\001\022\035\n\020aia_ocsp_servers\030\004 \003(\tB\003" - + "\340A\001\022Z\n\025additional_extensions\030\005 \003(\01326.goo" - + "gle.cloud.security.privateca.v1beta1.X50" - + "9ExtensionB\003\340A\001\032}\n\tCaOptions\022.\n\005is_ca\030\001 " - + "\001(\0132\032.google.protobuf.BoolValueB\003\340A\001\022@\n\026" - + "max_issuer_path_length\030\002 \001(\0132\033.google.pr" - + "otobuf.Int32ValueB\003\340A\001\"\256\001\n\025ReusableConfi" - + "gWrapper\022\036\n\017reusable_config\030\001 \001(\tB\003\340A\002H\000" - + "\022d\n\026reusable_config_values\030\002 \001(\0132=.googl" - + "e.cloud.security.privateca.v1beta1.Reusa" - + "bleConfigValuesB\003\340A\002H\000B\017\n\rconfig_values\"" - + "\374\001\n\021SubordinateConfig\022$\n\025certificate_aut" - + "hority\030\001 \001(\tB\003\340A\002H\000\022r\n\020pem_issuer_chain\030" - + "\002 \001(\0132Q.google.cloud.security.privateca." - + "v1beta1.SubordinateConfig.SubordinateCon" - + "figChainB\003\340A\002H\000\0327\n\026SubordinateConfigChai" - + "n\022\035\n\020pem_certificates\030\001 \003(\tB\003\340A\002B\024\n\022subo" - + "rdinate_config\"\262\001\n\tPublicKey\022M\n\004type\030\001 \001" - + "(\0162:.google.cloud.security.privateca.v1b" - + "eta1.PublicKey.KeyTypeB\003\340A\002\022\020\n\003key\030\002 \001(\014" - + "B\003\340A\002\"D\n\007KeyType\022\030\n\024KEY_TYPE_UNSPECIFIED" - + "\020\000\022\017\n\013PEM_RSA_KEY\020\001\022\016\n\nPEM_EC_KEY\020\002\"\362\003\n\021" - + "CertificateConfig\022e\n\016subject_config\030\001 \001(" - + "\0132H.google.cloud.security.privateca.v1be" - + "ta1.CertificateConfig.SubjectConfigB\003\340A\002" - + "\022\\\n\017reusable_config\030\002 \001(\0132>.google.cloud" - + ".security.privateca.v1beta1.ReusableConf" - + "igWrapperB\003\340A\002\022K\n\npublic_key\030\003 \001(\01322.goo" - + "gle.cloud.security.privateca.v1beta1.Pub" - + "licKeyB\003\340A\001\032\312\001\n\rSubjectConfig\022F\n\007subject" - + "\030\001 \001(\01320.google.cloud.security.privateca" - + ".v1beta1.SubjectB\003\340A\002\022\030\n\013common_name\030\002 \001" - + "(\tB\003\340A\001\022W\n\020subject_alt_name\030\003 \001(\01328.goog" - + "le.cloud.security.privateca.v1beta1.Subj" - + "ectAltNamesB\003\340A\001\"\341\010\n\026CertificateDescript" - + "ion\022o\n\023subject_description\030\001 \001(\0132R.googl" - + "e.cloud.security.privateca.v1beta1.Certi" - + "ficateDescription.SubjectDescription\022T\n\r" - + "config_values\030\002 \001(\0132=.google.cloud.secur" - + "ity.privateca.v1beta1.ReusableConfigValu" - + "es\022F\n\npublic_key\030\003 \001(\01322.google.cloud.se" - + "curity.privateca.v1beta1.PublicKey\022]\n\016su" - + "bject_key_id\030\004 \001(\0132E.google.cloud.securi" - + "ty.privateca.v1beta1.CertificateDescript" - + "ion.KeyId\022_\n\020authority_key_id\030\005 \001(\0132E.go" + + "_UNSPECIFIED\020\000\022\027\n\023RSA_PSS_2048_SHA256\020\001\022" + + "\027\n\023RSA_PSS_3072_SHA256\020\002\022\027\n\023RSA_PSS_4096" + + "_SHA256\020\003\022\031\n\025RSA_PKCS1_2048_SHA256\020\006\022\031\n\025" + + "RSA_PKCS1_3072_SHA256\020\007\022\031\n\025RSA_PKCS1_409" + + "6_SHA256\020\010\022\022\n\016EC_P256_SHA256\020\004\022\022\n\016EC_P38" + + "4_SHA384\020\005:\213\001\352A\207\001\n-privateca.googleapis." + + "com/CertificateAuthority\022Vprojects/{proj" + + "ect}/locations/{location}/certificateAut" + + "horities/{certificate_authority}\"\371\007\n\031Cer" + + "tificateRevocationList\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\034\n\017sequence_number\030\002 \001(\003B\003\340A\003\022x\n\024revok" + + "ed_certificates\030\003 \003(\0132U.google.cloud.sec" + + "urity.privateca.v1beta1.CertificateRevoc" + + "ationList.RevokedCertificateB\003\340A\003\022\024\n\007pem" + + "_crl\030\004 \001(\tB\003\340A\003\022\027\n\naccess_url\030\005 \001(\tB\003\340A\003" + + "\022\\\n\005state\030\006 \001(\0162H.google.cloud.security." + + "privateca.v1beta1.CertificateRevocationL" + + "ist.StateB\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022c\n\006labels\030\t \003(\0132N.google.cloud.securi" + + "ty.privateca.v1beta1.CertificateRevocati" + + "onList.LabelsEntryB\003\340A\001\032\232\001\n\022RevokedCerti" + + "ficate\022\023\n\013certificate\030\001 \001(\t\022\031\n\021hex_seria" + + "l_number\030\002 \001(\t\022T\n\021revocation_reason\030\003 \001(" + + "\01629.google.cloud.security.privateca.v1be" + + "ta1.RevocationReason\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nSUPER" + + "SEDED\020\002:\312\001\352A\306\001\n2privateca.googleapis.com" + + "/CertificateRevocationList\022\217\001projects/{p" + + "roject}/locations/{location}/certificate" + + "Authorities/{certificate_authority}/cert" + + "ificateRevocationLists/{certificate_revo" + + "cation_list}\"\232\010\n\013Certificate\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\026\n\007pem_csr\030\002 \001(\tB\003\340A\005H\000\022Q\n\006confi" + + "g\030\003 \001(\0132:.google.cloud.security.privatec" + + "a.v1beta1.CertificateConfigB\003\340A\005H\000\0223\n\010li" + + "fetime\030\004 \001(\0132\031.google.protobuf.DurationB" + + "\006\340A\002\340A\005\022g\n\022revocation_details\030\005 \001(\0132F.go" + "ogle.cloud.security.privateca.v1beta1.Ce" - + "rtificateDescription.KeyId\022\037\n\027crl_distri" - + "bution_points\030\006 \003(\t\022$\n\034aia_issuing_certi" - + "ficate_urls\030\007 \003(\t\022p\n\020cert_fingerprint\030\010 " - + "\001(\0132V.google.cloud.security.privateca.v1" - + "beta1.CertificateDescription.Certificate" - + "Fingerprint\032\361\002\n\022SubjectDescription\022A\n\007su" - + "bject\030\001 \001(\01320.google.cloud.security.priv" - + "ateca.v1beta1.Subject\022\023\n\013common_name\030\002 \001" - + "(\t\022R\n\020subject_alt_name\030\003 \001(\01328.google.cl" - + "oud.security.privateca.v1beta1.SubjectAl" - + "tNames\022\031\n\021hex_serial_number\030\004 \001(\t\022+\n\010lif" - + "etime\030\005 \001(\0132\031.google.protobuf.Duration\0223" - + "\n\017not_before_time\030\006 \001(\0132\032.google.protobu" - + "f.Timestamp\0222\n\016not_after_time\030\007 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\032\034\n\005KeyId\022\023\n\006key_" - + "id\030\001 \001(\tB\003\340A\001\032-\n\026CertificateFingerprint\022" - + "\023\n\013sha256_hash\030\001 \001(\t\"\'\n\010ObjectId\022\033\n\016obje" - + "ct_id_path\030\001 \003(\005B\003\340A\002\"\205\001\n\rX509Extension\022" - + "I\n\tobject_id\030\001 \001(\01321.google.cloud.securi" - + "ty.privateca.v1beta1.ObjectIdB\003\340A\002\022\025\n\010cr" - + "itical\030\002 \001(\010B\003\340A\002\022\022\n\005value\030\003 \001(\014B\003\340A\002\"\261\005" - + "\n\010KeyUsage\022Y\n\016base_key_usage\030\001 \001(\0132A.goo" - + "gle.cloud.security.privateca.v1beta1.Key" - + "Usage.KeyUsageOptions\022e\n\022extended_key_us" - + "age\030\002 \001(\0132I.google.cloud.security.privat" - + "eca.v1beta1.KeyUsage.ExtendedKeyUsageOpt" - + "ions\022V\n\033unknown_extended_key_usages\030\003 \003(" - + "\01321.google.cloud.security.privateca.v1be" - + "ta1.ObjectId\032\347\001\n\017KeyUsageOptions\022\031\n\021digi" - + "tal_signature\030\001 \001(\010\022\032\n\022content_commitmen" - + "t\030\002 \001(\010\022\030\n\020key_encipherment\030\003 \001(\010\022\031\n\021dat" - + "a_encipherment\030\004 \001(\010\022\025\n\rkey_agreement\030\005 " - + "\001(\010\022\021\n\tcert_sign\030\006 \001(\010\022\020\n\010crl_sign\030\007 \001(\010" - + "\022\025\n\rencipher_only\030\010 \001(\010\022\025\n\rdecipher_only" - + "\030\t \001(\010\032\240\001\n\027ExtendedKeyUsageOptions\022\023\n\013se" - + "rver_auth\030\001 \001(\010\022\023\n\013client_auth\030\002 \001(\010\022\024\n\014" - + "code_signing\030\003 \001(\010\022\030\n\020email_protection\030\004" - + " \001(\010\022\025\n\rtime_stamping\030\005 \001(\010\022\024\n\014ocsp_sign" - + "ing\030\006 \001(\010\"\243\001\n\007Subject\022\024\n\014country_code\030\001 " - + "\001(\t\022\024\n\014organization\030\002 \001(\t\022\033\n\023organizatio" - + "nal_unit\030\003 \001(\t\022\020\n\010locality\030\004 \001(\t\022\020\n\010prov" - + "ince\030\005 \001(\t\022\026\n\016street_address\030\006 \001(\t\022\023\n\013po" - + "stal_code\030\007 \001(\t\"\256\001\n\017SubjectAltNames\022\021\n\td" - + "ns_names\030\001 \003(\t\022\014\n\004uris\030\002 \003(\t\022\027\n\017email_ad" - + "dresses\030\003 \003(\t\022\024\n\014ip_addresses\030\004 \003(\t\022K\n\013c" - + "ustom_sans\030\005 \003(\01326.google.cloud.security" - + ".privateca.v1beta1.X509Extension*\207\002\n\020Rev" - + "ocationReason\022!\n\035REVOCATION_REASON_UNSPE" - + "CIFIED\020\000\022\022\n\016KEY_COMPROMISE\020\001\022$\n CERTIFIC" - + "ATE_AUTHORITY_COMPROMISE\020\002\022\027\n\023AFFILIATIO" - + "N_CHANGED\020\003\022\016\n\nSUPERSEDED\020\004\022\032\n\026CESSATION" - + "_OF_OPERATION\020\005\022\024\n\020CERTIFICATE_HOLD\020\006\022\027\n" - + "\023PRIVILEGE_WITHDRAWN\020\007\022\"\n\036ATTRIBUTE_AUTH" - + "ORITY_COMPROMISE\020\010B\307\001\n+com.google.cloud." - + "security.privateca.v1beta1B\027PrivateCaRes" - + "ourcesProtoP\001ZPgoogle.golang.org/genprot" - + "o/googleapis/cloud/security/privateca/v1" - + "beta1;privateca\370\001\001\252\002\'Google.Cloud.Securi" - + "ty.PrivateCA.V1Beta1b\006proto3" + + "rtificate.RevocationDetailsB\003\340A\003\022\034\n\017pem_" + + "certificate\030\006 \001(\tB\003\340A\003\022e\n\027certificate_de" + + "scription\030\007 \001(\0132?.google.cloud.security." + + "privateca.v1beta1.CertificateDescription" + + "B\003\340A\003\022\"\n\025pem_certificate_chain\030\010 \003(\tB\003\340A" + + "\003\0224\n\013create_time\030\t \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022U\n\006labels\030" + + "\013 \003(\0132@.google.cloud.security.privateca." + + "v1beta1.Certificate.LabelsEntryB\003\340A\001\032\235\001\n" + + "\021RevocationDetails\022S\n\020revocation_state\030\001" + + " \001(\01629.google.cloud.security.privateca.v" + + "1beta1.RevocationReason\0223\n\017revocation_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001:\235\001\352A\231\001\n$privateca.googleapis.com/Cer" + + "tificate\022qprojects/{project}/locations/{" + + "location}/certificateAuthorities/{certif" + + "icate_authority}/certificates/{certifica" + + "te}B\024\n\022certificate_config\"\377\003\n\016ReusableCo" + + "nfig\022\021\n\004name\030\001 \001(\tB\003\340A\003\022R\n\006values\030\002 \001(\0132" + + "=.google.cloud.security.privateca.v1beta" + + "1.ReusableConfigValuesB\003\340A\002\022\030\n\013descripti" + + "on\030\003 \001(\tB\003\340A\001\0224\n\013create_time\030\004 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + + "me\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022X\n\006labels\030\006 \003(\0132C.google.cloud.securit" + + "y.privateca.v1beta1.ReusableConfig.Label" + + "sEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:w\352At\n\'privateca.googl" + + "eapis.com/ReusableConfig\022Iprojects/{proj" + + "ect}/locations/{location}/reusableConfig" + + "s/{reusable_config}\"\211\004\n\024ReusableConfigVa" + + "lues\022I\n\tkey_usage\030\001 \001(\01321.google.cloud.s" + + "ecurity.privateca.v1beta1.KeyUsageB\003\340A\001\022" + + "`\n\nca_options\030\002 \001(\0132G.google.cloud.secur" + + "ity.privateca.v1beta1.ReusableConfigValu" + + "es.CaOptionsB\003\340A\001\022J\n\npolicy_ids\030\003 \003(\01321." + + "google.cloud.security.privateca.v1beta1." + + "ObjectIdB\003\340A\001\022\035\n\020aia_ocsp_servers\030\004 \003(\tB" + + "\003\340A\001\022Z\n\025additional_extensions\030\005 \003(\01326.go" + + "ogle.cloud.security.privateca.v1beta1.X5" + + "09ExtensionB\003\340A\001\032}\n\tCaOptions\022.\n\005is_ca\030\001" + + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\001\022@\n" + + "\026max_issuer_path_length\030\002 \001(\0132\033.google.p" + + "rotobuf.Int32ValueB\003\340A\001\"\256\001\n\025ReusableConf" + + "igWrapper\022\036\n\017reusable_config\030\001 \001(\tB\003\340A\002H" + + "\000\022d\n\026reusable_config_values\030\002 \001(\0132=.goog" + + "le.cloud.security.privateca.v1beta1.Reus" + + "ableConfigValuesB\003\340A\002H\000B\017\n\rconfig_values" + + "\"\374\001\n\021SubordinateConfig\022$\n\025certificate_au" + + "thority\030\001 \001(\tB\003\340A\002H\000\022r\n\020pem_issuer_chain" + + "\030\002 \001(\0132Q.google.cloud.security.privateca" + + ".v1beta1.SubordinateConfig.SubordinateCo" + + "nfigChainB\003\340A\002H\000\0327\n\026SubordinateConfigCha" + + "in\022\035\n\020pem_certificates\030\001 \003(\tB\003\340A\002B\024\n\022sub" + + "ordinate_config\"\262\001\n\tPublicKey\022M\n\004type\030\001 " + + "\001(\0162:.google.cloud.security.privateca.v1" + + "beta1.PublicKey.KeyTypeB\003\340A\002\022\020\n\003key\030\002 \001(" + + "\014B\003\340A\002\"D\n\007KeyType\022\030\n\024KEY_TYPE_UNSPECIFIE" + + "D\020\000\022\017\n\013PEM_RSA_KEY\020\001\022\016\n\nPEM_EC_KEY\020\002\"\362\003\n" + + "\021CertificateConfig\022e\n\016subject_config\030\001 \001" + + "(\0132H.google.cloud.security.privateca.v1b" + + "eta1.CertificateConfig.SubjectConfigB\003\340A" + + "\002\022\\\n\017reusable_config\030\002 \001(\0132>.google.clou" + + "d.security.privateca.v1beta1.ReusableCon" + + "figWrapperB\003\340A\002\022K\n\npublic_key\030\003 \001(\01322.go" + + "ogle.cloud.security.privateca.v1beta1.Pu" + + "blicKeyB\003\340A\001\032\312\001\n\rSubjectConfig\022F\n\007subjec" + + "t\030\001 \001(\01320.google.cloud.security.privatec" + + "a.v1beta1.SubjectB\003\340A\002\022\030\n\013common_name\030\002 " + + "\001(\tB\003\340A\001\022W\n\020subject_alt_name\030\003 \001(\01328.goo" + + "gle.cloud.security.privateca.v1beta1.Sub" + + "jectAltNamesB\003\340A\001\"\341\010\n\026CertificateDescrip" + + "tion\022o\n\023subject_description\030\001 \001(\0132R.goog" + + "le.cloud.security.privateca.v1beta1.Cert" + + "ificateDescription.SubjectDescription\022T\n" + + "\rconfig_values\030\002 \001(\0132=.google.cloud.secu" + + "rity.privateca.v1beta1.ReusableConfigVal" + + "ues\022F\n\npublic_key\030\003 \001(\01322.google.cloud.s" + + "ecurity.privateca.v1beta1.PublicKey\022]\n\016s" + + "ubject_key_id\030\004 \001(\0132E.google.cloud.secur" + + "ity.privateca.v1beta1.CertificateDescrip" + + "tion.KeyId\022_\n\020authority_key_id\030\005 \001(\0132E.g" + + "oogle.cloud.security.privateca.v1beta1.C" + + "ertificateDescription.KeyId\022\037\n\027crl_distr" + + "ibution_points\030\006 \003(\t\022$\n\034aia_issuing_cert" + + "ificate_urls\030\007 \003(\t\022p\n\020cert_fingerprint\030\010" + + " \001(\0132V.google.cloud.security.privateca.v" + + "1beta1.CertificateDescription.Certificat" + + "eFingerprint\032\361\002\n\022SubjectDescription\022A\n\007s" + + "ubject\030\001 \001(\01320.google.cloud.security.pri" + + "vateca.v1beta1.Subject\022\023\n\013common_name\030\002 " + + "\001(\t\022R\n\020subject_alt_name\030\003 \001(\01328.google.c" + + "loud.security.privateca.v1beta1.SubjectA" + + "ltNames\022\031\n\021hex_serial_number\030\004 \001(\t\022+\n\010li" + + "fetime\030\005 \001(\0132\031.google.protobuf.Duration\022" + + "3\n\017not_before_time\030\006 \001(\0132\032.google.protob" + + "uf.Timestamp\0222\n\016not_after_time\030\007 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\032\034\n\005KeyId\022\023\n\006key" + + "_id\030\001 \001(\tB\003\340A\001\032-\n\026CertificateFingerprint" + + "\022\023\n\013sha256_hash\030\001 \001(\t\"\'\n\010ObjectId\022\033\n\016obj" + + "ect_id_path\030\001 \003(\005B\003\340A\002\"\205\001\n\rX509Extension" + + "\022I\n\tobject_id\030\001 \001(\01321.google.cloud.secur" + + "ity.privateca.v1beta1.ObjectIdB\003\340A\002\022\025\n\010c" + + "ritical\030\002 \001(\010B\003\340A\002\022\022\n\005value\030\003 \001(\014B\003\340A\002\"\261" + + "\005\n\010KeyUsage\022Y\n\016base_key_usage\030\001 \001(\0132A.go" + + "ogle.cloud.security.privateca.v1beta1.Ke" + + "yUsage.KeyUsageOptions\022e\n\022extended_key_u" + + "sage\030\002 \001(\0132I.google.cloud.security.priva" + + "teca.v1beta1.KeyUsage.ExtendedKeyUsageOp" + + "tions\022V\n\033unknown_extended_key_usages\030\003 \003" + + "(\01321.google.cloud.security.privateca.v1b" + + "eta1.ObjectId\032\347\001\n\017KeyUsageOptions\022\031\n\021dig" + + "ital_signature\030\001 \001(\010\022\032\n\022content_commitme" + + "nt\030\002 \001(\010\022\030\n\020key_encipherment\030\003 \001(\010\022\031\n\021da" + + "ta_encipherment\030\004 \001(\010\022\025\n\rkey_agreement\030\005" + + " \001(\010\022\021\n\tcert_sign\030\006 \001(\010\022\020\n\010crl_sign\030\007 \001(" + + "\010\022\025\n\rencipher_only\030\010 \001(\010\022\025\n\rdecipher_onl" + + "y\030\t \001(\010\032\240\001\n\027ExtendedKeyUsageOptions\022\023\n\013s" + + "erver_auth\030\001 \001(\010\022\023\n\013client_auth\030\002 \001(\010\022\024\n" + + "\014code_signing\030\003 \001(\010\022\030\n\020email_protection\030" + + "\004 \001(\010\022\025\n\rtime_stamping\030\005 \001(\010\022\024\n\014ocsp_sig" + + "ning\030\006 \001(\010\"\243\001\n\007Subject\022\024\n\014country_code\030\001" + + " \001(\t\022\024\n\014organization\030\002 \001(\t\022\033\n\023organizati" + + "onal_unit\030\003 \001(\t\022\020\n\010locality\030\004 \001(\t\022\020\n\010pro" + + "vince\030\005 \001(\t\022\026\n\016street_address\030\006 \001(\t\022\023\n\013p" + + "ostal_code\030\007 \001(\t\"\256\001\n\017SubjectAltNames\022\021\n\t" + + "dns_names\030\001 \003(\t\022\014\n\004uris\030\002 \003(\t\022\027\n\017email_a" + + "ddresses\030\003 \003(\t\022\024\n\014ip_addresses\030\004 \003(\t\022K\n\013" + + "custom_sans\030\005 \003(\01326.google.cloud.securit" + + "y.privateca.v1beta1.X509Extension*\207\002\n\020Re" + + "vocationReason\022!\n\035REVOCATION_REASON_UNSP" + + "ECIFIED\020\000\022\022\n\016KEY_COMPROMISE\020\001\022$\n CERTIFI" + + "CATE_AUTHORITY_COMPROMISE\020\002\022\027\n\023AFFILIATI" + + "ON_CHANGED\020\003\022\016\n\nSUPERSEDED\020\004\022\032\n\026CESSATIO" + + "N_OF_OPERATION\020\005\022\024\n\020CERTIFICATE_HOLD\020\006\022\027" + + "\n\023PRIVILEGE_WITHDRAWN\020\007\022\"\n\036ATTRIBUTE_AUT" + + "HORITY_COMPROMISE\020\010B\307\001\n+com.google.cloud" + + ".security.privateca.v1beta1B\027PrivateCaRe" + + "sourcesProtoP\001ZPgoogle.golang.org/genpro" + + "to/googleapis/cloud/security/privateca/v" + + "1beta1;privateca\370\001\001\252\002\'Google.Cloud.Secur" + + "ity.PrivateCA.V1Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java index 8d6c55ad..e77a5658 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java @@ -1527,7 +1527,7 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOption * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
-   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* * @@ -1543,7 +1543,7 @@ public java.util.List getP * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
-   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* * @@ -1560,7 +1560,7 @@ public java.util.List getP * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
-   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* * @@ -1576,7 +1576,7 @@ public int getPolicyIdsCount() { * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
-   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* * @@ -1592,7 +1592,7 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int ind * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
-   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* * @@ -2718,7 +2718,7 @@ private void ensurePolicyIdsIsMutable() { * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2737,7 +2737,7 @@ public java.util.List getP * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2756,7 +2756,7 @@ public int getPolicyIdsCount() { * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2775,7 +2775,7 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int ind * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2801,7 +2801,7 @@ public Builder setPolicyIds( * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2824,7 +2824,7 @@ public Builder setPolicyIds( * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2849,7 +2849,7 @@ public Builder addPolicyIds(com.google.cloud.security.privateca.v1beta1.ObjectId * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2875,7 +2875,7 @@ public Builder addPolicyIds( * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2898,7 +2898,7 @@ public Builder addPolicyIds( * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2921,7 +2921,7 @@ public Builder addPolicyIds( * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2944,7 +2944,7 @@ public Builder addAllPolicyIds( * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2966,7 +2966,7 @@ public Builder clearPolicyIds() { * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -2988,7 +2988,7 @@ public Builder removePolicyIds(int index) { * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -3004,7 +3004,7 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder getPolicyIds * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -3024,7 +3024,7 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyId * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -3044,7 +3044,7 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyId * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -3060,7 +3060,7 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addPolicyIds * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * @@ -3078,7 +3078,7 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addPolicyIds * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
-     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+     * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* * diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java index 032b7179..f2673d65 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java @@ -114,7 +114,7 @@ public interface ReusableConfigValuesOrBuilder * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
-   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* * @@ -127,7 +127,7 @@ public interface ReusableConfigValuesOrBuilder * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
-   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* * @@ -140,7 +140,7 @@ public interface ReusableConfigValuesOrBuilder * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
-   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* * @@ -153,7 +153,7 @@ public interface ReusableConfigValuesOrBuilder * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
-   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* * @@ -167,7 +167,7 @@ public interface ReusableConfigValuesOrBuilder * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
-   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280
+   * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* * diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java index bd793207..8a038bb9 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java @@ -23,8 +23,10 @@ * *
  * A [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] indicates whether a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been revoked,
- * and the reason for revocation. These are standard revocation reasons from RFC
- * 5280.
+ * and the reason for revocation. These correspond to standard revocation
+ * reasons from RFC 5280. Note that the enum labels and values in this
+ * definition are not the same ASN.1 values defined in RFC 5280. These values
+ * will be translated to the correct ASN.1 values when a CRL is created.
  * 
* * Protobuf enum {@code google.cloud.security.privateca.v1beta1.RevocationReason} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateReusableConfigRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateReusableConfigRequest.java deleted file mode 100644 index 3b488f96..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateReusableConfigRequest.java +++ /dev/null @@ -1,1316 +0,0 @@ -/* - * 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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -/** - * - * - *
- * Request message for
- * [CertificateAuthorityService.UpdateReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateReusableConfig].
- * 
- * - * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest} - */ -public final class UpdateReusableConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest) - UpdateReusableConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateReusableConfigRequest.newBuilder() to construct. - private UpdateReusableConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateReusableConfigRequest() { - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateReusableConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateReusableConfigRequest( - 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: - { - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder subBuilder = null; - if (reusableConfig_ != null) { - subBuilder = reusableConfig_.toBuilder(); - } - reusableConfig_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.ReusableConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reusableConfig_); - reusableConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = 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.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateReusableConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateReusableConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest.class, - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest.Builder.class); - } - - public static final int REUSABLE_CONFIG_FIELD_NUMBER = 1; - private com.google.cloud.security.privateca.v1beta1.ReusableConfig reusableConfig_; - /** - * - * - *
-   * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the reusableConfig field is set. - */ - @java.lang.Override - public boolean hasReusableConfig() { - return reusableConfig_ != null; - } - /** - * - * - *
-   * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The reusableConfig. - */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfig() { - return reusableConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance() - : reusableConfig_; - } - /** - * - * - *
-   * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder - getReusableConfigOrBuilder() { - return getReusableConfig(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. A list of fields to be updated in this request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. A list of fields to be updated in this request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. A list of fields to be updated in this request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = 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 (reusableConfig_ != null) { - output.writeMessage(1, getReusableConfig()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - if (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reusableConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReusableConfig()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); - } - 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.security.privateca.v1beta1.UpdateReusableConfigRequest)) { - return super.equals(obj); - } - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest other = - (com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest) obj; - - if (hasReusableConfig() != other.hasReusableConfig()) return false; - if (hasReusableConfig()) { - if (!getReusableConfig().equals(other.getReusableConfig())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasReusableConfig()) { - hash = (37 * hash) + REUSABLE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getReusableConfig().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest 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.security.privateca.v1beta1.UpdateReusableConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest 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.security.privateca.v1beta1.UpdateReusableConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest 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.security.privateca.v1beta1.UpdateReusableConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest - 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.security.privateca.v1beta1.UpdateReusableConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest 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.security.privateca.v1beta1.UpdateReusableConfigRequest 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
-   * [CertificateAuthorityService.UpdateReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateReusableConfig].
-   * 
- * - * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest) - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateReusableConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateReusableConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest.class, - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest.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(); - if (reusableConfigBuilder_ == null) { - reusableConfig_ = null; - } else { - reusableConfig_ = null; - reusableConfigBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateReusableConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest build() { - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest result = - new com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest(this); - if (reusableConfigBuilder_ == null) { - result.reusableConfig_ = reusableConfig_; - } else { - result.reusableConfig_ = reusableConfigBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.requestId_ = requestId_; - 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.security.privateca.v1beta1.UpdateReusableConfigRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest - .getDefaultInstance()) return this; - if (other.hasReusableConfig()) { - mergeReusableConfig(other.getReusableConfig()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.security.privateca.v1beta1.ReusableConfig reusableConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfig, - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> - reusableConfigBuilder_; - /** - * - * - *
-     * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the reusableConfig field is set. - */ - public boolean hasReusableConfig() { - return reusableConfigBuilder_ != null || reusableConfig_ != null; - } - /** - * - * - *
-     * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The reusableConfig. - */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfig() { - if (reusableConfigBuilder_ == null) { - return reusableConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance() - : reusableConfig_; - } else { - return reusableConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setReusableConfig( - com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { - if (reusableConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reusableConfig_ = value; - onChanged(); - } else { - reusableConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setReusableConfig( - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { - if (reusableConfigBuilder_ == null) { - reusableConfig_ = builderForValue.build(); - onChanged(); - } else { - reusableConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeReusableConfig( - com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { - if (reusableConfigBuilder_ == null) { - if (reusableConfig_ != null) { - reusableConfig_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfig.newBuilder(reusableConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - reusableConfig_ = value; - } - onChanged(); - } else { - reusableConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearReusableConfig() { - if (reusableConfigBuilder_ == null) { - reusableConfig_ = null; - onChanged(); - } else { - reusableConfig_ = null; - reusableConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder - getReusableConfigBuilder() { - - onChanged(); - return getReusableConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder - getReusableConfigOrBuilder() { - if (reusableConfigBuilder_ != null) { - return reusableConfigBuilder_.getMessageOrBuilder(); - } else { - return reusableConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance() - : reusableConfig_; - } - } - /** - * - * - *
-     * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-     * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfig, - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> - getReusableConfigFieldBuilder() { - if (reusableConfigBuilder_ == null) { - reusableConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfig, - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder>( - getReusableConfig(), getParentForChildren(), isClean()); - reusableConfig_ = null; - } - return reusableConfigBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. A list of fields to be updated in this request.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. A list of fields to be updated in this request.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. A list of fields to be updated in this request.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. A list of fields to be updated in this request.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. A list of fields to be updated in this request.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. A list of fields to be updated in this request.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. A list of fields to be updated in this request.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. A list of fields to be updated in this request.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. A list of fields to be updated in this request.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-     * retry your request, the server will know to ignore the request if it has
-     * already been completed. The server will guarantee that for at least 60
-     * minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = 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.security.privateca.v1beta1.UpdateReusableConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest) - private static final com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest(); - } - - public static com.google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateReusableConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateReusableConfigRequest(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.security.privateca.v1beta1.UpdateReusableConfigRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateReusableConfigRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateReusableConfigRequestOrBuilder.java deleted file mode 100644 index 04ff1845..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateReusableConfigRequestOrBuilder.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * 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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface UpdateReusableConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.UpdateReusableConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the reusableConfig field is set. - */ - boolean hasReusableConfig(); - /** - * - * - *
-   * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The reusableConfig. - */ - com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfig(); - /** - * - * - *
-   * Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableConfigOrBuilder(); - - /** - * - * - *
-   * Required. A list of fields to be updated in this request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. A list of fields to be updated in this request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. A list of fields to be updated in this request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. An ID to identify requests. Specify a unique request ID so that if you must
-   * retry your request, the server will know to ignore the request if it has
-   * already been completed. The server will guarantee that for at least 60
-   * minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto b/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto index 44b37d2d..2f71ac97 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto @@ -170,7 +170,8 @@ message CertificateAuthority { message KeyVersionSpec { oneof KeyVersion { // Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the - // format`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. + // format + // `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. // This option enables full flexibility in the key's capabilities and // properties. string cloud_kms_key_version = 1 [(google.api.field_behavior) = REQUIRED]; @@ -231,20 +232,32 @@ message CertificateAuthority { // [CryptoKey][google.cloud.kms.v1.CryptoKey] with the // [CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] value // `ASYMMETRIC_SIGN`. These values correspond to the - // [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKey.CryptoKeyVersion.CryptoKeyVersionAlgorithm]. - // values. + // [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] + // values. For RSA signing algorithms, the PSS algorithms should be preferred, + // use PKCS1 algorithms if required for compatibility. For further + // recommandations, see + // https://cloud.google.com/kms/docs/algorithms#algorithm_recommendations. enum SignHashAlgorithm { // Not specified. SIGN_HASH_ALGORITHM_UNSPECIFIED = 0; // maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256 - RSA_PSS_2048_SHA_256 = 1; + RSA_PSS_2048_SHA256 = 1; // maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256 - RSA_PSS_3072_SHA_256 = 2; + RSA_PSS_3072_SHA256 = 2; // maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256 - RSA_PSS_4096_SHA_256 = 3; + RSA_PSS_4096_SHA256 = 3; + + // maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256 + RSA_PKCS1_2048_SHA256 = 6; + + // maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256 + RSA_PKCS1_3072_SHA256 = 7; + + // maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256 + RSA_PKCS1_4096_SHA256 = 8; // maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256 EC_P256_SHA256 = 4; @@ -437,11 +450,14 @@ message Certificate { CertificateConfig config = 3 [(google.api.field_behavior) = IMMUTABLE]; } - // Required. The desired lifetime of a certificate. Used to create the + // Required. Immutable. The desired lifetime of a certificate. Used to create the // "not_before_time" and "not_after_time" fields inside an X.509 // certificate. Note that the lifetime may be truncated if it would extend // past the life of any certificate authority in the issuing chain. - google.protobuf.Duration lifetime = 4 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.Duration lifetime = 4 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; // Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This // [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present. @@ -525,7 +541,7 @@ message ReusableConfigValues { CaOptions ca_options = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Describes the X.509 certificate policy object identifiers, per - // https://tools.ietf.org/html/rfc5280#section-4.2.1.4rfc5280 + // https://tools.ietf.org/html/rfc5280#section-4.2.1.4. repeated ObjectId policy_ids = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses @@ -845,8 +861,10 @@ message SubjectAltNames { } // A [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] indicates whether a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been revoked, -// and the reason for revocation. These are standard revocation reasons from RFC -// 5280. +// and the reason for revocation. These correspond to standard revocation +// reasons from RFC 5280. Note that the enum labels and values in this +// definition are not the same ASN.1 values defined in RFC 5280. These values +// will be translated to the correct ASN.1 values when a CRL is created. enum RevocationReason { // Default unspecified value. This value does indicate that a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] // has been revoked, but that a reason has not been recorded. diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto b/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto index cda5fde4..6235fc9b 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/security/privateca/v1beta1/resources.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -73,7 +74,8 @@ service CertificateAuthorityService { option (google.api.method_signature) = "name"; } - // Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. + // Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the + // [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field. rpc UpdateCertificate(UpdateCertificateRequest) returns (Certificate) { option (google.api.http) = { patch: "/v1beta1/{certificate.name=projects/*/locations/*/certificateAuthorities/*/certificates/*}" @@ -208,20 +210,6 @@ service CertificateAuthorityService { }; } - // Create a new [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in a given Project, Location - // for a particular [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. - rpc CreateCertificateRevocationList(CreateCertificateRevocationListRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*/certificateAuthorities/*}/certificateRevocationLists" - body: "certificate_revocation_list" - }; - option (google.api.method_signature) = "parent,certificate_revocation_list,certificate_revocation_list_id"; - option (google.longrunning.operation_info) = { - response_type: "CertificateRevocationList" - metadata_type: "OperationMetadata" - }; - } - // Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. rpc GetCertificateRevocationList(GetCertificateRevocationListRequest) returns (CertificateRevocationList) { option (google.api.http) = { @@ -251,31 +239,6 @@ service CertificateAuthorityService { }; } - // Create a new [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in a given Project and Location. - rpc CreateReusableConfig(CreateReusableConfigRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*}/reusableConfigs" - body: "reusable_config" - }; - option (google.api.method_signature) = "parent,reusable_config,reusable_config_id"; - option (google.longrunning.operation_info) = { - response_type: "ReusableConfig" - metadata_type: "OperationMetadata" - }; - } - - // DeleteReusableConfig deletes a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - rpc DeleteReusableConfig(DeleteReusableConfigRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/reusableConfigs/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.cloud.security.privateca.v1beta1.OperationMetadata" - }; - } - // Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. rpc GetReusableConfig(GetReusableConfigRequest) returns (ReusableConfig) { option (google.api.http) = { @@ -291,19 +254,6 @@ service CertificateAuthorityService { }; option (google.api.method_signature) = "parent"; } - - // Update a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig]. - rpc UpdateReusableConfig(UpdateReusableConfigRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1beta1/{reusable_config.name=projects/*/locations/*/reusableConfigs/*}" - body: "reusable_config" - }; - option (google.api.method_signature) = "reusable_config,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "ReusableConfig" - metadata_type: "OperationMetadata" - }; - } } // Request message for [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificate]. @@ -319,7 +269,7 @@ message CreateCertificateRequest { ]; // Optional. It must be unique within a location and match the regular - // expression `[a-zA-Z0-9-]{1,63}`. This field is required when using a + // expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a // [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier], // but is optional and its value is ignored otherwise. string certificate_id = 2 [(google.api.field_behavior) = OPTIONAL]; @@ -379,10 +329,14 @@ message ListCertificatesRequest { // [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.next_page_token]. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Only include resources that match the filter in the response. + // Optional. Only include resources that match the filter in the response. For details + // on supported filters and syntax, see [Certificates Filtering + // documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support). string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Specify how the results should be sorted. + // Optional. Specify how the results should be sorted. For details on supported fields + // and syntax, see [Certificates Sorting + // documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support). string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -505,7 +459,7 @@ message CreateCertificateAuthorityRequest { ]; // Required. It must be unique within a location and match the regular - // expression `[a-zA-Z0-9-]{1,63}` + // expression `[a-zA-Z0-9_-]{1,63}` string certificate_authority_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values. @@ -743,42 +697,6 @@ message UpdateCertificateAuthorityRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for -// [CertificateAuthorityService.CreateCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificateRevocationList]. -message CreateCertificateRevocationListRequest { - // Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] - // associated with the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format - // `projects/*/locations/*/certificateAuthorities/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "privateca.googleapis.com/CertificateAuthority" - } - ]; - - // Required. It must be unique within a location and match the regular expression - // `[a-zA-Z0-9-]{1,63}` - string certificate_revocation_list_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with initial field values. - CertificateRevocationList certificate_revocation_list = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. An ID to identify requests. Specify a unique request ID so that if you must - // retry your request, the server will know to ignore the request if it has - // already been completed. The server will guarantee that for at least 60 - // minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; -} - // Request message for // [CertificateAuthorityService.GetCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateRevocationList]. message GetCertificateRevocationListRequest { @@ -864,70 +782,6 @@ message UpdateCertificateRevocationListRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for -// [CertificateAuthorityService.CreateReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateReusableConfig]. -message CreateReusableConfigRequest { - // Required. The resource name of the location associated with the - // [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig], in the format - // `projects/*/locations/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Required. It must be unique within a location and match the regular - // expression `[a-zA-Z0-9-]{1,63}` - string reusable_config_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with initial field values. - ReusableConfig reusable_config = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. An ID to identify requests. Specify a unique request ID so that if you must - // retry your request, the server will know to ignore the request if it has - // already been completed. The server will guarantee that for at least 60 - // minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// Request message for -// [CertificateAuthorityService.DeleteReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.DeleteReusableConfig]. -message DeleteReusableConfigRequest { - // Required. The resource name for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format - // `projects/*/locations/*/reusableConfigs/*`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "privateca.googleapis.com/ReusableConfig" - } - ]; - - // Optional. An ID to identify requests. Specify a unique request ID so that if you must - // retry your request, the server will know to ignore the request if it has - // already been completed. The server will guarantee that for at least 60 - // minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; -} - // Request message for // [CertificateAuthorityService.GetReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetReusableConfig]. message GetReusableConfigRequest { @@ -987,31 +841,6 @@ message ListReusableConfigsResponse { repeated string unreachable = 3; } -// Request message for -// [CertificateAuthorityService.UpdateReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateReusableConfig]. -message UpdateReusableConfigRequest { - // Required. [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] with updated values. - ReusableConfig reusable_config = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. A list of fields to be updated in this request. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. An ID to identify requests. Specify a unique request ID so that if you must - // retry your request, the server will know to ignore the request if it has - // already been completed. The server will guarantee that for at least 60 - // minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; -} - // Represents the metadata of the long-running operation. message OperationMetadata { // Output only. The time the operation was created. diff --git a/synth.metadata b/synth.metadata index 08e9aed4..c48cb373 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-security-private-ca.git", - "sha": "704fc9c1a4307d7b0d2cfd93c16169089e96055e" + "sha": "d3df7912f54fbce9f6e0189c2b675caf03997e60" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0a11d3c41e8d6587b969c8ffe2e8b6dd1e209fcf", - "internalRef": "331779231" + "sha": "7ab31c71fd81b85dc4b5a439fe654dbd6578c858", + "internalRef": "334847962" } }, { @@ -128,12 +128,6 @@ "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java", "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java", "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java", - "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRevocationListRequest.java", - "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRevocationListRequestOrBuilder.java", - "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateReusableConfigRequest.java", - "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateReusableConfigRequestOrBuilder.java", - "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DeleteReusableConfigRequest.java", - "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DeleteReusableConfigRequestOrBuilder.java", "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java", "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java", "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java", @@ -203,8 +197,6 @@ "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java", "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java", "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java", - "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateReusableConfigRequest.java", - "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateReusableConfigRequestOrBuilder.java", "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java", "proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java", "proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto",