This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@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 (PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient =
+ * PublicCertificateAuthorityServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * ExternalAccountKey externalAccountKey = ExternalAccountKey.newBuilder().build();
+ * ExternalAccountKey response =
+ * publicCertificateAuthorityServiceClient.createExternalAccountKey(
+ * parent, externalAccountKey);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the PublicCertificateAuthorityServiceClient object to + * clean up resources such as threads. In the example above, try-with-resources is used, which + * automatically calls close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
CreateExternalAccountKey |
+ * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] bound to the project. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of + * PublicCertificateAuthorityServiceSettings to create(). For example: + * + *
To customize credentials: + * + *
{@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
+ * PublicCertificateAuthorityServiceSettings publicCertificateAuthorityServiceSettings =
+ * PublicCertificateAuthorityServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient =
+ * PublicCertificateAuthorityServiceClient.create(publicCertificateAuthorityServiceSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@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
+ * PublicCertificateAuthorityServiceSettings publicCertificateAuthorityServiceSettings =
+ * PublicCertificateAuthorityServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient =
+ * PublicCertificateAuthorityServiceClient.create(publicCertificateAuthorityServiceSettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *
{@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
+ * PublicCertificateAuthorityServiceSettings publicCertificateAuthorityServiceSettings =
+ * PublicCertificateAuthorityServiceSettings.newHttpJsonBuilder().build();
+ * PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient =
+ * PublicCertificateAuthorityServiceClient.create(publicCertificateAuthorityServiceSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class PublicCertificateAuthorityServiceClient implements BackgroundResource { + private final PublicCertificateAuthorityServiceSettings settings; + private final PublicCertificateAuthorityServiceStub stub; + + /** Constructs an instance of PublicCertificateAuthorityServiceClient with default settings. */ + public static final PublicCertificateAuthorityServiceClient create() throws IOException { + return create(PublicCertificateAuthorityServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of PublicCertificateAuthorityServiceClient, using the given settings. + * The channels are created based on the settings passed in, or defaults for any settings that are + * not set. + */ + public static final PublicCertificateAuthorityServiceClient create( + PublicCertificateAuthorityServiceSettings settings) throws IOException { + return new PublicCertificateAuthorityServiceClient(settings); + } + + /** + * Constructs an instance of PublicCertificateAuthorityServiceClient, using the given stub for + * making calls. This is for advanced usage - prefer using + * create(PublicCertificateAuthorityServiceSettings). + */ + public static final PublicCertificateAuthorityServiceClient create( + PublicCertificateAuthorityServiceStub stub) { + return new PublicCertificateAuthorityServiceClient(stub); + } + + /** + * Constructs an instance of PublicCertificateAuthorityServiceClient, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected PublicCertificateAuthorityServiceClient( + PublicCertificateAuthorityServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = + ((PublicCertificateAuthorityServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected PublicCertificateAuthorityServiceClient(PublicCertificateAuthorityServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final PublicCertificateAuthorityServiceSettings getSettings() { + return settings; + } + + public PublicCertificateAuthorityServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] bound + * to the project. + * + *
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 (PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient =
+ * PublicCertificateAuthorityServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * ExternalAccountKey externalAccountKey = ExternalAccountKey.newBuilder().build();
+ * ExternalAccountKey response =
+ * publicCertificateAuthorityServiceClient.createExternalAccountKey(
+ * parent, externalAccountKey);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this external_account_key will be created.
+ * Format: projects/[project_id]/locations/[location]. At present only the "global" location
+ * is supported.
+ * @param externalAccountKey Required. The external account key to create. This field only exists
+ * to future-proof the API. At present, all fields in ExternalAccountKey are output only and
+ * all values are ignored. For the purpose of the CreateExternalAccountKeyRequest, set it to a
+ * default/empty value.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ExternalAccountKey createExternalAccountKey(
+ LocationName parent, ExternalAccountKey externalAccountKey) {
+ CreateExternalAccountKeyRequest request =
+ CreateExternalAccountKeyRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setExternalAccountKey(externalAccountKey)
+ .build();
+ return createExternalAccountKey(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] bound
+ * to the project.
+ *
+ * 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 (PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient =
+ * PublicCertificateAuthorityServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * ExternalAccountKey externalAccountKey = ExternalAccountKey.newBuilder().build();
+ * ExternalAccountKey response =
+ * publicCertificateAuthorityServiceClient.createExternalAccountKey(
+ * parent, externalAccountKey);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this external_account_key will be created.
+ * Format: projects/[project_id]/locations/[location]. At present only the "global" location
+ * is supported.
+ * @param externalAccountKey Required. The external account key to create. This field only exists
+ * to future-proof the API. At present, all fields in ExternalAccountKey are output only and
+ * all values are ignored. For the purpose of the CreateExternalAccountKeyRequest, set it to a
+ * default/empty value.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ExternalAccountKey createExternalAccountKey(
+ String parent, ExternalAccountKey externalAccountKey) {
+ CreateExternalAccountKeyRequest request =
+ CreateExternalAccountKeyRequest.newBuilder()
+ .setParent(parent)
+ .setExternalAccountKey(externalAccountKey)
+ .build();
+ return createExternalAccountKey(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] bound
+ * to the project.
+ *
+ * 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 (PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient =
+ * PublicCertificateAuthorityServiceClient.create()) {
+ * CreateExternalAccountKeyRequest request =
+ * CreateExternalAccountKeyRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setExternalAccountKey(ExternalAccountKey.newBuilder().build())
+ * .build();
+ * ExternalAccountKey response =
+ * publicCertificateAuthorityServiceClient.createExternalAccountKey(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 ExternalAccountKey createExternalAccountKey(
+ CreateExternalAccountKeyRequest request) {
+ return createExternalAccountKeyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] bound
+ * to the project.
+ *
+ * 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 (PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient =
+ * PublicCertificateAuthorityServiceClient.create()) {
+ * CreateExternalAccountKeyRequest request =
+ * CreateExternalAccountKeyRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setExternalAccountKey(ExternalAccountKey.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * publicCertificateAuthorityServiceClient
+ * .createExternalAccountKeyCallable()
+ * .futureCall(request);
+ * // Do something.
+ * ExternalAccountKey response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the total timeout of createExternalAccountKey to 30 seconds: + * + *
{@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
+ * PublicCertificateAuthorityServiceSettings.Builder
+ * publicCertificateAuthorityServiceSettingsBuilder =
+ * PublicCertificateAuthorityServiceSettings.newBuilder();
+ * publicCertificateAuthorityServiceSettingsBuilder
+ * .createExternalAccountKeySettings()
+ * .setRetrySettings(
+ * publicCertificateAuthorityServiceSettingsBuilder
+ * .createExternalAccountKeySettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * PublicCertificateAuthorityServiceSettings publicCertificateAuthorityServiceSettings =
+ * publicCertificateAuthorityServiceSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class PublicCertificateAuthorityServiceSettings
+ extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= PublicCertificateAuthorityServiceClient =======================
+ *
+ * Service Description: Manages the resources required for ACME [external account
+ * binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for the public certificate authority
+ * service.
+ *
+ * Sample for PublicCertificateAuthorityServiceClient:
+ *
+ * This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcPublicCertificateAuthorityServiceCallableFactory
+ implements GrpcStubCallableFactory {
+
+ @Override
+ public This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcPublicCertificateAuthorityServiceStub
+ extends PublicCertificateAuthorityServiceStub {
+ private static final MethodDescriptor This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonPublicCertificateAuthorityServiceCallableFactory
+ implements HttpJsonStubCallableFactory This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonPublicCertificateAuthorityServiceStub
+ extends PublicCertificateAuthorityServiceStub {
+ private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build();
+
+ private static final ApiMethodDescriptor This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public abstract class PublicCertificateAuthorityServiceStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of createExternalAccountKey to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction{@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 (PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient =
+ * PublicCertificateAuthorityServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * ExternalAccountKey externalAccountKey = ExternalAccountKey.newBuilder().build();
+ * ExternalAccountKey response =
+ * publicCertificateAuthorityServiceClient.createExternalAccountKey(
+ * parent, externalAccountKey);
+ * }
+ * }
+ */
+@Generated("by gapic-generator-java")
+package com.google.cloud.security.publicca.v1;
+
+import javax.annotation.Generated;
diff --git a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/GrpcPublicCertificateAuthorityServiceCallableFactory.java b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/GrpcPublicCertificateAuthorityServiceCallableFactory.java
new file mode 100644
index 000000000000..7044d8e5dc33
--- /dev/null
+++ b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/GrpcPublicCertificateAuthorityServiceCallableFactory.java
@@ -0,0 +1,114 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.security.publicca.v1.stub;
+
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcCallableFactory;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.BidiStreamingCallable;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientStreamingCallable;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * gRPC callable factory implementation for the PublicCertificateAuthorityService service API.
+ *
+ *
+ *
+ *
+ * {@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
+ * PublicCertificateAuthorityServiceStubSettings.Builder
+ * publicCertificateAuthorityServiceSettingsBuilder =
+ * PublicCertificateAuthorityServiceStubSettings.newBuilder();
+ * publicCertificateAuthorityServiceSettingsBuilder
+ * .createExternalAccountKeySettings()
+ * .setRetrySettings(
+ * publicCertificateAuthorityServiceSettingsBuilder
+ * .createExternalAccountKeySettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * PublicCertificateAuthorityServiceStubSettings publicCertificateAuthorityServiceSettings =
+ * publicCertificateAuthorityServiceSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class PublicCertificateAuthorityServiceStubSettings
+ extends StubSettings
+ * Creates a new + * [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] in + * a given project. + *+ * + * Protobuf type {@code google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest} + */ +public final class CreateExternalAccountKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest) + CreateExternalAccountKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateExternalAccountKeyRequest.newBuilder() to construct. + private CreateExternalAccountKeyRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CreateExternalAccountKeyRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateExternalAccountKeyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.publicca.v1.ServiceProto + .internal_static_google_cloud_security_publicca_v1_CreateExternalAccountKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.security.publicca.v1.ServiceProto + .internal_static_google_cloud_security_publicca_v1_CreateExternalAccountKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest.class, + com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+ * Required. The parent resource where this external_account_key will be + * created. Format: projects/[project_id]/locations/[location]. At present + * only the "global" location is supported. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The parent resource where this external_account_key will be + * created. Format: projects/[project_id]/locations/[location]. At present + * only the "global" location is supported. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXTERNAL_ACCOUNT_KEY_FIELD_NUMBER = 2;
+ private com.google.cloud.security.publicca.v1.ExternalAccountKey externalAccountKey_;
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the externalAccountKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasExternalAccountKey() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The externalAccountKey.
+ */
+ @java.lang.Override
+ public com.google.cloud.security.publicca.v1.ExternalAccountKey getExternalAccountKey() {
+ return externalAccountKey_ == null
+ ? com.google.cloud.security.publicca.v1.ExternalAccountKey.getDefaultInstance()
+ : externalAccountKey_;
+ }
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.security.publicca.v1.ExternalAccountKeyOrBuilder
+ getExternalAccountKeyOrBuilder() {
+ return externalAccountKey_ == null
+ ? com.google.cloud.security.publicca.v1.ExternalAccountKey.getDefaultInstance()
+ : externalAccountKey_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getExternalAccountKey());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExternalAccountKey());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest other =
+ (com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (hasExternalAccountKey() != other.hasExternalAccountKey()) return false;
+ if (hasExternalAccountKey()) {
+ if (!getExternalAccountKey().equals(other.getExternalAccountKey())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasExternalAccountKey()) {
+ hash = (37 * hash) + EXTERNAL_ACCOUNT_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getExternalAccountKey().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Creates a new + * [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] in + * a given project. + *+ * + * Protobuf type {@code google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The parent resource where this external_account_key will be + * created. Format: projects/[project_id]/locations/[location]. At present + * only the "global" location is supported. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The parent resource where this external_account_key will be + * created. Format: projects/[project_id]/locations/[location]. At present + * only the "global" location is supported. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The parent resource where this external_account_key will be + * created. Format: projects/[project_id]/locations/[location]. At present + * only the "global" location is supported. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The parent resource where this external_account_key will be + * created. Format: projects/[project_id]/locations/[location]. At present + * only the "global" location is supported. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The parent resource where this external_account_key will be + * created. Format: projects/[project_id]/locations/[location]. At present + * only the "global" location is supported. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.security.publicca.v1.ExternalAccountKey externalAccountKey_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.security.publicca.v1.ExternalAccountKey,
+ com.google.cloud.security.publicca.v1.ExternalAccountKey.Builder,
+ com.google.cloud.security.publicca.v1.ExternalAccountKeyOrBuilder>
+ externalAccountKeyBuilder_;
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the externalAccountKey field is set.
+ */
+ public boolean hasExternalAccountKey() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The externalAccountKey.
+ */
+ public com.google.cloud.security.publicca.v1.ExternalAccountKey getExternalAccountKey() {
+ if (externalAccountKeyBuilder_ == null) {
+ return externalAccountKey_ == null
+ ? com.google.cloud.security.publicca.v1.ExternalAccountKey.getDefaultInstance()
+ : externalAccountKey_;
+ } else {
+ return externalAccountKeyBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setExternalAccountKey(
+ com.google.cloud.security.publicca.v1.ExternalAccountKey value) {
+ if (externalAccountKeyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ externalAccountKey_ = value;
+ } else {
+ externalAccountKeyBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setExternalAccountKey(
+ com.google.cloud.security.publicca.v1.ExternalAccountKey.Builder builderForValue) {
+ if (externalAccountKeyBuilder_ == null) {
+ externalAccountKey_ = builderForValue.build();
+ } else {
+ externalAccountKeyBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeExternalAccountKey(
+ com.google.cloud.security.publicca.v1.ExternalAccountKey value) {
+ if (externalAccountKeyBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && externalAccountKey_ != null
+ && externalAccountKey_
+ != com.google.cloud.security.publicca.v1.ExternalAccountKey.getDefaultInstance()) {
+ getExternalAccountKeyBuilder().mergeFrom(value);
+ } else {
+ externalAccountKey_ = value;
+ }
+ } else {
+ externalAccountKeyBuilder_.mergeFrom(value);
+ }
+ if (externalAccountKey_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearExternalAccountKey() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ externalAccountKey_ = null;
+ if (externalAccountKeyBuilder_ != null) {
+ externalAccountKeyBuilder_.dispose();
+ externalAccountKeyBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.security.publicca.v1.ExternalAccountKey.Builder
+ getExternalAccountKeyBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getExternalAccountKeyFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.security.publicca.v1.ExternalAccountKeyOrBuilder
+ getExternalAccountKeyOrBuilder() {
+ if (externalAccountKeyBuilder_ != null) {
+ return externalAccountKeyBuilder_.getMessageOrBuilder();
+ } else {
+ return externalAccountKey_ == null
+ ? com.google.cloud.security.publicca.v1.ExternalAccountKey.getDefaultInstance()
+ : externalAccountKey_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.security.publicca.v1.ExternalAccountKey,
+ com.google.cloud.security.publicca.v1.ExternalAccountKey.Builder,
+ com.google.cloud.security.publicca.v1.ExternalAccountKeyOrBuilder>
+ getExternalAccountKeyFieldBuilder() {
+ if (externalAccountKeyBuilder_ == null) {
+ externalAccountKeyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.security.publicca.v1.ExternalAccountKey,
+ com.google.cloud.security.publicca.v1.ExternalAccountKey.Builder,
+ com.google.cloud.security.publicca.v1.ExternalAccountKeyOrBuilder>(
+ getExternalAccountKey(), getParentForChildren(), isClean());
+ externalAccountKey_ = null;
+ }
+ return externalAccountKeyBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest)
+ private static final com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest();
+ }
+
+ public static com.google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The parent resource where this external_account_key will be + * created. Format: projects/[project_id]/locations/[location]. At present + * only the "global" location is supported. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. The parent resource where this external_account_key will be + * created. Format: projects/[project_id]/locations/[location]. At present + * only the "global" location is supported. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the externalAccountKey field is set.
+ */
+ boolean hasExternalAccountKey();
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The externalAccountKey.
+ */
+ com.google.cloud.security.publicca.v1.ExternalAccountKey getExternalAccountKey();
+ /**
+ *
+ *
+ * + * Required. The external account key to create. This field only exists to + * future-proof the API. At present, all fields in ExternalAccountKey are + * output only and all values are ignored. For the purpose of the + * CreateExternalAccountKeyRequest, set it to a default/empty value. + *+ * + *
+ * .google.cloud.security.publicca.v1.ExternalAccountKey external_account_key = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.security.publicca.v1.ExternalAccountKeyOrBuilder
+ getExternalAccountKeyOrBuilder();
+}
diff --git a/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/ExternalAccountKey.java b/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/ExternalAccountKey.java
new file mode 100644
index 000000000000..39c90fbad3de
--- /dev/null
+++ b/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/ExternalAccountKey.java
@@ -0,0 +1,935 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/security/publicca/v1/resources.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.security.publicca.v1;
+
+/**
+ *
+ *
+ * + * A representation of an ExternalAccountKey used for [external account + * binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) within ACME. + *+ * + * Protobuf type {@code google.cloud.security.publicca.v1.ExternalAccountKey} + */ +public final class ExternalAccountKey extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.security.publicca.v1.ExternalAccountKey) + ExternalAccountKeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExternalAccountKey.newBuilder() to construct. + private ExternalAccountKey(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ExternalAccountKey() { + name_ = ""; + keyId_ = ""; + b64MacKey_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExternalAccountKey(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.publicca.v1.ResourcesProto + .internal_static_google_cloud_security_publicca_v1_ExternalAccountKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.security.publicca.v1.ResourcesProto + .internal_static_google_cloud_security_publicca_v1_ExternalAccountKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.security.publicca.v1.ExternalAccountKey.class, + com.google.cloud.security.publicca.v1.ExternalAccountKey.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+ * Output only. Resource name.
+ * projects/{project}/locations/{location}/externalAccountKeys/{key_id}
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Resource name.
+ * projects/{project}/locations/{location}/externalAccountKeys/{key_id}
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KEY_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object keyId_ = "";
+ /**
+ *
+ *
+ * + * Output only. Key ID. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The keyId.
+ */
+ @java.lang.Override
+ public java.lang.String getKeyId() {
+ java.lang.Object ref = keyId_;
+ 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();
+ keyId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Key ID. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for keyId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getKeyIdBytes() {
+ java.lang.Object ref = keyId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keyId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int B64_MAC_KEY_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString b64MacKey_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ *
+ * + * Output only. Base64-URL-encoded HS256 key. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
bytes b64_mac_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The b64MacKey.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getB64MacKey() {
+ return b64MacKey_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyId_);
+ }
+ if (!b64MacKey_.isEmpty()) {
+ output.writeBytes(3, b64MacKey_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyId_);
+ }
+ if (!b64MacKey_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, b64MacKey_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.security.publicca.v1.ExternalAccountKey)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.security.publicca.v1.ExternalAccountKey other =
+ (com.google.cloud.security.publicca.v1.ExternalAccountKey) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getKeyId().equals(other.getKeyId())) return false;
+ if (!getB64MacKey().equals(other.getB64MacKey())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + KEY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getKeyId().hashCode();
+ hash = (37 * hash) + B64_MAC_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getB64MacKey().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.security.publicca.v1.ExternalAccountKey prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * A representation of an ExternalAccountKey used for [external account + * binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) within ACME. + *+ * + * Protobuf type {@code google.cloud.security.publicca.v1.ExternalAccountKey} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. Resource name.
+ * projects/{project}/locations/{location}/externalAccountKeys/{key_id}
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Resource name.
+ * projects/{project}/locations/{location}/externalAccountKeys/{key_id}
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Resource name.
+ * projects/{project}/locations/{location}/externalAccountKeys/{key_id}
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Resource name.
+ * projects/{project}/locations/{location}/externalAccountKeys/{key_id}
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Resource name.
+ * projects/{project}/locations/{location}/externalAccountKeys/{key_id}
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object keyId_ = "";
+ /**
+ *
+ *
+ * + * Output only. Key ID. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The keyId.
+ */
+ public java.lang.String getKeyId() {
+ java.lang.Object ref = keyId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keyId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Key ID. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for keyId.
+ */
+ public com.google.protobuf.ByteString getKeyIdBytes() {
+ java.lang.Object ref = keyId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keyId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Key ID. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The keyId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeyId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ keyId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Key ID. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKeyId() {
+ keyId_ = getDefaultInstance().getKeyId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Key ID. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for keyId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeyIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ keyId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString b64MacKey_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ *
+ * + * Output only. Base64-URL-encoded HS256 key. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
bytes b64_mac_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The b64MacKey.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getB64MacKey() {
+ return b64MacKey_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Base64-URL-encoded HS256 key. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
bytes b64_mac_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The b64MacKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setB64MacKey(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ b64MacKey_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Base64-URL-encoded HS256 key. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
bytes b64_mac_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearB64MacKey() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ b64MacKey_ = getDefaultInstance().getB64MacKey();
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.security.publicca.v1.ExternalAccountKey)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.security.publicca.v1.ExternalAccountKey)
+ private static final com.google.cloud.security.publicca.v1.ExternalAccountKey DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.security.publicca.v1.ExternalAccountKey();
+ }
+
+ public static com.google.cloud.security.publicca.v1.ExternalAccountKey getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. Resource name.
+ * projects/{project}/locations/{location}/externalAccountKeys/{key_id}
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Output only. Resource name.
+ * projects/{project}/locations/{location}/externalAccountKeys/{key_id}
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Output only. Key ID. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The keyId.
+ */
+ java.lang.String getKeyId();
+ /**
+ *
+ *
+ * + * Output only. Key ID. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for keyId.
+ */
+ com.google.protobuf.ByteString getKeyIdBytes();
+
+ /**
+ *
+ *
+ * + * Output only. Base64-URL-encoded HS256 key. + * It is generated by the PublicCertificateAuthorityService + * when the ExternalAccountKey is created + *+ * + *
bytes b64_mac_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The b64MacKey.
+ */
+ com.google.protobuf.ByteString getB64MacKey();
+}
diff --git a/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/LocationName.java b/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/LocationName.java
new file mode 100644
index 000000000000..cfa3019c5b81
--- /dev/null
+++ b/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/LocationName.java
@@ -0,0 +1,192 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.security.publicca.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
+public class LocationName implements ResourceName {
+ private static final PathTemplate PROJECT_LOCATION =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
+ private volatile Map