diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index 78fe8bee4ed7..70a89dfdfd96 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-certificate-manager - 0.5.2 + 0.5.3 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.5.2' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.5.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.5.2" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.5.3" ``` ## Authentication diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java index bad64adfa3f6..b411df3aafbd 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java @@ -3250,6 +3250,672 @@ public final OperationFuture deleteDnsAuthorizationAsy return stub.deleteDnsAuthorizationCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CertificateIssuanceConfigs in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (CertificateIssuanceConfig element :
+   *       certificateManagerClient.listCertificateIssuanceConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location from which the certificate should be listed, + * specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCertificateIssuanceConfigsPagedResponse listCertificateIssuanceConfigs( + LocationName parent) { + ListCertificateIssuanceConfigsRequest request = + ListCertificateIssuanceConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCertificateIssuanceConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CertificateIssuanceConfigs in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (CertificateIssuanceConfig element :
+   *       certificateManagerClient.listCertificateIssuanceConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location from which the certificate should be listed, + * specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCertificateIssuanceConfigsPagedResponse listCertificateIssuanceConfigs( + String parent) { + ListCertificateIssuanceConfigsRequest request = + ListCertificateIssuanceConfigsRequest.newBuilder().setParent(parent).build(); + return listCertificateIssuanceConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CertificateIssuanceConfigs in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   ListCertificateIssuanceConfigsRequest request =
+   *       ListCertificateIssuanceConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (CertificateIssuanceConfig element :
+   *       certificateManagerClient.listCertificateIssuanceConfigs(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 ListCertificateIssuanceConfigsPagedResponse listCertificateIssuanceConfigs( + ListCertificateIssuanceConfigsRequest request) { + return listCertificateIssuanceConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CertificateIssuanceConfigs in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   ListCertificateIssuanceConfigsRequest request =
+   *       ListCertificateIssuanceConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       certificateManagerClient
+   *           .listCertificateIssuanceConfigsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (CertificateIssuanceConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable() { + return stub.listCertificateIssuanceConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CertificateIssuanceConfigs in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   ListCertificateIssuanceConfigsRequest request =
+   *       ListCertificateIssuanceConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListCertificateIssuanceConfigsResponse response =
+   *         certificateManagerClient.listCertificateIssuanceConfigsCallable().call(request);
+   *     for (CertificateIssuanceConfig element : response.getCertificateIssuanceConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable() { + return stub.listCertificateIssuanceConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   CertificateIssuanceConfigName name =
+   *       CertificateIssuanceConfigName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]");
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient.getCertificateIssuanceConfig(name);
+   * }
+   * }
+ * + * @param name Required. A name of the certificate issuance config to describe. Must be in the + * format `projects/*/locations/*/certificateIssuanceConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateIssuanceConfig getCertificateIssuanceConfig( + CertificateIssuanceConfigName name) { + GetCertificateIssuanceConfigRequest request = + GetCertificateIssuanceConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCertificateIssuanceConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   String name =
+   *       CertificateIssuanceConfigName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *           .toString();
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient.getCertificateIssuanceConfig(name);
+   * }
+   * }
+ * + * @param name Required. A name of the certificate issuance config to describe. Must be in the + * format `projects/*/locations/*/certificateIssuanceConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateIssuanceConfig getCertificateIssuanceConfig(String name) { + GetCertificateIssuanceConfigRequest request = + GetCertificateIssuanceConfigRequest.newBuilder().setName(name).build(); + return getCertificateIssuanceConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   GetCertificateIssuanceConfigRequest request =
+   *       GetCertificateIssuanceConfigRequest.newBuilder()
+   *           .setName(
+   *               CertificateIssuanceConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient.getCertificateIssuanceConfig(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 CertificateIssuanceConfig getCertificateIssuanceConfig( + GetCertificateIssuanceConfigRequest request) { + return getCertificateIssuanceConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   GetCertificateIssuanceConfigRequest request =
+   *       GetCertificateIssuanceConfigRequest.newBuilder()
+   *           .setName(
+   *               CertificateIssuanceConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       certificateManagerClient.getCertificateIssuanceConfigCallable().futureCall(request);
+   *   // Do something.
+   *   CertificateIssuanceConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getCertificateIssuanceConfigCallable() { + return stub.getCertificateIssuanceConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CertificateIssuanceConfig in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   CertificateIssuanceConfig certificateIssuanceConfig =
+   *       CertificateIssuanceConfig.newBuilder().build();
+   *   String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023";
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient
+   *           .createCertificateIssuanceConfigAsync(
+   *               parent, certificateIssuanceConfig, certificateIssuanceConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the certificate issuance config. Must be in the + * format `projects/*/locations/*`. + * @param certificateIssuanceConfig Required. A definition of the certificate issuance config to + * create. + * @param certificateIssuanceConfigId Required. A user-provided name of the certificate config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCertificateIssuanceConfigAsync( + LocationName parent, + CertificateIssuanceConfig certificateIssuanceConfig, + String certificateIssuanceConfigId) { + CreateCertificateIssuanceConfigRequest request = + CreateCertificateIssuanceConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCertificateIssuanceConfig(certificateIssuanceConfig) + .setCertificateIssuanceConfigId(certificateIssuanceConfigId) + .build(); + return createCertificateIssuanceConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CertificateIssuanceConfig in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   CertificateIssuanceConfig certificateIssuanceConfig =
+   *       CertificateIssuanceConfig.newBuilder().build();
+   *   String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023";
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient
+   *           .createCertificateIssuanceConfigAsync(
+   *               parent, certificateIssuanceConfig, certificateIssuanceConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the certificate issuance config. Must be in the + * format `projects/*/locations/*`. + * @param certificateIssuanceConfig Required. A definition of the certificate issuance config to + * create. + * @param certificateIssuanceConfigId Required. A user-provided name of the certificate config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCertificateIssuanceConfigAsync( + String parent, + CertificateIssuanceConfig certificateIssuanceConfig, + String certificateIssuanceConfigId) { + CreateCertificateIssuanceConfigRequest request = + CreateCertificateIssuanceConfigRequest.newBuilder() + .setParent(parent) + .setCertificateIssuanceConfig(certificateIssuanceConfig) + .setCertificateIssuanceConfigId(certificateIssuanceConfigId) + .build(); + return createCertificateIssuanceConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CertificateIssuanceConfig in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   CreateCertificateIssuanceConfigRequest request =
+   *       CreateCertificateIssuanceConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023")
+   *           .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build())
+   *           .build();
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient.createCertificateIssuanceConfigAsync(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 + */ + public final OperationFuture + createCertificateIssuanceConfigAsync(CreateCertificateIssuanceConfigRequest request) { + return createCertificateIssuanceConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CertificateIssuanceConfig in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   CreateCertificateIssuanceConfigRequest request =
+   *       CreateCertificateIssuanceConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023")
+   *           .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       certificateManagerClient
+   *           .createCertificateIssuanceConfigOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   CertificateIssuanceConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable() { + return stub.createCertificateIssuanceConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CertificateIssuanceConfig in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   CreateCertificateIssuanceConfigRequest request =
+   *       CreateCertificateIssuanceConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023")
+   *           .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       certificateManagerClient.createCertificateIssuanceConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createCertificateIssuanceConfigCallable() { + return stub.createCertificateIssuanceConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   CertificateIssuanceConfigName name =
+   *       CertificateIssuanceConfigName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]");
+   *   certificateManagerClient.deleteCertificateIssuanceConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. A name of the certificate issuance config to delete. Must be in the + * format `projects/*/locations/*/certificateIssuanceConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCertificateIssuanceConfigAsync( + CertificateIssuanceConfigName name) { + DeleteCertificateIssuanceConfigRequest request = + DeleteCertificateIssuanceConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteCertificateIssuanceConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   String name =
+   *       CertificateIssuanceConfigName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *           .toString();
+   *   certificateManagerClient.deleteCertificateIssuanceConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. A name of the certificate issuance config to delete. Must be in the + * format `projects/*/locations/*/certificateIssuanceConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCertificateIssuanceConfigAsync( + String name) { + DeleteCertificateIssuanceConfigRequest request = + DeleteCertificateIssuanceConfigRequest.newBuilder().setName(name).build(); + return deleteCertificateIssuanceConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   DeleteCertificateIssuanceConfigRequest request =
+   *       DeleteCertificateIssuanceConfigRequest.newBuilder()
+   *           .setName(
+   *               CertificateIssuanceConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   certificateManagerClient.deleteCertificateIssuanceConfigAsync(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 + */ + public final OperationFuture deleteCertificateIssuanceConfigAsync( + DeleteCertificateIssuanceConfigRequest request) { + return deleteCertificateIssuanceConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   DeleteCertificateIssuanceConfigRequest request =
+   *       DeleteCertificateIssuanceConfigRequest.newBuilder()
+   *           .setName(
+   *               CertificateIssuanceConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       certificateManagerClient
+   *           .deleteCertificateIssuanceConfigOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteCertificateIssuanceConfigOperationCallable() { + return stub.deleteCertificateIssuanceConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   DeleteCertificateIssuanceConfigRequest request =
+   *       DeleteCertificateIssuanceConfigRequest.newBuilder()
+   *           .setName(
+   *               CertificateIssuanceConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       certificateManagerClient.deleteCertificateIssuanceConfigCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteCertificateIssuanceConfigCallable() { + return stub.deleteCertificateIssuanceConfigCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. @@ -3778,6 +4444,103 @@ protected ListDnsAuthorizationsFixedSizeCollection createCollection( } } + public static class ListCertificateIssuanceConfigsPagedResponse + extends AbstractPagedListResponse< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig, + ListCertificateIssuanceConfigsPage, + ListCertificateIssuanceConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCertificateIssuanceConfigsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCertificateIssuanceConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCertificateIssuanceConfigsPagedResponse(ListCertificateIssuanceConfigsPage page) { + super(page, ListCertificateIssuanceConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCertificateIssuanceConfigsPage + extends AbstractPage< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig, + ListCertificateIssuanceConfigsPage> { + + private ListCertificateIssuanceConfigsPage( + PageContext< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + context, + ListCertificateIssuanceConfigsResponse response) { + super(context, response); + } + + private static ListCertificateIssuanceConfigsPage createEmptyPage() { + return new ListCertificateIssuanceConfigsPage(null, null); + } + + @Override + protected ListCertificateIssuanceConfigsPage createPage( + PageContext< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + context, + ListCertificateIssuanceConfigsResponse response) { + return new ListCertificateIssuanceConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCertificateIssuanceConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig, + ListCertificateIssuanceConfigsPage, + ListCertificateIssuanceConfigsFixedSizeCollection> { + + private ListCertificateIssuanceConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCertificateIssuanceConfigsFixedSizeCollection createEmptyCollection() { + return new ListCertificateIssuanceConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListCertificateIssuanceConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCertificateIssuanceConfigsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java index f98d853e2c78..313e8c9f620f 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -294,6 +295,52 @@ public UnaryCallSettings deleteCertifica .deleteDnsAuthorizationOperationSettings(); } + /** Returns the object with the settings used for calls to listCertificateIssuanceConfigs. */ + public PagedCallSettings< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .listCertificateIssuanceConfigsSettings(); + } + + /** Returns the object with the settings used for calls to getCertificateIssuanceConfig. */ + public UnaryCallSettings + getCertificateIssuanceConfigSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .getCertificateIssuanceConfigSettings(); + } + + /** Returns the object with the settings used for calls to createCertificateIssuanceConfig. */ + public UnaryCallSettings + createCertificateIssuanceConfigSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .createCertificateIssuanceConfigSettings(); + } + + /** Returns the object with the settings used for calls to createCertificateIssuanceConfig. */ + public OperationCallSettings< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .createCertificateIssuanceConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteCertificateIssuanceConfig. */ + public UnaryCallSettings + deleteCertificateIssuanceConfigSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .deleteCertificateIssuanceConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteCertificateIssuanceConfig. */ + public OperationCallSettings + deleteCertificateIssuanceConfigOperationSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .deleteCertificateIssuanceConfigOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -627,6 +674,47 @@ public UnaryCallSettings.Builder getCertific return getStubSettingsBuilder().deleteDnsAuthorizationOperationSettings(); } + /** Returns the builder for the settings used for calls to listCertificateIssuanceConfigs. */ + public PagedCallSettings.Builder< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings() { + return getStubSettingsBuilder().listCertificateIssuanceConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to getCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + getCertificateIssuanceConfigSettings() { + return getStubSettingsBuilder().getCertificateIssuanceConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + createCertificateIssuanceConfigSettings() { + return getStubSettingsBuilder().createCertificateIssuanceConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createCertificateIssuanceConfig. */ + public OperationCallSettings.Builder< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings() { + return getStubSettingsBuilder().createCertificateIssuanceConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + deleteCertificateIssuanceConfigSettings() { + return getStubSettingsBuilder().deleteCertificateIssuanceConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCertificateIssuanceConfig. */ + public OperationCallSettings.Builder< + DeleteCertificateIssuanceConfigRequest, Empty, OperationMetadata> + deleteCertificateIssuanceConfigOperationSettings() { + return getStubSettingsBuilder().deleteCertificateIssuanceConfigOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json index 66298393c61f..6545d0f0db7c 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json @@ -13,6 +13,9 @@ "CreateCertificate": { "methods": ["createCertificateAsync", "createCertificateAsync", "createCertificateAsync", "createCertificateOperationCallable", "createCertificateCallable"] }, + "CreateCertificateIssuanceConfig": { + "methods": ["createCertificateIssuanceConfigAsync", "createCertificateIssuanceConfigAsync", "createCertificateIssuanceConfigAsync", "createCertificateIssuanceConfigOperationCallable", "createCertificateIssuanceConfigCallable"] + }, "CreateCertificateMap": { "methods": ["createCertificateMapAsync", "createCertificateMapAsync", "createCertificateMapAsync", "createCertificateMapOperationCallable", "createCertificateMapCallable"] }, @@ -25,6 +28,9 @@ "DeleteCertificate": { "methods": ["deleteCertificateAsync", "deleteCertificateAsync", "deleteCertificateAsync", "deleteCertificateOperationCallable", "deleteCertificateCallable"] }, + "DeleteCertificateIssuanceConfig": { + "methods": ["deleteCertificateIssuanceConfigAsync", "deleteCertificateIssuanceConfigAsync", "deleteCertificateIssuanceConfigAsync", "deleteCertificateIssuanceConfigOperationCallable", "deleteCertificateIssuanceConfigCallable"] + }, "DeleteCertificateMap": { "methods": ["deleteCertificateMapAsync", "deleteCertificateMapAsync", "deleteCertificateMapAsync", "deleteCertificateMapOperationCallable", "deleteCertificateMapCallable"] }, @@ -37,6 +43,9 @@ "GetCertificate": { "methods": ["getCertificate", "getCertificate", "getCertificate", "getCertificateCallable"] }, + "GetCertificateIssuanceConfig": { + "methods": ["getCertificateIssuanceConfig", "getCertificateIssuanceConfig", "getCertificateIssuanceConfig", "getCertificateIssuanceConfigCallable"] + }, "GetCertificateMap": { "methods": ["getCertificateMap", "getCertificateMap", "getCertificateMap", "getCertificateMapCallable"] }, @@ -49,6 +58,9 @@ "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, + "ListCertificateIssuanceConfigs": { + "methods": ["listCertificateIssuanceConfigs", "listCertificateIssuanceConfigs", "listCertificateIssuanceConfigs", "listCertificateIssuanceConfigsPagedCallable", "listCertificateIssuanceConfigsCallable"] + }, "ListCertificateMapEntries": { "methods": ["listCertificateMapEntries", "listCertificateMapEntries", "listCertificateMapEntries", "listCertificateMapEntriesPagedCallable", "listCertificateMapEntriesCallable"] }, diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java index e7f827b5415b..063d49844004 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1.stub; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -26,21 +27,27 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.certificatemanager.v1.Certificate; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; import com.google.cloud.certificatemanager.v1.CertificateMap; import com.google.cloud.certificatemanager.v1.CertificateMapEntry; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateRequest; import com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateRequest; import com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest; import com.google.cloud.certificatemanager.v1.DnsAuthorization; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapRequest; import com.google.cloud.certificatemanager.v1.GetCertificateRequest; import com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest; @@ -262,6 +269,51 @@ public UnaryCallable deleteDnsAuthoriz throw new UnsupportedOperationException("Not implemented: deleteDnsAuthorizationCallable()"); } + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listCertificateIssuanceConfigsPagedCallable()"); + } + + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listCertificateIssuanceConfigsCallable()"); + } + + public UnaryCallable + getCertificateIssuanceConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: getCertificateIssuanceConfigCallable()"); + } + + public OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createCertificateIssuanceConfigOperationCallable()"); + } + + public UnaryCallable + createCertificateIssuanceConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: createCertificateIssuanceConfigCallable()"); + } + + public OperationCallable + deleteCertificateIssuanceConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCertificateIssuanceConfigOperationCallable()"); + } + + public UnaryCallable + deleteCertificateIssuanceConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCertificateIssuanceConfigCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java index fae1d85db232..0b5e3adc5bc0 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1.stub; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -52,21 +53,27 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.certificatemanager.v1.Certificate; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; import com.google.cloud.certificatemanager.v1.CertificateMap; import com.google.cloud.certificatemanager.v1.CertificateMapEntry; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateRequest; import com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateRequest; import com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest; import com.google.cloud.certificatemanager.v1.DnsAuthorization; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapRequest; import com.google.cloud.certificatemanager.v1.GetCertificateRequest; import com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest; @@ -214,6 +221,23 @@ public class CertificateManagerStubSettings extends StubSettings deleteDnsAuthorizationOperationSettings; + private final PagedCallSettings< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings; + private final UnaryCallSettings + getCertificateIssuanceConfigSettings; + private final UnaryCallSettings + createCertificateIssuanceConfigSettings; + private final OperationCallSettings< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings; + private final UnaryCallSettings + deleteCertificateIssuanceConfigSettings; + private final OperationCallSettings< + DeleteCertificateIssuanceConfigRequest, Empty, OperationMetadata> + deleteCertificateIssuanceConfigOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -387,6 +411,55 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + LIST_CERTIFICATE_ISSUANCE_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCertificateIssuanceConfigsRequest injectToken( + ListCertificateIssuanceConfigsRequest payload, String token) { + return ListCertificateIssuanceConfigsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListCertificateIssuanceConfigsRequest injectPageSize( + ListCertificateIssuanceConfigsRequest payload, int pageSize) { + return ListCertificateIssuanceConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListCertificateIssuanceConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCertificateIssuanceConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListCertificateIssuanceConfigsResponse payload) { + return payload.getCertificateIssuanceConfigsList() == null + ? ImmutableList.of() + : payload.getCertificateIssuanceConfigsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -515,6 +588,39 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + LIST_CERTIFICATE_ISSUANCE_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse> + callable, + ListCertificateIssuanceConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + pageContext = + PageContext.create( + callable, + LIST_CERTIFICATE_ISSUANCE_CONFIGS_PAGE_STR_DESC, + request, + context); + return ListCertificateIssuanceConfigsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -726,6 +832,46 @@ public UnaryCallSettings deleteCertifica return deleteDnsAuthorizationOperationSettings; } + /** Returns the object with the settings used for calls to listCertificateIssuanceConfigs. */ + public PagedCallSettings< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings() { + return listCertificateIssuanceConfigsSettings; + } + + /** Returns the object with the settings used for calls to getCertificateIssuanceConfig. */ + public UnaryCallSettings + getCertificateIssuanceConfigSettings() { + return getCertificateIssuanceConfigSettings; + } + + /** Returns the object with the settings used for calls to createCertificateIssuanceConfig. */ + public UnaryCallSettings + createCertificateIssuanceConfigSettings() { + return createCertificateIssuanceConfigSettings; + } + + /** Returns the object with the settings used for calls to createCertificateIssuanceConfig. */ + public OperationCallSettings< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings() { + return createCertificateIssuanceConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteCertificateIssuanceConfig. */ + public UnaryCallSettings + deleteCertificateIssuanceConfigSettings() { + return deleteCertificateIssuanceConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteCertificateIssuanceConfig. */ + public OperationCallSettings + deleteCertificateIssuanceConfigOperationSettings() { + return deleteCertificateIssuanceConfigOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -887,6 +1033,18 @@ protected CertificateManagerStubSettings(Builder settingsBuilder) throws IOExcep deleteDnsAuthorizationSettings = settingsBuilder.deleteDnsAuthorizationSettings().build(); deleteDnsAuthorizationOperationSettings = settingsBuilder.deleteDnsAuthorizationOperationSettings().build(); + listCertificateIssuanceConfigsSettings = + settingsBuilder.listCertificateIssuanceConfigsSettings().build(); + getCertificateIssuanceConfigSettings = + settingsBuilder.getCertificateIssuanceConfigSettings().build(); + createCertificateIssuanceConfigSettings = + settingsBuilder.createCertificateIssuanceConfigSettings().build(); + createCertificateIssuanceConfigOperationSettings = + settingsBuilder.createCertificateIssuanceConfigOperationSettings().build(); + deleteCertificateIssuanceConfigSettings = + settingsBuilder.deleteCertificateIssuanceConfigSettings().build(); + deleteCertificateIssuanceConfigOperationSettings = + settingsBuilder.deleteCertificateIssuanceConfigOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -980,6 +1138,24 @@ public static class Builder private final OperationCallSettings.Builder< DeleteDnsAuthorizationRequest, Empty, OperationMetadata> deleteDnsAuthorizationOperationSettings; + private final PagedCallSettings.Builder< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings; + private final UnaryCallSettings.Builder< + GetCertificateIssuanceConfigRequest, CertificateIssuanceConfig> + getCertificateIssuanceConfigSettings; + private final UnaryCallSettings.Builder + createCertificateIssuanceConfigSettings; + private final OperationCallSettings.Builder< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings; + private final UnaryCallSettings.Builder + deleteCertificateIssuanceConfigSettings; + private final OperationCallSettings.Builder< + DeleteCertificateIssuanceConfigRequest, Empty, OperationMetadata> + deleteCertificateIssuanceConfigOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1060,6 +1236,13 @@ protected Builder(ClientContext clientContext) { updateDnsAuthorizationOperationSettings = OperationCallSettings.newBuilder(); deleteDnsAuthorizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteDnsAuthorizationOperationSettings = OperationCallSettings.newBuilder(); + listCertificateIssuanceConfigsSettings = + PagedCallSettings.newBuilder(LIST_CERTIFICATE_ISSUANCE_CONFIGS_PAGE_STR_FACT); + getCertificateIssuanceConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCertificateIssuanceConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCertificateIssuanceConfigOperationSettings = OperationCallSettings.newBuilder(); + deleteCertificateIssuanceConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCertificateIssuanceConfigOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1085,6 +1268,10 @@ protected Builder(ClientContext clientContext) { createDnsAuthorizationSettings, updateDnsAuthorizationSettings, deleteDnsAuthorizationSettings, + listCertificateIssuanceConfigsSettings, + getCertificateIssuanceConfigSettings, + createCertificateIssuanceConfigSettings, + deleteCertificateIssuanceConfigSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -1134,6 +1321,18 @@ protected Builder(CertificateManagerStubSettings settings) { deleteDnsAuthorizationSettings = settings.deleteDnsAuthorizationSettings.toBuilder(); deleteDnsAuthorizationOperationSettings = settings.deleteDnsAuthorizationOperationSettings.toBuilder(); + listCertificateIssuanceConfigsSettings = + settings.listCertificateIssuanceConfigsSettings.toBuilder(); + getCertificateIssuanceConfigSettings = + settings.getCertificateIssuanceConfigSettings.toBuilder(); + createCertificateIssuanceConfigSettings = + settings.createCertificateIssuanceConfigSettings.toBuilder(); + createCertificateIssuanceConfigOperationSettings = + settings.createCertificateIssuanceConfigOperationSettings.toBuilder(); + deleteCertificateIssuanceConfigSettings = + settings.deleteCertificateIssuanceConfigSettings.toBuilder(); + deleteCertificateIssuanceConfigOperationSettings = + settings.deleteCertificateIssuanceConfigOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1159,6 +1358,10 @@ protected Builder(CertificateManagerStubSettings settings) { createDnsAuthorizationSettings, updateDnsAuthorizationSettings, deleteDnsAuthorizationSettings, + listCertificateIssuanceConfigsSettings, + getCertificateIssuanceConfigSettings, + createCertificateIssuanceConfigSettings, + deleteCertificateIssuanceConfigSettings, listLocationsSettings, getLocationSettings); } @@ -1290,6 +1493,26 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .listCertificateIssuanceConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getCertificateIssuanceConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createCertificateIssuanceConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteCertificateIssuanceConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1591,6 +1814,57 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .createCertificateIssuanceConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + CertificateIssuanceConfig.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteCertificateIssuanceConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1840,6 +2114,51 @@ public UnaryCallSettings.Builder getCertific return deleteDnsAuthorizationOperationSettings; } + /** Returns the builder for the settings used for calls to listCertificateIssuanceConfigs. */ + public PagedCallSettings.Builder< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings() { + return listCertificateIssuanceConfigsSettings; + } + + /** Returns the builder for the settings used for calls to getCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + getCertificateIssuanceConfigSettings() { + return getCertificateIssuanceConfigSettings; + } + + /** Returns the builder for the settings used for calls to createCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + createCertificateIssuanceConfigSettings() { + return createCertificateIssuanceConfigSettings; + } + + /** Returns the builder for the settings used for calls to createCertificateIssuanceConfig. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings() { + return createCertificateIssuanceConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + deleteCertificateIssuanceConfigSettings() { + return deleteCertificateIssuanceConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteCertificateIssuanceConfig. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteCertificateIssuanceConfigRequest, Empty, OperationMetadata> + deleteCertificateIssuanceConfigOperationSettings() { + return deleteCertificateIssuanceConfigOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerStub.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerStub.java index 8a9cf1450faa..7db912b0f907 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerStub.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerStub.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1.stub; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -30,21 +31,27 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.certificatemanager.v1.Certificate; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; import com.google.cloud.certificatemanager.v1.CertificateMap; import com.google.cloud.certificatemanager.v1.CertificateMapEntry; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateRequest; import com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateRequest; import com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest; import com.google.cloud.certificatemanager.v1.DnsAuthorization; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapRequest; import com.google.cloud.certificatemanager.v1.GetCertificateRequest; import com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest; @@ -307,6 +314,60 @@ public class GrpcCertificateManagerStub extends CertificateManagerStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/ListCertificateIssuanceConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCertificateIssuanceConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListCertificateIssuanceConfigsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetCertificateIssuanceConfigRequest, CertificateIssuanceConfig> + getCertificateIssuanceConfigMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/GetCertificateIssuanceConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CertificateIssuanceConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCertificateIssuanceConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/CreateCertificateIssuanceConfig") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteCertificateIssuanceConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/DeleteCertificateIssuanceConfig") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -395,6 +456,23 @@ public class GrpcCertificateManagerStub extends CertificateManagerStub { deleteDnsAuthorizationCallable; private final OperationCallable deleteDnsAuthorizationOperationCallable; + private final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable; + private final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable; + private final UnaryCallable + getCertificateIssuanceConfigCallable; + private final UnaryCallable + createCertificateIssuanceConfigCallable; + private final OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable; + private final UnaryCallable + deleteCertificateIssuanceConfigCallable; + private final OperationCallable + deleteCertificateIssuanceConfigOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -665,6 +743,53 @@ protected GrpcCertificateManagerStub( return params.build(); }) .build(); + GrpcCallSettings + listCertificateIssuanceConfigsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listCertificateIssuanceConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getCertificateIssuanceConfigTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getCertificateIssuanceConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + createCertificateIssuanceConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCertificateIssuanceConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteCertificateIssuanceConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCertificateIssuanceConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -872,6 +997,43 @@ protected GrpcCertificateManagerStub( settings.deleteDnsAuthorizationOperationSettings(), clientContext, operationsStub); + this.listCertificateIssuanceConfigsCallable = + callableFactory.createUnaryCallable( + listCertificateIssuanceConfigsTransportSettings, + settings.listCertificateIssuanceConfigsSettings(), + clientContext); + this.listCertificateIssuanceConfigsPagedCallable = + callableFactory.createPagedCallable( + listCertificateIssuanceConfigsTransportSettings, + settings.listCertificateIssuanceConfigsSettings(), + clientContext); + this.getCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + getCertificateIssuanceConfigTransportSettings, + settings.getCertificateIssuanceConfigSettings(), + clientContext); + this.createCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + createCertificateIssuanceConfigTransportSettings, + settings.createCertificateIssuanceConfigSettings(), + clientContext); + this.createCertificateIssuanceConfigOperationCallable = + callableFactory.createOperationCallable( + createCertificateIssuanceConfigTransportSettings, + settings.createCertificateIssuanceConfigOperationSettings(), + clientContext, + operationsStub); + this.deleteCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + deleteCertificateIssuanceConfigTransportSettings, + settings.deleteCertificateIssuanceConfigSettings(), + clientContext); + this.deleteCertificateIssuanceConfigOperationCallable = + callableFactory.createOperationCallable( + deleteCertificateIssuanceConfigTransportSettings, + settings.deleteCertificateIssuanceConfigOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1094,6 +1256,51 @@ public UnaryCallable deleteDnsAuthoriz return deleteDnsAuthorizationOperationCallable; } + @Override + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable() { + return listCertificateIssuanceConfigsCallable; + } + + @Override + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable() { + return listCertificateIssuanceConfigsPagedCallable; + } + + @Override + public UnaryCallable + getCertificateIssuanceConfigCallable() { + return getCertificateIssuanceConfigCallable; + } + + @Override + public UnaryCallable + createCertificateIssuanceConfigCallable() { + return createCertificateIssuanceConfigCallable; + } + + @Override + public OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable() { + return createCertificateIssuanceConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteCertificateIssuanceConfigCallable() { + return deleteCertificateIssuanceConfigCallable; + } + + @Override + public OperationCallable + deleteCertificateIssuanceConfigOperationCallable() { + return deleteCertificateIssuanceConfigOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java index e299b268bbac..9ce7e109bf9d 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1.stub; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -38,21 +39,27 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.certificatemanager.v1.Certificate; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; import com.google.cloud.certificatemanager.v1.CertificateMap; import com.google.cloud.certificatemanager.v1.CertificateMapEntry; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateRequest; import com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateRequest; import com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest; import com.google.cloud.certificatemanager.v1.DnsAuthorization; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapRequest; import com.google.cloud.certificatemanager.v1.GetCertificateRequest; import com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest; @@ -97,6 +104,7 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub { .add(Certificate.getDescriptor()) .add(CertificateMapEntry.getDescriptor()) .add(OperationMetadata.getDescriptor()) + .add(CertificateIssuanceConfig.getDescriptor()) .add(DnsAuthorization.getDescriptor()) .build(); @@ -890,6 +898,168 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/ListCertificateIssuanceConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/certificateIssuanceConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListCertificateIssuanceConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GetCertificateIssuanceConfigRequest, CertificateIssuanceConfig> + getCertificateIssuanceConfigMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/GetCertificateIssuanceConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/certificateIssuanceConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CertificateIssuanceConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCertificateIssuanceConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/CreateCertificateIssuanceConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/certificateIssuanceConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "certificateIssuanceConfigId", + request.getCertificateIssuanceConfigId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "certificateIssuanceConfig", + request.getCertificateIssuanceConfig(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateCertificateIssuanceConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteCertificateIssuanceConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/DeleteCertificateIssuanceConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/certificateIssuanceConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCertificateIssuanceConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1025,6 +1195,23 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub { deleteDnsAuthorizationCallable; private final OperationCallable deleteDnsAuthorizationOperationCallable; + private final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable; + private final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable; + private final UnaryCallable + getCertificateIssuanceConfigCallable; + private final UnaryCallable + createCertificateIssuanceConfigCallable; + private final OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable; + private final UnaryCallable + deleteCertificateIssuanceConfigCallable; + private final OperationCallable + deleteCertificateIssuanceConfigOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1196,6 +1383,34 @@ protected HttpJsonCertificateManagerStub( .setMethodDescriptor(deleteDnsAuthorizationMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listCertificateIssuanceConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getCertificateIssuanceConfigTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getCertificateIssuanceConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createCertificateIssuanceConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCertificateIssuanceConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteCertificateIssuanceConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCertificateIssuanceConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1394,6 +1609,43 @@ protected HttpJsonCertificateManagerStub( settings.deleteDnsAuthorizationOperationSettings(), clientContext, httpJsonOperationsStub); + this.listCertificateIssuanceConfigsCallable = + callableFactory.createUnaryCallable( + listCertificateIssuanceConfigsTransportSettings, + settings.listCertificateIssuanceConfigsSettings(), + clientContext); + this.listCertificateIssuanceConfigsPagedCallable = + callableFactory.createPagedCallable( + listCertificateIssuanceConfigsTransportSettings, + settings.listCertificateIssuanceConfigsSettings(), + clientContext); + this.getCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + getCertificateIssuanceConfigTransportSettings, + settings.getCertificateIssuanceConfigSettings(), + clientContext); + this.createCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + createCertificateIssuanceConfigTransportSettings, + settings.createCertificateIssuanceConfigSettings(), + clientContext); + this.createCertificateIssuanceConfigOperationCallable = + callableFactory.createOperationCallable( + createCertificateIssuanceConfigTransportSettings, + settings.createCertificateIssuanceConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + deleteCertificateIssuanceConfigTransportSettings, + settings.deleteCertificateIssuanceConfigSettings(), + clientContext); + this.deleteCertificateIssuanceConfigOperationCallable = + callableFactory.createOperationCallable( + deleteCertificateIssuanceConfigTransportSettings, + settings.deleteCertificateIssuanceConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1431,6 +1683,10 @@ public static List getMethodDescriptors() { methodDescriptors.add(createDnsAuthorizationMethodDescriptor); methodDescriptors.add(updateDnsAuthorizationMethodDescriptor); methodDescriptors.add(deleteDnsAuthorizationMethodDescriptor); + methodDescriptors.add(listCertificateIssuanceConfigsMethodDescriptor); + methodDescriptors.add(getCertificateIssuanceConfigMethodDescriptor); + methodDescriptors.add(createCertificateIssuanceConfigMethodDescriptor); + methodDescriptors.add(deleteCertificateIssuanceConfigMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -1644,6 +1900,51 @@ public UnaryCallable deleteDnsAuthoriz return deleteDnsAuthorizationOperationCallable; } + @Override + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable() { + return listCertificateIssuanceConfigsCallable; + } + + @Override + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable() { + return listCertificateIssuanceConfigsPagedCallable; + } + + @Override + public UnaryCallable + getCertificateIssuanceConfigCallable() { + return getCertificateIssuanceConfigCallable; + } + + @Override + public UnaryCallable + createCertificateIssuanceConfigCallable() { + return createCertificateIssuanceConfigCallable; + } + + @Override + public OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable() { + return createCertificateIssuanceConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteCertificateIssuanceConfigCallable() { + return deleteCertificateIssuanceConfigCallable; + } + + @Override + public OperationCallable + deleteCertificateIssuanceConfigOperationCallable() { + return deleteCertificateIssuanceConfigOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientHttpJsonTest.java b/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientHttpJsonTest.java index 54169a7aa3a9..2958ae16c20f 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientHttpJsonTest.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -39,6 +40,7 @@ import com.google.common.collect.Lists; import com.google.longrunning.Operation; import com.google.protobuf.Any; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -2118,6 +2120,468 @@ public void deleteDnsAuthorizationExceptionTest2() throws Exception { } } + @Test + public void listCertificateIssuanceConfigsTest() throws Exception { + CertificateIssuanceConfig responsesElement = CertificateIssuanceConfig.newBuilder().build(); + ListCertificateIssuanceConfigsResponse expectedResponse = + ListCertificateIssuanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateIssuanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCertificateIssuanceConfigsPagedResponse pagedListResponse = + client.listCertificateIssuanceConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateIssuanceConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateIssuanceConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCertificateIssuanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateIssuanceConfigsTest2() throws Exception { + CertificateIssuanceConfig responsesElement = CertificateIssuanceConfig.newBuilder().build(); + ListCertificateIssuanceConfigsResponse expectedResponse = + ListCertificateIssuanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateIssuanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListCertificateIssuanceConfigsPagedResponse pagedListResponse = + client.listCertificateIssuanceConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateIssuanceConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateIssuanceConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listCertificateIssuanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateIssuanceConfigTest() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + mockService.addResponse(expectedResponse); + + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + + CertificateIssuanceConfig actualResponse = client.getCertificateIssuanceConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateIssuanceConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + client.getCertificateIssuanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateIssuanceConfigTest2() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3905/locations/location-3905/certificateIssuanceConfigs/certificateIssuanceConfig-3905"; + + CertificateIssuanceConfig actualResponse = client.getCertificateIssuanceConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateIssuanceConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3905/locations/location-3905/certificateIssuanceConfigs/certificateIssuanceConfig-3905"; + client.getCertificateIssuanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCertificateIssuanceConfigTest() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + + CertificateIssuanceConfig actualResponse = + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateIssuanceConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCertificateIssuanceConfigTest2() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + + CertificateIssuanceConfig actualResponse = + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateIssuanceConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCertificateIssuanceConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + + client.deleteCertificateIssuanceConfigAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCertificateIssuanceConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + client.deleteCertificateIssuanceConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCertificateIssuanceConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-3905/locations/location-3905/certificateIssuanceConfigs/certificateIssuanceConfig-3905"; + + client.deleteCertificateIssuanceConfigAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCertificateIssuanceConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3905/locations/location-3905/certificateIssuanceConfigs/certificateIssuanceConfig-3905"; + client.deleteCertificateIssuanceConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientTest.java b/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientTest.java index 1b3f418c49c8..253189b5eda3 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientTest.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -38,6 +39,7 @@ import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -1912,6 +1914,442 @@ public void deleteDnsAuthorizationExceptionTest2() throws Exception { } } + @Test + public void listCertificateIssuanceConfigsTest() throws Exception { + CertificateIssuanceConfig responsesElement = CertificateIssuanceConfig.newBuilder().build(); + ListCertificateIssuanceConfigsResponse expectedResponse = + ListCertificateIssuanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateIssuanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockCertificateManager.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCertificateIssuanceConfigsPagedResponse pagedListResponse = + client.listCertificateIssuanceConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateIssuanceConfigsList().get(0), resources.get(0)); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCertificateIssuanceConfigsRequest actualRequest = + ((ListCertificateIssuanceConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCertificateIssuanceConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCertificateIssuanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateIssuanceConfigsTest2() throws Exception { + CertificateIssuanceConfig responsesElement = CertificateIssuanceConfig.newBuilder().build(); + ListCertificateIssuanceConfigsResponse expectedResponse = + ListCertificateIssuanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateIssuanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockCertificateManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCertificateIssuanceConfigsPagedResponse pagedListResponse = + client.listCertificateIssuanceConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateIssuanceConfigsList().get(0), resources.get(0)); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCertificateIssuanceConfigsRequest actualRequest = + ((ListCertificateIssuanceConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCertificateIssuanceConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listCertificateIssuanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateIssuanceConfigTest() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + mockCertificateManager.addResponse(expectedResponse); + + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + + CertificateIssuanceConfig actualResponse = client.getCertificateIssuanceConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCertificateIssuanceConfigRequest actualRequest = + ((GetCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCertificateIssuanceConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + client.getCertificateIssuanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateIssuanceConfigTest2() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + mockCertificateManager.addResponse(expectedResponse); + + String name = "name3373707"; + + CertificateIssuanceConfig actualResponse = client.getCertificateIssuanceConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCertificateIssuanceConfigRequest actualRequest = + ((GetCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCertificateIssuanceConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + String name = "name3373707"; + client.getCertificateIssuanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCertificateIssuanceConfigTest() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCertificateManager.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + + CertificateIssuanceConfig actualResponse = + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCertificateIssuanceConfigRequest actualRequest = + ((CreateCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(certificateIssuanceConfig, actualRequest.getCertificateIssuanceConfig()); + Assert.assertEquals( + certificateIssuanceConfigId, actualRequest.getCertificateIssuanceConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCertificateIssuanceConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .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 + public void createCertificateIssuanceConfigTest2() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCertificateManager.addResponse(resultOperation); + + String parent = "parent-995424086"; + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + + CertificateIssuanceConfig actualResponse = + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCertificateIssuanceConfigRequest actualRequest = + ((CreateCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(certificateIssuanceConfig, actualRequest.getCertificateIssuanceConfig()); + Assert.assertEquals( + certificateIssuanceConfigId, actualRequest.getCertificateIssuanceConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCertificateIssuanceConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + String parent = "parent-995424086"; + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .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 + public void deleteCertificateIssuanceConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCertificateManager.addResponse(resultOperation); + + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + + client.deleteCertificateIssuanceConfigAsync(name).get(); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCertificateIssuanceConfigRequest actualRequest = + ((DeleteCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCertificateIssuanceConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + client.deleteCertificateIssuanceConfigAsync(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 + public void deleteCertificateIssuanceConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCertificateManager.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteCertificateIssuanceConfigAsync(name).get(); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCertificateIssuanceConfigRequest actualRequest = + ((DeleteCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCertificateIssuanceConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + String name = "name3373707"; + client.deleteCertificateIssuanceConfigAsync(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 public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManagerImpl.java b/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManagerImpl.java index 3c4aa85c9b0f..457575008a91 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManagerImpl.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManagerImpl.java @@ -481,4 +481,90 @@ public void deleteDnsAuthorization( Exception.class.getName()))); } } + + @Override + public void listCertificateIssuanceConfigs( + ListCertificateIssuanceConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCertificateIssuanceConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListCertificateIssuanceConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListCertificateIssuanceConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCertificateIssuanceConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCertificateIssuanceConfig( + GetCertificateIssuanceConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CertificateIssuanceConfig) { + requests.add(request); + responseObserver.onNext(((CertificateIssuanceConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetCertificateIssuanceConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CertificateIssuanceConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCertificateIssuanceConfig( + CreateCertificateIssuanceConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + 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( + String.format( + "Unrecognized response type %s for method CreateCertificateIssuanceConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCertificateIssuanceConfig( + DeleteCertificateIssuanceConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + 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( + String.format( + "Unrecognized response type %s for method DeleteCertificateIssuanceConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java index 27f616e7379e..4c463db360ad 100644 --- a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java +++ b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java @@ -1044,6 +1044,225 @@ private CertificateManagerGrpc() {} return getDeleteDnsAuthorizationMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest, + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse> + getListCertificateIssuanceConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateIssuanceConfigs", + requestType = + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.class, + responseType = + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest, + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse> + getListCertificateIssuanceConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest, + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse> + getListCertificateIssuanceConfigsMethod; + if ((getListCertificateIssuanceConfigsMethod = + CertificateManagerGrpc.getListCertificateIssuanceConfigsMethod) + == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getListCertificateIssuanceConfigsMethod = + CertificateManagerGrpc.getListCertificateIssuanceConfigsMethod) + == null) { + CertificateManagerGrpc.getListCertificateIssuanceConfigsMethod = + getListCertificateIssuanceConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCertificateIssuanceConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1 + .ListCertificateIssuanceConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1 + .ListCertificateIssuanceConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateManagerMethodDescriptorSupplier( + "ListCertificateIssuanceConfigs")) + .build(); + } + } + } + return getListCertificateIssuanceConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig> + getGetCertificateIssuanceConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateIssuanceConfig", + requestType = + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.class, + responseType = com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig> + getGetCertificateIssuanceConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig> + getGetCertificateIssuanceConfigMethod; + if ((getGetCertificateIssuanceConfigMethod = + CertificateManagerGrpc.getGetCertificateIssuanceConfigMethod) + == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getGetCertificateIssuanceConfigMethod = + CertificateManagerGrpc.getGetCertificateIssuanceConfigMethod) + == null) { + CertificateManagerGrpc.getGetCertificateIssuanceConfigMethod = + getGetCertificateIssuanceConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetCertificateIssuanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1 + .GetCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateManagerMethodDescriptorSupplier( + "GetCertificateIssuanceConfig")) + .build(); + } + } + } + return getGetCertificateIssuanceConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest, + com.google.longrunning.Operation> + getCreateCertificateIssuanceConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificateIssuanceConfig", + requestType = + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest, + com.google.longrunning.Operation> + getCreateCertificateIssuanceConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest, + com.google.longrunning.Operation> + getCreateCertificateIssuanceConfigMethod; + if ((getCreateCertificateIssuanceConfigMethod = + CertificateManagerGrpc.getCreateCertificateIssuanceConfigMethod) + == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getCreateCertificateIssuanceConfigMethod = + CertificateManagerGrpc.getCreateCertificateIssuanceConfigMethod) + == null) { + CertificateManagerGrpc.getCreateCertificateIssuanceConfigMethod = + getCreateCertificateIssuanceConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCertificateIssuanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1 + .CreateCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateManagerMethodDescriptorSupplier( + "CreateCertificateIssuanceConfig")) + .build(); + } + } + } + return getCreateCertificateIssuanceConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest, + com.google.longrunning.Operation> + getDeleteCertificateIssuanceConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateIssuanceConfig", + requestType = + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest, + com.google.longrunning.Operation> + getDeleteCertificateIssuanceConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest, + com.google.longrunning.Operation> + getDeleteCertificateIssuanceConfigMethod; + if ((getDeleteCertificateIssuanceConfigMethod = + CertificateManagerGrpc.getDeleteCertificateIssuanceConfigMethod) + == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getDeleteCertificateIssuanceConfigMethod = + CertificateManagerGrpc.getDeleteCertificateIssuanceConfigMethod) + == null) { + CertificateManagerGrpc.getDeleteCertificateIssuanceConfigMethod = + getDeleteCertificateIssuanceConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteCertificateIssuanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1 + .DeleteCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateManagerMethodDescriptorSupplier( + "DeleteCertificateIssuanceConfig")) + .build(); + } + } + } + return getDeleteCertificateIssuanceConfigMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static CertificateManagerStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1405,6 +1624,66 @@ public void deleteDnsAuthorization( getDeleteDnsAuthorizationMethod(), responseObserver); } + /** + * + * + *
+     * Lists CertificateIssuanceConfigs in a given project and location.
+     * 
+ */ + public void listCertificateIssuanceConfigs( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCertificateIssuanceConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single CertificateIssuanceConfig.
+     * 
+ */ + public void getCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCertificateIssuanceConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new CertificateIssuanceConfig in a given project and location.
+     * 
+ */ + public void createCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCertificateIssuanceConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single CertificateIssuanceConfig.
+     * 
+ */ + public void deleteCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCertificateIssuanceConfigMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -1539,6 +1818,35 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_DNS_AUTHORIZATION))) + .addMethod( + getListCertificateIssuanceConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest, + com.google.cloud.certificatemanager.v1 + .ListCertificateIssuanceConfigsResponse>( + this, METHODID_LIST_CERTIFICATE_ISSUANCE_CONFIGS))) + .addMethod( + getGetCertificateIssuanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig>( + this, METHODID_GET_CERTIFICATE_ISSUANCE_CONFIG))) + .addMethod( + getCreateCertificateIssuanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CERTIFICATE_ISSUANCE_CONFIG))) + .addMethod( + getDeleteCertificateIssuanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CERTIFICATE_ISSUANCE_CONFIG))) .build(); } } @@ -1912,6 +2220,74 @@ public void deleteDnsAuthorization( request, responseObserver); } + + /** + * + * + *
+     * Lists CertificateIssuanceConfigs in a given project and location.
+     * 
+ */ + public void listCertificateIssuanceConfigs( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateIssuanceConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single CertificateIssuanceConfig.
+     * 
+ */ + public void getCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateIssuanceConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new CertificateIssuanceConfig in a given project and location.
+     * 
+ */ + public void createCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateIssuanceConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single CertificateIssuanceConfig.
+     * 
+ */ + public void deleteCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCertificateIssuanceConfigMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -2215,6 +2591,60 @@ public com.google.longrunning.Operation deleteDnsAuthorization( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteDnsAuthorizationMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Lists CertificateIssuanceConfigs in a given project and location.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + listCertificateIssuanceConfigs( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateIssuanceConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single CertificateIssuanceConfig.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + getCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateIssuanceConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new CertificateIssuanceConfig in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateIssuanceConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single CertificateIssuanceConfig.
+     * 
+ */ + public com.google.longrunning.Operation deleteCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCertificateIssuanceConfigMethod(), getCallOptions(), request); + } } /** @@ -2537,6 +2967,67 @@ protected CertificateManagerFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDnsAuthorizationMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Lists CertificateIssuanceConfigs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigs( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateIssuanceConfigsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets details of a single CertificateIssuanceConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig> + getCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateIssuanceConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new CertificateIssuanceConfig in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateIssuanceConfigMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes a single CertificateIssuanceConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCertificateIssuanceConfigMethod(), getCallOptions()), + request); + } } private static final int METHODID_LIST_CERTIFICATES = 0; @@ -2559,6 +3050,10 @@ protected CertificateManagerFutureStub build( private static final int METHODID_CREATE_DNS_AUTHORIZATION = 17; private static final int METHODID_UPDATE_DNS_AUTHORIZATION = 18; private static final int METHODID_DELETE_DNS_AUTHORIZATION = 19; + private static final int METHODID_LIST_CERTIFICATE_ISSUANCE_CONFIGS = 20; + private static final int METHODID_GET_CERTIFICATE_ISSUANCE_CONFIG = 21; + private static final int METHODID_CREATE_CERTIFICATE_ISSUANCE_CONFIG = 22; + private static final int METHODID_DELETE_CERTIFICATE_ISSUANCE_CONFIG = 23; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2690,6 +3185,34 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_CERTIFICATE_ISSUANCE_CONFIGS: + serviceImpl.listCertificateIssuanceConfigs( + (com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.certificatemanager.v1 + .ListCertificateIssuanceConfigsResponse>) + responseObserver); + break; + case METHODID_GET_CERTIFICATE_ISSUANCE_CONFIG: + serviceImpl.getCertificateIssuanceConfig( + (com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig>) + responseObserver); + break; + case METHODID_CREATE_CERTIFICATE_ISSUANCE_CONFIG: + serviceImpl.createCertificateIssuanceConfig( + (com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CERTIFICATE_ISSUANCE_CONFIG: + serviceImpl.deleteCertificateIssuanceConfig( + (com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2774,6 +3297,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateDnsAuthorizationMethod()) .addMethod(getUpdateDnsAuthorizationMethod()) .addMethod(getDeleteDnsAuthorizationMethod()) + .addMethod(getListCertificateIssuanceConfigsMethod()) + .addMethod(getGetCertificateIssuanceConfigMethod()) + .addMethod(getCreateCertificateIssuanceConfigMethod()) + .addMethod(getDeleteCertificateIssuanceConfigMethod()) .build(); } } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/Certificate.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/Certificate.java index d6bb4d2681c9..6930f3012fd8 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/Certificate.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/Certificate.java @@ -56,191 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Certificate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - 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: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 42: - { - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder - subBuilder = null; - if (typeCase_ == 5) { - subBuilder = - ((com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) - type_) - .toBuilder(); - } - type_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) - type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 5; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - sanDnsnames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - sanDnsnames_.add(s); - break; - } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expireTime_ != null) { - subBuilder = expireTime_.toBuilder(); - } - expireTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expireTime_); - expireTime_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - pemCertificate_ = s; - break; - } - case 90: - { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder - subBuilder = null; - if (typeCase_ == 11) { - subBuilder = - ((com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_) - .toBuilder(); - } - type_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 11; - break; - } - case 96: - { - int rawValue = input.readEnum(); - - scope_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - sanDnsnames_ = sanDnsnames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor; @@ -502,59 +317,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SelfManagedCertificate( - 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(); - - pemCertificate_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pemPrivateKey_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor; @@ -691,7 +453,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemPrivateKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pemPrivateKey_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -706,7 +468,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemPrivateKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pemPrivateKey_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -725,7 +487,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPemCertificate().equals(other.getPemCertificate())) return false; if (!getPemPrivateKey().equals(other.getPemPrivateKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -740,7 +502,7 @@ public int hashCode() { hash = (53 * hash) + getPemCertificate().hashCode(); hash = (37 * hash) + PEM_PRIVATE_KEY_FIELD_NUMBER; hash = (53 * hash) + getPemPrivateKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -882,17 +644,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -999,7 +754,7 @@ public Builder mergeFrom( pemPrivateKey_ = other.pemPrivateKey_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1014,20 +769,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate parsedMessage = - null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + pemCertificate_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + pemPrivateKey_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1284,7 +1062,19 @@ public SelfManagedCertificate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SelfManagedCertificate(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1313,8 +1103,9 @@ public interface ManagedCertificateOrBuilder * * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1326,8 +1117,9 @@ public interface ManagedCertificateOrBuilder * * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1339,8 +1131,9 @@ public interface ManagedCertificateOrBuilder * * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1353,8 +1146,9 @@ public interface ManagedCertificateOrBuilder * * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1368,7 +1162,8 @@ public interface ManagedCertificateOrBuilder * * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* * @@ -1382,7 +1177,8 @@ public interface ManagedCertificateOrBuilder * * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* * @@ -1396,7 +1192,8 @@ public interface ManagedCertificateOrBuilder * * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* * @@ -1411,7 +1208,8 @@ public interface ManagedCertificateOrBuilder * * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* * @@ -1423,6 +1221,47 @@ public interface ManagedCertificateOrBuilder */ com.google.protobuf.ByteString getDnsAuthorizationsBytes(int index); + /** + * + * + *
+     * The resource name for a
+     * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+     * used to configure private PKI certificates in the format
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * If this field is not set, the certificates will instead be publicly
+     * signed as documented at
+     * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+     * 
+ * + * + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The issuanceConfig. + */ + java.lang.String getIssuanceConfig(); + /** + * + * + *
+     * The resource name for a
+     * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+     * used to configure private PKI certificates in the format
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * If this field is not set, the certificates will instead be publicly
+     * signed as documented at
+     * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+     * 
+ * + * + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for issuanceConfig. + */ + com.google.protobuf.ByteString getIssuanceConfigBytes(); + /** * * @@ -1456,11 +1295,12 @@ public interface ManagedCertificateOrBuilder * * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the provisioningIssue field is set. @@ -1470,11 +1310,12 @@ public interface ManagedCertificateOrBuilder * * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The provisioningIssue. @@ -1485,11 +1326,12 @@ public interface ManagedCertificateOrBuilder * * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssueOrBuilder @@ -1499,8 +1341,8 @@ public interface ManagedCertificateOrBuilder * * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* * @@ -1515,8 +1357,8 @@ public interface ManagedCertificateOrBuilder * * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* * @@ -1529,8 +1371,8 @@ public interface ManagedCertificateOrBuilder * * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* * @@ -1542,8 +1384,8 @@ public interface ManagedCertificateOrBuilder * * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* * @@ -1559,8 +1401,8 @@ public interface ManagedCertificateOrBuilder * * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* * @@ -1595,6 +1437,7 @@ private ManagedCertificate(com.google.protobuf.GeneratedMessageV3.Builder bui private ManagedCertificate() { domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; dnsAuthorizations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + issuanceConfig_ = ""; state_ = 0; authorizationAttemptInfo_ = java.util.Collections.emptyList(); } @@ -1610,119 +1453,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ManagedCertificate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - domains_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - domains_.add(s); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - dnsAuthorizations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - dnsAuthorizations_.add(s); - break; - } - case 26: - { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Builder - subBuilder = null; - if (provisioningIssue_ != null) { - subBuilder = provisioningIssue_.toBuilder(); - } - provisioningIssue_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(provisioningIssue_); - provisioningIssue_ = subBuilder.buildPartial(); - } - - break; - } - case 32: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - authorizationAttemptInfo_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo>(); - mutable_bitField0_ |= 0x00000004; - } - authorizationAttemptInfo_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - domains_ = domains_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - dnsAuthorizations_ = dnsAuthorizations_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - authorizationAttemptInfo_ = - java.util.Collections.unmodifiableList(authorizationAttemptInfo_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor; @@ -1918,11 +1648,11 @@ public interface ProvisioningIssueOrBuilder * * *
-       * Reason for provisioning failures.
+       * Output only. Reason for provisioning failures.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for reason. @@ -1932,11 +1662,11 @@ public interface ProvisioningIssueOrBuilder * * *
-       * Reason for provisioning failures.
+       * Output only. Reason for provisioning failures.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The reason. @@ -1948,12 +1678,12 @@ public interface ProvisioningIssueOrBuilder * * *
-       * Human readable explanation about the issue. Provided to help address
-       * the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation about the issue. Provided to
+       * help address the configuration issues. Not guaranteed to be stable. For
+       * programmatic access use Reason enum.
        * 
* - * string details = 2; + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The details. */ @@ -1962,12 +1692,12 @@ public interface ProvisioningIssueOrBuilder * * *
-       * Human readable explanation about the issue. Provided to help address
-       * the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation about the issue. Provided to
+       * help address the configuration issues. Not guaranteed to be stable. For
+       * programmatic access use Reason enum.
        * 
* - * string details = 2; + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for details. */ @@ -2009,60 +1739,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ProvisioningIssue( - 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 8: - { - int rawValue = input.readEnum(); - - reason_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - details_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor; @@ -2234,11 +1910,11 @@ private Reason(int value) { * * *
-       * Reason for provisioning failures.
+       * Output only. Reason for provisioning failures.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for reason. @@ -2251,11 +1927,11 @@ public int getReasonValue() { * * *
-       * Reason for provisioning failures.
+       * Output only. Reason for provisioning failures.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The reason. @@ -2282,12 +1958,12 @@ public int getReasonValue() { * * *
-       * Human readable explanation about the issue. Provided to help address
-       * the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation about the issue. Provided to
+       * help address the configuration issues. Not guaranteed to be stable. For
+       * programmatic access use Reason enum.
        * 
* - * string details = 2; + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The details. */ @@ -2307,12 +1983,12 @@ public java.lang.String getDetails() { * * *
-       * Human readable explanation about the issue. Provided to help address
-       * the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation about the issue. Provided to
+       * help address the configuration issues. Not guaranteed to be stable. For
+       * programmatic access use Reason enum.
        * 
* - * string details = 2; + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for details. */ @@ -2352,7 +2028,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, details_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2370,7 +2046,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2394,7 +2070,7 @@ public boolean equals(final java.lang.Object obj) { if (reason_ != other.reason_) return false; if (!getDetails().equals(other.getDetails())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2409,7 +2085,7 @@ public int hashCode() { hash = (53 * hash) + reason_; hash = (37 * hash) + DETAILS_FIELD_NUMBER; hash = (53 * hash) + getDetails().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2567,17 +2243,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2694,7 +2363,7 @@ public Builder mergeFrom( details_ = other.details_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2709,21 +2378,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + reason_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + details_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2732,11 +2423,11 @@ public Builder mergeFrom( * * *
-         * Reason for provisioning failures.
+         * Output only. Reason for provisioning failures.
          * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for reason. @@ -2749,11 +2440,11 @@ public int getReasonValue() { * * *
-         * Reason for provisioning failures.
+         * Output only. Reason for provisioning failures.
          * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for reason to set. @@ -2769,11 +2460,11 @@ public Builder setReasonValue(int value) { * * *
-         * Reason for provisioning failures.
+         * Output only. Reason for provisioning failures.
          * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The reason. @@ -2797,11 +2488,11 @@ public Builder setReasonValue(int value) { * * *
-         * Reason for provisioning failures.
+         * Output only. Reason for provisioning failures.
          * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The reason to set. @@ -2823,11 +2514,11 @@ public Builder setReason( * * *
-         * Reason for provisioning failures.
+         * Output only. Reason for provisioning failures.
          * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -2844,12 +2535,12 @@ public Builder clearReason() { * * *
-         * Human readable explanation about the issue. Provided to help address
-         * the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation about the issue. Provided to
+         * help address the configuration issues. Not guaranteed to be stable. For
+         * programmatic access use Reason enum.
          * 
* - * string details = 2; + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The details. */ @@ -2868,12 +2559,12 @@ public java.lang.String getDetails() { * * *
-         * Human readable explanation about the issue. Provided to help address
-         * the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation about the issue. Provided to
+         * help address the configuration issues. Not guaranteed to be stable. For
+         * programmatic access use Reason enum.
          * 
* - * string details = 2; + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for details. */ @@ -2892,12 +2583,12 @@ public com.google.protobuf.ByteString getDetailsBytes() { * * *
-         * Human readable explanation about the issue. Provided to help address
-         * the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation about the issue. Provided to
+         * help address the configuration issues. Not guaranteed to be stable. For
+         * programmatic access use Reason enum.
          * 
* - * string details = 2; + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The details to set. * @return This builder for chaining. @@ -2915,12 +2606,12 @@ public Builder setDetails(java.lang.String value) { * * *
-         * Human readable explanation about the issue. Provided to help address
-         * the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation about the issue. Provided to
+         * help address the configuration issues. Not guaranteed to be stable. For
+         * programmatic access use Reason enum.
          * 
* - * string details = 2; + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2934,12 +2625,12 @@ public Builder clearDetails() { * * *
-         * Human readable explanation about the issue. Provided to help address
-         * the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation about the issue. Provided to
+         * help address the configuration issues. Not guaranteed to be stable. For
+         * programmatic access use Reason enum.
          * 
* - * string details = 2; + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for details to set. * @return This builder for chaining. @@ -2994,7 +2685,19 @@ public ProvisioningIssue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ProvisioningIssue(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -3048,11 +2751,11 @@ public interface AuthorizationAttemptInfoOrBuilder * * *
-       * State of the domain for managed certificate issuance.
+       * Output only. State of the domain for managed certificate issuance.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. @@ -3062,11 +2765,11 @@ public interface AuthorizationAttemptInfoOrBuilder * * *
-       * State of the domain for managed certificate issuance.
+       * Output only. State of the domain for managed certificate issuance.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. @@ -3079,7 +2782,8 @@ public interface AuthorizationAttemptInfoOrBuilder * * *
-       * Output only. Reason for failure of the authorization attempt for the domain.
+       * Output only. Reason for failure of the authorization attempt for the
+       * domain.
        * 
* * @@ -3093,7 +2797,8 @@ public interface AuthorizationAttemptInfoOrBuilder * * *
-       * Output only. Reason for failure of the authorization attempt for the domain.
+       * Output only. Reason for failure of the authorization attempt for the
+       * domain.
        * 
* * @@ -3110,12 +2815,12 @@ public interface AuthorizationAttemptInfoOrBuilder * * *
-       * Human readable explanation for reaching the state. Provided to help
-       * address the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation for reaching the state.
+       * Provided to help address the configuration issues. Not guaranteed to be
+       * stable. For programmatic access use FailureReason enum.
        * 
* - * string details = 4; + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The details. */ @@ -3124,12 +2829,12 @@ public interface AuthorizationAttemptInfoOrBuilder * * *
-       * Human readable explanation for reaching the state. Provided to help
-       * address the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation for reaching the state.
+       * Provided to help address the configuration issues. Not guaranteed to be
+       * stable. For programmatic access use FailureReason enum.
        * 
* - * string details = 4; + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for details. */ @@ -3175,74 +2880,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AuthorizationAttemptInfo( - 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(); - - domain_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - failureReason_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - details_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor; @@ -3654,11 +3291,11 @@ public com.google.protobuf.ByteString getDomainBytes() { * * *
-       * State of the domain for managed certificate issuance.
+       * Output only. State of the domain for managed certificate issuance.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. @@ -3671,11 +3308,11 @@ public int getStateValue() { * * *
-       * State of the domain for managed certificate issuance.
+       * Output only. State of the domain for managed certificate issuance.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. @@ -3702,7 +3339,8 @@ public int getStateValue() { * * *
-       * Output only. Reason for failure of the authorization attempt for the domain.
+       * Output only. Reason for failure of the authorization attempt for the
+       * domain.
        * 
* * @@ -3719,7 +3357,8 @@ public int getFailureReasonValue() { * * *
-       * Output only. Reason for failure of the authorization attempt for the domain.
+       * Output only. Reason for failure of the authorization attempt for the
+       * domain.
        * 
* * @@ -3750,12 +3389,12 @@ public int getFailureReasonValue() { * * *
-       * Human readable explanation for reaching the state. Provided to help
-       * address the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation for reaching the state.
+       * Provided to help address the configuration issues. Not guaranteed to be
+       * stable. For programmatic access use FailureReason enum.
        * 
* - * string details = 4; + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The details. */ @@ -3775,12 +3414,12 @@ public java.lang.String getDetails() { * * *
-       * Human readable explanation for reaching the state. Provided to help
-       * address the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation for reaching the state.
+       * Provided to help address the configuration issues. Not guaranteed to be
+       * stable. For programmatic access use FailureReason enum.
        * 
* - * string details = 4; + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for details. */ @@ -3829,7 +3468,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, details_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3856,7 +3495,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, details_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3883,7 +3522,7 @@ public boolean equals(final java.lang.Object obj) { if (state_ != other.state_) return false; if (failureReason_ != other.failureReason_) return false; if (!getDetails().equals(other.getDetails())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3902,7 +3541,7 @@ public int hashCode() { hash = (53 * hash) + failureReason_; hash = (37 * hash) + DETAILS_FIELD_NUMBER; hash = (53 * hash) + getDetails().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -4062,17 +3701,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -4205,7 +3837,7 @@ public Builder mergeFrom( details_ = other.details_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4220,22 +3852,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + domain_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + failureReason_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + details_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4350,11 +4015,11 @@ public Builder setDomainBytes(com.google.protobuf.ByteString value) { * * *
-         * State of the domain for managed certificate issuance.
+         * Output only. State of the domain for managed certificate issuance.
          * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. @@ -4367,11 +4032,11 @@ public int getStateValue() { * * *
-         * State of the domain for managed certificate issuance.
+         * Output only. State of the domain for managed certificate issuance.
          * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for state to set. @@ -4387,11 +4052,11 @@ public Builder setStateValue(int value) { * * *
-         * State of the domain for managed certificate issuance.
+         * Output only. State of the domain for managed certificate issuance.
          * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. @@ -4415,11 +4080,11 @@ public Builder setStateValue(int value) { * * *
-         * State of the domain for managed certificate issuance.
+         * Output only. State of the domain for managed certificate issuance.
          * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The state to set. @@ -4441,11 +4106,11 @@ public Builder setState( * * *
-         * State of the domain for managed certificate issuance.
+         * Output only. State of the domain for managed certificate issuance.
          * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -4462,7 +4127,8 @@ public Builder clearState() { * * *
-         * Output only. Reason for failure of the authorization attempt for the domain.
+         * Output only. Reason for failure of the authorization attempt for the
+         * domain.
          * 
* * @@ -4479,7 +4145,8 @@ public int getFailureReasonValue() { * * *
-         * Output only. Reason for failure of the authorization attempt for the domain.
+         * Output only. Reason for failure of the authorization attempt for the
+         * domain.
          * 
* * @@ -4499,7 +4166,8 @@ public Builder setFailureReasonValue(int value) { * * *
-         * Output only. Reason for failure of the authorization attempt for the domain.
+         * Output only. Reason for failure of the authorization attempt for the
+         * domain.
          * 
* * @@ -4527,7 +4195,8 @@ public Builder setFailureReasonValue(int value) { * * *
-         * Output only. Reason for failure of the authorization attempt for the domain.
+         * Output only. Reason for failure of the authorization attempt for the
+         * domain.
          * 
* * @@ -4553,7 +4222,8 @@ public Builder setFailureReason( * * *
-         * Output only. Reason for failure of the authorization attempt for the domain.
+         * Output only. Reason for failure of the authorization attempt for the
+         * domain.
          * 
* * @@ -4574,12 +4244,12 @@ public Builder clearFailureReason() { * * *
-         * Human readable explanation for reaching the state. Provided to help
-         * address the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation for reaching the state.
+         * Provided to help address the configuration issues. Not guaranteed to be
+         * stable. For programmatic access use FailureReason enum.
          * 
* - * string details = 4; + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The details. */ @@ -4598,12 +4268,12 @@ public java.lang.String getDetails() { * * *
-         * Human readable explanation for reaching the state. Provided to help
-         * address the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation for reaching the state.
+         * Provided to help address the configuration issues. Not guaranteed to be
+         * stable. For programmatic access use FailureReason enum.
          * 
* - * string details = 4; + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for details. */ @@ -4622,12 +4292,12 @@ public com.google.protobuf.ByteString getDetailsBytes() { * * *
-         * Human readable explanation for reaching the state. Provided to help
-         * address the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation for reaching the state.
+         * Provided to help address the configuration issues. Not guaranteed to be
+         * stable. For programmatic access use FailureReason enum.
          * 
* - * string details = 4; + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The details to set. * @return This builder for chaining. @@ -4645,12 +4315,12 @@ public Builder setDetails(java.lang.String value) { * * *
-         * Human readable explanation for reaching the state. Provided to help
-         * address the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation for reaching the state.
+         * Provided to help address the configuration issues. Not guaranteed to be
+         * stable. For programmatic access use FailureReason enum.
          * 
* - * string details = 4; + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -4664,12 +4334,12 @@ public Builder clearDetails() { * * *
-         * Human readable explanation for reaching the state. Provided to help
-         * address the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation for reaching the state.
+         * Provided to help address the configuration issues. Not guaranteed to be
+         * stable. For programmatic access use FailureReason enum.
          * 
* - * string details = 4; + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for details to set. * @return This builder for chaining. @@ -4724,7 +4394,19 @@ public AuthorizationAttemptInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthorizationAttemptInfo(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -4751,8 +4433,9 @@ public com.google.protobuf.Parser getParserForType() { * * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4766,8 +4449,9 @@ public com.google.protobuf.ProtocolStringList getDomainsList() { * * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4781,8 +4465,9 @@ public int getDomainsCount() { * * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4797,8 +4482,9 @@ public java.lang.String getDomains(int index) { * * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4816,7 +4502,8 @@ public com.google.protobuf.ByteString getDomainsBytes(int index) { * * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* * @@ -4832,7 +4519,8 @@ public com.google.protobuf.ProtocolStringList getDnsAuthorizationsList() { * * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* * @@ -4848,7 +4536,8 @@ public int getDnsAuthorizationsCount() { * * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* * @@ -4865,7 +4554,8 @@ public java.lang.String getDnsAuthorizations(int index) { * * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* * @@ -4879,6 +4569,71 @@ public com.google.protobuf.ByteString getDnsAuthorizationsBytes(int index) { return dnsAuthorizations_.getByteString(index); } + public static final int ISSUANCE_CONFIG_FIELD_NUMBER = 6; + private volatile java.lang.Object issuanceConfig_; + /** + * + * + *
+     * The resource name for a
+     * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+     * used to configure private PKI certificates in the format
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * If this field is not set, the certificates will instead be publicly
+     * signed as documented at
+     * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+     * 
+ * + * + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The issuanceConfig. + */ + @java.lang.Override + public java.lang.String getIssuanceConfig() { + java.lang.Object ref = issuanceConfig_; + 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(); + issuanceConfig_ = s; + return s; + } + } + /** + * + * + *
+     * The resource name for a
+     * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+     * used to configure private PKI certificates in the format
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * If this field is not set, the certificates will instead be publicly
+     * signed as documented at
+     * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+     * 
+ * + * + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for issuanceConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIssuanceConfigBytes() { + java.lang.Object ref = issuanceConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuanceConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int STATE_FIELD_NUMBER = 4; private int state_; /** @@ -4929,11 +4684,12 @@ public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Sta * * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the provisioningIssue field is set. @@ -4946,11 +4702,12 @@ public boolean hasProvisioningIssue() { * * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The provisioningIssue. @@ -4967,11 +4724,12 @@ public boolean hasProvisioningIssue() { * * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -4990,8 +4748,8 @@ public boolean hasProvisioningIssue() { * * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* * @@ -5009,8 +4767,8 @@ public boolean hasProvisioningIssue() { * * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* * @@ -5029,8 +4787,8 @@ public boolean hasProvisioningIssue() { * * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* * @@ -5045,8 +4803,8 @@ public int getAuthorizationAttemptInfoCount() { * * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* * @@ -5063,8 +4821,8 @@ public int getAuthorizationAttemptInfoCount() { * * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* * @@ -5110,7 +4868,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < authorizationAttemptInfo_.size(); i++) { output.writeMessage(5, authorizationAttemptInfo_.get(i)); } - unknownFields.writeTo(output); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuanceConfig_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, issuanceConfig_); + } + getUnknownFields().writeTo(output); } @java.lang.Override @@ -5149,7 +4910,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, authorizationAttemptInfo_.get(i)); } - size += unknownFields.getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuanceConfig_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, issuanceConfig_); + } + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -5167,6 +4931,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDomainsList().equals(other.getDomainsList())) return false; if (!getDnsAuthorizationsList().equals(other.getDnsAuthorizationsList())) return false; + if (!getIssuanceConfig().equals(other.getIssuanceConfig())) return false; if (state_ != other.state_) return false; if (hasProvisioningIssue() != other.hasProvisioningIssue()) return false; if (hasProvisioningIssue()) { @@ -5174,7 +4939,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getAuthorizationAttemptInfoList().equals(other.getAuthorizationAttemptInfoList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5193,6 +4958,8 @@ public int hashCode() { hash = (37 * hash) + DNS_AUTHORIZATIONS_FIELD_NUMBER; hash = (53 * hash) + getDnsAuthorizationsList().hashCode(); } + hash = (37 * hash) + ISSUANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIssuanceConfig().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; if (hasProvisioningIssue()) { @@ -5203,7 +4970,7 @@ public int hashCode() { hash = (37 * hash) + AUTHORIZATION_ATTEMPT_INFO_FIELD_NUMBER; hash = (53 * hash) + getAuthorizationAttemptInfoList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -5340,19 +5107,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAuthorizationAttemptInfoFieldBuilder(); - } } @java.lang.Override @@ -5362,6 +5120,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); dnsAuthorizations_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + issuanceConfig_ = ""; + state_ = 0; if (provisioningIssueBuilder_ == null) { @@ -5372,10 +5132,11 @@ public Builder clear() { } if (authorizationAttemptInfoBuilder_ == null) { authorizationAttemptInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + authorizationAttemptInfo_ = null; authorizationAttemptInfoBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -5417,6 +5178,7 @@ public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate bui bitField0_ = (bitField0_ & ~0x00000002); } result.dnsAuthorizations_ = dnsAuthorizations_; + result.issuanceConfig_ = issuanceConfig_; result.state_ = state_; if (provisioningIssueBuilder_ == null) { result.provisioningIssue_ = provisioningIssue_; @@ -5509,6 +5271,10 @@ public Builder mergeFrom( } onChanged(); } + if (!other.getIssuanceConfig().isEmpty()) { + issuanceConfig_ = other.issuanceConfig_; + onChanged(); + } if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -5542,7 +5308,7 @@ public Builder mergeFrom( } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -5557,19 +5323,81 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDomainsIsMutable(); + domains_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDnsAuthorizationsIsMutable(); + dnsAuthorizations_.add(s); + break; + } // case 18 + case 26: + { + input.readMessage( + getProvisioningIssueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate + .AuthorizationAttemptInfo + m = + input.readMessage( + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate + .AuthorizationAttemptInfo.parser(), + extensionRegistry); + if (authorizationAttemptInfoBuilder_ == null) { + ensureAuthorizationAttemptInfoIsMutable(); + authorizationAttemptInfo_.add(m); + } else { + authorizationAttemptInfoBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + issuanceConfig_ = input.readStringRequireUtf8(); + + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -5588,8 +5416,9 @@ private void ensureDomainsIsMutable() { * * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5603,8 +5432,9 @@ public com.google.protobuf.ProtocolStringList getDomainsList() { * * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5618,8 +5448,9 @@ public int getDomainsCount() { * * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5634,8 +5465,9 @@ public java.lang.String getDomains(int index) { * * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5650,8 +5482,9 @@ public com.google.protobuf.ByteString getDomainsBytes(int index) { * * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5673,8 +5506,9 @@ public Builder setDomains(int index, java.lang.String value) { * * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5695,8 +5529,9 @@ public Builder addDomains(java.lang.String value) { * * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5714,8 +5549,9 @@ public Builder addAllDomains(java.lang.Iterable values) { * * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5732,8 +5568,9 @@ public Builder clearDomains() { * * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5765,7 +5602,8 @@ private void ensureDnsAuthorizationsIsMutable() { * * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* * @@ -5781,7 +5619,8 @@ public com.google.protobuf.ProtocolStringList getDnsAuthorizationsList() { * * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* * @@ -5797,7 +5636,8 @@ public int getDnsAuthorizationsCount() { * * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* * @@ -5814,7 +5654,8 @@ public java.lang.String getDnsAuthorizations(int index) { * * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* * @@ -5831,7 +5672,8 @@ public com.google.protobuf.ByteString getDnsAuthorizationsBytes(int index) { * * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* * @@ -5855,7 +5697,8 @@ public Builder setDnsAuthorizations(int index, java.lang.String value) { * * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* * @@ -5878,7 +5721,8 @@ public Builder addDnsAuthorizations(java.lang.String value) { * * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* * @@ -5898,7 +5742,8 @@ public Builder addAllDnsAuthorizations(java.lang.Iterable valu * * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* * @@ -5917,7 +5762,8 @@ public Builder clearDnsAuthorizations() { * * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* * @@ -5938,6 +5784,152 @@ public Builder addDnsAuthorizationsBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object issuanceConfig_ = ""; + /** + * + * + *
+       * The resource name for a
+       * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+       * used to configure private PKI certificates in the format
+       * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+       * If this field is not set, the certificates will instead be publicly
+       * signed as documented at
+       * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+       * 
+ * + * + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The issuanceConfig. + */ + public java.lang.String getIssuanceConfig() { + java.lang.Object ref = issuanceConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuanceConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The resource name for a
+       * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+       * used to configure private PKI certificates in the format
+       * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+       * If this field is not set, the certificates will instead be publicly
+       * signed as documented at
+       * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+       * 
+ * + * + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for issuanceConfig. + */ + public com.google.protobuf.ByteString getIssuanceConfigBytes() { + java.lang.Object ref = issuanceConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuanceConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The resource name for a
+       * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+       * used to configure private PKI certificates in the format
+       * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+       * If this field is not set, the certificates will instead be publicly
+       * signed as documented at
+       * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+       * 
+ * + * + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The issuanceConfig to set. + * @return This builder for chaining. + */ + public Builder setIssuanceConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + issuanceConfig_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The resource name for a
+       * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+       * used to configure private PKI certificates in the format
+       * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+       * If this field is not set, the certificates will instead be publicly
+       * signed as documented at
+       * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+       * 
+ * + * + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearIssuanceConfig() { + + issuanceConfig_ = getDefaultInstance().getIssuanceConfig(); + onChanged(); + return this; + } + /** + * + * + *
+       * The resource name for a
+       * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+       * used to configure private PKI certificates in the format
+       * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+       * If this field is not set, the certificates will instead be publicly
+       * signed as documented at
+       * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+       * 
+ * + * + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for issuanceConfig to set. + * @return This builder for chaining. + */ + public Builder setIssuanceConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + issuanceConfig_ = value; + onChanged(); + return this; + } + private int state_ = 0; /** * @@ -6060,11 +6052,12 @@ public Builder clearState() { * * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the provisioningIssue field is set. @@ -6076,11 +6069,12 @@ public boolean hasProvisioningIssue() { * * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The provisioningIssue. @@ -6100,11 +6094,12 @@ public boolean hasProvisioningIssue() { * * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setProvisioningIssue( @@ -6126,11 +6121,12 @@ public Builder setProvisioningIssue( * * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setProvisioningIssue( @@ -6150,11 +6146,12 @@ public Builder setProvisioningIssue( * * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeProvisioningIssue( @@ -6181,11 +6178,12 @@ public Builder mergeProvisioningIssue( * * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearProvisioningIssue() { @@ -6203,11 +6201,12 @@ public Builder clearProvisioningIssue() { * * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue @@ -6221,11 +6220,12 @@ public Builder clearProvisioningIssue() { * * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate @@ -6244,11 +6244,12 @@ public Builder clearProvisioningIssue() { * * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -6302,8 +6303,8 @@ private void ensureAuthorizationAttemptInfoIsMutable() { * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6324,8 +6325,8 @@ private void ensureAuthorizationAttemptInfoIsMutable() { * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6343,8 +6344,8 @@ public int getAuthorizationAttemptInfoCount() { * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6364,8 +6365,8 @@ public int getAuthorizationAttemptInfoCount() { * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6393,8 +6394,8 @@ public Builder setAuthorizationAttemptInfo( * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6419,8 +6420,8 @@ public Builder setAuthorizationAttemptInfo( * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6447,8 +6448,8 @@ public Builder addAuthorizationAttemptInfo( * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6476,8 +6477,8 @@ public Builder addAuthorizationAttemptInfo( * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6501,8 +6502,8 @@ public Builder addAuthorizationAttemptInfo( * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6527,8 +6528,8 @@ public Builder addAuthorizationAttemptInfo( * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6554,8 +6555,8 @@ public Builder addAllAuthorizationAttemptInfo( * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6576,8 +6577,8 @@ public Builder clearAuthorizationAttemptInfo() { * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6598,8 +6599,8 @@ public Builder removeAuthorizationAttemptInfo(int index) { * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6615,8 +6616,8 @@ public Builder removeAuthorizationAttemptInfo(int index) { * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6636,8 +6637,8 @@ public Builder removeAuthorizationAttemptInfo(int index) { * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6659,8 +6660,8 @@ public Builder removeAuthorizationAttemptInfo(int index) { * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6679,8 +6680,8 @@ public Builder removeAuthorizationAttemptInfo(int index) { * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6700,8 +6701,8 @@ public Builder removeAuthorizationAttemptInfo(int index) { * * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* * @@ -6777,7 +6778,19 @@ public ManagedCertificate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ManagedCertificate(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -7258,10 +7271,10 @@ public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate get * * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -7275,10 +7288,10 @@ public com.google.protobuf.ProtocolStringList getSanDnsnamesList() { * * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -7292,10 +7305,10 @@ public int getSanDnsnamesCount() { * * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -7310,10 +7323,10 @@ public java.lang.String getSanDnsnames(int index) { * * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -7513,7 +7526,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (scope_ != com.google.cloud.certificatemanager.v1.Certificate.Scope.DEFAULT.getNumber()) { output.writeEnum(12, scope_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -7571,7 +7584,7 @@ public int getSerializedSize() { if (scope_ != com.google.cloud.certificatemanager.v1.Certificate.Scope.DEFAULT.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, scope_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -7616,7 +7629,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7667,7 +7680,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -7816,17 +7829,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.certificatemanager.v1.Certificate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -7849,6 +7855,12 @@ public Builder clear() { updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); + if (selfManagedBuilder_ != null) { + selfManagedBuilder_.clear(); + } + if (managedBuilder_ != null) { + managedBuilder_.clear(); + } sanDnsnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); pemCertificate_ = ""; @@ -8033,7 +8045,7 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.Certificate othe break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -8048,18 +8060,103 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.Certificate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: + { + input.readMessage(getSelfManagedFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 5; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSanDnsnamesIsMutable(); + sanDnsnames_.add(s); + break; + } // case 50 + case 58: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + pemCertificate_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 90: + { + input.readMessage(getManagedFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 11; + break; + } // case 90 + case 96: + { + scope_ = input.readEnum(); + + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.Certificate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -9333,10 +9430,10 @@ private void ensureSanDnsnamesIsMutable() { * * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9350,10 +9447,10 @@ public com.google.protobuf.ProtocolStringList getSanDnsnamesList() { * * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9367,10 +9464,10 @@ public int getSanDnsnamesCount() { * * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9385,10 +9482,10 @@ public java.lang.String getSanDnsnames(int index) { * * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9403,10 +9500,10 @@ public com.google.protobuf.ByteString getSanDnsnamesBytes(int index) { * * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9428,10 +9525,10 @@ public Builder setSanDnsnames(int index, java.lang.String value) { * * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9452,10 +9549,10 @@ public Builder addSanDnsnames(java.lang.String value) { * * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9473,10 +9570,10 @@ public Builder addAllSanDnsnames(java.lang.Iterable values) { * * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9493,10 +9590,10 @@ public Builder clearSanDnsnames() { * * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9957,7 +10054,18 @@ public Certificate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Certificate(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfig.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfig.java new file mode 100644 index 000000000000..6ecfb5a5943b --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfig.java @@ -0,0 +1,4488 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + * + * + *
+ * CertificateIssuanceConfig specifies how to issue and manage a certificate.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateIssuanceConfig} + */ +public final class CertificateIssuanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig) + CertificateIssuanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CertificateIssuanceConfig.newBuilder() to construct. + private CertificateIssuanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CertificateIssuanceConfig() { + name_ = ""; + description_ = ""; + keyAlgorithm_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertificateIssuanceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.class, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder.class); + } + + /** + * + * + *
+   * The type of keypair to generate.
+   * 
+ * + * Protobuf enum {@code google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm} + */ + public enum KeyAlgorithm implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified key algorithm.
+     * 
+ * + * KEY_ALGORITHM_UNSPECIFIED = 0; + */ + KEY_ALGORITHM_UNSPECIFIED(0), + /** + * + * + *
+     * Specifies RSA with a 2048-bit modulus.
+     * 
+ * + * RSA_2048 = 1; + */ + RSA_2048(1), + /** + * + * + *
+     * Specifies ECDSA with curve P256.
+     * 
+ * + * ECDSA_P256 = 4; + */ + ECDSA_P256(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified key algorithm.
+     * 
+ * + * KEY_ALGORITHM_UNSPECIFIED = 0; + */ + public static final int KEY_ALGORITHM_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Specifies RSA with a 2048-bit modulus.
+     * 
+ * + * RSA_2048 = 1; + */ + public static final int RSA_2048_VALUE = 1; + /** + * + * + *
+     * Specifies ECDSA with curve P256.
+     * 
+ * + * ECDSA_P256 = 4; + */ + public static final int ECDSA_P256_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KeyAlgorithm valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static KeyAlgorithm forNumber(int value) { + switch (value) { + case 0: + return KEY_ALGORITHM_UNSPECIFIED; + case 1: + return RSA_2048; + case 4: + return ECDSA_P256; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public KeyAlgorithm findValueByNumber(int number) { + return KeyAlgorithm.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final KeyAlgorithm[] VALUES = values(); + + public static KeyAlgorithm valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private KeyAlgorithm(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm) + } + + public interface CertificateAuthorityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + * + * @return Whether the certificateAuthorityServiceConfig field is set. + */ + boolean hasCertificateAuthorityServiceConfig(); + /** + * + * + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + * + * @return The certificateAuthorityServiceConfig. + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + .CertificateAuthorityServiceConfig + getCertificateAuthorityServiceConfig(); + /** + * + * + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + .CertificateAuthorityServiceConfigOrBuilder + getCertificateAuthorityServiceConfigOrBuilder(); + + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.KindCase + getKindCase(); + } + /** + * + * + *
+   * The CA that issues the workload certificate. It includes CA address, type,
+   * authentication to CA service, etc.
+   * 
+ * + * Protobuf type {@code + * google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig} + */ + public static final class CertificateAuthorityConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) + CertificateAuthorityConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CertificateAuthorityConfig.newBuilder() to construct. + private CertificateAuthorityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CertificateAuthorityConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertificateAuthorityConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.class, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.Builder.class); + } + + public interface CertificateAuthorityServiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. A CA pool resource used to issue a certificate.
+       * The CA pool string has a relative resource path following the form
+       * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+       * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + java.lang.String getCaPool(); + /** + * + * + *
+       * Required. A CA pool resource used to issue a certificate.
+       * The CA pool string has a relative resource path following the form
+       * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+       * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + com.google.protobuf.ByteString getCaPoolBytes(); + } + /** + * + * + *
+     * Contains information required to contact CA service.
+     * 
+ * + * Protobuf type {@code + * google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig} + */ + public static final class CertificateAuthorityServiceConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + CertificateAuthorityServiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CertificateAuthorityServiceConfig.newBuilder() to construct. + private CertificateAuthorityServiceConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CertificateAuthorityServiceConfig() { + caPool_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertificateAuthorityServiceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.class, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder.class); + } + + public static final int CA_POOL_FIELD_NUMBER = 1; + private volatile java.lang.Object caPool_; + /** + * + * + *
+       * Required. A CA pool resource used to issue a certificate.
+       * The CA pool string has a relative resource path following the form
+       * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+       * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + @java.lang.Override + public java.lang.String getCaPool() { + java.lang.Object ref = caPool_; + 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(); + caPool_ = s; + return s; + } + } + /** + * + * + *
+       * Required. A CA pool resource used to issue a certificate.
+       * The CA pool string has a relative resource path following the form
+       * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+       * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCaPoolBytes() { + java.lang.Object ref = caPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caPool_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caPool_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caPool_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caPool_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caPool_); + } + size += getUnknownFields().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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + .CertificateAuthorityServiceConfig + other = + (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + obj; + + if (!getCaPool().equals(other.getCaPool())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CA_POOL_FIELD_NUMBER; + hash = (53 * hash) + getCaPool().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + 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; + } + /** + * + * + *
+       * Contains information required to contact CA service.
+       * 
+ * + * Protobuf type {@code + * google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.class, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder.class); + } + + // Construct using + // com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + caPool_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + build() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + buildPartial() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + result = + new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig(this); + result.caPool_ = caPool_; + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig) { + return mergeFrom( + (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + other) { + if (other + == com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + .getDefaultInstance()) return this; + if (!other.getCaPool().isEmpty()) { + caPool_ = other.caPool_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + caPool_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object caPool_ = ""; + /** + * + * + *
+         * Required. A CA pool resource used to issue a certificate.
+         * The CA pool string has a relative resource path following the form
+         * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+         * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + public java.lang.String getCaPool() { + java.lang.Object ref = caPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Required. A CA pool resource used to issue a certificate.
+         * The CA pool string has a relative resource path following the form
+         * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+         * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + public com.google.protobuf.ByteString getCaPoolBytes() { + java.lang.Object ref = caPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Required. A CA pool resource used to issue a certificate.
+         * The CA pool string has a relative resource path following the form
+         * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+         * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The caPool to set. + * @return This builder for chaining. + */ + public Builder setCaPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + caPool_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. A CA pool resource used to issue a certificate.
+         * The CA pool string has a relative resource path following the form
+         * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+         * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCaPool() { + + caPool_ = getDefaultInstance().getCaPool(); + onChanged(); + return this; + } + /** + * + * + *
+         * Required. A CA pool resource used to issue a certificate.
+         * The CA pool string has a relative resource path following the form
+         * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+         * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for caPool to set. + * @return This builder for chaining. + */ + public Builder setCaPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + caPool_ = 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.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + private static final com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig(); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthorityServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int kindCase_ = 0; + private java.lang.Object kind_; + + public enum KindCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CERTIFICATE_AUTHORITY_SERVICE_CONFIG(1), + KIND_NOT_SET(0); + private final int value; + + private KindCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KindCase valueOf(int value) { + return forNumber(value); + } + + public static KindCase forNumber(int value) { + switch (value) { + case 1: + return CERTIFICATE_AUTHORITY_SERVICE_CONFIG; + case 0: + return KIND_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); + } + + public static final int CERTIFICATE_AUTHORITY_SERVICE_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + * + * @return Whether the certificateAuthorityServiceConfig field is set. + */ + @java.lang.Override + public boolean hasCertificateAuthorityServiceConfig() { + return kindCase_ == 1; + } + /** + * + * + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + * + * @return The certificateAuthorityServiceConfig. + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + getCertificateAuthorityServiceConfig() { + if (kindCase_ == 1) { + return (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + kind_; + } + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } + /** + * + * + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder + getCertificateAuthorityServiceConfigOrBuilder() { + if (kindCase_ == 1) { + return (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + kind_; + } + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } + + 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 (kindCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + kind_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (kindCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + kind_); + } + size += getUnknownFields().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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + other = + (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig) + obj; + + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 1: + if (!getCertificateAuthorityServiceConfig() + .equals(other.getCertificateAuthorityServiceConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (kindCase_) { + case 1: + hash = (37 * hash) + CERTIFICATE_AUTHORITY_SERVICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCertificateAuthorityServiceConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + 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.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + 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; + } + /** + * + * + *
+     * The CA that issues the workload certificate. It includes CA address, type,
+     * authentication to CA service, etc.
+     * 
+ * + * Protobuf type {@code + * google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.class, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.Builder.class); + } + + // Construct using + // com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (certificateAuthorityServiceConfigBuilder_ != null) { + certificateAuthorityServiceConfigBuilder_.clear(); + } + kindCase_ = 0; + kind_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + build() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + buildPartial() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + result = + new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig(this); + if (kindCase_ == 1) { + if (certificateAuthorityServiceConfigBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = certificateAuthorityServiceConfigBuilder_.build(); + } + } + result.kindCase_ = kindCase_; + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig) { + return mergeFrom( + (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + other) { + if (other + == com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.getDefaultInstance()) return this; + switch (other.getKindCase()) { + case CERTIFICATE_AUTHORITY_SERVICE_CONFIG: + { + mergeCertificateAuthorityServiceConfig(other.getCertificateAuthorityServiceConfig()); + break; + } + case KIND_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getCertificateAuthorityServiceConfigFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int kindCase_ = 0; + private java.lang.Object kind_; + + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder> + certificateAuthorityServiceConfigBuilder_; + /** + * + * + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + * + * @return Whether the certificateAuthorityServiceConfig field is set. + */ + @java.lang.Override + public boolean hasCertificateAuthorityServiceConfig() { + return kindCase_ == 1; + } + /** + * + * + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + * + * @return The certificateAuthorityServiceConfig. + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + getCertificateAuthorityServiceConfig() { + if (certificateAuthorityServiceConfigBuilder_ == null) { + if (kindCase_ == 1) { + return (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + kind_; + } + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } else { + if (kindCase_ == 1) { + return certificateAuthorityServiceConfigBuilder_.getMessage(); + } + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } + } + /** + * + * + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + */ + public Builder setCertificateAuthorityServiceConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + value) { + if (certificateAuthorityServiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + certificateAuthorityServiceConfigBuilder_.setMessage(value); + } + kindCase_ = 1; + return this; + } + /** + * + * + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + */ + public Builder setCertificateAuthorityServiceConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder + builderForValue) { + if (certificateAuthorityServiceConfigBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + certificateAuthorityServiceConfigBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 1; + return this; + } + /** + * + * + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + */ + public Builder mergeCertificateAuthorityServiceConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + value) { + if (certificateAuthorityServiceConfigBuilder_ == null) { + if (kindCase_ == 1 + && kind_ + != com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + .getDefaultInstance()) { + kind_ = + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.newBuilder( + (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + kind_) + .mergeFrom(value) + .buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 1) { + certificateAuthorityServiceConfigBuilder_.mergeFrom(value); + } else { + certificateAuthorityServiceConfigBuilder_.setMessage(value); + } + } + kindCase_ = 1; + return this; + } + /** + * + * + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + */ + public Builder clearCertificateAuthorityServiceConfig() { + if (certificateAuthorityServiceConfigBuilder_ == null) { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + } + certificateAuthorityServiceConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder + getCertificateAuthorityServiceConfigBuilder() { + return getCertificateAuthorityServiceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder + getCertificateAuthorityServiceConfigOrBuilder() { + if ((kindCase_ == 1) && (certificateAuthorityServiceConfigBuilder_ != null)) { + return certificateAuthorityServiceConfigBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 1) { + return (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + kind_; + } + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } + } + /** + * + * + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder> + getCertificateAuthorityServiceConfigFieldBuilder() { + if (certificateAuthorityServiceConfigBuilder_ == null) { + if (!(kindCase_ == 1)) { + kind_ = + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig + .getDefaultInstance(); + } + certificateAuthorityServiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder>( + (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 1; + onChanged(); + ; + return certificateAuthorityServiceConfigBuilder_; + } + + @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.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) + private static final com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig(); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthorityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * A user-defined name of the certificate issuance config.
+   * CertificateIssuanceConfig names must be unique globally and match pattern
+   * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+   * A user-defined name of the certificate issuance config.
+   * CertificateIssuanceConfig names must be unique globally and match pattern
+   * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1; + * + * @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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + * + * + *
+   * One or more paragraphs of text description of a CertificateIssuanceConfig.
+   * 
+ * + * string description = 5; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * One or more paragraphs of text description of a CertificateIssuanceConfig.
+   * 
+ * + * string description = 5; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERTIFICATE_AUTHORITY_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + certificateAuthorityConfig_; + /** + * + * + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the certificateAuthorityConfig field is set. + */ + @java.lang.Override + public boolean hasCertificateAuthorityConfig() { + return certificateAuthorityConfig_ != null; + } + /** + * + * + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The certificateAuthorityConfig. + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + getCertificateAuthorityConfig() { + return certificateAuthorityConfig_ == null + ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.getDefaultInstance() + : certificateAuthorityConfig_; + } + /** + * + * + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfigOrBuilder + getCertificateAuthorityConfigOrBuilder() { + return getCertificateAuthorityConfig(); + } + + public static final int LIFETIME_FIELD_NUMBER = 7; + private com.google.protobuf.Duration lifetime_; + /** + * + * + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the lifetime field is set. + */ + @java.lang.Override + public boolean hasLifetime() { + return lifetime_ != null; + } + /** + * + * + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The lifetime. + */ + @java.lang.Override + public com.google.protobuf.Duration getLifetime() { + return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + } + /** + * + * + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { + return getLifetime(); + } + + public static final int ROTATION_WINDOW_PERCENTAGE_FIELD_NUMBER = 8; + private int rotationWindowPercentage_; + /** + * + * + *
+   * Required. Specifies the percentage of elapsed time of the certificate
+   * lifetime to wait before renewing the certificate. Must be a number between
+   * 1-99, inclusive.
+   * 
+ * + * int32 rotation_window_percentage = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rotationWindowPercentage. + */ + @java.lang.Override + public int getRotationWindowPercentage() { + return rotationWindowPercentage_; + } + + public static final int KEY_ALGORITHM_FIELD_NUMBER = 9; + private int keyAlgorithm_; + /** + * + * + *
+   * Required. The key algorithm to use when generating the private key.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for keyAlgorithm. + */ + @java.lang.Override + public int getKeyAlgorithmValue() { + return keyAlgorithm_; + } + /** + * + * + *
+   * Required. The key algorithm to use when generating the private key.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The keyAlgorithm. + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm + getKeyAlgorithm() { + @SuppressWarnings("deprecation") + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm result = + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm.valueOf( + keyAlgorithm_); + return result == null + ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm.UNRECOGNIZED + : result; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + if (certificateAuthorityConfig_ != null) { + output.writeMessage(6, getCertificateAuthorityConfig()); + } + if (lifetime_ != null) { + output.writeMessage(7, getLifetime()); + } + if (rotationWindowPercentage_ != 0) { + output.writeInt32(8, rotationWindowPercentage_); + } + if (keyAlgorithm_ + != com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm + .KEY_ALGORITHM_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, keyAlgorithm_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + if (certificateAuthorityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getCertificateAuthorityConfig()); + } + if (lifetime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLifetime()); + } + if (rotationWindowPercentage_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, rotationWindowPercentage_); + } + if (keyAlgorithm_ + != com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm + .KEY_ALGORITHM_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, keyAlgorithm_); + } + size += getUnknownFields().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.certificatemanager.v1.CertificateIssuanceConfig)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig other = + (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasCertificateAuthorityConfig() != other.hasCertificateAuthorityConfig()) return false; + if (hasCertificateAuthorityConfig()) { + if (!getCertificateAuthorityConfig().equals(other.getCertificateAuthorityConfig())) + return false; + } + if (hasLifetime() != other.hasLifetime()) return false; + if (hasLifetime()) { + if (!getLifetime().equals(other.getLifetime())) return false; + } + if (getRotationWindowPercentage() != other.getRotationWindowPercentage()) return false; + if (keyAlgorithm_ != other.keyAlgorithm_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCertificateAuthorityConfig()) { + hash = (37 * hash) + CERTIFICATE_AUTHORITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCertificateAuthorityConfig().hashCode(); + } + if (hasLifetime()) { + hash = (37 * hash) + LIFETIME_FIELD_NUMBER; + hash = (53 * hash) + getLifetime().hashCode(); + } + hash = (37 * hash) + ROTATION_WINDOW_PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + getRotationWindowPercentage(); + hash = (37 * hash) + KEY_ALGORITHM_FIELD_NUMBER; + hash = (53 * hash) + keyAlgorithm_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig 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.certificatemanager.v1.CertificateIssuanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig 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.certificatemanager.v1.CertificateIssuanceConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig 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.certificatemanager.v1.CertificateIssuanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig 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.certificatemanager.v1.CertificateIssuanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig 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.certificatemanager.v1.CertificateIssuanceConfig 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; + } + /** + * + * + *
+   * CertificateIssuanceConfig specifies how to issue and manage a certificate.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateIssuanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig) + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.class, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder.class); + } + + // Construct using com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + description_ = ""; + + if (certificateAuthorityConfigBuilder_ == null) { + certificateAuthorityConfig_ = null; + } else { + certificateAuthorityConfig_ = null; + certificateAuthorityConfigBuilder_ = null; + } + if (lifetimeBuilder_ == null) { + lifetime_ = null; + } else { + lifetime_ = null; + lifetimeBuilder_ = null; + } + rotationWindowPercentage_ = 0; + + keyAlgorithm_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig build() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig buildPartial() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig result = + new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.description_ = description_; + if (certificateAuthorityConfigBuilder_ == null) { + result.certificateAuthorityConfig_ = certificateAuthorityConfig_; + } else { + result.certificateAuthorityConfig_ = certificateAuthorityConfigBuilder_.build(); + } + if (lifetimeBuilder_ == null) { + result.lifetime_ = lifetime_; + } else { + result.lifetime_ = lifetimeBuilder_.build(); + } + result.rotationWindowPercentage_ = rotationWindowPercentage_; + result.keyAlgorithm_ = keyAlgorithm_; + 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.certificatemanager.v1.CertificateIssuanceConfig) { + return mergeFrom((com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig other) { + if (other + == com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasCertificateAuthorityConfig()) { + mergeCertificateAuthorityConfig(other.getCertificateAuthorityConfig()); + } + if (other.hasLifetime()) { + mergeLifetime(other.getLifetime()); + } + if (other.getRotationWindowPercentage() != 0) { + setRotationWindowPercentage(other.getRotationWindowPercentage()); + } + if (other.keyAlgorithm_ != 0) { + setKeyAlgorithmValue(other.getKeyAlgorithmValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage( + getCertificateAuthorityConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getLifetimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 64: + { + rotationWindowPercentage_ = input.readInt32(); + + break; + } // case 64 + case 72: + { + keyAlgorithm_ = input.readEnum(); + + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * A user-defined name of the certificate issuance config.
+     * CertificateIssuanceConfig names must be unique globally and match pattern
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+     * A user-defined name of the certificate issuance config.
+     * CertificateIssuanceConfig names must be unique globally and match pattern
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+     * A user-defined name of the certificate issuance config.
+     * CertificateIssuanceConfig names must be unique globally and match pattern
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1; + * + * @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; + } + /** + * + * + *
+     * A user-defined name of the certificate issuance config.
+     * CertificateIssuanceConfig names must be unique globally and match pattern
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * A user-defined name of the certificate issuance config.
+     * CertificateIssuanceConfig names must be unique globally and match pattern
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1; + * + * @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 com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * One or more paragraphs of text description of a CertificateIssuanceConfig.
+     * 
+ * + * string description = 5; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * One or more paragraphs of text description of a CertificateIssuanceConfig.
+     * 
+ * + * string description = 5; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * One or more paragraphs of text description of a CertificateIssuanceConfig.
+     * 
+ * + * string description = 5; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * One or more paragraphs of text description of a CertificateIssuanceConfig.
+     * 
+ * + * string description = 5; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * One or more paragraphs of text description of a CertificateIssuanceConfig.
+     * 
+ * + * string description = 5; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + certificateAuthorityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfigOrBuilder> + certificateAuthorityConfigBuilder_; + /** + * + * + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the certificateAuthorityConfig field is set. + */ + public boolean hasCertificateAuthorityConfig() { + return certificateAuthorityConfigBuilder_ != null || certificateAuthorityConfig_ != null; + } + /** + * + * + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The certificateAuthorityConfig. + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig + getCertificateAuthorityConfig() { + if (certificateAuthorityConfigBuilder_ == null) { + return certificateAuthorityConfig_ == null + ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.getDefaultInstance() + : certificateAuthorityConfig_; + } else { + return certificateAuthorityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCertificateAuthorityConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + value) { + if (certificateAuthorityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + certificateAuthorityConfig_ = value; + onChanged(); + } else { + certificateAuthorityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCertificateAuthorityConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + .Builder + builderForValue) { + if (certificateAuthorityConfigBuilder_ == null) { + certificateAuthorityConfig_ = builderForValue.build(); + onChanged(); + } else { + certificateAuthorityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCertificateAuthorityConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + value) { + if (certificateAuthorityConfigBuilder_ == null) { + if (certificateAuthorityConfig_ != null) { + certificateAuthorityConfig_ = + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.newBuilder(certificateAuthorityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + certificateAuthorityConfig_ = value; + } + onChanged(); + } else { + certificateAuthorityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCertificateAuthorityConfig() { + if (certificateAuthorityConfigBuilder_ == null) { + certificateAuthorityConfig_ = null; + onChanged(); + } else { + certificateAuthorityConfig_ = null; + certificateAuthorityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.Builder + getCertificateAuthorityConfigBuilder() { + + onChanged(); + return getCertificateAuthorityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfigOrBuilder + getCertificateAuthorityConfigOrBuilder() { + if (certificateAuthorityConfigBuilder_ != null) { + return certificateAuthorityConfigBuilder_.getMessageOrBuilder(); + } else { + return certificateAuthorityConfig_ == null + ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.getDefaultInstance() + : certificateAuthorityConfig_; + } + } + /** + * + * + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfigOrBuilder> + getCertificateAuthorityConfigFieldBuilder() { + if (certificateAuthorityConfigBuilder_ == null) { + certificateAuthorityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfigOrBuilder>( + getCertificateAuthorityConfig(), getParentForChildren(), isClean()); + certificateAuthorityConfig_ = null; + } + return certificateAuthorityConfigBuilder_; + } + + private com.google.protobuf.Duration lifetime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + lifetimeBuilder_; + /** + * + * + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lifetime field is set. + */ + public boolean hasLifetime() { + return lifetimeBuilder_ != null || lifetime_ != null; + } + /** + * + * + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lifetime. + */ + public com.google.protobuf.Duration getLifetime() { + if (lifetimeBuilder_ == null) { + return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + } else { + return lifetimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLifetime(com.google.protobuf.Duration value) { + if (lifetimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lifetime_ = value; + onChanged(); + } else { + lifetimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { + if (lifetimeBuilder_ == null) { + lifetime_ = builderForValue.build(); + onChanged(); + } else { + lifetimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLifetime(com.google.protobuf.Duration value) { + if (lifetimeBuilder_ == null) { + if (lifetime_ != null) { + lifetime_ = + com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); + } else { + lifetime_ = value; + } + onChanged(); + } else { + lifetimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLifetime() { + if (lifetimeBuilder_ == null) { + lifetime_ = null; + onChanged(); + } else { + lifetime_ = null; + lifetimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Duration.Builder getLifetimeBuilder() { + + onChanged(); + return getLifetimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { + if (lifetimeBuilder_ != null) { + return lifetimeBuilder_.getMessageOrBuilder(); + } else { + return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + } + } + /** + * + * + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getLifetimeFieldBuilder() { + if (lifetimeBuilder_ == null) { + lifetimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getLifetime(), getParentForChildren(), isClean()); + lifetime_ = null; + } + return lifetimeBuilder_; + } + + private int rotationWindowPercentage_; + /** + * + * + *
+     * Required. Specifies the percentage of elapsed time of the certificate
+     * lifetime to wait before renewing the certificate. Must be a number between
+     * 1-99, inclusive.
+     * 
+ * + * int32 rotation_window_percentage = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rotationWindowPercentage. + */ + @java.lang.Override + public int getRotationWindowPercentage() { + return rotationWindowPercentage_; + } + /** + * + * + *
+     * Required. Specifies the percentage of elapsed time of the certificate
+     * lifetime to wait before renewing the certificate. Must be a number between
+     * 1-99, inclusive.
+     * 
+ * + * int32 rotation_window_percentage = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rotationWindowPercentage to set. + * @return This builder for chaining. + */ + public Builder setRotationWindowPercentage(int value) { + + rotationWindowPercentage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Specifies the percentage of elapsed time of the certificate
+     * lifetime to wait before renewing the certificate. Must be a number between
+     * 1-99, inclusive.
+     * 
+ * + * int32 rotation_window_percentage = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRotationWindowPercentage() { + + rotationWindowPercentage_ = 0; + onChanged(); + return this; + } + + private int keyAlgorithm_ = 0; + /** + * + * + *
+     * Required. The key algorithm to use when generating the private key.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for keyAlgorithm. + */ + @java.lang.Override + public int getKeyAlgorithmValue() { + return keyAlgorithm_; + } + /** + * + * + *
+     * Required. The key algorithm to use when generating the private key.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for keyAlgorithm to set. + * @return This builder for chaining. + */ + public Builder setKeyAlgorithmValue(int value) { + + keyAlgorithm_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The key algorithm to use when generating the private key.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The keyAlgorithm. + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm + getKeyAlgorithm() { + @SuppressWarnings("deprecation") + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm result = + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm.valueOf( + keyAlgorithm_); + return result == null + ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The key algorithm to use when generating the private key.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The keyAlgorithm to set. + * @return This builder for chaining. + */ + public Builder setKeyAlgorithm( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm value) { + if (value == null) { + throw new NullPointerException(); + } + + keyAlgorithm_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The key algorithm to use when generating the private key.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearKeyAlgorithm() { + + keyAlgorithm_ = 0; + 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.certificatemanager.v1.CertificateIssuanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CertificateIssuanceConfig) + private static final com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig(); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateIssuanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.certificatemanager.v1.CertificateIssuanceConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigName.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigName.java new file mode 100644 index 000000000000..7d5c524c23f2 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigName.java @@ -0,0 +1,240 @@ +/* + * Copyright 2022 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.certificatemanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CertificateIssuanceConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CERTIFICATE_ISSUANCE_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/certificateIssuanceConfigs/{certificate_issuance_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String certificateIssuanceConfig; + + @Deprecated + protected CertificateIssuanceConfigName() { + project = null; + location = null; + certificateIssuanceConfig = null; + } + + private CertificateIssuanceConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + certificateIssuanceConfig = Preconditions.checkNotNull(builder.getCertificateIssuanceConfig()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCertificateIssuanceConfig() { + return certificateIssuanceConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CertificateIssuanceConfigName of( + String project, String location, String certificateIssuanceConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCertificateIssuanceConfig(certificateIssuanceConfig) + .build(); + } + + public static String format(String project, String location, String certificateIssuanceConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCertificateIssuanceConfig(certificateIssuanceConfig) + .build() + .toString(); + } + + public static CertificateIssuanceConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CERTIFICATE_ISSUANCE_CONFIG.validatedMatch( + formattedString, + "CertificateIssuanceConfigName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("certificate_issuance_config")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CertificateIssuanceConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CERTIFICATE_ISSUANCE_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (certificateIssuanceConfig != null) { + fieldMapBuilder.put("certificate_issuance_config", certificateIssuanceConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CERTIFICATE_ISSUANCE_CONFIG.instantiate( + "project", + project, + "location", + location, + "certificate_issuance_config", + certificateIssuanceConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + CertificateIssuanceConfigName that = ((CertificateIssuanceConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.certificateIssuanceConfig, that.certificateIssuanceConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(certificateIssuanceConfig); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/certificateIssuanceConfigs/{certificate_issuance_config}. + */ + public static class Builder { + private String project; + private String location; + private String certificateIssuanceConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCertificateIssuanceConfig() { + return certificateIssuanceConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCertificateIssuanceConfig(String certificateIssuanceConfig) { + this.certificateIssuanceConfig = certificateIssuanceConfig; + return this; + } + + private Builder(CertificateIssuanceConfigName certificateIssuanceConfigName) { + this.project = certificateIssuanceConfigName.project; + this.location = certificateIssuanceConfigName.location; + this.certificateIssuanceConfig = certificateIssuanceConfigName.certificateIssuanceConfig; + } + + public CertificateIssuanceConfigName build() { + return new CertificateIssuanceConfigName(this); + } + } +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigOrBuilder.java new file mode 100644 index 000000000000..59caec2731ac --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigOrBuilder.java @@ -0,0 +1,340 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface CertificateIssuanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CertificateIssuanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A user-defined name of the certificate issuance config.
+   * CertificateIssuanceConfig names must be unique globally and match pattern
+   * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * A user-defined name of the certificate issuance config.
+   * CertificateIssuanceConfig names must be unique globally and match pattern
+   * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + * + * + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * One or more paragraphs of text description of a CertificateIssuanceConfig.
+   * 
+ * + * string description = 5; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * One or more paragraphs of text description of a CertificateIssuanceConfig.
+   * 
+ * + * string description = 5; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the certificateAuthorityConfig field is set. + */ + boolean hasCertificateAuthorityConfig(); + /** + * + * + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The certificateAuthorityConfig. + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig + getCertificateAuthorityConfig(); + /** + * + * + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .CertificateAuthorityConfigOrBuilder + getCertificateAuthorityConfigOrBuilder(); + + /** + * + * + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the lifetime field is set. + */ + boolean hasLifetime(); + /** + * + * + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The lifetime. + */ + com.google.protobuf.Duration getLifetime(); + /** + * + * + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder(); + + /** + * + * + *
+   * Required. Specifies the percentage of elapsed time of the certificate
+   * lifetime to wait before renewing the certificate. Must be a number between
+   * 1-99, inclusive.
+   * 
+ * + * int32 rotation_window_percentage = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rotationWindowPercentage. + */ + int getRotationWindowPercentage(); + + /** + * + * + *
+   * Required. The key algorithm to use when generating the private key.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for keyAlgorithm. + */ + int getKeyAlgorithmValue(); + /** + * + * + *
+   * Required. The key algorithm to use when generating the private key.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The keyAlgorithm. + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm getKeyAlgorithm(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigProto.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigProto.java new file mode 100644 index 000000000000..64c6384310b9 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigProto.java @@ -0,0 +1,253 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public final class CertificateIssuanceConfigProto { + private CertificateIssuanceConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nDgoogle/cloud/certificatemanager/v1/cer" + + "tificate_issuance_config.proto\022\"google.c" + + "loud.certificatemanager.v1\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032\036google/protobuf/duration.proto\032\037" + + "google/protobuf/timestamp.proto\"\253\001\n%List" + + "CertificateIssuanceConfigsRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030" + + "\005 \001(\t\"\273\001\n&ListCertificateIssuanceConfigs" + + "Response\022c\n\034certificate_issuance_configs" + + "\030\001 \003(\0132=.google.cloud.certificatemanager" + + ".v1.CertificateIssuanceConfig\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"x\n#G" + + "etCertificateIssuanceConfigRequest\022Q\n\004na" + + "me\030\001 \001(\tBC\340A\002\372A=\n;certificatemanager.goo" + + "gleapis.com/CertificateIssuanceConfig\"\371\001" + + "\n&CreateCertificateIssuanceConfigRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022+\n\036certificate_issua" + + "nce_config_id\030\002 \001(\tB\003\340A\002\022g\n\033certificate_" + + "issuance_config\030\003 \001(\0132=.google.cloud.cer" + + "tificatemanager.v1.CertificateIssuanceCo" + + "nfigB\003\340A\002\"{\n&DeleteCertificateIssuanceCo" + + "nfigRequest\022Q\n\004name\030\001 \001(\tBC\340A\002\372A=\n;certi" + + "ficatemanager.googleapis.com/Certificate" + + "IssuanceConfig\"\243\t\n\031CertificateIssuanceCo" + + "nfig\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\022Y\n\006labels\030\004 \003(\0132I.google.cloud.ce" + + "rtificatemanager.v1.CertificateIssuanceC" + + "onfig.LabelsEntry\022\023\n\013description\030\005 \001(\t\022\203" + + "\001\n\034certificate_authority_config\030\006 \001(\0132X." + + "google.cloud.certificatemanager.v1.Certi" + + "ficateIssuanceConfig.CertificateAuthorit" + + "yConfigB\003\340A\002\0220\n\010lifetime\030\007 \001(\0132\031.google." + + "protobuf.DurationB\003\340A\002\022\'\n\032rotation_windo" + + "w_percentage\030\010 \001(\005B\003\340A\002\022f\n\rkey_algorithm" + + "\030\t \001(\0162J.google.cloud.certificatemanager" + + ".v1.CertificateIssuanceConfig.KeyAlgorit" + + "hmB\003\340A\002\032\260\002\n\032CertificateAuthorityConfig\022\252" + + "\001\n$certificate_authority_service_config\030" + + "\001 \001(\0132z.google.cloud.certificatemanager." + + "v1.CertificateIssuanceConfig.Certificate" + + "AuthorityConfig.CertificateAuthorityServ" + + "iceConfigH\000\032]\n!CertificateAuthorityServi" + + "ceConfig\0228\n\007ca_pool\030\001 \001(\tB\'\340A\002\372A!\n\037priva" + + "teca.googleapis.com/CaPoolB\006\n\004kind\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"K\n\014KeyAlgorithm\022\035\n\031KEY_ALGORITHM_UNSPE" + + "CIFIED\020\000\022\014\n\010RSA_2048\020\001\022\016\n\nECDSA_P256\020\004:\243" + + "\001\352A\237\001\n;certificatemanager.googleapis.com" + + "/CertificateIssuanceConfig\022`projects/{pr" + + "oject}/locations/{location}/certificateI" + + "ssuanceConfigs/{certificate_issuance_con" + + "fig}B\361\002\n&com.google.cloud.certificateman" + + "ager.v1B\036CertificateIssuanceConfigProtoP" + + "\001ZTgoogle.golang.org/genproto/googleapis" + + "/cloud/certificatemanager/v1;certificate" + + "manager\252\002\"Google.Cloud.CertificateManage" + + "r.V1\312\002\"Google\\Cloud\\CertificateManager\\V" + + "1\352\002%Google::Cloud::CertificateManager::V" + + "1\352A\\\n\037privateca.googleapis.com/CaPool\0229p" + + "rojects/{project}/locations/{location}/c" + + "aPools/{ca_pool}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor, + new java.lang.String[] { + "CertificateIssuanceConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "CertificateIssuanceConfigId", "CertificateIssuanceConfig", + }); + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "Description", + "CertificateAuthorityConfig", + "Lifetime", + "RotationWindowPercentage", + "KeyAlgorithm", + }); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor = + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor, + new java.lang.String[] { + "CertificateAuthorityServiceConfig", "Kind", + }); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor = + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor, + new java.lang.String[] { + "CaPool", + }); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_LabelsEntry_descriptor = + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java index 4828dead84fb..cc21eec1200c 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java @@ -201,354 +201,388 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tificatemanager.v1\032\034google/api/annotatio" + "ns.proto\032\027google/api/client.proto\032\037googl" + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\032#google/longrunning/operat" - + "ions.proto\032 google/protobuf/field_mask.p" - + "roto\032\037google/protobuf/timestamp.proto\"\235\001" - + "\n\027ListCertificatesRequest\0229\n\006parent\030\001 \001(" + + "esource.proto\032Dgoogle/cloud/certificatem" + + "anager/v1/certificate_issuance_config.pr" + + "oto\032#google/longrunning/operations.proto" + + "\032 google/protobuf/field_mask.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\235\001\n\027ListCert" + + "ificatesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fil" + + "ter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\217\001\n\030ListCert" + + "ificatesResponse\022E\n\014certificates\030\001 \003(\0132/" + + ".google.cloud.certificatemanager.v1.Cert" + + "ificate\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + + "achable\030\003 \003(\t\"\\\n\025GetCertificateRequest\022C" + + "\n\004name\030\001 \001(\tB5\340A\002\372A/\n-certificatemanager" + + ".googleapis.com/Certificate\"\275\001\n\030CreateCe" + + "rtificateRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\033\n\016c" + + "ertificate_id\030\002 \001(\tB\003\340A\002\022I\n\013certificate\030" + + "\003 \001(\0132/.google.cloud.certificatemanager." + + "v1.CertificateB\003\340A\002\"\233\001\n\030UpdateCertificat" + + "eRequest\022I\n\013certificate\030\001 \001(\0132/.google.c" + + "loud.certificatemanager.v1.CertificateB\003" + + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\002\"_\n\030DeleteCertificateRe" + + "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-certificate" + + "manager.googleapis.com/Certificate\"\240\001\n\032L" + + "istCertificateMapsRequest\0229\n\006parent\030\001 \001(" + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" + "tion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\217\001" - + "\n\030ListCertificatesResponse\022E\n\014certificat" - + "es\030\001 \003(\0132/.google.cloud.certificatemanag" - + "er.v1.Certificate\022\027\n\017next_page_token\030\002 \001" - + "(\t\022\023\n\013unreachable\030\003 \003(\t\"\\\n\025GetCertificat" - + "eRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-certific" - + "atemanager.googleapis.com/Certificate\"\275\001" - + "\n\030CreateCertificateRequest\0229\n\006parent\030\001 \001" - + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022\033\n\016certificate_id\030\002 \001(\tB\003\340A\002\022I\n\013ce" - + "rtificate\030\003 \001(\0132/.google.cloud.certifica" - + "temanager.v1.CertificateB\003\340A\002\"\233\001\n\030Update" - + "CertificateRequest\022I\n\013certificate\030\001 \001(\0132" - + "/.google.cloud.certificatemanager.v1.Cer" - + "tificateB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goo" - + "gle.protobuf.FieldMaskB\003\340A\002\"_\n\030DeleteCer" - + "tificateRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-c" - + "ertificatemanager.googleapis.com/Certifi" - + "cate\"\240\001\n\032ListCertificateMapsRequest\0229\n\006p" - + "arent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapi" - + "s.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" - + "e_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_b" - + "y\030\005 \001(\t\"\231\001\n\033ListCertificateMapsResponse\022" - + "L\n\020certificate_maps\030\001 \003(\01322.google.cloud" - + ".certificatemanager.v1.CertificateMap\022\027\n" - + "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 " - + "\003(\t\"b\n\030GetCertificateMapRequest\022F\n\004name\030" - + "\001 \001(\tB8\340A\002\372A2\n0certificatemanager.google" - + "apis.com/CertificateMap\"\313\001\n\033CreateCertif" - + "icateMapRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022\037\n\022ce" - + "rtificate_map_id\030\002 \001(\tB\003\340A\002\022P\n\017certifica" - + "te_map\030\003 \001(\01322.google.cloud.certificatem" - + "anager.v1.CertificateMapB\003\340A\002\"\245\001\n\033Update" - + "CertificateMapRequest\022P\n\017certificate_map" - + "\030\001 \001(\01322.google.cloud.certificatemanager" - + ".v1.CertificateMapB\003\340A\002\0224\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"e\n" - + "\033DeleteCertificateMapRequest\022F\n\004name\030\001 \001" - + "(\tB8\340A\002\372A2\n0certificatemanager.googleapi" - + "s.com/CertificateMap\"\265\001\n ListCertificate" - + "MapEntriesRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A" - + "2\n0certificatemanager.googleapis.com/Cer" - + "tificateMap\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005" - + " \001(\t\"\253\001\n!ListCertificateMapEntriesRespon" - + "se\022X\n\027certificate_map_entries\030\001 \003(\01327.go" - + "ogle.cloud.certificatemanager.v1.Certifi" - + "cateMapEntry\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"l\n\035GetCertificateMapE" - + "ntryRequest\022K\n\004name\030\001 \001(\tB=\340A\002\372A7\n5certi" - + "ficatemanager.googleapis.com/Certificate" - + "MapEntry\"\360\001\n CreateCertificateMapEntryRe" - + "quest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0certifica" - + "temanager.googleapis.com/CertificateMap\022" - + "%\n\030certificate_map_entry_id\030\002 \001(\tB\003\340A\002\022[" - + "\n\025certificate_map_entry\030\003 \001(\01327.google.c" - + "loud.certificatemanager.v1.CertificateMa" - + "pEntryB\003\340A\002\"\265\001\n UpdateCertificateMapEntr" - + "yRequest\022[\n\025certificate_map_entry\030\001 \001(\0132" - + "7.google.cloud.certificatemanager.v1.Cer" - + "tificateMapEntryB\003\340A\002\0224\n\013update_mask\030\002 \001" - + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"o\n D" - + "eleteCertificateMapEntryRequest\022K\n\004name\030" - + "\001 \001(\tB=\340A\002\372A7\n5certificatemanager.google" - + "apis.com/CertificateMapEntry\"\242\001\n\034ListDns" - + "AuthorizationsRequest\0229\n\006parent\030\001 \001(\tB)\340" - + "A\002\372A#\n!locations.googleapis.com/Location" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022" - + "\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\237\001\n\035Li" - + "stDnsAuthorizationsResponse\022P\n\022dns_autho" - + "rizations\030\001 \003(\01324.google.cloud.certifica" - + "temanager.v1.DnsAuthorization\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"f\n\032G" - + "etDnsAuthorizationRequest\022H\n\004name\030\001 \001(\tB" - + ":\340A\002\372A4\n2certificatemanager.googleapis.c" - + "om/DnsAuthorization\"\323\001\n\035CreateDnsAuthori" - + "zationRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" - + "ocations.googleapis.com/Location\022!\n\024dns_" - + "authorization_id\030\002 \001(\tB\003\340A\002\022T\n\021dns_autho" - + "rization\030\003 \001(\01324.google.cloud.certificat" - + "emanager.v1.DnsAuthorizationB\003\340A\002\"\253\001\n\035Up" - + "dateDnsAuthorizationRequest\022T\n\021dns_autho" - + "rization\030\001 \001(\01324.google.cloud.certificat" - + "emanager.v1.DnsAuthorizationB\003\340A\002\0224\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "skB\003\340A\002\"i\n\035DeleteDnsAuthorizationRequest" - + "\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2certificatemanag" - + "er.googleapis.com/DnsAuthorization\"\335\001\n\021O" - + "perationMetadata\022/\n\013create_time\030\001 \001(\0132\032." - + "google.protobuf.Timestamp\022,\n\010end_time\030\002 " - + "\001(\0132\032.google.protobuf.Timestamp\022\016\n\006targe" - + "t\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\026\n\016status_message\030" - + "\005 \001(\t\022\036\n\026requested_cancellation\030\006 \001(\010\022\023\n" - + "\013api_version\030\007 \001(\t\"\352\020\n\013Certificate\022\014\n\004na" - + "me\030\001 \001(\t\022\023\n\013description\030\010 \001(\t\0224\n\013create_" - + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022K\n\006labels\030\004 \003(\0132;.goog" - + "le.cloud.certificatemanager.v1.Certifica" - + "te.LabelsEntry\022^\n\014self_managed\030\005 \001(\0132F.g" + + "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\231\001" + + "\n\033ListCertificateMapsResponse\022L\n\020certifi" + + "cate_maps\030\001 \003(\01322.google.cloud.certifica" + + "temanager.v1.CertificateMap\022\027\n\017next_page" + + "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"b\n\030Get" + + "CertificateMapRequest\022F\n\004name\030\001 \001(\tB8\340A\002" + + "\372A2\n0certificatemanager.googleapis.com/C" + + "ertificateMap\"\313\001\n\033CreateCertificateMapRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022\037\n\022certificate_" + + "map_id\030\002 \001(\tB\003\340A\002\022P\n\017certificate_map\030\003 \001" + + "(\01322.google.cloud.certificatemanager.v1." + + "CertificateMapB\003\340A\002\"\245\001\n\033UpdateCertificat" + + "eMapRequest\022P\n\017certificate_map\030\001 \001(\01322.g" + "oogle.cloud.certificatemanager.v1.Certif" - + "icate.SelfManagedCertificateH\000\022U\n\007manage" - + "d\030\013 \001(\0132B.google.cloud.certificatemanage" - + "r.v1.Certificate.ManagedCertificateH\000\022\031\n" - + "\014san_dnsnames\030\006 \003(\tB\003\340A\003\022\034\n\017pem_certific" - + "ate\030\t \001(\tB\003\340A\003\0224\n\013expire_time\030\007 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022I\n\005scope\030\014 " - + "\001(\01625.google.cloud.certificatemanager.v1" - + ".Certificate.ScopeB\003\340A\005\032T\n\026SelfManagedCe" - + "rtificate\022\034\n\017pem_certificate\030\001 \001(\tB\003\340A\004\022" - + "\034\n\017pem_private_key\030\002 \001(\tB\003\340A\004\032\342\t\n\022Manage" - + "dCertificate\022\024\n\007domains\030\001 \003(\tB\003\340A\005\022V\n\022dn" - + "s_authorizations\030\002 \003(\tB:\340A\005\372A4\n2certific" - + "atemanager.googleapis.com/DnsAuthorizati" - + "on\022\\\n\005state\030\004 \001(\0162H.google.cloud.certifi" - + "catemanager.v1.Certificate.ManagedCertif" - + "icate.StateB\003\340A\003\022p\n\022provisioning_issue\030\003" - + " \001(\0132T.google.cloud.certificatemanager.v" - + "1.Certificate.ManagedCertificate.Provisi" - + "oningIssue\022\204\001\n\032authorization_attempt_inf" - + "o\030\005 \003(\0132[.google.cloud.certificatemanage" - + "r.v1.Certificate.ManagedCertificate.Auth" - + "orizationAttemptInfoB\003\340A\003\032\336\001\n\021Provisioni" - + "ngIssue\022k\n\006reason\030\001 \001(\0162[.google.cloud.c" - + "ertificatemanager.v1.Certificate.Managed" - + "Certificate.ProvisioningIssue.Reason\022\017\n\007" - + "details\030\002 \001(\t\"K\n\006Reason\022\026\n\022REASON_UNSPEC" - + "IFIED\020\000\022\027\n\023AUTHORIZATION_ISSUE\020\001\022\020\n\014RATE" - + "_LIMITED\020\002\032\333\003\n\030AuthorizationAttemptInfo\022" - + "\016\n\006domain\030\001 \001(\t\022p\n\005state\030\002 \001(\0162a.google." - + "cloud.certificatemanager.v1.Certificate." - + "ManagedCertificate.AuthorizationAttemptI" - + "nfo.State\022\206\001\n\016failure_reason\030\003 \001(\0162i.goo" - + "gle.cloud.certificatemanager.v1.Certific" - + "ate.ManagedCertificate.AuthorizationAtte" - + "mptInfo.FailureReasonB\003\340A\003\022\017\n\007details\030\004 " - + "\001(\t\"K\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013A" - + "UTHORIZING\020\001\022\016\n\nAUTHORIZED\020\006\022\n\n\006FAILED\020\007" - + "\"V\n\rFailureReason\022\036\n\032FAILURE_REASON_UNSP" - + "ECIFIED\020\000\022\n\n\006CONFIG\020\001\022\007\n\003CAA\020\002\022\020\n\014RATE_L" - + "IMITED\020\003\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" - + "\022\020\n\014PROVISIONING\020\001\022\n\n\006FAILED\020\002\022\n\n\006ACTIVE" - + "\020\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"$\n\005Scope\022\013\n\007DEFAULT\020\000\022\016\n\nEDGE_" - + "CACHE\020\001:v\352As\n-certificatemanager.googlea" - + "pis.com/Certificate\022Bprojects/{project}/" - + "locations/{location}/certificates/{certi" - + "ficate}B\006\n\004type\"\337\005\n\016CertificateMap\022\014\n\004na" - + "me\030\001 \001(\t\022\023\n\013description\030\005 \001(\t\0224\n\013create_" - + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022N\n\006labels\030\003 \003(\0132>.goog" + + "icateMapB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\003\340A\002\"e\n\033DeleteCer" + + "tificateMapRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2" + + "\n0certificatemanager.googleapis.com/Cert" + + "ificateMap\"\265\001\n ListCertificateMapEntries" + + "Request\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0certifi" + + "catemanager.googleapis.com/CertificateMa" + + "p\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\253\001\n!L" + + "istCertificateMapEntriesResponse\022X\n\027cert" + + "ificate_map_entries\030\001 \003(\01327.google.cloud" + + ".certificatemanager.v1.CertificateMapEnt" + + "ry\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" + + "le\030\003 \003(\t\"l\n\035GetCertificateMapEntryReques" + + "t\022K\n\004name\030\001 \001(\tB=\340A\002\372A7\n5certificatemana" + + "ger.googleapis.com/CertificateMapEntry\"\360" + + "\001\n CreateCertificateMapEntryRequest\022H\n\006p" + + "arent\030\001 \001(\tB8\340A\002\372A2\n0certificatemanager." + + "googleapis.com/CertificateMap\022%\n\030certifi" + + "cate_map_entry_id\030\002 \001(\tB\003\340A\002\022[\n\025certific" + + "ate_map_entry\030\003 \001(\01327.google.cloud.certi" + + "ficatemanager.v1.CertificateMapEntryB\003\340A" + + "\002\"\265\001\n UpdateCertificateMapEntryRequest\022[" + + "\n\025certificate_map_entry\030\001 \001(\01327.google.c" + + "loud.certificatemanager.v1.CertificateMa" + + "pEntryB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"o\n DeleteCerti" + + "ficateMapEntryRequest\022K\n\004name\030\001 \001(\tB=\340A\002" + + "\372A7\n5certificatemanager.googleapis.com/C" + + "ertificateMapEntry\"\242\001\n\034ListDnsAuthorizat" + + "ionsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" + + "ations.googleapis.com/Location\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" + + "\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\237\001\n\035ListDnsAutho" + + "rizationsResponse\022P\n\022dns_authorizations\030" + + "\001 \003(\01324.google.cloud.certificatemanager." + + "v1.DnsAuthorization\022\027\n\017next_page_token\030\002" + + " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"f\n\032GetDnsAutho" + + "rizationRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2c" + + "ertificatemanager.googleapis.com/DnsAuth" + + "orization\"\323\001\n\035CreateDnsAuthorizationRequ" + + "est\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.g" + + "oogleapis.com/Location\022!\n\024dns_authorizat" + + "ion_id\030\002 \001(\tB\003\340A\002\022T\n\021dns_authorization\030\003" + + " \001(\01324.google.cloud.certificatemanager.v" + + "1.DnsAuthorizationB\003\340A\002\"\253\001\n\035UpdateDnsAut" + + "horizationRequest\022T\n\021dns_authorization\030\001" + + " \001(\01324.google.cloud.certificatemanager.v" + + "1.DnsAuthorizationB\003\340A\002\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"i\n" + + "\035DeleteDnsAuthorizationRequest\022H\n\004name\030\001" + + " \001(\tB:\340A\002\372A4\n2certificatemanager.googlea" + + "pis.com/DnsAuthorization\"\335\001\n\021OperationMe" + + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n" + + "\004verb\030\004 \001(\t\022\026\n\016status_message\030\005 \001(\t\022\036\n\026r" + + "equested_cancellation\030\006 \001(\010\022\023\n\013api_versi" + + "on\030\007 \001(\t\"\341\021\n\013Certificate\022\014\n\004name\030\001 \001(\t\022\023" + + "\n\013description\030\010 \001(\t\0224\n\013create_time\030\002 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022K\n\006labels\030\004 \003(\0132;.google.cloud.c" + + "ertificatemanager.v1.Certificate.LabelsE" + + "ntry\022^\n\014self_managed\030\005 \001(\0132F.google.clou" + + "d.certificatemanager.v1.Certificate.Self" + + "ManagedCertificateH\000\022U\n\007managed\030\013 \001(\0132B." + + "google.cloud.certificatemanager.v1.Certi" + + "ficate.ManagedCertificateH\000\022\031\n\014san_dnsna" + + "mes\030\006 \003(\tB\003\340A\003\022\034\n\017pem_certificate\030\t \001(\tB" + + "\003\340A\003\0224\n\013expire_time\030\007 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022I\n\005scope\030\014 \001(\01625.goog" + "le.cloud.certificatemanager.v1.Certifica" - + "teMap.LabelsEntry\022X\n\014gclb_targets\030\004 \003(\0132" - + "=.google.cloud.certificatemanager.v1.Cer" - + "tificateMap.GclbTargetB\003\340A\003\032\341\001\n\nGclbTarg" - + "et\022\034\n\022target_https_proxy\030\001 \001(\tH\000\022\032\n\020targ" - + "et_ssl_proxy\030\003 \001(\tH\000\022Z\n\nip_configs\030\002 \003(\013" - + "2F.google.cloud.certificatemanager.v1.Ce" - + "rtificateMap.GclbTarget.IpConfig\032-\n\010IpCo" - + "nfig\022\022\n\nip_address\030\001 \001(\t\022\r\n\005ports\030\003 \003(\rB" - + "\016\n\014target_proxy\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\200\001\352A}\n0certificat" - + "emanager.googleapis.com/CertificateMap\022I" - + "projects/{project}/locations/{location}/" - + "certificateMaps/{certificate_map}\"\221\006\n\023Ce" - + "rtificateMapEntry\022\014\n\004name\030\001 \001(\t\022\023\n\013descr" - + "iption\030\t \001(\t\0224\n\013create_time\030\002 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" - + "e\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022S\n\006labels\030\004 \003(\0132C.google.cloud.certific" - + "atemanager.v1.CertificateMapEntry.Labels" - + "Entry\022\022\n\010hostname\030\005 \001(\tH\000\022R\n\007matcher\030\n \001" - + "(\0162?.google.cloud.certificatemanager.v1." - + "CertificateMapEntry.MatcherH\000\022H\n\014certifi" - + "cates\030\007 \003(\tB2\372A/\n-certificatemanager.goo" - + "gleapis.com/Certificate\022D\n\005state\030\010 \001(\01620" - + ".google.cloud.certificatemanager.v1.Serv" - + "ingStateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"/\n\007Matcher\022\027\n\023MATCH" - + "ER_UNSPECIFIED\020\000\022\013\n\007PRIMARY\020\001:\264\001\352A\260\001\n5ce" - + "rtificatemanager.googleapis.com/Certific" - + "ateMapEntry\022wprojects/{project}/location" - + "s/{location}/certificateMaps/{certificat" - + "e_map}/certificateMapEntries/{certificat" - + "e_map_entry}B\007\n\005match\"\374\004\n\020DnsAuthorizati" - + "on\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022P\n\006labels\030\004 \003(\0132@.google.cloud.cert" - + "ificatemanager.v1.DnsAuthorization.Label" - + "sEntry\022\023\n\013description\030\005 \001(\t\022\026\n\006domain\030\006 " - + "\001(\tB\006\340A\002\340A\005\022h\n\023dns_resource_record\030\n \001(\013" - + "2F.google.cloud.certificatemanager.v1.Dn" - + "sAuthorization.DnsResourceRecordB\003\340A\003\032L\n" - + "\021DnsResourceRecord\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\021\n" - + "\004type\030\002 \001(\tB\003\340A\003\022\021\n\004data\030\003 \001(\tB\003\340A\003\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001:\207\001\352A\203\001\n2certificatemanager.googleapis" - + ".com/DnsAuthorization\022Mprojects/{project" - + "}/locations/{location}/dnsAuthorizations" - + "/{dns_authorization}*F\n\014ServingState\022\035\n\031" - + "SERVING_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022" - + "\013\n\007PENDING\020\0022\336(\n\022CertificateManager\022\320\001\n\020" - + "ListCertificates\022;.google.cloud.certific" - + "atemanager.v1.ListCertificatesRequest\032<." - + "google.cloud.certificatemanager.v1.ListC" - + "ertificatesResponse\"A\202\323\344\223\0022\0220/v1/{parent" - + "=projects/*/locations/*}/certificates\332A\006" - + "parent\022\275\001\n\016GetCertificate\0229.google.cloud" - + ".certificatemanager.v1.GetCertificateReq" - + "uest\032/.google.cloud.certificatemanager.v" - + "1.Certificate\"?\202\323\344\223\0022\0220/v1/{name=project" - + "s/*/locations/*/certificates/*}\332A\004name\022\377" - + "\001\n\021CreateCertificate\022<.google.cloud.cert" - + "ificatemanager.v1.CreateCertificateReque" - + "st\032\035.google.longrunning.Operation\"\214\001\202\323\344\223" - + "\002?\"0/v1/{parent=projects/*/locations/*}/" - + "certificates:\013certificate\332A!parent,certi" - + "ficate,certificate_id\312A \n\013Certificate\022\021O" - + "perationMetadata\022\201\002\n\021UpdateCertificate\022<" - + ".google.cloud.certificatemanager.v1.Upda" - + "teCertificateRequest\032\035.google.longrunnin" - + "g.Operation\"\216\001\202\323\344\223\002K2.google.cloud.certificatemanager." - + "v1.ListCertificateMapsRequest\032?.google.c" - + "loud.certificatemanager.v1.ListCertifica" - + "teMapsResponse\"D\202\323\344\223\0025\0223/v1/{parent=proj" - + "ects/*/locations/*}/certificateMaps\332A\006pa" - + "rent\022\311\001\n\021GetCertificateMap\022<.google.clou" - + "d.certificatemanager.v1.GetCertificateMa" - + "pRequest\0322.google.cloud.certificatemanag" - + "er.v1.CertificateMap\"B\202\323\344\223\0025\0223/v1/{name=" - + "projects/*/locations/*/certificateMaps/*" - + "}\332A\004name\022\227\002\n\024CreateCertificateMap\022?.goog" - + "le.cloud.certificatemanager.v1.CreateCer" - + "tificateMapRequest\032\035.google.longrunning." - + "Operation\"\236\001\202\323\344\223\002F\"3/v1/{parent=projects" - + "/*/locations/*}/certificateMaps:\017certifi" - + "cate_map\332A)parent,certificate_map,certif" - + "icate_map_id\312A#\n\016CertificateMap\022\021Operati" - + "onMetadata\022\231\002\n\024UpdateCertificateMap\022?.go" - + "ogle.cloud.certificatemanager.v1.UpdateC" - + "ertificateMapRequest\032\035.google.longrunnin" - + "g.Operation\"\240\001\202\323\344\223\002V2C/v1/{certificate_m" - + "ap.name=projects/*/locations/*/certifica" - + "teMaps/*}:\017certificate_map\332A\033certificate" - + "_map,update_mask\312A#\n\016CertificateMap\022\021Ope" - + "rationMetadata\022\347\001\n\024DeleteCertificateMap\022" - + "?.google.cloud.certificatemanager.v1.Del" - + "eteCertificateMapRequest\032\035.google.longru" - + "nning.Operation\"o\202\323\344\223\0025*3/v1/{name=proje" - + "cts/*/locations/*/certificateMaps/*}\332A\004n" - + "ame\312A*\n\025google.protobuf.Empty\022\021Operation" - + "Metadata\022\206\002\n\031ListCertificateMapEntries\022D" - + ".google.cloud.certificatemanager.v1.List" - + "CertificateMapEntriesRequest\032E.google.cl" - + "oud.certificatemanager.v1.ListCertificat" - + "eMapEntriesResponse\"\\\202\323\344\223\002M\022K/v1/{parent" - + "=projects/*/locations/*/certificateMaps/" - + "*}/certificateMapEntries\332A\006parent\022\360\001\n\026Ge" - + "tCertificateMapEntry\022A.google.cloud.cert" - + "ificatemanager.v1.GetCertificateMapEntry" - + "Request\0327.google.cloud.certificatemanage" - + "r.v1.CertificateMapEntry\"Z\202\323\344\223\002M\022K/v1/{n" - + "ame=projects/*/locations/*/certificateMa" - + "ps/*/certificateMapEntries/*}\332A\004name\022\320\002\n" - + "\031CreateCertificateMapEntry\022D.google.clou" - + "d.certificatemanager.v1.CreateCertificat" - + "eMapEntryRequest\032\035.google.longrunning.Op" - + "eration\"\315\001\202\323\344\223\002d\"K/v1/{parent=projects/*" - + "/locations/*/certificateMaps/*}/certific" - + "ateMapEntries:\025certificate_map_entry\332A5p" - + "arent,certificate_map_entry,certificate_" - + "map_entry_id\312A(\n\023CertificateMapEntry\022\021Op" - + "erationMetadata\022\322\002\n\031UpdateCertificateMap" - + "Entry\022D.google.cloud.certificatemanager." - + "v1.UpdateCertificateMapEntryRequest\032\035.go" - + "ogle.longrunning.Operation\"\317\001\202\323\344\223\002z2a/v1" - + "/{certificate_map_entry.name=projects/*/" - + "locations/*/certificateMaps/*/certificat" - + "eMapEntries/*}:\025certificate_map_entry\332A!" - + "certificate_map_entry,update_mask\312A(\n\023Ce" - + "rtificateMapEntry\022\021OperationMetadata\022\212\002\n" - + "\031DeleteCertificateMapEntry\022D.google.clou" - + "d.certificatemanager.v1.DeleteCertificat" - + "eMapEntryRequest\032\035.google.longrunning.Op" - + "eration\"\207\001\202\323\344\223\002M*K/v1/{name=projects/*/l" - + "ocations/*/certificateMaps/*/certificate" - + "MapEntries/*}\332A\004name\312A*\n\025google.protobuf" - + ".Empty\022\021OperationMetadata\022\344\001\n\025ListDnsAut" - + "horizations\022@.google.cloud.certificatema" - + "nager.v1.ListDnsAuthorizationsRequest\032A." - + "google.cloud.certificatemanager.v1.ListD" - + "nsAuthorizationsResponse\"F\202\323\344\223\0027\0225/v1/{p" - + "arent=projects/*/locations/*}/dnsAuthori" - + "zations\332A\006parent\022\321\001\n\023GetDnsAuthorization" - + "\022>.google.cloud.certificatemanager.v1.Ge" - + "tDnsAuthorizationRequest\0324.google.cloud." - + "certificatemanager.v1.DnsAuthorization\"D" - + "\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*" - + "/dnsAuthorizations/*}\332A\004name\022\245\002\n\026CreateD" - + "nsAuthorization\022A.google.cloud.certifica" - + "temanager.v1.CreateDnsAuthorizationReque" - + "st\032\035.google.longrunning.Operation\"\250\001\202\323\344\223" - + "\002J\"5/v1/{parent=projects/*/locations/*}/" - + "dnsAuthorizations:\021dns_authorization\332A-p" - + "arent,dns_authorization,dns_authorizatio" - + "n_id\312A%\n\020DnsAuthorization\022\021OperationMeta" - + "data\022\247\002\n\026UpdateDnsAuthorization\022A.google" - + ".cloud.certificatemanager.v1.UpdateDnsAu" - + "thorizationRequest\032\035.google.longrunning." - + "Operation\"\252\001\202\323\344\223\002\\2G/v1/{dns_authorizati" - + "on.name=projects/*/locations/*/dnsAuthor" - + "izations/*}:\021dns_authorization\332A\035dns_aut" - + "horization,update_mask\312A%\n\020DnsAuthorizat" - + "ion\022\021OperationMetadata\022\355\001\n\026DeleteDnsAuth" - + "orization\022A.google.cloud.certificatemana" - + "ger.v1.DeleteDnsAuthorizationRequest\032\035.g" - + "oogle.longrunning.Operation\"q\202\323\344\223\0027*5/v1" - + "/{name=projects/*/locations/*/dnsAuthori" - + "zations/*}\332A\004name\312A*\n\025google.protobuf.Em" - + "pty\022\021OperationMetadata\032U\312A!certificatema" - + "nager.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\213\002\n&com.go" - + "ogle.cloud.certificatemanager.v1B\027Certif" - + "icateManagerProtoP\001ZTgoogle.golang.org/g" - + "enproto/googleapis/cloud/certificatemana" - + "ger/v1;certificatemanager\252\002\"Google.Cloud" - + ".CertificateManager.V1\312\002\"Google\\Cloud\\Ce" - + "rtificateManager\\V1\352\002%Google::Cloud::Cer" - + "tificateManager::V1b\006proto3" + + "te.ScopeB\003\340A\005\032T\n\026SelfManagedCertificate\022" + + "\034\n\017pem_certificate\030\001 \001(\tB\003\340A\004\022\034\n\017pem_pri" + + "vate_key\030\002 \001(\tB\003\340A\004\032\331\n\n\022ManagedCertifica" + + "te\022\024\n\007domains\030\001 \003(\tB\003\340A\005\022V\n\022dns_authoriz" + + "ations\030\002 \003(\tB:\340A\005\372A4\n2certificatemanager" + + ".googleapis.com/DnsAuthorization\022\\\n\017issu" + + "ance_config\030\006 \001(\tBC\340A\005\372A=\n;certificatema" + + "nager.googleapis.com/CertificateIssuance" + + "Config\022\\\n\005state\030\004 \001(\0162H.google.cloud.cer" + + "tificatemanager.v1.Certificate.ManagedCe" + + "rtificate.StateB\003\340A\003\022u\n\022provisioning_iss" + + "ue\030\003 \001(\0132T.google.cloud.certificatemanag" + + "er.v1.Certificate.ManagedCertificate.Pro" + + "visioningIssueB\003\340A\003\022\204\001\n\032authorization_at" + + "tempt_info\030\005 \003(\0132[.google.cloud.certific" + + "atemanager.v1.Certificate.ManagedCertifi" + + "cate.AuthorizationAttemptInfoB\003\340A\003\032\350\001\n\021P" + + "rovisioningIssue\022p\n\006reason\030\001 \001(\0162[.googl" + + "e.cloud.certificatemanager.v1.Certificat" + + "e.ManagedCertificate.ProvisioningIssue.R" + + "easonB\003\340A\003\022\024\n\007details\030\002 \001(\tB\003\340A\003\"K\n\006Reas" + + "on\022\026\n\022REASON_UNSPECIFIED\020\000\022\027\n\023AUTHORIZAT" + + "ION_ISSUE\020\001\022\020\n\014RATE_LIMITED\020\002\032\345\003\n\030Author" + + "izationAttemptInfo\022\016\n\006domain\030\001 \001(\t\022u\n\005st" + + "ate\030\002 \001(\0162a.google.cloud.certificatemana" + + "ger.v1.Certificate.ManagedCertificate.Au" + + "thorizationAttemptInfo.StateB\003\340A\003\022\206\001\n\016fa" + + "ilure_reason\030\003 \001(\0162i.google.cloud.certif" + + "icatemanager.v1.Certificate.ManagedCerti" + + "ficate.AuthorizationAttemptInfo.FailureR" + + "easonB\003\340A\003\022\024\n\007details\030\004 \001(\tB\003\340A\003\"K\n\005Stat" + + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013AUTHORIZING\020" + + "\001\022\016\n\nAUTHORIZED\020\006\022\n\n\006FAILED\020\007\"V\n\rFailure" + + "Reason\022\036\n\032FAILURE_REASON_UNSPECIFIED\020\000\022\n" + + "\n\006CONFIG\020\001\022\007\n\003CAA\020\002\022\020\n\014RATE_LIMITED\020\003\"H\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISI" + + "ONING\020\001\022\n\n\006FAILED\020\002\022\n\n\006ACTIVE\020\003\032-\n\013Label" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"$" + + "\n\005Scope\022\013\n\007DEFAULT\020\000\022\016\n\nEDGE_CACHE\020\001:v\352A" + + "s\n-certificatemanager.googleapis.com/Cer" + + "tificate\022Bprojects/{project}/locations/{" + + "location}/certificates/{certificate}B\006\n\004" + + "type\"\370\005\n\016CertificateMap\022\014\n\004name\030\001 \001(\t\022\023\n" + + "\013description\030\005 \001(\t\0224\n\013create_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" + + "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\022N\n\006labels\030\003 \003(\0132>.google.cloud.ce" + + "rtificatemanager.v1.CertificateMap.Label" + + "sEntry\022X\n\014gclb_targets\030\004 \003(\0132=.google.cl" + + "oud.certificatemanager.v1.CertificateMap" + + ".GclbTargetB\003\340A\003\032\372\001\n\nGclbTarget\022!\n\022targe" + + "t_https_proxy\030\001 \001(\tB\003\340A\003H\000\022\037\n\020target_ssl" + + "_proxy\030\003 \001(\tB\003\340A\003H\000\022_\n\nip_configs\030\002 \003(\0132" + + "F.google.cloud.certificatemanager.v1.Cer" + + "tificateMap.GclbTarget.IpConfigB\003\340A\003\0327\n\010" + + "IpConfig\022\027\n\nip_address\030\001 \001(\tB\003\340A\003\022\022\n\005por" + + "ts\030\003 \003(\rB\003\340A\003B\016\n\014target_proxy\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\200\001\352" + + "A}\n0certificatemanager.googleapis.com/Ce" + + "rtificateMap\022Iprojects/{project}/locatio" + + "ns/{location}/certificateMaps/{certifica" + + "te_map}\"\221\006\n\023CertificateMapEntry\022\014\n\004name\030" + + "\001 \001(\t\022\023\n\013description\030\t \001(\t\0224\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022S\n\006labels\030\004 \003(\0132C.google." + + "cloud.certificatemanager.v1.CertificateM" + + "apEntry.LabelsEntry\022\022\n\010hostname\030\005 \001(\tH\000\022" + + "R\n\007matcher\030\n \001(\0162?.google.cloud.certific" + + "atemanager.v1.CertificateMapEntry.Matche" + + "rH\000\022H\n\014certificates\030\007 \003(\tB2\372A/\n-certific" + + "atemanager.googleapis.com/Certificate\022D\n" + + "\005state\030\010 \001(\01620.google.cloud.certificatem" + + "anager.v1.ServingStateB\003\340A\003\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"/\n\007Ma" + + "tcher\022\027\n\023MATCHER_UNSPECIFIED\020\000\022\013\n\007PRIMAR" + + "Y\020\001:\264\001\352A\260\001\n5certificatemanager.googleapi" + + "s.com/CertificateMapEntry\022wprojects/{pro" + + "ject}/locations/{location}/certificateMa" + + "ps/{certificate_map}/certificateMapEntri" + + "es/{certificate_map_entry}B\007\n\005match\"\374\004\n\020" + + "DnsAuthorization\022\014\n\004name\030\001 \001(\t\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022P\n\006labels\030\004 \003(\0132@.goo" + + "gle.cloud.certificatemanager.v1.DnsAutho" + + "rization.LabelsEntry\022\023\n\013description\030\005 \001(" + + "\t\022\026\n\006domain\030\006 \001(\tB\006\340A\002\340A\005\022h\n\023dns_resourc" + + "e_record\030\n \001(\0132F.google.cloud.certificat" + + "emanager.v1.DnsAuthorization.DnsResource" + + "RecordB\003\340A\003\032L\n\021DnsResourceRecord\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\021\n\004type\030\002 \001(\tB\003\340A\003\022\021\n\004data\030\003" + + " \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\207\001\352A\203\001\n2certificatemana" + + "ger.googleapis.com/DnsAuthorization\022Mpro" + + "jects/{project}/locations/{location}/dns" + + "Authorizations/{dns_authorization}*F\n\014Se" + + "rvingState\022\035\n\031SERVING_STATE_UNSPECIFIED\020" + + "\000\022\n\n\006ACTIVE\020\001\022\013\n\007PENDING\020\0022\3261\n\022Certifica" + + "teManager\022\320\001\n\020ListCertificates\022;.google." + + "cloud.certificatemanager.v1.ListCertific" + + "atesRequest\032<.google.cloud.certificatema" + + "nager.v1.ListCertificatesResponse\"A\202\323\344\223\002" + + "2\0220/v1/{parent=projects/*/locations/*}/c" + + "ertificates\332A\006parent\022\275\001\n\016GetCertificate\022" + + "9.google.cloud.certificatemanager.v1.Get" + + "CertificateRequest\032/.google.cloud.certif" + + "icatemanager.v1.Certificate\"?\202\323\344\223\0022\0220/v1" + + "/{name=projects/*/locations/*/certificat" + + "es/*}\332A\004name\022\377\001\n\021CreateCertificate\022<.goo" + + "gle.cloud.certificatemanager.v1.CreateCe" + + "rtificateRequest\032\035.google.longrunning.Op" + + "eration\"\214\001\202\323\344\223\002?\"0/v1/{parent=projects/*" + + "/locations/*}/certificates:\013certificate\332" + + "A!parent,certificate,certificate_id\312A \n\013" + + "Certificate\022\021OperationMetadata\022\201\002\n\021Updat" + + "eCertificate\022<.google.cloud.certificatem" + + "anager.v1.UpdateCertificateRequest\032\035.goo" + + "gle.longrunning.Operation\"\216\001\202\323\344\223\002K2.google.cloud.certi" + + "ficatemanager.v1.ListCertificateMapsRequ" + + "est\032?.google.cloud.certificatemanager.v1" + + ".ListCertificateMapsResponse\"D\202\323\344\223\0025\0223/v" + + "1/{parent=projects/*/locations/*}/certif" + + "icateMaps\332A\006parent\022\311\001\n\021GetCertificateMap" + + "\022<.google.cloud.certificatemanager.v1.Ge" + + "tCertificateMapRequest\0322.google.cloud.ce" + + "rtificatemanager.v1.CertificateMap\"B\202\323\344\223" + + "\0025\0223/v1/{name=projects/*/locations/*/cer" + + "tificateMaps/*}\332A\004name\022\227\002\n\024CreateCertifi" + + "cateMap\022?.google.cloud.certificatemanage" + + "r.v1.CreateCertificateMapRequest\032\035.googl" + + "e.longrunning.Operation\"\236\001\202\323\344\223\002F\"3/v1/{p" + + "arent=projects/*/locations/*}/certificat" + + "eMaps:\017certificate_map\332A)parent,certific" + + "ate_map,certificate_map_id\312A#\n\016Certifica" + + "teMap\022\021OperationMetadata\022\231\002\n\024UpdateCerti" + + "ficateMap\022?.google.cloud.certificatemana" + + "ger.v1.UpdateCertificateMapRequest\032\035.goo" + + "gle.longrunning.Operation\"\240\001\202\323\344\223\002V2C/v1/" + + "{certificate_map.name=projects/*/locatio" + + "ns/*/certificateMaps/*}:\017certificate_map" + + "\332A\033certificate_map,update_mask\312A#\n\016Certi" + + "ficateMap\022\021OperationMetadata\022\347\001\n\024DeleteC" + + "ertificateMap\022?.google.cloud.certificate" + + "manager.v1.DeleteCertificateMapRequest\032\035" + + ".google.longrunning.Operation\"o\202\323\344\223\0025*3/" + + "v1/{name=projects/*/locations/*/certific" + + "ateMaps/*}\332A\004name\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\022\206\002\n\031ListCertifica" + + "teMapEntries\022D.google.cloud.certificatem" + + "anager.v1.ListCertificateMapEntriesReque" + + "st\032E.google.cloud.certificatemanager.v1." + + "ListCertificateMapEntriesResponse\"\\\202\323\344\223\002" + + "M\022K/v1/{parent=projects/*/locations/*/ce" + + "rtificateMaps/*}/certificateMapEntries\332A" + + "\006parent\022\360\001\n\026GetCertificateMapEntry\022A.goo" + + "gle.cloud.certificatemanager.v1.GetCerti" + + "ficateMapEntryRequest\0327.google.cloud.cer" + + "tificatemanager.v1.CertificateMapEntry\"Z" + + "\202\323\344\223\002M\022K/v1/{name=projects/*/locations/*" + + "/certificateMaps/*/certificateMapEntries" + + "/*}\332A\004name\022\320\002\n\031CreateCertificateMapEntry" + + "\022D.google.cloud.certificatemanager.v1.Cr" + + "eateCertificateMapEntryRequest\032\035.google." + + "longrunning.Operation\"\315\001\202\323\344\223\002d\"K/v1/{par" + + "ent=projects/*/locations/*/certificateMa" + + "ps/*}/certificateMapEntries:\025certificate" + + "_map_entry\332A5parent,certificate_map_entr" + + "y,certificate_map_entry_id\312A(\n\023Certifica" + + "teMapEntry\022\021OperationMetadata\022\322\002\n\031Update" + + "CertificateMapEntry\022D.google.cloud.certi" + + "ficatemanager.v1.UpdateCertificateMapEnt" + + "ryRequest\032\035.google.longrunning.Operation" + + "\"\317\001\202\323\344\223\002z2a/v1/{certificate_map_entry.na" + + "me=projects/*/locations/*/certificateMap" + + "s/*/certificateMapEntries/*}:\025certificat" + + "e_map_entry\332A!certificate_map_entry,upda" + + "te_mask\312A(\n\023CertificateMapEntry\022\021Operati" + + "onMetadata\022\212\002\n\031DeleteCertificateMapEntry" + + "\022D.google.cloud.certificatemanager.v1.De" + + "leteCertificateMapEntryRequest\032\035.google." + + "longrunning.Operation\"\207\001\202\323\344\223\002M*K/v1/{nam" + + "e=projects/*/locations/*/certificateMaps" + + "/*/certificateMapEntries/*}\332A\004name\312A*\n\025g" + + "oogle.protobuf.Empty\022\021OperationMetadata\022" + + "\344\001\n\025ListDnsAuthorizations\022@.google.cloud" + + ".certificatemanager.v1.ListDnsAuthorizat" + + "ionsRequest\032A.google.cloud.certificatema" + + "nager.v1.ListDnsAuthorizationsResponse\"F" + + "\202\323\344\223\0027\0225/v1/{parent=projects/*/locations" + + "/*}/dnsAuthorizations\332A\006parent\022\321\001\n\023GetDn" + + "sAuthorization\022>.google.cloud.certificat" + + "emanager.v1.GetDnsAuthorizationRequest\0324" + + ".google.cloud.certificatemanager.v1.DnsA" + + "uthorization\"D\202\323\344\223\0027\0225/v1/{name=projects" + + "/*/locations/*/dnsAuthorizations/*}\332A\004na" + + "me\022\245\002\n\026CreateDnsAuthorization\022A.google.c" + + "loud.certificatemanager.v1.CreateDnsAuth" + + "orizationRequest\032\035.google.longrunning.Op" + + "eration\"\250\001\202\323\344\223\002J\"5/v1/{parent=projects/*" + + "/locations/*}/dnsAuthorizations:\021dns_aut" + + "horization\332A-parent,dns_authorization,dn" + + "s_authorization_id\312A%\n\020DnsAuthorization\022" + + "\021OperationMetadata\022\247\002\n\026UpdateDnsAuthoriz" + + "ation\022A.google.cloud.certificatemanager." + + "v1.UpdateDnsAuthorizationRequest\032\035.googl" + + "e.longrunning.Operation\"\252\001\202\323\344\223\002\\2G/v1/{d" + + "ns_authorization.name=projects/*/locatio" + + "ns/*/dnsAuthorizations/*}:\021dns_authoriza" + + "tion\332A\035dns_authorization,update_mask\312A%\n" + + "\020DnsAuthorization\022\021OperationMetadata\022\355\001\n" + + "\026DeleteDnsAuthorization\022A.google.cloud.c" + + "ertificatemanager.v1.DeleteDnsAuthorizat" + + "ionRequest\032\035.google.longrunning.Operatio" + + "n\"q\202\323\344\223\0027*5/v1/{name=projects/*/location" + + "s/*/dnsAuthorizations/*}\332A\004name\312A*\n\025goog" + + "le.protobuf.Empty\022\021OperationMetadata\022\210\002\n" + + "\036ListCertificateIssuanceConfigs\022I.google" + + ".cloud.certificatemanager.v1.ListCertifi" + + "cateIssuanceConfigsRequest\032J.google.clou" + + "d.certificatemanager.v1.ListCertificateI" + + "ssuanceConfigsResponse\"O\202\323\344\223\002@\022>/v1/{par" + + "ent=projects/*/locations/*}/certificateI" + + "ssuanceConfigs\332A\006parent\022\365\001\n\034GetCertifica" + + "teIssuanceConfig\022G.google.cloud.certific" + + "atemanager.v1.GetCertificateIssuanceConf" + + "igRequest\032=.google.cloud.certificatemana" + + "ger.v1.CertificateIssuanceConfig\"M\202\323\344\223\002@" + + "\022>/v1/{name=projects/*/locations/*/certi" + + "ficateIssuanceConfigs/*}\332A\004name\022\347\002\n\037Crea" + + "teCertificateIssuanceConfig\022J.google.clo" + + "ud.certificatemanager.v1.CreateCertifica" + + "teIssuanceConfigRequest\032\035.google.longrun" + + "ning.Operation\"\330\001\202\323\344\223\002]\">/v1/{parent=pro" + + "jects/*/locations/*}/certificateIssuance" + + "Configs:\033certificate_issuance_config\332AAp" + + "arent,certificate_issuance_config,certif" + + "icate_issuance_config_id\312A.\n\031Certificate" + + "IssuanceConfig\022\021OperationMetadata\022\210\002\n\037De" + + "leteCertificateIssuanceConfig\022J.google.c" + + "loud.certificatemanager.v1.DeleteCertifi" + + "cateIssuanceConfigRequest\032\035.google.longr" + + "unning.Operation\"z\202\323\344\223\002@*>/v1/{name=proj" + + "ects/*/locations/*/certificateIssuanceCo" + + "nfigs/*}\332A\004name\312A*\n\025google.protobuf.Empt" + + "y\022\021OperationMetadata\032U\312A!certificatemana" + + "ger.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\213\002\n&com.goog" + + "le.cloud.certificatemanager.v1B\027Certific" + + "ateManagerProtoP\001ZTgoogle.golang.org/gen" + + "proto/googleapis/cloud/certificatemanage" + + "r/v1;certificatemanager\252\002\"Google.Cloud.C" + + "ertificateManager.V1\312\002\"Google\\Cloud\\Cert" + + "ificateManager\\V1\352\002%Google::Cloud::Certi" + + "ficateManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -558,6 +592,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -807,6 +842,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Domains", "DnsAuthorizations", + "IssuanceConfig", "State", "ProvisioningIssue", "AuthorizationAttemptInfo", @@ -956,6 +992,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMap.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMap.java index d73511098cbb..b99dad7871f7 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMap.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMap.java @@ -54,120 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CertificateMap( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - 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: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - gclbTargets_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget>(); - mutable_bitField0_ |= 0x00000002; - } - gclbTargets_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.parser(), - extensionRegistry)); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - gclbTargets_ = java.util.Collections.unmodifiableList(gclbTargets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor; @@ -203,11 +89,12 @@ public interface GclbTargetOrBuilder * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the targetHttpsProxy field is set. */ @@ -216,11 +103,12 @@ public interface GclbTargetOrBuilder * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetHttpsProxy. */ @@ -229,11 +117,12 @@ public interface GclbTargetOrBuilder * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetHttpsProxy. */ @@ -243,11 +132,12 @@ public interface GclbTargetOrBuilder * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the targetSslProxy field is set. */ @@ -256,11 +146,12 @@ public interface GclbTargetOrBuilder * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetSslProxy. */ @@ -269,11 +160,12 @@ public interface GclbTargetOrBuilder * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetSslProxy. */ @@ -283,12 +175,12 @@ public interface GclbTargetOrBuilder * * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ java.util.List @@ -297,12 +189,12 @@ public interface GclbTargetOrBuilder * * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getIpConfigs( @@ -311,12 +203,12 @@ com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getIpC * * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ int getIpConfigsCount(); @@ -324,12 +216,12 @@ com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getIpC * * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ java.util.List< @@ -340,12 +232,12 @@ com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getIpC * * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder @@ -388,79 +280,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GclbTarget( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - 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(); - targetProxyCase_ = 1; - targetProxy_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ipConfigs_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - .IpConfig>(); - mutable_bitField0_ |= 0x00000001; - } - ipConfigs_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - .parser(), - extensionRegistry)); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - targetProxyCase_ = 3; - targetProxy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - ipConfigs_ = java.util.Collections.unmodifiableList(ipConfigs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor; @@ -485,10 +304,10 @@ public interface IpConfigOrBuilder * * *
-       * An external IP address.
+       * Output only. An external IP address.
        * 
* - * string ip_address = 1; + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The ipAddress. */ @@ -497,10 +316,10 @@ public interface IpConfigOrBuilder * * *
-       * An external IP address.
+       * Output only. An external IP address.
        * 
* - * string ip_address = 1; + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for ipAddress. */ @@ -510,10 +329,10 @@ public interface IpConfigOrBuilder * * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return A list containing the ports. */ @@ -522,10 +341,10 @@ public interface IpConfigOrBuilder * * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The count of ports. */ @@ -534,10 +353,10 @@ public interface IpConfigOrBuilder * * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the element to return. * @return The ports at the given index. @@ -579,80 +398,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IpConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - 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(); - - ipAddress_ = s; - break; - } - case 24: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ports_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - ports_.addInt(input.readUInt32()); - break; - } - case 26: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - ports_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - ports_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - ports_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor; @@ -675,10 +420,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * An external IP address.
+       * Output only. An external IP address.
        * 
* - * string ip_address = 1; + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The ipAddress. */ @@ -698,10 +443,10 @@ public java.lang.String getIpAddress() { * * *
-       * An external IP address.
+       * Output only. An external IP address.
        * 
* - * string ip_address = 1; + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for ipAddress. */ @@ -724,10 +469,10 @@ public com.google.protobuf.ByteString getIpAddressBytes() { * * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return A list containing the ports. */ @@ -739,10 +484,10 @@ public java.util.List getPortsList() { * * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The count of ports. */ @@ -753,10 +498,10 @@ public int getPortsCount() { * * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the element to return. * @return The ports at the given index. @@ -792,7 +537,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < ports_.size(); i++) { output.writeUInt32NoTag(ports_.getInt(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -817,7 +562,7 @@ public int getSerializedSize() { } portsMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -836,7 +581,7 @@ public boolean equals(final java.lang.Object obj) { if (!getIpAddress().equals(other.getIpAddress())) return false; if (!getPortsList().equals(other.getPortsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -853,7 +598,7 @@ public int hashCode() { hash = (37 * hash) + PORTS_FIELD_NUMBER; hash = (53 * hash) + getPortsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -995,17 +740,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1124,7 +862,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1139,20 +877,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig parsedMessage = - null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + ipAddress_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: + { + int v = input.readUInt32(); + ensurePortsIsMutable(); + ports_.addInt(v); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensurePortsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + ports_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1163,10 +936,10 @@ public Builder mergeFrom( * * *
-         * An external IP address.
+         * Output only. An external IP address.
          * 
* - * string ip_address = 1; + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The ipAddress. */ @@ -1185,10 +958,10 @@ public java.lang.String getIpAddress() { * * *
-         * An external IP address.
+         * Output only. An external IP address.
          * 
* - * string ip_address = 1; + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for ipAddress. */ @@ -1207,10 +980,10 @@ public com.google.protobuf.ByteString getIpAddressBytes() { * * *
-         * An external IP address.
+         * Output only. An external IP address.
          * 
* - * string ip_address = 1; + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The ipAddress to set. * @return This builder for chaining. @@ -1228,10 +1001,10 @@ public Builder setIpAddress(java.lang.String value) { * * *
-         * An external IP address.
+         * Output only. An external IP address.
          * 
* - * string ip_address = 1; + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1245,10 +1018,10 @@ public Builder clearIpAddress() { * * *
-         * An external IP address.
+         * Output only. An external IP address.
          * 
* - * string ip_address = 1; + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for ipAddress to set. * @return This builder for chaining. @@ -1276,10 +1049,10 @@ private void ensurePortsIsMutable() { * * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return A list containing the ports. */ @@ -1292,10 +1065,10 @@ public java.util.List getPortsList() { * * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The count of ports. */ @@ -1306,10 +1079,10 @@ public int getPortsCount() { * * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index of the element to return. * @return The ports at the given index. @@ -1321,10 +1094,10 @@ public int getPorts(int index) { * * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param index The index to set the value at. * @param value The ports to set. @@ -1340,10 +1113,10 @@ public Builder setPorts(int index, int value) { * * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The ports to add. * @return This builder for chaining. @@ -1358,10 +1131,10 @@ public Builder addPorts(int value) { * * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param values The ports to add. * @return This builder for chaining. @@ -1376,10 +1149,10 @@ public Builder addAllPorts(java.lang.Iterable value * * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1426,7 +1199,19 @@ public IpConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IpConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1498,11 +1283,12 @@ public TargetProxyCase getTargetProxyCase() { * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the targetHttpsProxy field is set. */ @@ -1513,11 +1299,12 @@ public boolean hasTargetHttpsProxy() { * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetHttpsProxy. */ @@ -1541,11 +1328,12 @@ public java.lang.String getTargetHttpsProxy() { * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetHttpsProxy. */ @@ -1571,11 +1359,12 @@ public com.google.protobuf.ByteString getTargetHttpsProxyBytes() { * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the targetSslProxy field is set. */ @@ -1586,11 +1375,12 @@ public boolean hasTargetSslProxy() { * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetSslProxy. */ @@ -1614,11 +1404,12 @@ public java.lang.String getTargetSslProxy() { * * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetSslProxy. */ @@ -1647,12 +1438,12 @@ public com.google.protobuf.ByteString getTargetSslProxyBytes() { * * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -1664,12 +1455,12 @@ public com.google.protobuf.ByteString getTargetSslProxyBytes() { * * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -1683,12 +1474,12 @@ public com.google.protobuf.ByteString getTargetSslProxyBytes() { * * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -1699,12 +1490,12 @@ public int getIpConfigsCount() { * * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -1716,12 +1507,12 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig * * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -1753,7 +1544,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (targetProxyCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetProxy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1771,7 +1562,7 @@ public int getSerializedSize() { if (targetProxyCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetProxy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1799,7 +1590,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1826,7 +1617,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1960,19 +1751,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getIpConfigsFieldBuilder(); - } } @java.lang.Override @@ -1980,10 +1762,11 @@ public Builder clear() { super.clear(); if (ipConfigsBuilder_ == null) { ipConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + ipConfigs_ = null; ipConfigsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); targetProxyCase_ = 0; targetProxy_ = null; return this; @@ -2134,7 +1917,7 @@ public Builder mergeFrom( break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2149,19 +1932,60 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + targetProxyCase_ = 1; + targetProxy_ = s; + break; + } // case 10 + case 18: + { + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig m = + input.readMessage( + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig + .parser(), + extensionRegistry); + if (ipConfigsBuilder_ == null) { + ensureIpConfigsIsMutable(); + ipConfigs_.add(m); + } else { + ipConfigsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + targetProxyCase_ = 3; + targetProxy_ = s; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2185,11 +2009,12 @@ public Builder clearTargetProxy() { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the targetHttpsProxy field is set. */ @@ -2201,11 +2026,12 @@ public boolean hasTargetHttpsProxy() { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetHttpsProxy. */ @@ -2230,11 +2056,12 @@ public java.lang.String getTargetHttpsProxy() { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetHttpsProxy. */ @@ -2259,11 +2086,12 @@ public com.google.protobuf.ByteString getTargetHttpsProxyBytes() { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The targetHttpsProxy to set. * @return This builder for chaining. @@ -2281,11 +2109,12 @@ public Builder setTargetHttpsProxy(java.lang.String value) { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2301,11 +2130,12 @@ public Builder clearTargetHttpsProxy() { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for targetHttpsProxy to set. * @return This builder for chaining. @@ -2325,11 +2155,12 @@ public Builder setTargetHttpsProxyBytes(com.google.protobuf.ByteString value) { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the targetSslProxy field is set. */ @@ -2341,11 +2172,12 @@ public boolean hasTargetSslProxy() { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The targetSslProxy. */ @@ -2370,11 +2202,12 @@ public java.lang.String getTargetSslProxy() { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for targetSslProxy. */ @@ -2399,11 +2232,12 @@ public com.google.protobuf.ByteString getTargetSslProxyBytes() { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The targetSslProxy to set. * @return This builder for chaining. @@ -2421,11 +2255,12 @@ public Builder setTargetSslProxy(java.lang.String value) { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2441,11 +2276,12 @@ public Builder clearTargetSslProxy() { * * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for targetSslProxy to set. * @return This builder for chaining. @@ -2485,12 +2321,12 @@ private void ensureIpConfigsIsMutable() { * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List< @@ -2506,12 +2342,12 @@ private void ensureIpConfigsIsMutable() { * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getIpConfigsCount() { @@ -2525,12 +2361,12 @@ public int getIpConfigsCount() { * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getIpConfigs( @@ -2545,12 +2381,12 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setIpConfigs( @@ -2572,12 +2408,12 @@ public Builder setIpConfigs( * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setIpConfigs( @@ -2597,12 +2433,12 @@ public Builder setIpConfigs( * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addIpConfigs( @@ -2623,12 +2459,12 @@ public Builder addIpConfigs( * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addIpConfigs( @@ -2650,12 +2486,12 @@ public Builder addIpConfigs( * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addIpConfigs( @@ -2674,12 +2510,12 @@ public Builder addIpConfigs( * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addIpConfigs( @@ -2699,12 +2535,12 @@ public Builder addIpConfigs( * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllIpConfigs( @@ -2725,12 +2561,12 @@ public Builder addAllIpConfigs( * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearIpConfigs() { @@ -2747,12 +2583,12 @@ public Builder clearIpConfigs() { * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeIpConfigs(int index) { @@ -2769,12 +2605,12 @@ public Builder removeIpConfigs(int index) { * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder @@ -2785,12 +2621,12 @@ public Builder removeIpConfigs(int index) { * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder @@ -2805,12 +2641,12 @@ public Builder removeIpConfigs(int index) { * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List< @@ -2828,12 +2664,12 @@ public Builder removeIpConfigs(int index) { * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder @@ -2847,12 +2683,12 @@ public Builder removeIpConfigs(int index) { * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder @@ -2867,12 +2703,12 @@ public Builder removeIpConfigs(int index) { * * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List< @@ -2934,7 +2770,19 @@ public GclbTarget parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GclbTarget(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -3260,6 +3108,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* * @@ -3276,6 +3126,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* * @@ -3293,6 +3145,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* * @@ -3308,6 +3162,8 @@ public int getGclbTargetsCount() { * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* * @@ -3324,6 +3180,8 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget getGclbT * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* * @@ -3367,7 +3225,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(6, getUpdateTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3401,7 +3259,7 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3429,7 +3287,7 @@ public boolean equals(final java.lang.Object obj) { } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getGclbTargetsList().equals(other.getGclbTargetsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3460,7 +3318,7 @@ public int hashCode() { hash = (37 * hash) + GCLB_TARGETS_FIELD_NUMBER; hash = (53 * hash) + getGclbTargetsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3610,19 +3468,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.certificatemanager.v1.CertificateMap.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getGclbTargetsFieldBuilder(); - } } @java.lang.Override @@ -3647,10 +3496,11 @@ public Builder clear() { internalGetMutableLabels().clear(); if (gclbTargetsBuilder_ == null) { gclbTargets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + gclbTargets_ = null; gclbTargetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -3794,7 +3644,7 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateMap o } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3809,18 +3659,80 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CertificateMap parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 26 + case 34: + { + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget m = + input.readMessage( + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.parser(), + extensionRegistry); + if (gclbTargetsBuilder_ == null) { + ensureGclbTargetsIsMutable(); + gclbTargets_.add(m); + } else { + gclbTargetsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CertificateMap) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4631,6 +4543,8 @@ private void ensureGclbTargetsIsMutable() { * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4650,6 +4564,8 @@ private void ensureGclbTargetsIsMutable() { * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4668,6 +4584,8 @@ public int getGclbTargetsCount() { * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4687,6 +4605,8 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget getGclbT * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4712,6 +4632,8 @@ public Builder setGclbTargets( * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4735,6 +4657,8 @@ public Builder setGclbTargets( * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4760,6 +4684,8 @@ public Builder addGclbTargets( * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4785,6 +4711,8 @@ public Builder addGclbTargets( * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4807,6 +4735,8 @@ public Builder addGclbTargets( * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4830,6 +4760,8 @@ public Builder addGclbTargets( * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4854,6 +4786,8 @@ public Builder addAllGclbTargets( * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4875,6 +4809,8 @@ public Builder clearGclbTargets() { * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4896,6 +4832,8 @@ public Builder removeGclbTargets(int index) { * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4911,6 +4849,8 @@ public Builder removeGclbTargets(int index) { * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4930,6 +4870,8 @@ public Builder removeGclbTargets(int index) { * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4950,6 +4892,8 @@ public Builder removeGclbTargets(int index) { * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4968,6 +4912,8 @@ public Builder removeGclbTargets(int index) { * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -4987,6 +4933,8 @@ public Builder removeGclbTargets(int index) { * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* * @@ -5047,7 +4995,18 @@ public CertificateMap parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateMap(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntry.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntry.java index c3e00de2f901..a80d347f7516 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntry.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntry.java @@ -55,137 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CertificateMapEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - 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: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - matchCase_ = 5; - match_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - certificates_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - certificates_.add(s); - break; - } - case 64: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 80: - { - int rawValue = input.readEnum(); - matchCase_ = 10; - match_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - certificates_ = certificates_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor; @@ -982,7 +851,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (matchCase_ == 10) { output.writeEnum(10, ((java.lang.Integer) match_)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1033,7 +902,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, ((java.lang.Integer) match_)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1073,7 +942,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1118,7 +987,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1268,17 +1137,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.certificatemanager.v1.CertificateMapEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1458,7 +1320,7 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateMapEn break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1473,18 +1335,93 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CertificateMapEntry parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + matchCase_ = 5; + match_ = s; + break; + } // case 42 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCertificatesIsMutable(); + certificates_.add(s); + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + + break; + } // case 64 + case 74: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: + { + int rawValue = input.readEnum(); + matchCase_ = 10; + match_ = rawValue; + break; + } // case 80 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CertificateMapEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2870,7 +2807,18 @@ public CertificateMapEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateMapEntry(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapOrBuilder.java index 77f27d32d39b..39626a5d5236 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapOrBuilder.java @@ -217,6 +217,8 @@ java.lang.String getLabelsOrDefault( * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* * @@ -230,6 +232,8 @@ java.lang.String getLabelsOrDefault( * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* * @@ -242,6 +246,8 @@ java.lang.String getLabelsOrDefault( * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* * @@ -254,6 +260,8 @@ java.lang.String getLabelsOrDefault( * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* * @@ -268,6 +276,8 @@ java.lang.String getLabelsOrDefault( * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* * diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateOrBuilder.java index 440c6276e458..56b959a2959d 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateOrBuilder.java @@ -289,10 +289,10 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -304,10 +304,10 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -319,10 +319,10 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -335,10 +335,10 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequest.java new file mode 100644 index 000000000000..6ebb8da957e2 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequest.java @@ -0,0 +1,1155 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + * + * + *
+ * Request for the `CreateCertificateIssuanceConfig` method.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest} + */ +public final class CreateCertificateIssuanceConfigRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) + CreateCertificateIssuanceConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCertificateIssuanceConfigRequest.newBuilder() to construct. + private CreateCertificateIssuanceConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCertificateIssuanceConfigRequest() { + parent_ = ""; + certificateIssuanceConfigId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCertificateIssuanceConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.class, + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent resource of the certificate issuance config. Must be
+   * 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 parent resource of the certificate issuance config. Must be
+   * 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 CERTIFICATE_ISSUANCE_CONFIG_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object certificateIssuanceConfigId_; + /** + * + * + *
+   * Required. A user-provided name of the certificate config.
+   * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The certificateIssuanceConfigId. + */ + @java.lang.Override + public java.lang.String getCertificateIssuanceConfigId() { + java.lang.Object ref = certificateIssuanceConfigId_; + 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(); + certificateIssuanceConfigId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. A user-provided name of the certificate config.
+   * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for certificateIssuanceConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCertificateIssuanceConfigIdBytes() { + java.lang.Object ref = certificateIssuanceConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + certificateIssuanceConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERTIFICATE_ISSUANCE_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + certificateIssuanceConfig_; + /** + * + * + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the certificateIssuanceConfig field is set. + */ + @java.lang.Override + public boolean hasCertificateIssuanceConfig() { + return certificateIssuanceConfig_ != null; + } + /** + * + * + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The certificateIssuanceConfig. + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + getCertificateIssuanceConfig() { + return certificateIssuanceConfig_ == null + ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance() + : certificateIssuanceConfig_; + } + /** + * + * + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder + getCertificateIssuanceConfigOrBuilder() { + return getCertificateIssuanceConfig(); + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateIssuanceConfigId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, certificateIssuanceConfigId_); + } + if (certificateIssuanceConfig_ != null) { + output.writeMessage(3, getCertificateIssuanceConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateIssuanceConfigId_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateIssuanceConfigId_); + } + if (certificateIssuanceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getCertificateIssuanceConfig()); + } + size += getUnknownFields().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.certificatemanager.v1.CreateCertificateIssuanceConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest other = + (com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getCertificateIssuanceConfigId().equals(other.getCertificateIssuanceConfigId())) + return false; + if (hasCertificateIssuanceConfig() != other.hasCertificateIssuanceConfig()) return false; + if (hasCertificateIssuanceConfig()) { + if (!getCertificateIssuanceConfig().equals(other.getCertificateIssuanceConfig())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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_ISSUANCE_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getCertificateIssuanceConfigId().hashCode(); + if (hasCertificateIssuanceConfig()) { + hash = (37 * hash) + CERTIFICATE_ISSUANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCertificateIssuanceConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + 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.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + 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.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + 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.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + 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.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + 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.certificatemanager.v1.CreateCertificateIssuanceConfigRequest 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 for the `CreateCertificateIssuanceConfig` method.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.class, + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + certificateIssuanceConfigId_ = ""; + + if (certificateIssuanceConfigBuilder_ == null) { + certificateIssuanceConfig_ = null; + } else { + certificateIssuanceConfig_ = null; + certificateIssuanceConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest build() { + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + buildPartial() { + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest result = + new com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest(this); + result.parent_ = parent_; + result.certificateIssuanceConfigId_ = certificateIssuanceConfigId_; + if (certificateIssuanceConfigBuilder_ == null) { + result.certificateIssuanceConfig_ = certificateIssuanceConfig_; + } else { + result.certificateIssuanceConfig_ = certificateIssuanceConfigBuilder_.build(); + } + 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.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) { + return mergeFrom( + (com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest other) { + if (other + == com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getCertificateIssuanceConfigId().isEmpty()) { + certificateIssuanceConfigId_ = other.certificateIssuanceConfigId_; + onChanged(); + } + if (other.hasCertificateIssuanceConfig()) { + mergeCertificateIssuanceConfig(other.getCertificateIssuanceConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + certificateIssuanceConfigId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getCertificateIssuanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource of the certificate issuance config. Must be
+     * 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 parent resource of the certificate issuance config. Must be
+     * 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 parent resource of the certificate issuance config. Must be
+     * 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 parent resource of the certificate issuance config. Must be
+     * 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 parent resource of the certificate issuance config. Must be
+     * 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 certificateIssuanceConfigId_ = ""; + /** + * + * + *
+     * Required. A user-provided name of the certificate config.
+     * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The certificateIssuanceConfigId. + */ + public java.lang.String getCertificateIssuanceConfigId() { + java.lang.Object ref = certificateIssuanceConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + certificateIssuanceConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. A user-provided name of the certificate config.
+     * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for certificateIssuanceConfigId. + */ + public com.google.protobuf.ByteString getCertificateIssuanceConfigIdBytes() { + java.lang.Object ref = certificateIssuanceConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + certificateIssuanceConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. A user-provided name of the certificate config.
+     * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The certificateIssuanceConfigId to set. + * @return This builder for chaining. + */ + public Builder setCertificateIssuanceConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + certificateIssuanceConfigId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A user-provided name of the certificate config.
+     * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearCertificateIssuanceConfigId() { + + certificateIssuanceConfigId_ = getDefaultInstance().getCertificateIssuanceConfigId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A user-provided name of the certificate config.
+     * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for certificateIssuanceConfigId to set. + * @return This builder for chaining. + */ + public Builder setCertificateIssuanceConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + certificateIssuanceConfigId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + certificateIssuanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder> + certificateIssuanceConfigBuilder_; + /** + * + * + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the certificateIssuanceConfig field is set. + */ + public boolean hasCertificateIssuanceConfig() { + return certificateIssuanceConfigBuilder_ != null || certificateIssuanceConfig_ != null; + } + /** + * + * + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The certificateIssuanceConfig. + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + getCertificateIssuanceConfig() { + if (certificateIssuanceConfigBuilder_ == null) { + return certificateIssuanceConfig_ == null + ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance() + : certificateIssuanceConfig_; + } else { + return certificateIssuanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig value) { + if (certificateIssuanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + certificateIssuanceConfig_ = value; + onChanged(); + } else { + certificateIssuanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder builderForValue) { + if (certificateIssuanceConfigBuilder_ == null) { + certificateIssuanceConfig_ = builderForValue.build(); + onChanged(); + } else { + certificateIssuanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig value) { + if (certificateIssuanceConfigBuilder_ == null) { + if (certificateIssuanceConfig_ != null) { + certificateIssuanceConfig_ = + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.newBuilder( + certificateIssuanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + certificateIssuanceConfig_ = value; + } + onChanged(); + } else { + certificateIssuanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCertificateIssuanceConfig() { + if (certificateIssuanceConfigBuilder_ == null) { + certificateIssuanceConfig_ = null; + onChanged(); + } else { + certificateIssuanceConfig_ = null; + certificateIssuanceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder + getCertificateIssuanceConfigBuilder() { + + onChanged(); + return getCertificateIssuanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder + getCertificateIssuanceConfigOrBuilder() { + if (certificateIssuanceConfigBuilder_ != null) { + return certificateIssuanceConfigBuilder_.getMessageOrBuilder(); + } else { + return certificateIssuanceConfig_ == null + ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance() + : certificateIssuanceConfig_; + } + } + /** + * + * + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder> + getCertificateIssuanceConfigFieldBuilder() { + if (certificateIssuanceConfigBuilder_ == null) { + certificateIssuanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder>( + getCertificateIssuanceConfig(), getParentForChildren(), isClean()); + certificateIssuanceConfig_ = null; + } + return certificateIssuanceConfigBuilder_; + } + + @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.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) + private static final com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest(); + } + + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateIssuanceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.certificatemanager.v1.CreateCertificateIssuanceConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequestOrBuilder.java new file mode 100644 index 000000000000..f27d7a6dfd88 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface CreateCertificateIssuanceConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource of the certificate issuance config. Must be
+   * 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 parent resource of the certificate issuance config. Must be
+   * 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. A user-provided name of the certificate config.
+   * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The certificateIssuanceConfigId. + */ + java.lang.String getCertificateIssuanceConfigId(); + /** + * + * + *
+   * Required. A user-provided name of the certificate config.
+   * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for certificateIssuanceConfigId. + */ + com.google.protobuf.ByteString getCertificateIssuanceConfigIdBytes(); + + /** + * + * + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the certificateIssuanceConfig field is set. + */ + boolean hasCertificateIssuanceConfig(); + /** + * + * + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The certificateIssuanceConfig. + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getCertificateIssuanceConfig(); + /** + * + * + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder + getCertificateIssuanceConfigOrBuilder(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequest.java index d22299dd9625..92cc812dc505 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequest.java @@ -54,76 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateCertificateMapEntryRequest( - 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(); - - certificateMapEntryId_ = s; - break; - } - case 26: - { - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder subBuilder = null; - if (certificateMapEntry_ != null) { - subBuilder = certificateMapEntry_.toBuilder(); - } - certificateMapEntry_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMapEntry.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateMapEntry_); - certificateMapEntry_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor; @@ -321,7 +251,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (certificateMapEntry_ != null) { output.writeMessage(3, getCertificateMapEntry()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -339,7 +269,7 @@ public int getSerializedSize() { if (certificateMapEntry_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificateMapEntry()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -361,7 +291,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCertificateMapEntry()) { if (!getCertificateMapEntry().equals(other.getCertificateMapEntry())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -380,7 +310,7 @@ public int hashCode() { hash = (37 * hash) + CERTIFICATE_MAP_ENTRY_FIELD_NUMBER; hash = (53 * hash) + getCertificateMapEntry().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -513,17 +443,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -641,7 +564,7 @@ public Builder mergeFrom( if (other.hasCertificateMapEntry()) { mergeCertificateMapEntry(other.getCertificateMapEntry()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -656,19 +579,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + certificateMapEntryId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getCertificateMapEntryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1143,7 +1097,18 @@ public CreateCertificateMapEntryRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateMapEntryRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequest.java index 2c676c5f55bb..7c5df27eee58 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequest.java @@ -53,76 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateCertificateMapRequest( - 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(); - - certificateMapId_ = s; - break; - } - case 26: - { - com.google.cloud.certificatemanager.v1.CertificateMap.Builder subBuilder = null; - if (certificateMap_ != null) { - subBuilder = certificateMap_.toBuilder(); - } - certificateMap_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMap.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateMap_); - certificateMap_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor; @@ -320,7 +250,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (certificateMap_ != null) { output.writeMessage(3, getCertificateMap()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -338,7 +268,7 @@ public int getSerializedSize() { if (certificateMap_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificateMap()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -360,7 +290,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCertificateMap()) { if (!getCertificateMap().equals(other.getCertificateMap())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,7 +309,7 @@ public int hashCode() { hash = (37 * hash) + CERTIFICATE_MAP_FIELD_NUMBER; hash = (53 * hash) + getCertificateMap().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -511,17 +441,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -637,7 +560,7 @@ public Builder mergeFrom( if (other.hasCertificateMap()) { mergeCertificateMap(other.getCertificateMap()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -652,19 +575,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + certificateMapId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getCertificateMapFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1136,7 +1089,18 @@ public CreateCertificateMapRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateMapRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequest.java index 34ba41719494..a43b086aae81 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequest.java @@ -53,76 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateCertificateRequest( - 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(); - - certificateId_ = s; - break; - } - case 26: - { - com.google.cloud.certificatemanager.v1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); - } - certificate_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor; @@ -319,7 +249,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (certificate_ != null) { output.writeMessage(3, getCertificate()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -337,7 +267,7 @@ public int getSerializedSize() { if (certificate_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificate()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -359,7 +289,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCertificate()) { if (!getCertificate().equals(other.getCertificate())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -378,7 +308,7 @@ public int hashCode() { hash = (37 * hash) + CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getCertificate().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -508,17 +438,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.certificatemanager.v1.CreateCertificateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -632,7 +555,7 @@ public Builder mergeFrom( if (other.hasCertificate()) { mergeCertificate(other.getCertificate()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -647,19 +570,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CreateCertificateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + certificateId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getCertificateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CreateCertificateRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1128,7 +1081,18 @@ public CreateCertificateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequest.java index 812e164421e9..0392f1ee3036 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequest.java @@ -53,76 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateDnsAuthorizationRequest( - 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(); - - dnsAuthorizationId_ = s; - break; - } - case 26: - { - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder subBuilder = null; - if (dnsAuthorization_ != null) { - subBuilder = dnsAuthorization_.toBuilder(); - } - dnsAuthorization_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.DnsAuthorization.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dnsAuthorization_); - dnsAuthorization_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor; @@ -144,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent resource of the dns authorization. Must be in the format
-   * `projects/*/locations/*`.
+   * Required. The parent resource of the dns authorization. Must be in the
+   * format `projects/*/locations/*`.
    * 
* * @@ -170,8 +100,8 @@ public java.lang.String getParent() { * * *
-   * Required. The parent resource of the dns authorization. Must be in the format
-   * `projects/*/locations/*`.
+   * Required. The parent resource of the dns authorization. Must be in the
+   * format `projects/*/locations/*`.
    * 
* * @@ -320,7 +250,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dnsAuthorization_ != null) { output.writeMessage(3, getDnsAuthorization()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -338,7 +268,7 @@ public int getSerializedSize() { if (dnsAuthorization_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDnsAuthorization()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -360,7 +290,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDnsAuthorization()) { if (!getDnsAuthorization().equals(other.getDnsAuthorization())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,7 +309,7 @@ public int hashCode() { hash = (37 * hash) + DNS_AUTHORIZATION_FIELD_NUMBER; hash = (53 * hash) + getDnsAuthorization().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -511,17 +441,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -637,7 +560,7 @@ public Builder mergeFrom( if (other.hasDnsAuthorization()) { mergeDnsAuthorization(other.getDnsAuthorization()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -652,19 +575,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + dnsAuthorizationId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getDnsAuthorizationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -673,8 +627,8 @@ public Builder mergeFrom( * * *
-     * Required. The parent resource of the dns authorization. Must be in the format
-     * `projects/*/locations/*`.
+     * Required. The parent resource of the dns authorization. Must be in the
+     * format `projects/*/locations/*`.
      * 
* * @@ -698,8 +652,8 @@ public java.lang.String getParent() { * * *
-     * Required. The parent resource of the dns authorization. Must be in the format
-     * `projects/*/locations/*`.
+     * Required. The parent resource of the dns authorization. Must be in the
+     * format `projects/*/locations/*`.
      * 
* * @@ -723,8 +677,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The parent resource of the dns authorization. Must be in the format
-     * `projects/*/locations/*`.
+     * Required. The parent resource of the dns authorization. Must be in the
+     * format `projects/*/locations/*`.
      * 
* * @@ -747,8 +701,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The parent resource of the dns authorization. Must be in the format
-     * `projects/*/locations/*`.
+     * Required. The parent resource of the dns authorization. Must be in the
+     * format `projects/*/locations/*`.
      * 
* * @@ -767,8 +721,8 @@ public Builder clearParent() { * * *
-     * Required. The parent resource of the dns authorization. Must be in the format
-     * `projects/*/locations/*`.
+     * Required. The parent resource of the dns authorization. Must be in the
+     * format `projects/*/locations/*`.
      * 
* * @@ -1137,7 +1091,18 @@ public CreateDnsAuthorizationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDnsAuthorizationRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequestOrBuilder.java index 86dafc854d55..7da9222092a3 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequestOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface CreateDnsAuthorizationRequestOrBuilder * * *
-   * Required. The parent resource of the dns authorization. Must be in the format
-   * `projects/*/locations/*`.
+   * Required. The parent resource of the dns authorization. Must be in the
+   * format `projects/*/locations/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface CreateDnsAuthorizationRequestOrBuilder * * *
-   * Required. The parent resource of the dns authorization. Must be in the format
-   * `projects/*/locations/*`.
+   * Required. The parent resource of the dns authorization. Must be in the
+   * format `projects/*/locations/*`.
    * 
* * diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequest.java new file mode 100644 index 000000000000..a1b5582d4bb1 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequest.java @@ -0,0 +1,662 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + * + * + *
+ * Request for the `DeleteCertificateIssuanceConfig` method.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest} + */ +public final class DeleteCertificateIssuanceConfigRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) + DeleteCertificateIssuanceConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCertificateIssuanceConfigRequest.newBuilder() to construct. + private DeleteCertificateIssuanceConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteCertificateIssuanceConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteCertificateIssuanceConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.class, + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. A name of the certificate issuance config to delete. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * + * 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. A name of the certificate issuance config to delete. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * + * 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; + } + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().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.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest other = + (com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + 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.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + 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.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + 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.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + 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.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + 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.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest 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 for the `DeleteCertificateIssuanceConfig` method.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.class, + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest build() { + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + buildPartial() { + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest result = + new com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest(this); + result.name_ = name_; + 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.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) { + return mergeFrom( + (com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest other) { + if (other + == com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. A name of the certificate issuance config to delete. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * + * 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. A name of the certificate issuance config to delete. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * + * 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. A name of the certificate issuance config to delete. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * + * 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. A name of the certificate issuance config to delete. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * + * 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. A name of the certificate issuance config to delete. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * + * 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; + } + + @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.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) + private static final com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest(); + } + + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCertificateIssuanceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequestOrBuilder.java new file mode 100644 index 000000000000..c462d2fe53b5 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface DeleteCertificateIssuanceConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A name of the certificate issuance config to delete. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. A name of the certificate issuance config to delete. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequest.java index 4afacee82050..f43f2849485c 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequest.java @@ -53,52 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteCertificateMapEntryRequest( - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor; @@ -120,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. A name of the certificate map entry to delete. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+   * Required. A name of the certificate map entry to delete. Must be in the
+   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
    * 
* * @@ -146,8 +100,8 @@ public java.lang.String getName() { * * *
-   * Required. A name of the certificate map entry to delete. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+   * Required. A name of the certificate map entry to delete. Must be in the
+   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
    * 
* * @@ -186,7 +140,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -198,7 +152,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -215,7 +169,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -228,7 +182,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -361,17 +315,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -468,7 +415,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -483,19 +430,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -504,8 +469,8 @@ public Builder mergeFrom( * * *
-     * Required. A name of the certificate map entry to delete. Must be in the format
-     * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+     * Required. A name of the certificate map entry to delete. Must be in the
+     * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* * @@ -529,8 +494,8 @@ public java.lang.String getName() { * * *
-     * Required. A name of the certificate map entry to delete. Must be in the format
-     * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+     * Required. A name of the certificate map entry to delete. Must be in the
+     * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* * @@ -554,8 +519,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. A name of the certificate map entry to delete. Must be in the format
-     * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+     * Required. A name of the certificate map entry to delete. Must be in the
+     * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* * @@ -578,8 +543,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. A name of the certificate map entry to delete. Must be in the format
-     * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+     * Required. A name of the certificate map entry to delete. Must be in the
+     * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* * @@ -598,8 +563,8 @@ public Builder clearName() { * * *
-     * Required. A name of the certificate map entry to delete. Must be in the format
-     * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+     * Required. A name of the certificate map entry to delete. Must be in the
+     * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* * @@ -655,7 +620,18 @@ public DeleteCertificateMapEntryRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCertificateMapEntryRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.java index 3f25d2ef1d6b..c64ebfb89530 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface DeleteCertificateMapEntryRequestOrBuilder * * *
-   * Required. A name of the certificate map entry to delete. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+   * Required. A name of the certificate map entry to delete. Must be in the
+   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface DeleteCertificateMapEntryRequestOrBuilder * * *
-   * Required. A name of the certificate map entry to delete. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+   * Required. A name of the certificate map entry to delete. Must be in the
+   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
    * 
* * diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequest.java index 5965c876c119..f967b36f5e75 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteCertificateMapRequest( - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -464,7 +411,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -479,19 +426,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -650,7 +615,18 @@ public DeleteCertificateMapRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCertificateMapRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequest.java index 13771abc0b8d..5b06c6163a07 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteCertificateRequest( - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.certificatemanager.v1.DeleteCertificateRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -357,17 +311,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -460,7 +407,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -475,19 +422,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.DeleteCertificateRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -646,7 +611,18 @@ public DeleteCertificateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCertificateRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequest.java index 8e72523c651a..f298504ab478 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteDnsAuthorizationRequest( - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -464,7 +411,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -479,19 +426,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -650,7 +615,18 @@ public DeleteDnsAuthorizationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDnsAuthorizationRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorization.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorization.java index 715919b02dab..a2afbbc3eca0 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorization.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorization.java @@ -55,129 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DnsAuthorization( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - 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: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 82: - { - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder - subBuilder = null; - if (dnsResourceRecord_ != null) { - subBuilder = dnsResourceRecord_.toBuilder(); - } - dnsResourceRecord_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dnsResourceRecord_); - dnsResourceRecord_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor; @@ -326,66 +203,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DnsResourceRecord( - 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(); - - type_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - data_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor; @@ -576,7 +393,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, data_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -594,7 +411,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, data_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -614,7 +431,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getType().equals(other.getType())) return false; if (!getData().equals(other.getData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -631,7 +448,7 @@ public int hashCode() { hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -773,17 +590,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -897,7 +707,7 @@ public Builder mergeFrom( data_ = other.data_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -912,20 +722,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord parsedMessage = - null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + data_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1293,7 +1132,19 @@ public DnsResourceRecord parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DnsResourceRecord(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1617,9 +1468,10 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-   * single domain and its wildcard, e.g. authorization for `example.com` can
-   * be used to issue certificates for `example.com` and `*.example.com`.
+   * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+   * resource covers a single domain and its wildcard, e.g. authorization for
+   * `example.com` can be used to issue certificates for `example.com` and
+   * `*.example.com`.
    * 
* * @@ -1644,9 +1496,10 @@ public java.lang.String getDomain() { * * *
-   * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-   * single domain and its wildcard, e.g. authorization for `example.com` can
-   * be used to issue certificates for `example.com` and `*.example.com`.
+   * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+   * resource covers a single domain and its wildcard, e.g. authorization for
+   * `example.com` can be used to issue certificates for `example.com` and
+   * `*.example.com`.
    * 
* * @@ -1675,7 +1528,8 @@ public com.google.protobuf.ByteString getDomainBytes() { * * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* * @@ -1692,7 +1546,8 @@ public boolean hasDnsResourceRecord() { * * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* * @@ -1713,7 +1568,8 @@ public boolean hasDnsResourceRecord() { * * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* * @@ -1760,7 +1616,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dnsResourceRecord_ != null) { output.writeMessage(10, getDnsResourceRecord()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1797,7 +1653,7 @@ public int getSerializedSize() { if (dnsResourceRecord_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDnsResourceRecord()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1829,7 +1685,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDnsResourceRecord()) { if (!getDnsResourceRecord().equals(other.getDnsResourceRecord())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1862,7 +1718,7 @@ public int hashCode() { hash = (37 * hash) + DNS_RESOURCE_RECORD_FIELD_NUMBER; hash = (53 * hash) + getDnsResourceRecord().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2013,17 +1869,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.certificatemanager.v1.DnsAuthorization.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2174,7 +2023,7 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.DnsAuthorization if (other.hasDnsResourceRecord()) { mergeDnsResourceRecord(other.getDnsResourceRecord()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2189,18 +2038,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.DnsAuthorization parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + domain_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 82: + { + input.readMessage( + getDnsResourceRecordFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.DnsAuthorization) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2993,9 +2903,10 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-     * single domain and its wildcard, e.g. authorization for `example.com` can
-     * be used to issue certificates for `example.com` and `*.example.com`.
+     * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+     * resource covers a single domain and its wildcard, e.g. authorization for
+     * `example.com` can be used to issue certificates for `example.com` and
+     * `*.example.com`.
      * 
* * @@ -3019,9 +2930,10 @@ public java.lang.String getDomain() { * * *
-     * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-     * single domain and its wildcard, e.g. authorization for `example.com` can
-     * be used to issue certificates for `example.com` and `*.example.com`.
+     * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+     * resource covers a single domain and its wildcard, e.g. authorization for
+     * `example.com` can be used to issue certificates for `example.com` and
+     * `*.example.com`.
      * 
* * @@ -3045,9 +2957,10 @@ public com.google.protobuf.ByteString getDomainBytes() { * * *
-     * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-     * single domain and its wildcard, e.g. authorization for `example.com` can
-     * be used to issue certificates for `example.com` and `*.example.com`.
+     * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+     * resource covers a single domain and its wildcard, e.g. authorization for
+     * `example.com` can be used to issue certificates for `example.com` and
+     * `*.example.com`.
      * 
* * @@ -3070,9 +2983,10 @@ public Builder setDomain(java.lang.String value) { * * *
-     * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-     * single domain and its wildcard, e.g. authorization for `example.com` can
-     * be used to issue certificates for `example.com` and `*.example.com`.
+     * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+     * resource covers a single domain and its wildcard, e.g. authorization for
+     * `example.com` can be used to issue certificates for `example.com` and
+     * `*.example.com`.
      * 
* * @@ -3091,9 +3005,10 @@ public Builder clearDomain() { * * *
-     * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-     * single domain and its wildcard, e.g. authorization for `example.com` can
-     * be used to issue certificates for `example.com` and `*.example.com`.
+     * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+     * resource covers a single domain and its wildcard, e.g. authorization for
+     * `example.com` can be used to issue certificates for `example.com` and
+     * `*.example.com`.
      * 
* * @@ -3125,7 +3040,8 @@ public Builder setDomainBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* * @@ -3141,7 +3057,8 @@ public boolean hasDnsResourceRecord() { * * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* * @@ -3165,7 +3082,8 @@ public boolean hasDnsResourceRecord() { * * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* * @@ -3190,7 +3108,8 @@ public Builder setDnsResourceRecord( * * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* * @@ -3213,7 +3132,8 @@ public Builder setDnsResourceRecord( * * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* * @@ -3243,7 +3163,8 @@ public Builder mergeDnsResourceRecord( * * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* * @@ -3265,7 +3186,8 @@ public Builder clearDnsResourceRecord() { * * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* * @@ -3282,7 +3204,8 @@ public Builder clearDnsResourceRecord() { * * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* * @@ -3304,7 +3227,8 @@ public Builder clearDnsResourceRecord() { * * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* * @@ -3360,7 +3284,18 @@ public DnsAuthorization parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DnsAuthorization(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationOrBuilder.java index ebd4e880ae48..7169afff2c4f 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationOrBuilder.java @@ -216,9 +216,10 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-   * single domain and its wildcard, e.g. authorization for `example.com` can
-   * be used to issue certificates for `example.com` and `*.example.com`.
+   * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+   * resource covers a single domain and its wildcard, e.g. authorization for
+   * `example.com` can be used to issue certificates for `example.com` and
+   * `*.example.com`.
    * 
* * @@ -232,9 +233,10 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-   * single domain and its wildcard, e.g. authorization for `example.com` can
-   * be used to issue certificates for `example.com` and `*.example.com`.
+   * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+   * resource covers a single domain and its wildcard, e.g. authorization for
+   * `example.com` can be used to issue certificates for `example.com` and
+   * `*.example.com`.
    * 
* * @@ -249,7 +251,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* * @@ -263,7 +266,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* * @@ -277,7 +281,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* * diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequest.java new file mode 100644 index 000000000000..628ed9058632 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequest.java @@ -0,0 +1,661 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + * + * + *
+ * Request for the `GetCertificateIssuanceConfig` method.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest} + */ +public final class GetCertificateIssuanceConfigRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) + GetCertificateIssuanceConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCertificateIssuanceConfigRequest.newBuilder() to construct. + private GetCertificateIssuanceConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCertificateIssuanceConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCertificateIssuanceConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.class, + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. A name of the certificate issuance config to describe. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * + * 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. A name of the certificate issuance config to describe. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * + * 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; + } + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().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.certificatemanager.v1.GetCertificateIssuanceConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest other = + (com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + 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.certificatemanager.v1.GetCertificateIssuanceConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + 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.certificatemanager.v1.GetCertificateIssuanceConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + 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.certificatemanager.v1.GetCertificateIssuanceConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + 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.certificatemanager.v1.GetCertificateIssuanceConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + 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.certificatemanager.v1.GetCertificateIssuanceConfigRequest 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 for the `GetCertificateIssuanceConfig` method.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.class, + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest build() { + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + buildPartial() { + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest result = + new com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest(this); + result.name_ = name_; + 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.certificatemanager.v1.GetCertificateIssuanceConfigRequest) { + return mergeFrom( + (com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest other) { + if (other + == com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. A name of the certificate issuance config to describe. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * + * 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. A name of the certificate issuance config to describe. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * + * 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. A name of the certificate issuance config to describe. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * + * 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. A name of the certificate issuance config to describe. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * + * 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. A name of the certificate issuance config to describe. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * + * 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; + } + + @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.certificatemanager.v1.GetCertificateIssuanceConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) + private static final com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest(); + } + + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateIssuanceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.certificatemanager.v1.GetCertificateIssuanceConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequestOrBuilder.java new file mode 100644 index 000000000000..a709604674f9 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface GetCertificateIssuanceConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A name of the certificate issuance config to describe. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. A name of the certificate issuance config to describe. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequest.java index fb97a16ade67..751004287c52 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetCertificateMapEntryRequest( - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -464,7 +411,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -479,19 +426,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -650,7 +615,18 @@ public GetCertificateMapEntryRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateMapEntryRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequest.java index 6705ffe95308..469f73c4dff5 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetCertificateMapRequest( - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.certificatemanager.v1.GetCertificateMapRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -357,17 +311,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -460,7 +407,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -475,19 +422,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.GetCertificateMapRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -646,7 +611,18 @@ public GetCertificateMapRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateMapRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequest.java index 849bed95b9b3..eb50018737ab 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetCertificateRequest( - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.certificatemanager.v1.GetCertificateRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -357,17 +311,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.certificatemanager.v1.GetCertificateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -459,7 +406,7 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.GetCertificateRe name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -474,18 +421,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.GetCertificateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.GetCertificateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -643,7 +609,18 @@ public GetCertificateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequest.java index 248d5a5d988a..0b9d191b34d8 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetDnsAuthorizationRequest( - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor; @@ -119,8 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. A name of the dns authorization to describe. Must be in the format
-   * `projects/*/locations/*/dnsAuthorizations/*`.
+   * Required. A name of the dns authorization to describe. Must be in the
+   * format `projects/*/locations/*/dnsAuthorizations/*`.
    * 
* * @@ -145,8 +99,8 @@ public java.lang.String getName() { * * *
-   * Required. A name of the dns authorization to describe. Must be in the format
-   * `projects/*/locations/*/dnsAuthorizations/*`.
+   * Required. A name of the dns authorization to describe. Must be in the
+   * format `projects/*/locations/*/dnsAuthorizations/*`.
    * 
* * @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -462,7 +409,7 @@ public Builder mergeFrom( name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -477,19 +424,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -498,8 +463,8 @@ public Builder mergeFrom( * * *
-     * Required. A name of the dns authorization to describe. Must be in the format
-     * `projects/*/locations/*/dnsAuthorizations/*`.
+     * Required. A name of the dns authorization to describe. Must be in the
+     * format `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* * @@ -523,8 +488,8 @@ public java.lang.String getName() { * * *
-     * Required. A name of the dns authorization to describe. Must be in the format
-     * `projects/*/locations/*/dnsAuthorizations/*`.
+     * Required. A name of the dns authorization to describe. Must be in the
+     * format `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* * @@ -548,8 +513,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. A name of the dns authorization to describe. Must be in the format
-     * `projects/*/locations/*/dnsAuthorizations/*`.
+     * Required. A name of the dns authorization to describe. Must be in the
+     * format `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* * @@ -572,8 +537,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. A name of the dns authorization to describe. Must be in the format
-     * `projects/*/locations/*/dnsAuthorizations/*`.
+     * Required. A name of the dns authorization to describe. Must be in the
+     * format `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* * @@ -592,8 +557,8 @@ public Builder clearName() { * * *
-     * Required. A name of the dns authorization to describe. Must be in the format
-     * `projects/*/locations/*/dnsAuthorizations/*`.
+     * Required. A name of the dns authorization to describe. Must be in the
+     * format `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* * @@ -648,7 +613,18 @@ public GetDnsAuthorizationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDnsAuthorizationRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.java index 180ac93cd78b..75ac691c04de 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface GetDnsAuthorizationRequestOrBuilder * * *
-   * Required. A name of the dns authorization to describe. Must be in the format
-   * `projects/*/locations/*/dnsAuthorizations/*`.
+   * Required. A name of the dns authorization to describe. Must be in the
+   * format `projects/*/locations/*/dnsAuthorizations/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface GetDnsAuthorizationRequestOrBuilder * * *
-   * Required. A name of the dns authorization to describe. Must be in the format
-   * `projects/*/locations/*/dnsAuthorizations/*`.
+   * Required. A name of the dns authorization to describe. Must be in the
+   * format `projects/*/locations/*/dnsAuthorizations/*`.
    * 
* * diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequest.java new file mode 100644 index 000000000000..21314429f7ee --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequest.java @@ -0,0 +1,1321 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + * + * + *
+ * Request for the `ListCertificateIssuanceConfigs` method.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest} + */ +public final class ListCertificateIssuanceConfigsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) + ListCertificateIssuanceConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCertificateIssuanceConfigsRequest.newBuilder() to construct. + private ListCertificateIssuanceConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCertificateIssuanceConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCertificateIssuanceConfigsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.class, + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The project and location from which the certificate should be
+   * listed, specified 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 project and location from which the certificate should be
+   * listed, specified 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * Maximum number of certificate configs to return per call.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+   * Indicates that this is a continuation of a prior
+   * `ListCertificateIssuanceConfigs` call, and that the system should return
+   * the next page of data.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+   * Indicates that this is a continuation of a prior
+   * `ListCertificateIssuanceConfigs` call, and that the system should return
+   * the next page of data.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Filter expression to restrict the Certificates Configs returned.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filter expression to restrict the Certificates Configs returned.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * A list of Certificate Config field names used to specify the order of the
+   * returned results. The default sorting order is ascending. To specify
+   * descending order for a field, add a suffix " desc".
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * A list of Certificate Config field names used to specify the order of the
+   * returned results. The default sorting order is ascending. To specify
+   * descending order for a field, add a suffix " desc".
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().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.certificatemanager.v1.ListCertificateIssuanceConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest other = + (com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + 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.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + 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.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + 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.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + 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.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + 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.certificatemanager.v1.ListCertificateIssuanceConfigsRequest 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 for the `ListCertificateIssuanceConfigs` method.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.class, + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest build() { + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + buildPartial() { + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest result = + new com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + 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.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) { + return mergeFrom( + (com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest other) { + if (other + == com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The project and location from which the certificate should be
+     * listed, specified 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 project and location from which the certificate should be
+     * listed, specified 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 project and location from which the certificate should be
+     * listed, specified 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 project and location from which the certificate should be
+     * listed, specified 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 project and location from which the certificate should be
+     * listed, specified 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 int pageSize_; + /** + * + * + *
+     * Maximum number of certificate configs to return per call.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Maximum number of certificate configs to return per call.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number of certificate configs to return per call.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+     * Indicates that this is a continuation of a prior
+     * `ListCertificateIssuanceConfigs` call, and that the system should return
+     * the next page of data.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+     * Indicates that this is a continuation of a prior
+     * `ListCertificateIssuanceConfigs` call, and that the system should return
+     * the next page of data.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+     * Indicates that this is a continuation of a prior
+     * `ListCertificateIssuanceConfigs` call, and that the system should return
+     * the next page of data.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+     * Indicates that this is a continuation of a prior
+     * `ListCertificateIssuanceConfigs` call, and that the system should return
+     * the next page of data.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+     * Indicates that this is a continuation of a prior
+     * `ListCertificateIssuanceConfigs` call, and that the system should return
+     * the next page of data.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filter expression to restrict the Certificates Configs returned.
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter expression to restrict the Certificates Configs returned.
+     * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter expression to restrict the Certificates Configs returned.
+     * 
+ * + * string filter = 4; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter expression to restrict the Certificates Configs returned.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter expression to restrict the Certificates Configs returned.
+     * 
+ * + * string filter = 4; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * A list of Certificate Config field names used to specify the order of the
+     * returned results. The default sorting order is ascending. To specify
+     * descending order for a field, add a suffix " desc".
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A list of Certificate Config field names used to specify the order of the
+     * returned results. The default sorting order is ascending. To specify
+     * descending order for a field, add a suffix " desc".
+     * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A list of Certificate Config field names used to specify the order of the
+     * returned results. The default sorting order is ascending. To specify
+     * descending order for a field, add a suffix " desc".
+     * 
+ * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of Certificate Config field names used to specify the order of the
+     * returned results. The default sorting order is ascending. To specify
+     * descending order for a field, add a suffix " desc".
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of Certificate Config field names used to specify the order of the
+     * returned results. The default sorting order is ascending. To specify
+     * descending order for a field, add a suffix " desc".
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = 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.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) + private static final com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest(); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateIssuanceConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.certificatemanager.v1.ListCertificateIssuanceConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..3638ddcf7625 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequestOrBuilder.java @@ -0,0 +1,154 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface ListCertificateIssuanceConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project and location from which the certificate should be
+   * listed, specified 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 project and location from which the certificate should be
+   * listed, specified 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(); + + /** + * + * + *
+   * Maximum number of certificate configs to return per call.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+   * Indicates that this is a continuation of a prior
+   * `ListCertificateIssuanceConfigs` call, and that the system should return
+   * the next page of data.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+   * Indicates that this is a continuation of a prior
+   * `ListCertificateIssuanceConfigs` call, and that the system should return
+   * the next page of data.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter expression to restrict the Certificates Configs returned.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filter expression to restrict the Certificates Configs returned.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * A list of Certificate Config field names used to specify the order of the
+   * returned results. The default sorting order is ascending. To specify
+   * descending order for a field, add a suffix " desc".
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * A list of Certificate Config field names used to specify the order of the
+   * returned results. The default sorting order is ascending. To specify
+   * descending order for a field, add a suffix " desc".
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponse.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponse.java new file mode 100644 index 000000000000..78ffce677ae5 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponse.java @@ -0,0 +1,1496 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + * + * + *
+ * Response for the `ListCertificateIssuanceConfigs` method.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse} + */ +public final class ListCertificateIssuanceConfigsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) + ListCertificateIssuanceConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCertificateIssuanceConfigsResponse.newBuilder() to construct. + private ListCertificateIssuanceConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCertificateIssuanceConfigsResponse() { + certificateIssuanceConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCertificateIssuanceConfigsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.class, + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.Builder + .class); + } + + public static final int CERTIFICATE_ISSUANCE_CONFIGS_FIELD_NUMBER = 1; + private java.util.List + certificateIssuanceConfigs_; + /** + * + * + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getCertificateIssuanceConfigsList() { + return certificateIssuanceConfigs_; + } + /** + * + * + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder> + getCertificateIssuanceConfigsOrBuilderList() { + return certificateIssuanceConfigs_; + } + /** + * + * + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + @java.lang.Override + public int getCertificateIssuanceConfigsCount() { + return certificateIssuanceConfigs_.size(); + } + /** + * + * + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + getCertificateIssuanceConfigs(int index) { + return certificateIssuanceConfigs_.get(index); + } + /** + * + * + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder + getCertificateIssuanceConfigsOrBuilder(int index) { + return certificateIssuanceConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + 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 { + for (int i = 0; i < certificateIssuanceConfigs_.size(); i++) { + output.writeMessage(1, certificateIssuanceConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < certificateIssuanceConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, certificateIssuanceConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().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.certificatemanager.v1.ListCertificateIssuanceConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse other = + (com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) obj; + + if (!getCertificateIssuanceConfigsList().equals(other.getCertificateIssuanceConfigsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCertificateIssuanceConfigsCount() > 0) { + hash = (37 * hash) + CERTIFICATE_ISSUANCE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getCertificateIssuanceConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + 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.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + 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.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + 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.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + 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.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + 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.certificatemanager.v1.ListCertificateIssuanceConfigsResponse 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; + } + /** + * + * + *
+   * Response for the `ListCertificateIssuanceConfigs` method.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.class, + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (certificateIssuanceConfigsBuilder_ == null) { + certificateIssuanceConfigs_ = java.util.Collections.emptyList(); + } else { + certificateIssuanceConfigs_ = null; + certificateIssuanceConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto + .internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse build() { + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + buildPartial() { + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse result = + new com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse(this); + int from_bitField0_ = bitField0_; + if (certificateIssuanceConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + certificateIssuanceConfigs_ = + java.util.Collections.unmodifiableList(certificateIssuanceConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.certificateIssuanceConfigs_ = certificateIssuanceConfigs_; + } else { + result.certificateIssuanceConfigs_ = certificateIssuanceConfigsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + 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.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) { + return mergeFrom( + (com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse other) { + if (other + == com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + .getDefaultInstance()) return this; + if (certificateIssuanceConfigsBuilder_ == null) { + if (!other.certificateIssuanceConfigs_.isEmpty()) { + if (certificateIssuanceConfigs_.isEmpty()) { + certificateIssuanceConfigs_ = other.certificateIssuanceConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.addAll(other.certificateIssuanceConfigs_); + } + onChanged(); + } + } else { + if (!other.certificateIssuanceConfigs_.isEmpty()) { + if (certificateIssuanceConfigsBuilder_.isEmpty()) { + certificateIssuanceConfigsBuilder_.dispose(); + certificateIssuanceConfigsBuilder_ = null; + certificateIssuanceConfigs_ = other.certificateIssuanceConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + certificateIssuanceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCertificateIssuanceConfigsFieldBuilder() + : null; + } else { + certificateIssuanceConfigsBuilder_.addAllMessages(other.certificateIssuanceConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig m = + input.readMessage( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.parser(), + extensionRegistry); + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.add(m); + } else { + certificateIssuanceConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + certificateIssuanceConfigs_ = java.util.Collections.emptyList(); + + private void ensureCertificateIssuanceConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + certificateIssuanceConfigs_ = + new java.util.ArrayList< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig>( + certificateIssuanceConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder> + certificateIssuanceConfigsBuilder_; + + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public java.util.List + getCertificateIssuanceConfigsList() { + if (certificateIssuanceConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(certificateIssuanceConfigs_); + } else { + return certificateIssuanceConfigsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public int getCertificateIssuanceConfigsCount() { + if (certificateIssuanceConfigsBuilder_ == null) { + return certificateIssuanceConfigs_.size(); + } else { + return certificateIssuanceConfigsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + getCertificateIssuanceConfigs(int index) { + if (certificateIssuanceConfigsBuilder_ == null) { + return certificateIssuanceConfigs_.get(index); + } else { + return certificateIssuanceConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public Builder setCertificateIssuanceConfigs( + int index, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig value) { + if (certificateIssuanceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.set(index, value); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public Builder setCertificateIssuanceConfigs( + int index, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder builderForValue) { + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public Builder addCertificateIssuanceConfigs( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig value) { + if (certificateIssuanceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.add(value); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public Builder addCertificateIssuanceConfigs( + int index, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig value) { + if (certificateIssuanceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.add(index, value); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public Builder addCertificateIssuanceConfigs( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder builderForValue) { + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.add(builderForValue.build()); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public Builder addCertificateIssuanceConfigs( + int index, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder builderForValue) { + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public Builder addAllCertificateIssuanceConfigs( + java.lang.Iterable< + ? extends com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig> + values) { + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateIssuanceConfigs_); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public Builder clearCertificateIssuanceConfigs() { + if (certificateIssuanceConfigsBuilder_ == null) { + certificateIssuanceConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public Builder removeCertificateIssuanceConfigs(int index) { + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.remove(index); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder + getCertificateIssuanceConfigsBuilder(int index) { + return getCertificateIssuanceConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder + getCertificateIssuanceConfigsOrBuilder(int index) { + if (certificateIssuanceConfigsBuilder_ == null) { + return certificateIssuanceConfigs_.get(index); + } else { + return certificateIssuanceConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder> + getCertificateIssuanceConfigsOrBuilderList() { + if (certificateIssuanceConfigsBuilder_ != null) { + return certificateIssuanceConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(certificateIssuanceConfigs_); + } + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder + addCertificateIssuanceConfigsBuilder() { + return getCertificateIssuanceConfigsFieldBuilder() + .addBuilder( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder + addCertificateIssuanceConfigsBuilder(int index) { + return getCertificateIssuanceConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + public java.util.List + getCertificateIssuanceConfigsBuilderList() { + return getCertificateIssuanceConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder> + getCertificateIssuanceConfigsFieldBuilder() { + if (certificateIssuanceConfigsBuilder_ == null) { + certificateIssuanceConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder>( + certificateIssuanceConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + certificateIssuanceConfigs_ = null; + } + return certificateIssuanceConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) + private static final com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse(); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateIssuanceConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.certificatemanager.v1.ListCertificateIssuanceConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponseOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..5a787552eb47 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponseOrBuilder.java @@ -0,0 +1,171 @@ +/* + * 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/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface ListCertificateIssuanceConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + java.util.List + getCertificateIssuanceConfigsList(); + /** + * + * + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getCertificateIssuanceConfigs( + int index); + /** + * + * + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + int getCertificateIssuanceConfigsCount(); + /** + * + * + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + java.util.List< + ? extends com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder> + getCertificateIssuanceConfigsOrBuilderList(); + /** + * + * + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + * + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder + getCertificateIssuanceConfigsOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequest.java index e0623b7d96c6..4607760acf2a 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequest.java @@ -56,78 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCertificateMapEntriesRequest( - 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor; @@ -149,8 +77,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project, location and certificate map from which the certificate map
-   * entries should be listed, specified in the format
+   * Required. The project, location and certificate map from which the
+   * certificate map entries should be listed, specified in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* @@ -176,8 +104,8 @@ public java.lang.String getParent() { * * *
-   * Required. The project, location and certificate map from which the certificate map
-   * entries should be listed, specified in the format
+   * Required. The project, location and certificate map from which the
+   * certificate map entries should be listed, specified in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* @@ -407,7 +335,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -431,7 +359,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -452,7 +380,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -473,7 +401,7 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -606,17 +534,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -740,7 +661,7 @@ public Builder mergeFrom( orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -755,19 +676,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -776,8 +739,8 @@ public Builder mergeFrom( * * *
-     * Required. The project, location and certificate map from which the certificate map
-     * entries should be listed, specified in the format
+     * Required. The project, location and certificate map from which the
+     * certificate map entries should be listed, specified in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* @@ -802,8 +765,8 @@ public java.lang.String getParent() { * * *
-     * Required. The project, location and certificate map from which the certificate map
-     * entries should be listed, specified in the format
+     * Required. The project, location and certificate map from which the
+     * certificate map entries should be listed, specified in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* @@ -828,8 +791,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project, location and certificate map from which the certificate map
-     * entries should be listed, specified in the format
+     * Required. The project, location and certificate map from which the
+     * certificate map entries should be listed, specified in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* @@ -853,8 +816,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project, location and certificate map from which the certificate map
-     * entries should be listed, specified in the format
+     * Required. The project, location and certificate map from which the
+     * certificate map entries should be listed, specified in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* @@ -874,8 +837,8 @@ public Builder clearParent() { * * *
-     * Required. The project, location and certificate map from which the certificate map
-     * entries should be listed, specified in the format
+     * Required. The project, location and certificate map from which the
+     * certificate map entries should be listed, specified in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* @@ -1336,7 +1299,18 @@ public ListCertificateMapEntriesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateMapEntriesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequestOrBuilder.java index 78933c786e87..35ba6f22e2f6 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequestOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface ListCertificateMapEntriesRequestOrBuilder * * *
-   * Required. The project, location and certificate map from which the certificate map
-   * entries should be listed, specified in the format
+   * Required. The project, location and certificate map from which the
+   * certificate map entries should be listed, specified in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* @@ -43,8 +43,8 @@ public interface ListCertificateMapEntriesRequestOrBuilder * * *
-   * Required. The project, location and certificate map from which the certificate map
-   * entries should be listed, specified in the format
+   * Required. The project, location and certificate map from which the
+   * certificate map entries should be listed, specified in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponse.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponse.java index c054772df8ed..7257a070f104 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponse.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponse.java @@ -55,83 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCertificateMapEntriesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificateMapEntries_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.CertificateMapEntry>(); - mutable_bitField0_ |= 0x00000001; - } - certificateMapEntries_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMapEntry.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - certificateMapEntries_ = java.util.Collections.unmodifiableList(certificateMapEntries_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor; @@ -368,7 +291,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -393,7 +316,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -413,7 +336,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCertificateMapEntriesList().equals(other.getCertificateMapEntriesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -434,7 +357,7 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -567,19 +490,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCertificateMapEntriesFieldBuilder(); - } } @java.lang.Override @@ -587,10 +501,11 @@ public Builder clear() { super.clear(); if (certificateMapEntriesBuilder_ == null) { certificateMapEntries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + certificateMapEntries_ = null; certificateMapEntriesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -736,7 +651,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -751,19 +666,58 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.certificatemanager.v1.CertificateMapEntry m = + input.readMessage( + com.google.cloud.certificatemanager.v1.CertificateMapEntry.parser(), + extensionRegistry); + if (certificateMapEntriesBuilder_ == null) { + ensureCertificateMapEntriesIsMutable(); + certificateMapEntries_.add(m); + } else { + certificateMapEntriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1495,7 +1449,18 @@ public ListCertificateMapEntriesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateMapEntriesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequest.java index e61ecba2f8f0..bfdb1a38d452 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequest.java @@ -55,78 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCertificateMapsRequest( - 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor; @@ -148,8 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project and location from which the certificate maps should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate maps should
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -174,8 +102,8 @@ public java.lang.String getParent() { * * *
-   * Required. The project and location from which the certificate maps should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate maps should
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -399,7 +327,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -423,7 +351,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -444,7 +372,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -465,7 +393,7 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -597,17 +525,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -727,7 +648,7 @@ public Builder mergeFrom( orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -742,19 +663,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -763,8 +726,8 @@ public Builder mergeFrom( * * *
-     * Required. The project and location from which the certificate maps should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate maps should
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -788,8 +751,8 @@ public java.lang.String getParent() { * * *
-     * Required. The project and location from which the certificate maps should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate maps should
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -813,8 +776,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project and location from which the certificate maps should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate maps should
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -837,8 +800,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project and location from which the certificate maps should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate maps should
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -857,8 +820,8 @@ public Builder clearParent() { * * *
-     * Required. The project and location from which the certificate maps should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate maps should
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -1303,7 +1266,18 @@ public ListCertificateMapsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateMapsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequestOrBuilder.java index 42e31486d5c7..437a53007404 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequestOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface ListCertificateMapsRequestOrBuilder * * *
-   * Required. The project and location from which the certificate maps should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate maps should
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface ListCertificateMapsRequestOrBuilder * * *
-   * Required. The project and location from which the certificate maps should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate maps should
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponse.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponse.java index e5447d47a881..37fe497814ba 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponse.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponse.java @@ -54,83 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCertificateMapsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificateMaps_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.CertificateMap>(); - mutable_bitField0_ |= 0x00000001; - } - certificateMaps_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMap.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - certificateMaps_ = java.util.Collections.unmodifiableList(certificateMaps_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor; @@ -354,7 +277,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -377,7 +300,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -396,7 +319,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCertificateMapsList().equals(other.getCertificateMapsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -417,7 +340,7 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -549,19 +472,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCertificateMapsFieldBuilder(); - } } @java.lang.Override @@ -569,10 +483,11 @@ public Builder clear() { super.clear(); if (certificateMapsBuilder_ == null) { certificateMaps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + certificateMaps_ = null; certificateMapsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -716,7 +631,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -731,19 +646,58 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.certificatemanager.v1.CertificateMap m = + input.readMessage( + com.google.cloud.certificatemanager.v1.CertificateMap.parser(), + extensionRegistry); + if (certificateMapsBuilder_ == null) { + ensureCertificateMapsIsMutable(); + certificateMaps_.add(m); + } else { + certificateMapsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1449,7 +1403,18 @@ public ListCertificateMapsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateMapsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequest.java index 08841c2fb767..f362ce03396d 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequest.java @@ -55,78 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCertificatesRequest( - 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_descriptor; @@ -148,8 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project and location from which the certificate should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate should be
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -174,8 +102,8 @@ public java.lang.String getParent() { * * *
-   * Required. The project and location from which the certificate should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate should be
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -399,7 +327,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -423,7 +351,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -444,7 +372,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -465,7 +393,7 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -595,17 +523,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.certificatemanager.v1.ListCertificatesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -724,7 +645,7 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListCertificates orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -739,19 +660,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificatesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificatesRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -760,8 +723,8 @@ public Builder mergeFrom( * * *
-     * Required. The project and location from which the certificate should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate should be
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -785,8 +748,8 @@ public java.lang.String getParent() { * * *
-     * Required. The project and location from which the certificate should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate should be
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -810,8 +773,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project and location from which the certificate should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate should be
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -834,8 +797,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project and location from which the certificate should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate should be
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -854,8 +817,8 @@ public Builder clearParent() { * * *
-     * Required. The project and location from which the certificate should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate should be
+     * listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -1300,7 +1263,18 @@ public ListCertificatesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificatesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequestOrBuilder.java index 48ed00ef5698..2a9071a636c5 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequestOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface ListCertificatesRequestOrBuilder * * *
-   * Required. The project and location from which the certificate should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate should be
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface ListCertificatesRequestOrBuilder * * *
-   * Required. The project and location from which the certificate should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate should be
+   * listed, specified in the format `projects/*/locations/*`.
    * 
* * diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponse.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponse.java index 514575f04186..4f2fb338795d 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponse.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponse.java @@ -54,82 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListCertificatesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificates_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - certificates_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - certificates_ = java.util.Collections.unmodifiableList(certificates_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor; @@ -352,7 +276,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -375,7 +299,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -394,7 +318,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCertificatesList().equals(other.getCertificatesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -415,7 +339,7 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -545,19 +469,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.certificatemanager.v1.ListCertificatesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCertificatesFieldBuilder(); - } } @java.lang.Override @@ -565,10 +480,11 @@ public Builder clear() { super.clear(); if (certificatesBuilder_ == null) { certificates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + certificates_ = null; certificatesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -710,7 +626,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -725,19 +641,58 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificatesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.certificatemanager.v1.Certificate m = + input.readMessage( + com.google.cloud.certificatemanager.v1.Certificate.parser(), + extensionRegistry); + if (certificatesBuilder_ == null) { + ensureCertificatesIsMutable(); + certificates_.add(m); + } else { + certificatesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificatesResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1420,7 +1375,18 @@ public ListCertificatesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificatesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequest.java index 8c0cd6b6195a..dd1b4cf92454 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequest.java @@ -55,78 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListDnsAuthorizationsRequest( - 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor; @@ -148,8 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project and location from which the dns authorizations should be
-   * listed, specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the dns authorizations should
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -174,8 +102,8 @@ public java.lang.String getParent() { * * *
-   * Required. The project and location from which the dns authorizations should be
-   * listed, specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the dns authorizations should
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -399,7 +327,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -423,7 +351,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -444,7 +372,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -465,7 +393,7 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -597,17 +525,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -729,7 +650,7 @@ public Builder mergeFrom( orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -744,19 +665,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -765,8 +728,8 @@ public Builder mergeFrom( * * *
-     * Required. The project and location from which the dns authorizations should be
-     * listed, specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the dns authorizations should
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -790,8 +753,8 @@ public java.lang.String getParent() { * * *
-     * Required. The project and location from which the dns authorizations should be
-     * listed, specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the dns authorizations should
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -815,8 +778,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project and location from which the dns authorizations should be
-     * listed, specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the dns authorizations should
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -839,8 +802,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project and location from which the dns authorizations should be
-     * listed, specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the dns authorizations should
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -859,8 +822,8 @@ public Builder clearParent() { * * *
-     * Required. The project and location from which the dns authorizations should be
-     * listed, specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the dns authorizations should
+     * be listed, specified in the format `projects/*/locations/*`.
      * 
* * @@ -1305,7 +1268,18 @@ public ListDnsAuthorizationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDnsAuthorizationsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequestOrBuilder.java index 6fec350fd742..2bd8f3064848 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequestOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface ListDnsAuthorizationsRequestOrBuilder * * *
-   * Required. The project and location from which the dns authorizations should be
-   * listed, specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the dns authorizations should
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface ListDnsAuthorizationsRequestOrBuilder * * *
-   * Required. The project and location from which the dns authorizations should be
-   * listed, specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the dns authorizations should
+   * be listed, specified in the format `projects/*/locations/*`.
    * 
* * diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponse.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponse.java index cf50b1139e53..b4d992a685c9 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponse.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponse.java @@ -54,83 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListDnsAuthorizationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dnsAuthorizations_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.DnsAuthorization>(); - mutable_bitField0_ |= 0x00000001; - } - dnsAuthorizations_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.DnsAuthorization.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dnsAuthorizations_ = java.util.Collections.unmodifiableList(dnsAuthorizations_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor; @@ -360,7 +283,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -384,7 +307,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -403,7 +326,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDnsAuthorizationsList().equals(other.getDnsAuthorizationsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -424,7 +347,7 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -556,19 +479,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDnsAuthorizationsFieldBuilder(); - } } @java.lang.Override @@ -576,10 +490,11 @@ public Builder clear() { super.clear(); if (dnsAuthorizationsBuilder_ == null) { dnsAuthorizations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dnsAuthorizations_ = null; dnsAuthorizationsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -723,7 +638,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -738,19 +653,58 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.certificatemanager.v1.DnsAuthorization m = + input.readMessage( + com.google.cloud.certificatemanager.v1.DnsAuthorization.parser(), + extensionRegistry); + if (dnsAuthorizationsBuilder_ == null) { + ensureDnsAuthorizationsIsMutable(); + dnsAuthorizations_.add(m); + } else { + dnsAuthorizationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1460,7 +1414,18 @@ public ListDnsAuthorizationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDnsAuthorizationsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadata.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadata.java index 855a21f71ff4..559647831c47 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadata.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadata.java @@ -55,108 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OperationMetadata( - 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.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor; @@ -419,8 +317,9 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
    * Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6; @@ -516,7 +415,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -546,7 +445,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -575,7 +474,7 @@ public boolean equals(final java.lang.Object obj) { if (!getStatusMessage().equals(other.getStatusMessage())) return false; if (getRequestedCancellation() != other.getRequestedCancellation()) return false; if (!getApiVersion().equals(other.getApiVersion())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -604,7 +503,7 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -734,17 +633,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.certificatemanager.v1.OperationMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -889,7 +781,7 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.OperationMetadat apiVersion_ = other.apiVersion_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -904,18 +796,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.OperationMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1606,8 +1553,9 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6; @@ -1624,8 +1572,9 @@ public boolean getRequestedCancellation() { *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6; @@ -1645,8 +1594,9 @@ public Builder setRequestedCancellation(boolean value) { *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6; @@ -1798,7 +1748,18 @@ public OperationMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadataOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadataOrBuilder.java index a4039e69a908..d9471b8906c5 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadataOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadataOrBuilder.java @@ -174,8 +174,9 @@ public interface OperationMetadataOrBuilder *
    * Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequest.java index c89e72744917..4611f42395c1 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequest.java @@ -51,77 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateCertificateMapEntryRequest( - 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.certificatemanager.v1.CertificateMapEntry.Builder subBuilder = null; - if (certificateMapEntry_ != null) { - subBuilder = certificateMapEntry_.toBuilder(); - } - certificateMapEntry_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMapEntry.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateMapEntry_); - certificateMapEntry_ = 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor; @@ -198,8 +127,8 @@ public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificate * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -216,8 +145,8 @@ public boolean hasUpdateMask() { * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -234,8 +163,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -267,7 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -282,7 +211,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -306,7 +235,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,7 +254,7 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -458,17 +387,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -586,7 +508,7 @@ public Builder mergeFrom( if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -601,19 +523,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getCertificateMapEntryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -836,8 +783,8 @@ public Builder clearCertificateMapEntry() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -853,8 +800,8 @@ public boolean hasUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -876,8 +823,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -901,8 +848,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -923,8 +870,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -950,8 +897,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -973,8 +920,8 @@ public Builder clearUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -990,8 +937,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -1011,8 +958,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -1071,7 +1018,18 @@ public UpdateCertificateMapEntryRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateMapEntryRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequestOrBuilder.java index 8276f48b7a18..2170c961f292 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequestOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequestOrBuilder.java @@ -69,8 +69,8 @@ public interface UpdateCertificateMapEntryRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -84,8 +84,8 @@ public interface UpdateCertificateMapEntryRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -99,8 +99,8 @@ public interface UpdateCertificateMapEntryRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequest.java index 5ef368587279..023c2893f0c0 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequest.java @@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateCertificateMapRequest( - 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.certificatemanager.v1.CertificateMap.Builder subBuilder = null; - if (certificateMap_ != null) { - subBuilder = certificateMap_.toBuilder(); - } - certificateMap_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMap.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateMap_); - certificateMap_ = 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor; @@ -197,8 +126,8 @@ public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMap() * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -215,8 +144,8 @@ public boolean hasUpdateMask() { * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -233,8 +162,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -266,7 +195,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -281,7 +210,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -305,7 +234,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,7 +253,7 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -456,17 +385,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -582,7 +504,7 @@ public Builder mergeFrom( if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -597,19 +519,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCertificateMapFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -830,8 +776,8 @@ public Builder clearCertificateMap() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -847,8 +793,8 @@ public boolean hasUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -870,8 +816,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -895,8 +841,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -917,8 +863,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -944,8 +890,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -967,8 +913,8 @@ public Builder clearUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -984,8 +930,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -1005,8 +951,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -1064,7 +1010,18 @@ public UpdateCertificateMapRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateMapRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequestOrBuilder.java index afd435e3c724..619b5fc1ef80 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequestOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequestOrBuilder.java @@ -68,8 +68,8 @@ public interface UpdateCertificateMapRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -83,8 +83,8 @@ public interface UpdateCertificateMapRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -98,8 +98,8 @@ public interface UpdateCertificateMapRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequest.java index ec066dc3ff6d..c94e25041843 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequest.java @@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateCertificateRequest( - 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.certificatemanager.v1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); - } - certificate_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor; @@ -196,8 +125,8 @@ public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificat * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -214,8 +143,8 @@ public boolean hasUpdateMask() { * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -232,8 +161,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -265,7 +194,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -280,7 +209,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -304,7 +233,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,7 +252,7 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -453,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -577,7 +499,7 @@ public Builder mergeFrom( if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -592,19 +514,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCertificateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.UpdateCertificateRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -822,8 +768,8 @@ public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificat * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -839,8 +785,8 @@ public boolean hasUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -862,8 +808,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -887,8 +833,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -909,8 +855,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -936,8 +882,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -959,8 +905,8 @@ public Builder clearUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -976,8 +922,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -997,8 +943,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -1056,7 +1002,18 @@ public UpdateCertificateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequestOrBuilder.java index 40983ec9b9e9..2c58258d3fed 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequestOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequestOrBuilder.java @@ -68,8 +68,8 @@ public interface UpdateCertificateRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -83,8 +83,8 @@ public interface UpdateCertificateRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -98,8 +98,8 @@ public interface UpdateCertificateRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequest.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequest.java index 67cee5d6f4cc..ef9052732c6a 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequest.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequest.java @@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateDnsAuthorizationRequest( - 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.certificatemanager.v1.DnsAuthorization.Builder subBuilder = null; - if (dnsAuthorization_ != null) { - subBuilder = dnsAuthorization_.toBuilder(); - } - dnsAuthorization_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.DnsAuthorization.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dnsAuthorization_); - dnsAuthorization_ = 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.certificatemanager.v1.CertificateManagerProto .internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor; @@ -197,8 +126,8 @@ public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorizati * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -215,8 +144,8 @@ public boolean hasUpdateMask() { * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -233,8 +162,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -266,7 +195,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -281,7 +210,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -305,7 +234,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,7 +253,7 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -456,17 +385,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -582,7 +504,7 @@ public Builder mergeFrom( if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -597,19 +519,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDnsAuthorizationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -831,8 +778,8 @@ public Builder clearDnsAuthorization() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -848,8 +795,8 @@ public boolean hasUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -871,8 +818,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -896,8 +843,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -918,8 +865,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -945,8 +892,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -968,8 +915,8 @@ public Builder clearUpdateMask() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -985,8 +932,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -1006,8 +953,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* @@ -1065,7 +1012,18 @@ public UpdateDnsAuthorizationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateDnsAuthorizationRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequestOrBuilder.java index 7a82c9b44db4..ed1f39952934 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequestOrBuilder.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequestOrBuilder.java @@ -68,8 +68,8 @@ public interface UpdateDnsAuthorizationRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -83,8 +83,8 @@ public interface UpdateDnsAuthorizationRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* @@ -98,8 +98,8 @@ public interface UpdateDnsAuthorizationRequestOrBuilder * * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_issuance_config.proto b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_issuance_config.proto new file mode 100644 index 000000000000..629cb5944f93 --- /dev/null +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_issuance_config.proto @@ -0,0 +1,200 @@ +// Copyright 2022 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.certificatemanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.CertificateManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1;certificatemanager"; +option java_multiple_files = true; +option java_outer_classname = "CertificateIssuanceConfigProto"; +option java_package = "com.google.cloud.certificatemanager.v1"; +option php_namespace = "Google\\Cloud\\CertificateManager\\V1"; +option ruby_package = "Google::Cloud::CertificateManager::V1"; +option (google.api.resource_definition) = { + type: "privateca.googleapis.com/CaPool" + pattern: "projects/{project}/locations/{location}/caPools/{ca_pool}" +}; + +// Request for the `ListCertificateIssuanceConfigs` method. +message ListCertificateIssuanceConfigsRequest { + // Required. The project and location from which the certificate should be + // listed, specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Maximum number of certificate configs to return per call. + int32 page_size = 2; + + // The value returned by the last `ListCertificateIssuanceConfigsResponse`. + // Indicates that this is a continuation of a prior + // `ListCertificateIssuanceConfigs` call, and that the system should return + // the next page of data. + string page_token = 3; + + // Filter expression to restrict the Certificates Configs returned. + string filter = 4; + + // A list of Certificate Config field names used to specify the order of the + // returned results. The default sorting order is ascending. To specify + // descending order for a field, add a suffix " desc". + string order_by = 5; +} + +// Response for the `ListCertificateIssuanceConfigs` method. +message ListCertificateIssuanceConfigsResponse { + // A list of certificate configs for the parent resource. + repeated CertificateIssuanceConfig certificate_issuance_configs = 1; + + // If there might be more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request for the `GetCertificateIssuanceConfig` method. +message GetCertificateIssuanceConfigRequest { + // Required. A name of the certificate issuance config to describe. Must be in + // the format `projects/*/locations/*/certificateIssuanceConfigs/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "certificatemanager.googleapis.com/CertificateIssuanceConfig" + } + ]; +} + +// Request for the `CreateCertificateIssuanceConfig` method. +message CreateCertificateIssuanceConfigRequest { + // Required. The parent resource of the certificate issuance config. Must be + // in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. A user-provided name of the certificate config. + string certificate_issuance_config_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. A definition of the certificate issuance config to create. + CertificateIssuanceConfig certificate_issuance_config = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the `DeleteCertificateIssuanceConfig` method. +message DeleteCertificateIssuanceConfigRequest { + // Required. A name of the certificate issuance config to delete. Must be in + // the format `projects/*/locations/*/certificateIssuanceConfigs/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "certificatemanager.googleapis.com/CertificateIssuanceConfig" + } + ]; +} + +// CertificateIssuanceConfig specifies how to issue and manage a certificate. +message CertificateIssuanceConfig { + option (google.api.resource) = { + type: "certificatemanager.googleapis.com/CertificateIssuanceConfig" + pattern: "projects/{project}/locations/{location}/certificateIssuanceConfigs/{certificate_issuance_config}" + }; + + // The CA that issues the workload certificate. It includes CA address, type, + // authentication to CA service, etc. + message CertificateAuthorityConfig { + // Contains information required to contact CA service. + message CertificateAuthorityServiceConfig { + // Required. A CA pool resource used to issue a certificate. + // The CA pool string has a relative resource path following the form + // "projects/{project}/locations/{location}/caPools/{ca_pool}". + string ca_pool = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + } + ]; + } + + oneof kind { + // Defines a CertificateAuthorityServiceConfig. + CertificateAuthorityServiceConfig certificate_authority_service_config = + 1; + } + } + + // The type of keypair to generate. + enum KeyAlgorithm { + // Unspecified key algorithm. + KEY_ALGORITHM_UNSPECIFIED = 0; + + // Specifies RSA with a 2048-bit modulus. + RSA_2048 = 1; + + // Specifies ECDSA with curve P256. + ECDSA_P256 = 4; + } + + // A user-defined name of the certificate issuance config. + // CertificateIssuanceConfig names must be unique globally and match pattern + // `projects/*/locations/*/certificateIssuanceConfigs/*`. + string name = 1; + + // Output only. The creation timestamp of a CertificateIssuanceConfig. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last update timestamp of a CertificateIssuanceConfig. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Set of labels associated with a CertificateIssuanceConfig. + map labels = 4; + + // One or more paragraphs of text description of a CertificateIssuanceConfig. + string description = 5; + + // Required. The CA that issues the workload certificate. It includes the CA + // address, type, authentication to CA service, etc. + CertificateAuthorityConfig certificate_authority_config = 6 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Workload certificate lifetime requested. + google.protobuf.Duration lifetime = 7 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Specifies the percentage of elapsed time of the certificate + // lifetime to wait before renewing the certificate. Must be a number between + // 1-99, inclusive. + int32 rotation_window_percentage = 8 [(google.api.field_behavior) = REQUIRED]; + + // Required. The key algorithm to use when generating the private key. + KeyAlgorithm key_algorithm = 9 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_manager.proto b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_manager.proto index 2b221da443fa..07b4c0859579 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_manager.proto +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_manager.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/certificatemanager/v1/certificate_issuance_config.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -60,10 +61,12 @@ option ruby_package = "Google::Cloud::CertificateManager::V1"; // Provides methods to manage Cloud Certificate Manager entities. service CertificateManager { option (google.api.default_host) = "certificatemanager.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Lists Certificates in a given project and location. - rpc ListCertificates(ListCertificatesRequest) returns (ListCertificatesResponse) { + rpc ListCertificates(ListCertificatesRequest) + returns (ListCertificatesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/certificates" }; @@ -79,7 +82,8 @@ service CertificateManager { } // Creates a new Certificate in a given project and location. - rpc CreateCertificate(CreateCertificateRequest) returns (google.longrunning.Operation) { + rpc CreateCertificate(CreateCertificateRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/certificates" body: "certificate" @@ -92,7 +96,8 @@ service CertificateManager { } // Updates a Certificate. - rpc UpdateCertificate(UpdateCertificateRequest) returns (google.longrunning.Operation) { + rpc UpdateCertificate(UpdateCertificateRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{certificate.name=projects/*/locations/*/certificates/*}" body: "certificate" @@ -105,7 +110,8 @@ service CertificateManager { } // Deletes a single Certificate. - rpc DeleteCertificate(DeleteCertificateRequest) returns (google.longrunning.Operation) { + rpc DeleteCertificate(DeleteCertificateRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/certificates/*}" }; @@ -117,7 +123,8 @@ service CertificateManager { } // Lists CertificateMaps in a given project and location. - rpc ListCertificateMaps(ListCertificateMapsRequest) returns (ListCertificateMapsResponse) { + rpc ListCertificateMaps(ListCertificateMapsRequest) + returns (ListCertificateMapsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/certificateMaps" }; @@ -133,12 +140,14 @@ service CertificateManager { } // Creates a new CertificateMap in a given project and location. - rpc CreateCertificateMap(CreateCertificateMapRequest) returns (google.longrunning.Operation) { + rpc CreateCertificateMap(CreateCertificateMapRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/certificateMaps" body: "certificate_map" }; - option (google.api.method_signature) = "parent,certificate_map,certificate_map_id"; + option (google.api.method_signature) = + "parent,certificate_map,certificate_map_id"; option (google.longrunning.operation_info) = { response_type: "CertificateMap" metadata_type: "OperationMetadata" @@ -146,7 +155,8 @@ service CertificateManager { } // Updates a CertificateMap. - rpc UpdateCertificateMap(UpdateCertificateMapRequest) returns (google.longrunning.Operation) { + rpc UpdateCertificateMap(UpdateCertificateMapRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{certificate_map.name=projects/*/locations/*/certificateMaps/*}" body: "certificate_map" @@ -161,7 +171,8 @@ service CertificateManager { // Deletes a single CertificateMap. A Certificate Map can't be deleted // if it contains Certificate Map Entries. Remove all the entries from // the map before calling this method. - rpc DeleteCertificateMap(DeleteCertificateMapRequest) returns (google.longrunning.Operation) { + rpc DeleteCertificateMap(DeleteCertificateMapRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/certificateMaps/*}" }; @@ -173,7 +184,8 @@ service CertificateManager { } // Lists CertificateMapEntries in a given project and location. - rpc ListCertificateMapEntries(ListCertificateMapEntriesRequest) returns (ListCertificateMapEntriesResponse) { + rpc ListCertificateMapEntries(ListCertificateMapEntriesRequest) + returns (ListCertificateMapEntriesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/certificateMaps/*}/certificateMapEntries" }; @@ -181,7 +193,8 @@ service CertificateManager { } // Gets details of a single CertificateMapEntry. - rpc GetCertificateMapEntry(GetCertificateMapEntryRequest) returns (CertificateMapEntry) { + rpc GetCertificateMapEntry(GetCertificateMapEntryRequest) + returns (CertificateMapEntry) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/certificateMaps/*/certificateMapEntries/*}" }; @@ -189,12 +202,14 @@ service CertificateManager { } // Creates a new CertificateMapEntry in a given project and location. - rpc CreateCertificateMapEntry(CreateCertificateMapEntryRequest) returns (google.longrunning.Operation) { + rpc CreateCertificateMapEntry(CreateCertificateMapEntryRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/certificateMaps/*}/certificateMapEntries" body: "certificate_map_entry" }; - option (google.api.method_signature) = "parent,certificate_map_entry,certificate_map_entry_id"; + option (google.api.method_signature) = + "parent,certificate_map_entry,certificate_map_entry_id"; option (google.longrunning.operation_info) = { response_type: "CertificateMapEntry" metadata_type: "OperationMetadata" @@ -202,7 +217,8 @@ service CertificateManager { } // Updates a CertificateMapEntry. - rpc UpdateCertificateMapEntry(UpdateCertificateMapEntryRequest) returns (google.longrunning.Operation) { + rpc UpdateCertificateMapEntry(UpdateCertificateMapEntryRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{certificate_map_entry.name=projects/*/locations/*/certificateMaps/*/certificateMapEntries/*}" body: "certificate_map_entry" @@ -215,7 +231,8 @@ service CertificateManager { } // Deletes a single CertificateMapEntry. - rpc DeleteCertificateMapEntry(DeleteCertificateMapEntryRequest) returns (google.longrunning.Operation) { + rpc DeleteCertificateMapEntry(DeleteCertificateMapEntryRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/certificateMaps/*/certificateMapEntries/*}" }; @@ -227,7 +244,8 @@ service CertificateManager { } // Lists DnsAuthorizations in a given project and location. - rpc ListDnsAuthorizations(ListDnsAuthorizationsRequest) returns (ListDnsAuthorizationsResponse) { + rpc ListDnsAuthorizations(ListDnsAuthorizationsRequest) + returns (ListDnsAuthorizationsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/dnsAuthorizations" }; @@ -235,7 +253,8 @@ service CertificateManager { } // Gets details of a single DnsAuthorization. - rpc GetDnsAuthorization(GetDnsAuthorizationRequest) returns (DnsAuthorization) { + rpc GetDnsAuthorization(GetDnsAuthorizationRequest) + returns (DnsAuthorization) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/dnsAuthorizations/*}" }; @@ -243,12 +262,14 @@ service CertificateManager { } // Creates a new DnsAuthorization in a given project and location. - rpc CreateDnsAuthorization(CreateDnsAuthorizationRequest) returns (google.longrunning.Operation) { + rpc CreateDnsAuthorization(CreateDnsAuthorizationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/dnsAuthorizations" body: "dns_authorization" }; - option (google.api.method_signature) = "parent,dns_authorization,dns_authorization_id"; + option (google.api.method_signature) = + "parent,dns_authorization,dns_authorization_id"; option (google.longrunning.operation_info) = { response_type: "DnsAuthorization" metadata_type: "OperationMetadata" @@ -256,7 +277,8 @@ service CertificateManager { } // Updates a DnsAuthorization. - rpc UpdateDnsAuthorization(UpdateDnsAuthorizationRequest) returns (google.longrunning.Operation) { + rpc UpdateDnsAuthorization(UpdateDnsAuthorizationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{dns_authorization.name=projects/*/locations/*/dnsAuthorizations/*}" body: "dns_authorization" @@ -269,7 +291,8 @@ service CertificateManager { } // Deletes a single DnsAuthorization. - rpc DeleteDnsAuthorization(DeleteDnsAuthorizationRequest) returns (google.longrunning.Operation) { + rpc DeleteDnsAuthorization(DeleteDnsAuthorizationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/dnsAuthorizations/*}" }; @@ -279,12 +302,58 @@ service CertificateManager { metadata_type: "OperationMetadata" }; } + + // Lists CertificateIssuanceConfigs in a given project and location. + rpc ListCertificateIssuanceConfigs(ListCertificateIssuanceConfigsRequest) + returns (ListCertificateIssuanceConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/certificateIssuanceConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single CertificateIssuanceConfig. + rpc GetCertificateIssuanceConfig(GetCertificateIssuanceConfigRequest) + returns (CertificateIssuanceConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/certificateIssuanceConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new CertificateIssuanceConfig in a given project and location. + rpc CreateCertificateIssuanceConfig(CreateCertificateIssuanceConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/certificateIssuanceConfigs" + body: "certificate_issuance_config" + }; + option (google.api.method_signature) = + "parent,certificate_issuance_config,certificate_issuance_config_id"; + option (google.longrunning.operation_info) = { + response_type: "CertificateIssuanceConfig" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single CertificateIssuanceConfig. + rpc DeleteCertificateIssuanceConfig(DeleteCertificateIssuanceConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/certificateIssuanceConfigs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } } // Request for the `ListCertificates` method. message ListCertificatesRequest { - // Required. The project and location from which the certificate should be listed, - // specified in the format `projects/*/locations/*`. + // Required. The project and location from which the certificate should be + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -358,10 +427,11 @@ message UpdateCertificateRequest { // Required. A definition of the certificate to update. Certificate certificate = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The update mask applies to the resource. For the `FieldMask` definition, - // see + // Required. The update mask applies to the resource. For the `FieldMask` + // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `DeleteCertificate` method. @@ -378,8 +448,8 @@ message DeleteCertificateRequest { // Request for the `ListCertificateMaps` method. message ListCertificateMapsRequest { - // Required. The project and location from which the certificate maps should be listed, - // specified in the format `projects/*/locations/*`. + // Required. The project and location from which the certificate maps should + // be listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -453,10 +523,11 @@ message UpdateCertificateMapRequest { // Required. A definition of the certificate map to update. CertificateMap certificate_map = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The update mask applies to the resource. For the `FieldMask` definition, - // see + // Required. The update mask applies to the resource. For the `FieldMask` + // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `DeleteCertificateMap` method. @@ -473,8 +544,8 @@ message DeleteCertificateMapRequest { // Request for the `ListCertificateMapEntries` method. message ListCertificateMapEntriesRequest { - // Required. The project, location and certificate map from which the certificate map - // entries should be listed, specified in the format + // Required. The project, location and certificate map from which the + // certificate map entries should be listed, specified in the format // `projects/*/locations/*/certificateMaps/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -545,24 +616,27 @@ message CreateCertificateMapEntryRequest { string certificate_map_entry_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. A definition of the certificate map entry to create. - CertificateMapEntry certificate_map_entry = 3 [(google.api.field_behavior) = REQUIRED]; + CertificateMapEntry certificate_map_entry = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `UpdateCertificateMapEntry` method. message UpdateCertificateMapEntryRequest { // Required. A definition of the certificate map entry to create map entry. - CertificateMapEntry certificate_map_entry = 1 [(google.api.field_behavior) = REQUIRED]; + CertificateMapEntry certificate_map_entry = 1 + [(google.api.field_behavior) = REQUIRED]; - // Required. The update mask applies to the resource. For the `FieldMask` definition, - // see + // Required. The update mask applies to the resource. For the `FieldMask` + // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `DeleteCertificateMapEntry` method. message DeleteCertificateMapEntryRequest { - // Required. A name of the certificate map entry to delete. Must be in the format - // `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`. + // Required. A name of the certificate map entry to delete. Must be in the + // format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -573,8 +647,8 @@ message DeleteCertificateMapEntryRequest { // Request for the `ListDnsAuthorizations` method. message ListDnsAuthorizationsRequest { - // Required. The project and location from which the dns authorizations should be - // listed, specified in the format `projects/*/locations/*`. + // Required. The project and location from which the dns authorizations should + // be listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -615,8 +689,8 @@ message ListDnsAuthorizationsResponse { // Request for the `GetDnsAuthorization` method. message GetDnsAuthorizationRequest { - // Required. A name of the dns authorization to describe. Must be in the format - // `projects/*/locations/*/dnsAuthorizations/*`. + // Required. A name of the dns authorization to describe. Must be in the + // format `projects/*/locations/*/dnsAuthorizations/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -627,8 +701,8 @@ message GetDnsAuthorizationRequest { // Request for the `CreateDnsAuthorization` method. message CreateDnsAuthorizationRequest { - // Required. The parent resource of the dns authorization. Must be in the format - // `projects/*/locations/*`. + // Required. The parent resource of the dns authorization. Must be in the + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -640,18 +714,21 @@ message CreateDnsAuthorizationRequest { string dns_authorization_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. A definition of the dns authorization to create. - DnsAuthorization dns_authorization = 3 [(google.api.field_behavior) = REQUIRED]; + DnsAuthorization dns_authorization = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `UpdateDnsAuthorization` method. message UpdateDnsAuthorizationRequest { // Required. A definition of the dns authorization to update. - DnsAuthorization dns_authorization = 1 [(google.api.field_behavior) = REQUIRED]; + DnsAuthorization dns_authorization = 1 + [(google.api.field_behavior) = REQUIRED]; - // Required. The update mask applies to the resource. For the `FieldMask` definition, - // see + // Required. The update mask applies to the resource. For the `FieldMask` + // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `DeleteDnsAuthorization` method. @@ -685,8 +762,9 @@ message OperationMetadata { // Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. bool requested_cancellation = 6; // API version used to start the operation. @@ -751,13 +829,13 @@ message Certificate { RATE_LIMITED = 2; } - // Reason for provisioning failures. - Reason reason = 1; + // Output only. Reason for provisioning failures. + Reason reason = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Human readable explanation about the issue. Provided to help address - // the configuration issues. - // Not guaranteed to be stable. For programmatic access use Reason enum. - string details = 2; + // Output only. Human readable explanation about the issue. Provided to + // help address the configuration issues. Not guaranteed to be stable. For + // programmatic access use Reason enum. + string details = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // State of the latest attempt to authorize a domain for certificate @@ -798,23 +876,27 @@ message Certificate { // Domain name of the authorization attempt. string domain = 1; - // State of the domain for managed certificate issuance. - State state = 2; + // Output only. State of the domain for managed certificate issuance. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Reason for failure of the authorization attempt for the domain. - FailureReason failure_reason = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reason for failure of the authorization attempt for the + // domain. + FailureReason failure_reason = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Human readable explanation for reaching the state. Provided to help - // address the configuration issues. - // Not guaranteed to be stable. For programmatic access use Reason enum. - string details = 4; + // Output only. Human readable explanation for reaching the state. + // Provided to help address the configuration issues. Not guaranteed to be + // stable. For programmatic access use FailureReason enum. + string details = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Immutable. The domains for which a managed SSL certificate will be generated. - // Wildcard domains are only supported with DNS challenge resolution. + // Immutable. The domains for which a managed SSL certificate will be + // generated. Wildcard domains are only supported with DNS challenge + // resolution. repeated string domains = 1 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. Authorizations that will be used for performing domain authorization. + // Immutable. Authorizations that will be used for performing domain + // authorization. repeated string dns_authorizations = 2 [ (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { @@ -822,15 +904,32 @@ message Certificate { } ]; + // The resource name for a + // [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig] + // used to configure private PKI certificates in the format + // `projects/*/locations/*/certificateIssuanceConfigs/*`. + // If this field is not set, the certificates will instead be publicly + // signed as documented at + // https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa. + string issuance_config = 6 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "certificatemanager.googleapis.com/CertificateIssuanceConfig" + } + ]; + // Output only. State of the managed certificate resource. State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Information about issues with provisioning a Managed Certificate. - ProvisioningIssue provisioning_issue = 3; + // Output only. Information about issues with provisioning a Managed + // Certificate. + ProvisioningIssue provisioning_issue = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Detailed state of the latest authorization attempt for each domain - // specified for managed certificate resource. - repeated AuthorizationAttemptInfo authorization_attempt_info = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Detailed state of the latest authorization attempt for each + // domain specified for managed certificate resource. + repeated AuthorizationAttemptInfo authorization_attempt_info = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Certificate scope. @@ -852,10 +951,12 @@ message Certificate { string description = 8; // Output only. The creation timestamp of a Certificate. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of a Certificate. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Set of labels associated with a Certificate. map labels = 4; @@ -868,17 +969,18 @@ message Certificate { ManagedCertificate managed = 11; } - // Output only. The list of Subject Alternative Names of dnsName type defined in the - // certificate (see RFC 5280 4.2.1.6). - // Managed certificates that haven't been provisioned yet have this field - // populated with a value of the managed.domains field. + // Output only. The list of Subject Alternative Names of dnsName type defined + // in the certificate (see RFC 5280 4.2.1.6). Managed certificates that + // haven't been provisioned yet have this field populated with a value of the + // managed.domains field. repeated string san_dnsnames = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The PEM-encoded certificate chain. string pem_certificate = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The expiry timestamp of a Certificate. - google.protobuf.Timestamp expire_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp expire_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. The scope of the certificate. Scope scope = 12 [(google.api.field_behavior) = IMMUTABLE]; @@ -895,27 +997,30 @@ message CertificateMap { message GclbTarget { // Defines IP configuration where this Certificate Map is serving. message IpConfig { - // An external IP address. - string ip_address = 1; + // Output only. An external IP address. + string ip_address = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Ports. - repeated uint32 ports = 3; + // Output only. Ports. + repeated uint32 ports = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A Target Proxy to which this map is attached to. oneof target_proxy { - // This field returns the resource name in the following format: + // Output only. This field returns the resource name in the following + // format: // `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`. - string target_https_proxy = 1; + string target_https_proxy = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // This field returns the resource name in the following format: + // Output only. This field returns the resource name in the following + // format: // `//compute.googleapis.com/projects/*/global/targetSslProxies/*`. - string target_ssl_proxy = 3; + string target_ssl_proxy = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // IP configurations for this Target Proxy where the + // Output only. IP configurations for this Target Proxy where the // Certificate Map is serving. - repeated IpConfig ip_configs = 2; + repeated IpConfig ip_configs = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A user-defined name of the Certificate Map. Certificate Map names must be @@ -927,16 +1032,21 @@ message CertificateMap { string description = 5; // Output only. The creation timestamp of a Certificate Map. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update timestamp of a Certificate Map. - google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Set of labels associated with a Certificate Map. map labels = 3; // Output only. A list of GCLB targets which use this Certificate Map. - repeated GclbTarget gclb_targets = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // A Target Proxy is only present on this list if it's attached to a + // Forwarding Rule. + repeated GclbTarget gclb_targets = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Defines a certificate map entry. @@ -966,10 +1076,12 @@ message CertificateMapEntry { string description = 9; // Output only. The creation timestamp of a Certificate Map Entry. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update timestamp of a Certificate Map Entry. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Set of labels associated with a Certificate Map Entry. map labels = 4; @@ -988,8 +1100,8 @@ message CertificateMapEntry { // defined up to fifteen certificates in each Certificate Map Entry. Each // certificate must match pattern `projects/*/locations/*/certificates/*`. repeated string certificates = 7 [(google.api.resource_reference) = { - type: "certificatemanager.googleapis.com/Certificate" - }]; + type: "certificatemanager.googleapis.com/Certificate" + }]; // Output only. A serving state of this Certificate Map Entry. ServingState state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -1025,10 +1137,12 @@ message DnsAuthorization { string name = 1; // Output only. The creation timestamp of a DnsAuthorization. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of a DnsAuthorization. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Set of labels associated with a DnsAuthorization. map labels = 4; @@ -1036,16 +1150,19 @@ message DnsAuthorization { // One or more paragraphs of text description of a DnsAuthorization. string description = 5; - // Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a - // single domain and its wildcard, e.g. authorization for `example.com` can - // be used to issue certificates for `example.com` and `*.example.com`. + // Required. Immutable. A domain which is being authorized. A DnsAuthorization + // resource covers a single domain and its wildcard, e.g. authorization for + // `example.com` can be used to issue certificates for `example.com` and + // `*.example.com`. string domain = 6 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE ]; - // Output only. DNS Resource Record that needs to be added to DNS configuration. - DnsResourceRecord dns_resource_record = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. DNS Resource Record that needs to be added to DNS + // configuration. + DnsResourceRecord dns_resource_record = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Defines set of serving states associated with a resource. diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfig.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfig.java new file mode 100644 index 000000000000..deae40504329 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfig.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; +import com.google.cloud.certificatemanager.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + asyncCreateCertificateIssuanceConfig(); + } + + public static void asyncCreateCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + CreateCertificateIssuanceConfigRequest request = + CreateCertificateIssuanceConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023") + .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build()) + .build(); + ApiFuture future = + certificateManagerClient.createCertificateIssuanceConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_async] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfigLRO.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfigLRO.java new file mode 100644 index 000000000000..11c57d7ebb9a --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfigLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; +import com.google.cloud.certificatemanager.v1.LocationName; +import com.google.cloud.certificatemanager.v1.OperationMetadata; + +public class AsyncCreateCertificateIssuanceConfigLRO { + + public static void main(String[] args) throws Exception { + asyncCreateCertificateIssuanceConfigLRO(); + } + + public static void asyncCreateCertificateIssuanceConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + CreateCertificateIssuanceConfigRequest request = + CreateCertificateIssuanceConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023") + .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build()) + .build(); + OperationFuture future = + certificateManagerClient + .createCertificateIssuanceConfigOperationCallable() + .futureCall(request); + // Do something. + CertificateIssuanceConfig response = future.get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_lro_async] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfig.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfig.java new file mode 100644 index 000000000000..bb315ba8cdf4 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncCreateCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + syncCreateCertificateIssuanceConfig(); + } + + public static void syncCreateCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + CreateCertificateIssuanceConfigRequest request = + CreateCertificateIssuanceConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023") + .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build()) + .build(); + CertificateIssuanceConfig response = + certificateManagerClient.createCertificateIssuanceConfigAsync(request).get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString.java new file mode 100644 index 000000000000..cccac41d83db --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_locationnamecertificateissuanceconfigstring_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString(); + } + + public static void + syncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + CertificateIssuanceConfig response = + certificateManagerClient + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_locationnamecertificateissuanceconfigstring_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString.java new file mode 100644 index 000000000000..e8383f104bef --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_stringcertificateissuanceconfigstring_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString(); + } + + public static void syncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + CertificateIssuanceConfig response = + certificateManagerClient + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_stringcertificateissuanceconfigstring_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfig.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfig.java new file mode 100644 index 000000000000..19114afba237 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfig.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteCertificateIssuanceConfig(); + } + + public static void asyncDeleteCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + DeleteCertificateIssuanceConfigRequest request = + DeleteCertificateIssuanceConfigRequest.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .build(); + ApiFuture future = + certificateManagerClient.deleteCertificateIssuanceConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_async] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfigLRO.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfigLRO.java new file mode 100644 index 000000000000..81be2c9fc036 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfigLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; +import com.google.cloud.certificatemanager.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteCertificateIssuanceConfigLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCertificateIssuanceConfigLRO(); + } + + public static void asyncDeleteCertificateIssuanceConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + DeleteCertificateIssuanceConfigRequest request = + DeleteCertificateIssuanceConfigRequest.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .build(); + OperationFuture future = + certificateManagerClient + .deleteCertificateIssuanceConfigOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_lro_async] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfig.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfig.java new file mode 100644 index 000000000000..98e813c6a851 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateIssuanceConfig(); + } + + public static void syncDeleteCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + DeleteCertificateIssuanceConfigRequest request = + DeleteCertificateIssuanceConfigRequest.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .build(); + certificateManagerClient.deleteCertificateIssuanceConfigAsync(request).get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigCertificateissuanceconfigname.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigCertificateissuanceconfigname.java new file mode 100644 index 000000000000..9ed42cf4a544 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigCertificateissuanceconfigname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_certificateissuanceconfigname_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCertificateIssuanceConfigCertificateissuanceconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateIssuanceConfigCertificateissuanceconfigname(); + } + + public static void syncDeleteCertificateIssuanceConfigCertificateissuanceconfigname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + certificateManagerClient.deleteCertificateIssuanceConfigAsync(name).get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_certificateissuanceconfigname_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigString.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigString.java new file mode 100644 index 000000000000..171fbd454895 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_string_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCertificateIssuanceConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateIssuanceConfigString(); + } + + public static void syncDeleteCertificateIssuanceConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + String name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString(); + certificateManagerClient.deleteCertificateIssuanceConfigAsync(name).get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_string_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/AsyncGetCertificateIssuanceConfig.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/AsyncGetCertificateIssuanceConfig.java new file mode 100644 index 000000000000..31307718b097 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/AsyncGetCertificateIssuanceConfig.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; + +public class AsyncGetCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + asyncGetCertificateIssuanceConfig(); + } + + public static void asyncGetCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + GetCertificateIssuanceConfigRequest request = + GetCertificateIssuanceConfigRequest.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .build(); + ApiFuture future = + certificateManagerClient.getCertificateIssuanceConfigCallable().futureCall(request); + // Do something. + CertificateIssuanceConfig response = future.get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_async] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfig.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfig.java new file mode 100644 index 000000000000..aaca8567bf63 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; + +public class SyncGetCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + syncGetCertificateIssuanceConfig(); + } + + public static void syncGetCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + GetCertificateIssuanceConfigRequest request = + GetCertificateIssuanceConfigRequest.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .build(); + CertificateIssuanceConfig response = + certificateManagerClient.getCertificateIssuanceConfig(request); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigCertificateissuanceconfigname.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigCertificateissuanceconfigname.java new file mode 100644 index 000000000000..caac79dab661 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigCertificateissuanceconfigname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_certificateissuanceconfigname_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; + +public class SyncGetCertificateIssuanceConfigCertificateissuanceconfigname { + + public static void main(String[] args) throws Exception { + syncGetCertificateIssuanceConfigCertificateissuanceconfigname(); + } + + public static void syncGetCertificateIssuanceConfigCertificateissuanceconfigname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + CertificateIssuanceConfig response = + certificateManagerClient.getCertificateIssuanceConfig(name); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_certificateissuanceconfigname_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigString.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigString.java new file mode 100644 index 000000000000..bc76702ae5f1 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_string_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; + +public class SyncGetCertificateIssuanceConfigString { + + public static void main(String[] args) throws Exception { + syncGetCertificateIssuanceConfigString(); + } + + public static void syncGetCertificateIssuanceConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + String name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString(); + CertificateIssuanceConfig response = + certificateManagerClient.getCertificateIssuanceConfig(name); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_string_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigs.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigs.java new file mode 100644 index 000000000000..4e8bcc7f3ad5 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigs.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class AsyncListCertificateIssuanceConfigs { + + public static void main(String[] args) throws Exception { + asyncListCertificateIssuanceConfigs(); + } + + public static void asyncListCertificateIssuanceConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + ListCertificateIssuanceConfigsRequest request = + ListCertificateIssuanceConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + certificateManagerClient + .listCertificateIssuanceConfigsPagedCallable() + .futureCall(request); + // Do something. + for (CertificateIssuanceConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_async] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigsPaged.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigsPaged.java new file mode 100644 index 000000000000..26c3d63d2c4d --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_paged_async] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse; +import com.google.cloud.certificatemanager.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListCertificateIssuanceConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListCertificateIssuanceConfigsPaged(); + } + + public static void asyncListCertificateIssuanceConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + ListCertificateIssuanceConfigsRequest request = + ListCertificateIssuanceConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCertificateIssuanceConfigsResponse response = + certificateManagerClient.listCertificateIssuanceConfigsCallable().call(request); + for (CertificateIssuanceConfig element : response.getCertificateIssuanceConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_paged_async] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigs.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigs.java new file mode 100644 index 000000000000..61257547be28 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncListCertificateIssuanceConfigs { + + public static void main(String[] args) throws Exception { + syncListCertificateIssuanceConfigs(); + } + + public static void syncListCertificateIssuanceConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + ListCertificateIssuanceConfigsRequest request = + ListCertificateIssuanceConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CertificateIssuanceConfig element : + certificateManagerClient.listCertificateIssuanceConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsLocationname.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsLocationname.java new file mode 100644 index 000000000000..b81b75f65d44 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_locationname_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncListCertificateIssuanceConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListCertificateIssuanceConfigsLocationname(); + } + + public static void syncListCertificateIssuanceConfigsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CertificateIssuanceConfig element : + certificateManagerClient.listCertificateIssuanceConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_locationname_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsString.java b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsString.java new file mode 100644 index 000000000000..b5cf66ee5c39 --- /dev/null +++ b/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_string_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncListCertificateIssuanceConfigsString { + + public static void main(String[] args) throws Exception { + syncListCertificateIssuanceConfigsString(); + } + + public static void syncListCertificateIssuanceConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (CertificateIssuanceConfig element : + certificateManagerClient.listCertificateIssuanceConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_string_sync]