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+ */ + public final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable() { + return stub.listCertificateIssuanceConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CertificateIssuanceConfigs in a given project and location. + * + *future = + * certificateManagerClient + * .listCertificateIssuanceConfigsPagedCallable() + * .futureCall(request); + * // Do something. + * for (CertificateIssuanceConfig element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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+ */ + public final UnaryCallablefuture = + * certificateManagerClient.getCertificateIssuanceConfigCallable().futureCall(request); + * // Do something. + * CertificateIssuanceConfig response = future.get(); + * } + * }
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
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
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
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+ */ + 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. + * + *future = + * certificateManagerClient + * .createCertificateIssuanceConfigOperationCallable() + * .futureCall(request); + * // Do something. + * CertificateIssuanceConfig response = future.get(); + * } + * }
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+ */ + public final UnaryCallablefuture = + * certificateManagerClient.createCertificateIssuanceConfigCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
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
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
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
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+ */ + public final OperationCallablefuture = + * certificateManagerClient + * .deleteCertificateIssuanceConfigOperationCallable() + * .futureCall(request); + * // Do something. + * future.get(); + * } + * }
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+ */ + public final UnaryCallablefuture = + * certificateManagerClient.deleteCertificateIssuanceConfigCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
+ * 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
+ * Deletes a single CertificateIssuanceConfig. + *+ */ + public void deleteCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Deletes a single CertificateIssuanceConfig. + *+ */ + public void deleteCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * Deletes a single CertificateIssuanceConfig. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
- * 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) {
*
*
*