diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java index 8da150f423d8..a111c96aac5d 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java @@ -362,6 +362,44 @@ * * * + *
EnableManagedRotation
Enables the managed rotation feature for a [Secret][google.cloud.secretmanager.v1.Secret]. This method can only be triggered once for a secret. In order to do further rotations, RotateSecret should be used. This method will add a secret version and update the password in Cloud SQL.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *enableManagedRotation(EnableManagedRotationRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *enableManagedRotation(SecretName parent, EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials) + *
enableManagedRotation(String parent, EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *enableManagedRotationCallable() + *
RotateSecret
Do a managed rotation for a [Secret][google.cloud.secretmanager.v1.Secret]. This can only be triggered after Managed rotation has been enabled. This method will add a secret version and update the password in Cloud SQL.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *rotateSecret(RotateSecretRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *rotateSecret(SecretName parent) + *
rotateSecret(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *rotateSecretCallable() + *
See the individual methods for example code. @@ -2484,6 +2522,280 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq return stub.testIamPermissionsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables the managed rotation feature for a [Secret][google.cloud.secretmanager.v1.Secret]. This + * method can only be triggered once for a secret. In order to do further rotations, RotateSecret + * should be used. This method will add a secret version and update the password in Cloud SQL. + * + *
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 (SecretManagerServiceClient secretManagerServiceClient =
+ * SecretManagerServiceClient.create()) {
+ * SecretName parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]");
+ * EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials =
+ * EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build();
+ * SecretVersion response =
+ * secretManagerServiceClient.enableManagedRotation(parent, cloudSqlSingleUserCredentials);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret]
+ * to associate with the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
+ * format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
+ * @param cloudSqlSingleUserCredentials Credentials required for Cloud SQL DB for Single user
+ * Managed Rotation.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SecretVersion enableManagedRotation(
+ SecretName parent,
+ EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials) {
+ EnableManagedRotationRequest request =
+ EnableManagedRotationRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setCloudSqlSingleUserCredentials(cloudSqlSingleUserCredentials)
+ .build();
+ return enableManagedRotation(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Enables the managed rotation feature for a [Secret][google.cloud.secretmanager.v1.Secret]. This
+ * method can only be triggered once for a secret. In order to do further rotations, RotateSecret
+ * should be used. This method will add a secret version and update the password in Cloud SQL.
+ *
+ * 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 (SecretManagerServiceClient secretManagerServiceClient =
+ * SecretManagerServiceClient.create()) {
+ * String parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString();
+ * EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials =
+ * EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build();
+ * SecretVersion response =
+ * secretManagerServiceClient.enableManagedRotation(parent, cloudSqlSingleUserCredentials);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret]
+ * to associate with the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
+ * format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
+ * @param cloudSqlSingleUserCredentials Credentials required for Cloud SQL DB for Single user
+ * Managed Rotation.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SecretVersion enableManagedRotation(
+ String parent,
+ EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials) {
+ EnableManagedRotationRequest request =
+ EnableManagedRotationRequest.newBuilder()
+ .setParent(parent)
+ .setCloudSqlSingleUserCredentials(cloudSqlSingleUserCredentials)
+ .build();
+ return enableManagedRotation(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Enables the managed rotation feature for a [Secret][google.cloud.secretmanager.v1.Secret]. This
+ * method can only be triggered once for a secret. In order to do further rotations, RotateSecret
+ * should be used. This method will add a secret version and update the password in Cloud SQL.
+ *
+ * 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 (SecretManagerServiceClient secretManagerServiceClient =
+ * SecretManagerServiceClient.create()) {
+ * EnableManagedRotationRequest request =
+ * EnableManagedRotationRequest.newBuilder()
+ * .setParent(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString())
+ * .build();
+ * SecretVersion response = secretManagerServiceClient.enableManagedRotation(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 SecretVersion enableManagedRotation(EnableManagedRotationRequest request) {
+ return enableManagedRotationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Enables the managed rotation feature for a [Secret][google.cloud.secretmanager.v1.Secret]. This
+ * method can only be triggered once for a secret. In order to do further rotations, RotateSecret
+ * should be used. This method will add a secret version and update the password in Cloud SQL.
+ *
+ * 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 (SecretManagerServiceClient secretManagerServiceClient =
+ * SecretManagerServiceClient.create()) {
+ * EnableManagedRotationRequest request =
+ * EnableManagedRotationRequest.newBuilder()
+ * .setParent(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString())
+ * .build();
+ * ApiFuture future =
+ * secretManagerServiceClient.enableManagedRotationCallable().futureCall(request);
+ * // Do something.
+ * SecretVersion response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (SecretManagerServiceClient secretManagerServiceClient =
+ * SecretManagerServiceClient.create()) {
+ * SecretName parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]");
+ * SecretVersion response = secretManagerServiceClient.rotateSecret(parent);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret]
+ * to associate with the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
+ * format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SecretVersion rotateSecret(SecretName parent) {
+ RotateSecretRequest request =
+ RotateSecretRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return rotateSecret(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Do a managed rotation for a [Secret][google.cloud.secretmanager.v1.Secret]. This can only be
+ * triggered after Managed rotation has been enabled. This method will add a secret version and
+ * update the password in Cloud SQL.
+ *
+ * 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 (SecretManagerServiceClient secretManagerServiceClient =
+ * SecretManagerServiceClient.create()) {
+ * String parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString();
+ * SecretVersion response = secretManagerServiceClient.rotateSecret(parent);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret]
+ * to associate with the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
+ * format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SecretVersion rotateSecret(String parent) {
+ RotateSecretRequest request = RotateSecretRequest.newBuilder().setParent(parent).build();
+ return rotateSecret(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Do a managed rotation for a [Secret][google.cloud.secretmanager.v1.Secret]. This can only be
+ * triggered after Managed rotation has been enabled. This method will add a secret version and
+ * update the password in Cloud SQL.
+ *
+ * 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 (SecretManagerServiceClient secretManagerServiceClient =
+ * SecretManagerServiceClient.create()) {
+ * RotateSecretRequest request =
+ * RotateSecretRequest.newBuilder()
+ * .setParent(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString())
+ * .build();
+ * SecretVersion response = secretManagerServiceClient.rotateSecret(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 SecretVersion rotateSecret(RotateSecretRequest request) {
+ return rotateSecretCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Do a managed rotation for a [Secret][google.cloud.secretmanager.v1.Secret]. This can only be
+ * triggered after Managed rotation has been enabled. This method will add a secret version and
+ * update the password in Cloud SQL.
+ *
+ * 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 (SecretManagerServiceClient secretManagerServiceClient =
+ * SecretManagerServiceClient.create()) {
+ * RotateSecretRequest request =
+ * RotateSecretRequest.newBuilder()
+ * .setParent(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString())
+ * .build();
+ * ApiFuture future =
+ * secretManagerServiceClient.rotateSecretCallable().futureCall(request);
+ * // Do something.
+ * SecretVersion response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable+ * Enables the managed rotation feature for a + * [Secret][google.cloud.secretmanager.v1.Secret]. This method can only be + * triggered once for a secret. In order to do further rotations, RotateSecret + * should be used. This method will add a secret version and update the + * password in Cloud SQL. + *+ */ + default void enableManagedRotation( + com.google.cloud.secretmanager.v1.EnableManagedRotationRequest request, + io.grpc.stub.StreamObserver
+ * Do a managed rotation for a [Secret][google.cloud.secretmanager.v1.Secret]. + * This can only be triggered after Managed rotation has been enabled. + * This method will add a secret version and update the password in Cloud SQL. + *+ */ + default void rotateSecret( + com.google.cloud.secretmanager.v1.RotateSecretRequest request, + io.grpc.stub.StreamObserver
+ * Enables the managed rotation feature for a + * [Secret][google.cloud.secretmanager.v1.Secret]. This method can only be + * triggered once for a secret. In order to do further rotations, RotateSecret + * should be used. This method will add a secret version and update the + * password in Cloud SQL. + *+ */ + public void enableManagedRotation( + com.google.cloud.secretmanager.v1.EnableManagedRotationRequest request, + io.grpc.stub.StreamObserver
+ * Do a managed rotation for a [Secret][google.cloud.secretmanager.v1.Secret]. + * This can only be triggered after Managed rotation has been enabled. + * This method will add a secret version and update the password in Cloud SQL. + *+ */ + public void rotateSecret( + com.google.cloud.secretmanager.v1.RotateSecretRequest request, + io.grpc.stub.StreamObserver
+ * Enables the managed rotation feature for a + * [Secret][google.cloud.secretmanager.v1.Secret]. This method can only be + * triggered once for a secret. In order to do further rotations, RotateSecret + * should be used. This method will add a secret version and update the + * password in Cloud SQL. + *+ */ + public com.google.cloud.secretmanager.v1.SecretVersion enableManagedRotation( + com.google.cloud.secretmanager.v1.EnableManagedRotationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getEnableManagedRotationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Do a managed rotation for a [Secret][google.cloud.secretmanager.v1.Secret]. + * This can only be triggered after Managed rotation has been enabled. + * This method will add a secret version and update the password in Cloud SQL. + *+ */ + public com.google.cloud.secretmanager.v1.SecretVersion rotateSecret( + com.google.cloud.secretmanager.v1.RotateSecretRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRotateSecretMethod(), getCallOptions(), request); + } } /** @@ -1880,6 +2086,38 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } + + /** + * + * + *
+ * Enables the managed rotation feature for a + * [Secret][google.cloud.secretmanager.v1.Secret]. This method can only be + * triggered once for a secret. In order to do further rotations, RotateSecret + * should be used. This method will add a secret version and update the + * password in Cloud SQL. + *+ */ + public com.google.cloud.secretmanager.v1.SecretVersion enableManagedRotation( + com.google.cloud.secretmanager.v1.EnableManagedRotationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnableManagedRotationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Do a managed rotation for a [Secret][google.cloud.secretmanager.v1.Secret]. + * This can only be triggered after Managed rotation has been enabled. + * This method will add a secret version and update the password in Cloud SQL. + *+ */ + public com.google.cloud.secretmanager.v1.SecretVersion rotateSecret( + com.google.cloud.secretmanager.v1.RotateSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRotateSecretMethod(), getCallOptions(), request); + } } /** @@ -2146,6 +2384,41 @@ protected SecretManagerServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * Enables the managed rotation feature for a + * [Secret][google.cloud.secretmanager.v1.Secret]. This method can only be + * triggered once for a secret. In order to do further rotations, RotateSecret + * should be used. This method will add a secret version and update the + * password in Cloud SQL. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.SecretVersion> + enableManagedRotation( + com.google.cloud.secretmanager.v1.EnableManagedRotationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnableManagedRotationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Do a managed rotation for a [Secret][google.cloud.secretmanager.v1.Secret]. + * This can only be triggered after Managed rotation has been enabled. + * This method will add a secret version and update the password in Cloud SQL. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.SecretVersion> + rotateSecret(com.google.cloud.secretmanager.v1.RotateSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRotateSecretMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_SECRETS = 0; @@ -2163,6 +2436,8 @@ protected SecretManagerServiceFutureStub build( private static final int METHODID_SET_IAM_POLICY = 12; private static final int METHODID_GET_IAM_POLICY = 13; private static final int METHODID_TEST_IAM_PERMISSIONS = 14; + private static final int METHODID_ENABLE_MANAGED_ROTATION = 15; + private static final int METHODID_ROTATE_SECRET = 16; private static final class MethodHandlers
+ * Request message for + * [SecretManagerService.EnableManagedRotation][google.cloud.secretmanager.v1.SecretManagerService.EnableManagedRotation]. + *+ * + * Protobuf type {@code google.cloud.secretmanager.v1.EnableManagedRotationRequest} + */ +@com.google.protobuf.Generated +public final class EnableManagedRotationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.EnableManagedRotationRequest) + EnableManagedRotationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EnableManagedRotationRequest"); + } + + // Use EnableManagedRotationRequest.newBuilder() to construct. + private EnableManagedRotationRequest(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private EnableManagedRotationRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.class, + com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.Builder.class); + } + + public interface CloudSQLSingleUserCredentialsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Required. Instance ID of the Cloud SQL instance. + *+ * + *
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The instanceId.
+ */
+ java.lang.String getInstanceId();
+
+ /**
+ *
+ *
+ * + * Required. Instance ID of the Cloud SQL instance. + *+ * + *
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for instanceId.
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ *
+ *
+ * + * Required. Username of the Cloud SQL instance. + *+ * + *
string username = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The username.
+ */
+ java.lang.String getUsername();
+
+ /**
+ *
+ *
+ * + * Required. Username of the Cloud SQL instance. + *+ * + *
string username = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for username.
+ */
+ com.google.protobuf.ByteString getUsernameBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Password of the Cloud SQL instance. If this is not provided, + * a random password will be generated. + *+ * + *
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The password.
+ */
+ java.lang.String getPassword();
+
+ /**
+ *
+ *
+ * + * Optional. Password of the Cloud SQL instance. If this is not provided, + * a random password will be generated. + *+ * + *
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for password.
+ */
+ com.google.protobuf.ByteString getPasswordBytes();
+ }
+
+ /**
+ *
+ *
+ * + * These are the credentials required for Cloud SQL DB for Single user + * Managed Rotation. + *+ * + * Protobuf type {@code + * google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials} + */ + public static final class CloudSQLSingleUserCredentials + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials) + CloudSQLSingleUserCredentialsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloudSQLSingleUserCredentials"); + } + + // Use CloudSQLSingleUserCredentials.newBuilder() to construct. + private CloudSQLSingleUserCredentials(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private CloudSQLSingleUserCredentials() { + instanceId_ = ""; + username_ = ""; + password_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_CloudSQLSingleUserCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_CloudSQLSingleUserCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.EnableManagedRotationRequest + .CloudSQLSingleUserCredentials.class, + com.google.cloud.secretmanager.v1.EnableManagedRotationRequest + .CloudSQLSingleUserCredentials.Builder.class); + } + + public static final int INSTANCE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + + /** + * + * + *
+ * Required. Instance ID of the Cloud SQL instance. + *+ * + *
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The instanceId.
+ */
+ @java.lang.Override
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ 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();
+ instanceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Instance ID of the Cloud SQL instance. + *+ * + *
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for instanceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USERNAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object username_ = "";
+
+ /**
+ *
+ *
+ * + * Required. Username of the Cloud SQL instance. + *+ * + *
string username = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The username.
+ */
+ @java.lang.Override
+ public java.lang.String getUsername() {
+ java.lang.Object ref = username_;
+ 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();
+ username_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Username of the Cloud SQL instance. + *+ * + *
string username = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for username.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUsernameBytes() {
+ java.lang.Object ref = username_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ username_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PASSWORD_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object password_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. Password of the Cloud SQL instance. If this is not provided, + * a random password will be generated. + *+ * + *
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The password.
+ */
+ @java.lang.Override
+ public java.lang.String getPassword() {
+ java.lang.Object ref = password_;
+ 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();
+ password_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Password of the Cloud SQL instance. If this is not provided, + * a random password will be generated. + *+ * + *
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for password.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPasswordBytes() {
+ java.lang.Object ref = password_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ password_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, username_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, password_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, username_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, password_);
+ }
+ 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.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials
+ other =
+ (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials)
+ obj;
+
+ if (!getInstanceId().equals(other.getInstanceId())) return false;
+ if (!getUsername().equals(other.getUsername())) return false;
+ if (!getPassword().equals(other.getPassword())) 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) + INSTANCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ hash = (37 * hash) + USERNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUsername().hashCode();
+ hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
+ hash = (53 * hash) + getPassword().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ 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.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ 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.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials
+ 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * These are the credentials required for Cloud SQL DB for Single user + * Managed Rotation. + *+ * + * Protobuf type {@code + * google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. Instance ID of the Cloud SQL instance. + *+ * + *
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The instanceId.
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instanceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Instance ID of the Cloud SQL instance. + *+ * + *
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for instanceId.
+ */
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Instance ID of the Cloud SQL instance. + *+ * + *
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Instance ID of the Cloud SQL instance. + *+ * + *
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceId() {
+ instanceId_ = getDefaultInstance().getInstanceId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Instance ID of the Cloud SQL instance. + *+ * + *
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object username_ = "";
+
+ /**
+ *
+ *
+ * + * Required. Username of the Cloud SQL instance. + *+ * + *
string username = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The username.
+ */
+ public java.lang.String getUsername() {
+ java.lang.Object ref = username_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ username_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Username of the Cloud SQL instance. + *+ * + *
string username = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for username.
+ */
+ public com.google.protobuf.ByteString getUsernameBytes() {
+ java.lang.Object ref = username_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ username_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Username of the Cloud SQL instance. + *+ * + *
string username = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The username to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUsername(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ username_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Username of the Cloud SQL instance. + *+ * + *
string username = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUsername() {
+ username_ = getDefaultInstance().getUsername();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Username of the Cloud SQL instance. + *+ * + *
string username = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for username to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUsernameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ username_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object password_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. Password of the Cloud SQL instance. If this is not provided, + * a random password will be generated. + *+ * + *
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The password.
+ */
+ public java.lang.String getPassword() {
+ java.lang.Object ref = password_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ password_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Password of the Cloud SQL instance. If this is not provided, + * a random password will be generated. + *+ * + *
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for password.
+ */
+ public com.google.protobuf.ByteString getPasswordBytes() {
+ java.lang.Object ref = password_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ password_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Password of the Cloud SQL instance. If this is not provided, + * a random password will be generated. + *+ * + *
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The password to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPassword(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ password_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Password of the Cloud SQL instance. If this is not provided, + * a random password will be generated. + *+ * + *
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPassword() {
+ password_ = getDefaultInstance().getPassword();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Password of the Cloud SQL instance. If this is not provided, + * a random password will be generated. + *+ * + *
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for password to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPasswordBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ password_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials)
+ private static final com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials();
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * 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 CLOUD_SQL_SINGLE_USER_CREDENTIALS_FIELD_NUMBER = 2;
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ *
+ * @return Whether the cloudSqlSingleUserCredentials field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudSqlSingleUserCredentials() {
+ return credentialsCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ *
+ * @return The cloudSqlSingleUserCredentials.
+ */
+ @java.lang.Override
+ public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ getCloudSqlSingleUserCredentials() {
+ if (credentialsCase_ == 2) {
+ return (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials)
+ credentials_;
+ }
+ return com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentialsOrBuilder
+ getCloudSqlSingleUserCredentialsOrBuilder() {
+ if (credentialsCase_ == 2) {
+ return (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials)
+ credentials_;
+ }
+ return com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_);
+ }
+ if (credentialsCase_ == 2) {
+ output.writeMessage(
+ 2,
+ (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials)
+ credentials_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_);
+ }
+ if (credentialsCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2,
+ (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials)
+ credentials_);
+ }
+ 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.secretmanager.v1.EnableManagedRotationRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest other =
+ (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getCredentialsCase().equals(other.getCredentialsCase())) return false;
+ switch (credentialsCase_) {
+ case 2:
+ if (!getCloudSqlSingleUserCredentials().equals(other.getCloudSqlSingleUserCredentials()))
+ return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ switch (credentialsCase_) {
+ case 2:
+ hash = (37 * hash) + CLOUD_SQL_SINGLE_USER_CREDENTIALS_FIELD_NUMBER;
+ hash = (53 * hash) + getCloudSqlSingleUserCredentials().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest 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.secretmanager.v1.EnableManagedRotationRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest 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.secretmanager.v1.EnableManagedRotationRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.secretmanager.v1.EnableManagedRotationRequest 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Request message for + * [SecretManagerService.EnableManagedRotation][google.cloud.secretmanager.v1.SecretManagerService.EnableManagedRotation]. + *+ * + * Protobuf type {@code google.cloud.secretmanager.v1.EnableManagedRotationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * 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 resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * 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 resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * 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.protobuf.SingleFieldBuilder<
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials,
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.Builder,
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentialsOrBuilder>
+ cloudSqlSingleUserCredentialsBuilder_;
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ *
+ * @return Whether the cloudSqlSingleUserCredentials field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudSqlSingleUserCredentials() {
+ return credentialsCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ *
+ * @return The cloudSqlSingleUserCredentials.
+ */
+ @java.lang.Override
+ public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials
+ getCloudSqlSingleUserCredentials() {
+ if (cloudSqlSingleUserCredentialsBuilder_ == null) {
+ if (credentialsCase_ == 2) {
+ return (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials)
+ credentials_;
+ }
+ return com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.getDefaultInstance();
+ } else {
+ if (credentialsCase_ == 2) {
+ return cloudSqlSingleUserCredentialsBuilder_.getMessage();
+ }
+ return com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ */
+ public Builder setCloudSqlSingleUserCredentials(
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials
+ value) {
+ if (cloudSqlSingleUserCredentialsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ credentials_ = value;
+ onChanged();
+ } else {
+ cloudSqlSingleUserCredentialsBuilder_.setMessage(value);
+ }
+ credentialsCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ */
+ public Builder setCloudSqlSingleUserCredentials(
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials
+ .Builder
+ builderForValue) {
+ if (cloudSqlSingleUserCredentialsBuilder_ == null) {
+ credentials_ = builderForValue.build();
+ onChanged();
+ } else {
+ cloudSqlSingleUserCredentialsBuilder_.setMessage(builderForValue.build());
+ }
+ credentialsCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ */
+ public Builder mergeCloudSqlSingleUserCredentials(
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials
+ value) {
+ if (cloudSqlSingleUserCredentialsBuilder_ == null) {
+ if (credentialsCase_ == 2
+ && credentials_
+ != com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.getDefaultInstance()) {
+ credentials_ =
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.newBuilder(
+ (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials)
+ credentials_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ credentials_ = value;
+ }
+ onChanged();
+ } else {
+ if (credentialsCase_ == 2) {
+ cloudSqlSingleUserCredentialsBuilder_.mergeFrom(value);
+ } else {
+ cloudSqlSingleUserCredentialsBuilder_.setMessage(value);
+ }
+ }
+ credentialsCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ */
+ public Builder clearCloudSqlSingleUserCredentials() {
+ if (cloudSqlSingleUserCredentialsBuilder_ == null) {
+ if (credentialsCase_ == 2) {
+ credentialsCase_ = 0;
+ credentials_ = null;
+ onChanged();
+ }
+ } else {
+ if (credentialsCase_ == 2) {
+ credentialsCase_ = 0;
+ credentials_ = null;
+ }
+ cloudSqlSingleUserCredentialsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ */
+ public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.Builder
+ getCloudSqlSingleUserCredentialsBuilder() {
+ return internalGetCloudSqlSingleUserCredentialsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentialsOrBuilder
+ getCloudSqlSingleUserCredentialsOrBuilder() {
+ if ((credentialsCase_ == 2) && (cloudSqlSingleUserCredentialsBuilder_ != null)) {
+ return cloudSqlSingleUserCredentialsBuilder_.getMessageOrBuilder();
+ } else {
+ if (credentialsCase_ == 2) {
+ return (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials)
+ credentials_;
+ }
+ return com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials,
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.Builder,
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentialsOrBuilder>
+ internalGetCloudSqlSingleUserCredentialsFieldBuilder() {
+ if (cloudSqlSingleUserCredentialsBuilder_ == null) {
+ if (!(credentialsCase_ == 2)) {
+ credentials_ =
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.getDefaultInstance();
+ }
+ cloudSqlSingleUserCredentialsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials,
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials.Builder,
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentialsOrBuilder>(
+ (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentials)
+ credentials_,
+ getParentForChildren(),
+ isClean());
+ credentials_ = null;
+ }
+ credentialsCase_ = 2;
+ onChanged();
+ return cloudSqlSingleUserCredentialsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.EnableManagedRotationRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.EnableManagedRotationRequest)
+ private static final com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.EnableManagedRotationRequest();
+ }
+
+ public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+
+ /**
+ *
+ *
+ * + * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ *
+ * @return Whether the cloudSqlSingleUserCredentials field is set.
+ */
+ boolean hasCloudSqlSingleUserCredentials();
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ *
+ * @return The cloudSqlSingleUserCredentials.
+ */
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials
+ getCloudSqlSingleUserCredentials();
+
+ /**
+ *
+ *
+ * + * Credentials required for Cloud SQL DB for Single user Managed Rotation. + *+ * + *
+ * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2;
+ *
+ */
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest
+ .CloudSQLSingleUserCredentialsOrBuilder
+ getCloudSqlSingleUserCredentialsOrBuilder();
+
+ com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CredentialsCase
+ getCredentialsCase();
+}
diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java
index 83da625f5690..f62a3fb61eba 100644
--- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java
+++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java
@@ -112,6 +112,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_secretmanager_v1_Rotation_ManagedRotationStatus_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_secretmanager_v1_Rotation_ManagedRotationStatus_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -129,33 +133,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "-google/cloud/secretmanager/v1/resource"
+ "s.proto\022\035google.cloud.secretmanager.v1\032\037"
+ "google/api/field_behavior.proto\032\031google/"
- + "api/resource.proto\032\036google/protobuf/dura"
- + "tion.proto\032\037google/protobuf/timestamp.proto\"\331\t\n"
+ + "api/resource.proto\032*google/iam/v1/resour"
+ + "ce_policy_member.proto\032\036google/protobuf/"
+ + "duration.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\371\013\n"
+ "\006Secret\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\022G\n"
- + "\013replication\030\002"
- + " \001(\0132*.google.cloud.secretmanager.v1.ReplicationB\006\340A\005\340A\001\0224\n"
+ + "\013replication\030\002 "
+ + "\001(\0132*.google.cloud.secretmanager.v1.ReplicationB\006\340A\005\340A\001\0224\n"
+ "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022A\n"
+ "\006labels\030\004 \003(\01321.google.cloud.secretmanager.v1.Secret.LabelsEntry\0229\n"
- + "\006topics\030\005 "
- + "\003(\0132$.google.cloud.secretmanager.v1.TopicB\003\340A\001\0226\n"
+ + "\006topics\030\005"
+ + " \003(\0132$.google.cloud.secretmanager.v1.TopicB\003\340A\001\0226\n"
+ "\013expire_time\030\006"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022-\n"
+ "\003ttl\030\007 \001(\0132\031.google.protobuf.DurationB\003\340A\004H\000\022\021\n"
+ "\004etag\030\010 \001(\tB\003\340A\001\022>\n"
+ "\010rotation\030\t"
+ " \001(\0132\'.google.cloud.secretmanager.v1.RotationB\003\340A\001\022W\n"
- + "\017version_aliases\030\013 \003(\01329.google.cloud.secretm"
- + "anager.v1.Secret.VersionAliasesEntryB\003\340A\001\022P\n"
+ + "\017version_aliases\030\013"
+ + " \003(\01329.google.cloud.secretmanager.v1.Secret.VersionAliasesEntryB\003\340A\001\022P\n"
+ "\013annotations\030\r"
- + " \003(\01326.google.cloud.se"
- + "cretmanager.v1.Secret.AnnotationsEntryB\003\340A\001\022;\n"
+ + " \003(\01326.google.cloud.secretmanager.v1.Secret.AnnotationsEntryB\003\340A\001\022;\n"
+ "\023version_destroy_ttl\030\016"
+ " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022b\n"
- + "\033customer_managed_encryption\030\017 \001(\01328.google.cloud.sec"
- + "retmanager.v1.CustomerManagedEncryptionB\003\340A\001\022H\n"
+ + "\033customer_managed_encryption\030\017"
+ + " \001(\01328.google.cloud.secretmanager.v1.CustomerManagedEncryptionB\003\340A\001\022H\n"
+ "\004tags\030\020 \003(\0132/.google.cloud.secretmanager.v1.Secret.TagsEntryB"
- + "\t\340A\004\340A\005\340A\001\032-\n"
+ + "\t\340A\004\340A\005\340A\001\022M\n"
+ + "\013secret_type\030\021"
+ + " \001(\01620.google.cloud.secretmanager.v1.Secret.SecretTypeB\006\340A\005\340A\001\022?\n\r"
+ + "policy_member\030\022"
+ + " \001(\0132#.google.iam.v1.ResourcePolicyMemberB\003\340A\003\032-\n"
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001\0325\n"
@@ -167,9 +175,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005value\030\002 \001(\t:\0028\001\032+\n"
+ "\tTagsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
- + "\005value\030\002 \001(\t:\0028\001:\231\001\352A\225\001\n"
- + "#secretmanager.googleapis.com/Secret\022#projects/{project}/secrets/{secret}\0228"
- + "projects/{project}/locations/{location}/secrets/{secret}*\007secrets2\006secretB\014\n\n"
+ + "\005value\030\002 \001(\t:\0028\001\"\215\001\n\n"
+ + "SecretType\022\033\n"
+ + "\027SECRET_TYPE_UNSPECIFIED\020\000\022\034\n"
+ + "\030CLOUD_SQL_DB_CREDENTIALS\020\001\022\016\n\n"
+ + "ACCESS_KEY\020\002\022\017\n"
+ + "\013CERTIFICATE\020\003\022\030\n"
+ + "\024OTHER_DB_CREDENTIALS\020\004\022\t\n"
+ + "\005OTHER\0202:\231\001\352A\225\001\n"
+ + "#secretmanager.googleapis.com/Secret\022#projects/{project}/secrets/{secret}\0228pro"
+ + "jects/{project}/locations/{location}/secrets/{secret}*\007secrets2\006secretB\014\n\n"
+ "expiration\"\302\006\n\r"
+ "SecretVersion\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\0224\n"
@@ -183,69 +198,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "!client_specified_payload_checksum\030\007 \001(\010B\003\340A\003\022?\n"
+ "\026scheduled_destroy_time\030\010"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022h\n"
- + "\033customer_managed_encryption\030\t \001(\0132>.googl"
- + "e.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\003\340A\003\"H\n"
+ + "\033customer_managed_encryption\030\t \001(\0132>.google.c"
+ + "loud.secretmanager.v1.CustomerManagedEncryptionStatusB\003\340A\003\"H\n"
+ "\005State\022\025\n"
+ "\021STATE_UNSPECIFIED\020\000\022\013\n"
+ "\007ENABLED\020\001\022\014\n"
+ "\010DISABLED\020\002\022\r\n"
+ "\tDESTROYED\020\003:\342\001\352A\336\001\n"
- + "*secretmanager.googleapis.com/SecretVersion\022=projects/{pr"
- + "oject}/secrets/{secret}/versions/{secret_version}\022Rprojects/{project}/locations/"
- + "{location}/secrets/{secret}/versions/{secret_version}*\016secretVersions2\r"
+ + "*secretmanager.googleapis.com/SecretVersion\022=projects/{proje"
+ + "ct}/secrets/{secret}/versions/{secret_version}\022Rprojects/{project}/locations/{lo"
+ + "cation}/secrets/{secret}/versions/{secret_version}*\016secretVersions2\r"
+ "secretVersion\"\220\004\n"
+ "\013Replication\022I\n"
- + "\tautomatic\030\001 \001(\0132"
- + "4.google.cloud.secretmanager.v1.Replication.AutomaticH\000\022N\n"
- + "\014user_managed\030\002 \001(\01326."
- + "google.cloud.secretmanager.v1.Replication.UserManagedH\000\032o\n"
+ + "\tautomatic\030\001 \001(\01324.g"
+ + "oogle.cloud.secretmanager.v1.Replication.AutomaticH\000\022N\n"
+ + "\014user_managed\030\002 \001(\01326.goo"
+ + "gle.cloud.secretmanager.v1.Replication.UserManagedH\000\032o\n"
+ "\tAutomatic\022b\n"
- + "\033customer_managed_encryption\030\001 \001(\01328.google.cloud"
- + ".secretmanager.v1.CustomerManagedEncryptionB\003\340A\001\032\345\001\n"
+ + "\033customer_managed_encryption\030\001 \001(\01328.google.cloud.se"
+ + "cretmanager.v1.CustomerManagedEncryptionB\003\340A\001\032\345\001\n"
+ "\013UserManaged\022U\n"
- + "\010replicas\030\001 \003"
- + "(\0132>.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaB\003\340A\002\032\177\n"
+ + "\010replicas\030\001 \003(\0132"
+ + ">.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaB\003\340A\002\032\177\n"
+ "\007Replica\022\020\n"
+ "\010location\030\001 \001(\t\022b\n"
- + "\033customer_managed_encryption\030\002 \001(\01328.google.cloud.secretm"
- + "anager.v1.CustomerManagedEncryptionB\003\340A\001B\r\n"
+ + "\033customer_managed_encryption\030\002"
+ + " \001(\01328.google.cloud.secretmanager.v1.CustomerManagedEncryptionB\003\340A\001B\r\n"
+ "\013replication\"6\n"
+ "\031CustomerManagedEncryption\022\031\n"
+ "\014kms_key_name\030\001 \001(\tB\003\340A\002\"\353\004\n"
+ "\021ReplicationStatus\022U\n"
- + "\tautomatic\030\001 \001(\0132@.googl"
- + "e.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusH\000\022Z\n"
- + "\014user_managed\030\002 \001"
- + "(\0132B.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusH\000\032{\n"
+ + "\tautomatic\030\001 \001(\0132@.google.c"
+ + "loud.secretmanager.v1.ReplicationStatus.AutomaticStatusH\000\022Z\n"
+ + "\014user_managed\030\002 \001(\0132"
+ + "B.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusH\000\032{\n"
+ "\017AutomaticStatus\022h\n"
- + "\033customer_managed_encryption\030\001 \001(\0132>.google.cloud.secretmanager.v1"
- + ".CustomerManagedEncryptionStatusB\003\340A\003\032\217\002\n"
+ + "\033customer_managed_encryption\030\001"
+ + " \001(\0132>.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\003\340A\003\032\217\002\n"
+ "\021UserManagedStatus\022g\n"
- + "\010replicas\030\001 \003(\0132P.google.cloud.secretmanager.v1.Replicatio"
- + "nStatus.UserManagedStatus.ReplicaStatusB\003\340A\003\032\220\001\n\r"
+ + "\010replicas\030\001 \003(\0132P.google.cloud.secretmanager.v1.ReplicationSt"
+ + "atus.UserManagedStatus.ReplicaStatusB\003\340A\003\032\220\001\n\r"
+ "ReplicaStatus\022\025\n"
+ "\010location\030\001 \001(\tB\003\340A\003\022h\n"
- + "\033customer_managed_encryption\030\002 \001"
- + "(\0132>.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\003\340A\003B\024\n"
+ + "\033customer_managed_encryption\030\002 \001(\0132"
+ + ">.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\003\340A\003B\024\n"
+ "\022replication_status\"D\n"
+ "\037CustomerManagedEncryptionStatus\022!\n"
+ "\024kms_key_version_name\030\001 \001(\tB\003\340A\002\"_\n"
+ "\005Topic\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\010:C\352A@\n"
- + "\033pubsub.googleapis.com/Topic\022!projects/{project}/topics/{topic}\"\200\001\n"
+ + "\033pubsub.googleapis.com/Topic\022!projects/{project}/topics/{topic}\"\272\003\n"
+ "\010Rotation\022;\n"
+ "\022next_rotation_time\030\001"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\0227\n"
+ "\017rotation_period\030\002"
- + " \001(\0132\031.google.protobuf.DurationB\003\340A\004\"L\n\r"
+ + " \001(\0132\031.google.protobuf.DurationB\003\340A\004\022c\n"
+ + "\027managed_rotation_status\030\003 \001(\0132=.google.cloud.sec"
+ + "retmanager.v1.Rotation.ManagedRotationStatusB\003\340A\003\032\322\001\n"
+ + "\025ManagedRotationStatus\022W\n"
+ + "\005state\030\001 \001(\0162C.google.cloud.secretmanager."
+ + "v1.Rotation.ManagedRotationStatus.StateB\003\340A\003\022&\n"
+ + "\005error\030\002 \001(\0132\022.google.rpc.StatusB\003\340A\003\"8\n"
+ + "\005State\022\025\n"
+ + "\021STATE_UNSPECIFIED\020\000\022\n\n"
+ + "\006ACTIVE\020\001\022\014\n"
+ + "\010INACTIVE\020\002\"L\n\r"
+ "SecretPayload\022\014\n"
+ "\004data\030\001 \001(\014\022\035\n"
+ "\013data_crc32c\030\002 \001(\003B\003\340A\001H\000\210\001\001B\016\n"
+ "\014_data_crc32cB\347\001\n"
- + "!com.google.cloud.secretmanager.v1B\016ResourcesPr"
- + "otoP\001ZGcloud.google.com/go/secretmanager"
- + "/apiv1/secretmanagerpb;secretmanagerpb\242\002"
- + "\003GSM\252\002\035Google.Cloud.SecretManager.V1\312\002\035Google\\Cloud\\SecretManager\\V1\352\002"
+ + "!com.google.cloud.secretmanager.v1B\016ResourcesProtoP\001ZGcl"
+ + "oud.google.com/go/secretmanager/apiv1/se"
+ + "cretmanagerpb;secretmanagerpb\242\002\003GSM\252\002\035Go"
+ + "ogle.Cloud.SecretManager.V1\312\002\035Google\\Cloud\\SecretManager\\V1\352\002"
+ " Google::Cloud::SecretManager::V1b\006proto3"
};
descriptor =
@@ -254,8 +279,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
+ com.google.iam.v1.ResourcePolicyMemberProto.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
+ com.google.rpc.StatusProto.getDescriptor(),
});
internal_static_google_cloud_secretmanager_v1_Secret_descriptor =
getDescriptor().getMessageType(0);
@@ -277,6 +304,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"VersionDestroyTtl",
"CustomerManagedEncryption",
"Tags",
+ "SecretType",
+ "PolicyMember",
"Expiration",
});
internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor =
@@ -423,7 +452,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_secretmanager_v1_Rotation_descriptor,
new java.lang.String[] {
- "NextRotationTime", "RotationPeriod",
+ "NextRotationTime", "RotationPeriod", "ManagedRotationStatus",
+ });
+ internal_static_google_cloud_secretmanager_v1_Rotation_ManagedRotationStatus_descriptor =
+ internal_static_google_cloud_secretmanager_v1_Rotation_descriptor.getNestedType(0);
+ internal_static_google_cloud_secretmanager_v1_Rotation_ManagedRotationStatus_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_secretmanager_v1_Rotation_ManagedRotationStatus_descriptor,
+ new java.lang.String[] {
+ "State", "Error",
});
internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor =
getDescriptor().getMessageType(8);
@@ -436,8 +473,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
descriptor.resolveAllFeaturesImmutable();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
+ com.google.iam.v1.ResourcePolicyMemberProto.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.rpc.StatusProto.getDescriptor();
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotateSecretRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotateSecretRequest.java
new file mode 100644
index 000000000000..187d400c0181
--- /dev/null
+++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotateSecretRequest.java
@@ -0,0 +1,634 @@
+/*
+ * Copyright 2026 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!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/secretmanager/v1/service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.secretmanager.v1;
+
+/**
+ *
+ *
+ * + * Request message for + * [SecretManagerService.RotateSecret][google.cloud.secretmanager.v1.SecretManagerService.RotateSecret]. + *+ * + * Protobuf type {@code google.cloud.secretmanager.v1.RotateSecretRequest} + */ +@com.google.protobuf.Generated +public final class RotateSecretRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.RotateSecretRequest) + RotateSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RotateSecretRequest"); + } + + // Use RotateSecretRequest.newBuilder() to construct. + private RotateSecretRequest(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private RotateSecretRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_RotateSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_RotateSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.RotateSecretRequest.class, + com.google.cloud.secretmanager.v1.RotateSecretRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+ * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * 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;
+ }
+ }
+
+ 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.GeneratedMessage.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_);
+ }
+ 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.secretmanager.v1.RotateSecretRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.secretmanager.v1.RotateSecretRequest other =
+ (com.google.cloud.secretmanager.v1.RotateSecretRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.secretmanager.v1.RotateSecretRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.RotateSecretRequest 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.secretmanager.v1.RotateSecretRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.RotateSecretRequest 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.secretmanager.v1.RotateSecretRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.RotateSecretRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.RotateSecretRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.RotateSecretRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.RotateSecretRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.RotateSecretRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.RotateSecretRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.RotateSecretRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.secretmanager.v1.RotateSecretRequest 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Request message for + * [SecretManagerService.RotateSecret][google.cloud.secretmanager.v1.SecretManagerService.RotateSecret]. + *+ * + * Protobuf type {@code google.cloud.secretmanager.v1.RotateSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * 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 resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * 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 resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * 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;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.RotateSecretRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.RotateSecretRequest)
+ private static final com.google.cloud.secretmanager.v1.RotateSecretRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.RotateSecretRequest();
+ }
+
+ public static com.google.cloud.secretmanager.v1.RotateSecretRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+
+ /**
+ *
+ *
+ * + * Required. The resource name of the + * [Secret][google.cloud.secretmanager.v1.Secret] to associate with the + * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format + * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+}
diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java
index 63bca3f95b08..492bc01109f5 100644
--- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java
+++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java
@@ -72,6 +72,1145 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.secretmanager.v1.Rotation.Builder.class);
}
+ public interface ManagedRotationStatusOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * Output only. Indicates whether the Managed Rotation is active or not. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+
+ /**
+ *
+ *
+ * + * Output only. Indicates whether the Managed Rotation is active or not. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State getState();
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the error field is set.
+ */
+ boolean hasError();
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The error.
+ */
+ com.google.rpc.Status getError();
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ com.google.rpc.StatusOrBuilder getErrorOrBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Represents the status of a managed rotation. + * + * This is applicable only to Typed Secrets. It indicates whether the + * rotation is active and any errors that may have occurred during the + * asynchronous managed rotation. + *+ * + * Protobuf type {@code google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus} + */ + public static final class ManagedRotationStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus) + ManagedRotationStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ManagedRotationStatus"); + } + + // Use ManagedRotationStatus.newBuilder() to construct. + private ManagedRotationStatus(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ManagedRotationStatus() { + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Rotation_ManagedRotationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Rotation_ManagedRotationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.class, + com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.Builder.class); + } + + /** + * + * + *
+ * This defines the various states in which the managed rotation can be. + *+ * + * Protobuf enum {@code google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Not specified. This value is unused and invalid. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Indicates that the Managed rotation is ACTIVE. + *+ * + *
ACTIVE = 1;
+ */
+ ACTIVE(1),
+ /**
+ *
+ *
+ * + * Indicates that the Managed rotation is INACTIVE. + *+ * + *
INACTIVE = 2;
+ */
+ INACTIVE(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "State");
+ }
+
+ /**
+ *
+ *
+ * + * Not specified. This value is unused and invalid. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Indicates that the Managed rotation is ACTIVE. + *+ * + *
ACTIVE = 1;
+ */
+ public static final int ACTIVE_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Indicates that the Managed rotation is INACTIVE. + *+ * + *
INACTIVE = 2;
+ */
+ public static final int INACTIVE_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STATE_UNSPECIFIED;
+ case 1:
+ return ACTIVE;
+ case 2:
+ return INACTIVE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Output only. Indicates whether the Managed Rotation is active or not. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Indicates whether the Managed Rotation is active or not. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State getState() {
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State result =
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State.forNumber(state_);
+ return result == null
+ ? com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int ERROR_FIELD_NUMBER = 2;
+ private com.google.rpc.Status error_;
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the error field is set.
+ */
+ @java.lang.Override
+ public boolean hasError() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The error.
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getError() {
+ return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
+ return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+ }
+
+ 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 (state_
+ != com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State
+ .STATE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, state_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getError());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (state_
+ != com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State
+ .STATE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError());
+ }
+ 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.secretmanager.v1.Rotation.ManagedRotationStatus)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus other =
+ (com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus) obj;
+
+ if (state_ != other.state_) return false;
+ if (hasError() != other.hasError()) return false;
+ if (hasError()) {
+ if (!getError().equals(other.getError())) 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) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus 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.secretmanager.v1.Rotation.ManagedRotationStatus parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus 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.secretmanager.v1.Rotation.ManagedRotationStatus parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.secretmanager.v1.Rotation.ManagedRotationStatus 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents the status of a managed rotation. + * + * This is applicable only to Typed Secrets. It indicates whether the + * rotation is active and any errors that may have occurred during the + * asynchronous managed rotation. + *+ * + * Protobuf type {@code google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. Indicates whether the Managed Rotation is active or not. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Indicates whether the Managed Rotation is active or not. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Indicates whether the Managed Rotation is active or not. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State getState() {
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State result =
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State.forNumber(
+ state_);
+ return result == null
+ ? com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Indicates whether the Managed Rotation is active or not. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Indicates whether the Managed Rotation is active or not. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.rpc.Status error_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ errorBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the error field is set.
+ */
+ public boolean hasError() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The error.
+ */
+ public com.google.rpc.Status getError() {
+ if (errorBuilder_ == null) {
+ return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+ } else {
+ return errorBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public Builder setError(com.google.rpc.Status value) {
+ if (errorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ error_ = value;
+ } else {
+ errorBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+ if (errorBuilder_ == null) {
+ error_ = builderForValue.build();
+ } else {
+ errorBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public Builder mergeError(com.google.rpc.Status value) {
+ if (errorBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && error_ != null
+ && error_ != com.google.rpc.Status.getDefaultInstance()) {
+ getErrorBuilder().mergeFrom(value);
+ } else {
+ error_ = value;
+ }
+ } else {
+ errorBuilder_.mergeFrom(value);
+ }
+ if (error_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public Builder clearError() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ error_ = null;
+ if (errorBuilder_ != null) {
+ errorBuilder_.dispose();
+ errorBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public com.google.rpc.Status.Builder getErrorBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetErrorFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
+ if (errorBuilder_ != null) {
+ return errorBuilder_.getMessageOrBuilder();
+ } else {
+ return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Displays customer-facing issues that occurred during an + * asynchronous managed rotation. For example, if there are some permission + * errors. + *+ * + *
.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ internalGetErrorFieldBuilder() {
+ if (errorBuilder_ == null) {
+ errorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+ error_ = null;
+ }
+ return errorBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus)
+ private static final com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus();
+ }
+
+ public static com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the managedRotationStatus field is set.
+ */
+ @java.lang.Override
+ public boolean hasManagedRotationStatus() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The managedRotationStatus.
+ */
+ @java.lang.Override
+ public com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus
+ getManagedRotationStatus() {
+ return managedRotationStatus_ == null
+ ? com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.getDefaultInstance()
+ : managedRotationStatus_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatusOrBuilder
+ getManagedRotationStatusOrBuilder() {
+ return managedRotationStatus_ == null
+ ? com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.getDefaultInstance()
+ : managedRotationStatus_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -265,6 +1471,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getRotationPeriod());
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(3, getManagedRotationStatus());
+ }
getUnknownFields().writeTo(output);
}
@@ -280,6 +1489,10 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRotationPeriod());
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, getManagedRotationStatus());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -304,6 +1517,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasRotationPeriod()) {
if (!getRotationPeriod().equals(other.getRotationPeriod())) return false;
}
+ if (hasManagedRotationStatus() != other.hasManagedRotationStatus()) return false;
+ if (hasManagedRotationStatus()) {
+ if (!getManagedRotationStatus().equals(other.getManagedRotationStatus())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -323,6 +1540,10 @@ public int hashCode() {
hash = (37 * hash) + ROTATION_PERIOD_FIELD_NUMBER;
hash = (53 * hash) + getRotationPeriod().hashCode();
}
+ if (hasManagedRotationStatus()) {
+ hash = (37 * hash) + MANAGED_ROTATION_STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getManagedRotationStatus().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -470,6 +1691,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
internalGetNextRotationTimeFieldBuilder();
internalGetRotationPeriodFieldBuilder();
+ internalGetManagedRotationStatusFieldBuilder();
}
}
@@ -487,6 +1709,11 @@ public Builder clear() {
rotationPeriodBuilder_.dispose();
rotationPeriodBuilder_ = null;
}
+ managedRotationStatus_ = null;
+ if (managedRotationStatusBuilder_ != null) {
+ managedRotationStatusBuilder_.dispose();
+ managedRotationStatusBuilder_ = null;
+ }
return this;
}
@@ -534,6 +1761,13 @@ private void buildPartial0(com.google.cloud.secretmanager.v1.Rotation result) {
rotationPeriodBuilder_ == null ? rotationPeriod_ : rotationPeriodBuilder_.build();
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.managedRotationStatus_ =
+ managedRotationStatusBuilder_ == null
+ ? managedRotationStatus_
+ : managedRotationStatusBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -555,6 +1789,9 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Rotation other) {
if (other.hasRotationPeriod()) {
mergeRotationPeriod(other.getRotationPeriod());
}
+ if (other.hasManagedRotationStatus()) {
+ mergeManagedRotationStatus(other.getManagedRotationStatus());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -595,6 +1832,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ input.readMessage(
+ internalGetManagedRotationStatusFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1200,6 +2444,244 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() {
return rotationPeriodBuilder_;
}
+ private com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managedRotationStatus_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus,
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.Builder,
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatusOrBuilder>
+ managedRotationStatusBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the managedRotationStatus field is set.
+ */
+ public boolean hasManagedRotationStatus() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The managedRotationStatus.
+ */
+ public com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus
+ getManagedRotationStatus() {
+ if (managedRotationStatusBuilder_ == null) {
+ return managedRotationStatus_ == null
+ ? com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.getDefaultInstance()
+ : managedRotationStatus_;
+ } else {
+ return managedRotationStatusBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setManagedRotationStatus(
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus value) {
+ if (managedRotationStatusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ managedRotationStatus_ = value;
+ } else {
+ managedRotationStatusBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setManagedRotationStatus(
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.Builder builderForValue) {
+ if (managedRotationStatusBuilder_ == null) {
+ managedRotationStatus_ = builderForValue.build();
+ } else {
+ managedRotationStatusBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeManagedRotationStatus(
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus value) {
+ if (managedRotationStatusBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && managedRotationStatus_ != null
+ && managedRotationStatus_
+ != com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus
+ .getDefaultInstance()) {
+ getManagedRotationStatusBuilder().mergeFrom(value);
+ } else {
+ managedRotationStatus_ = value;
+ }
+ } else {
+ managedRotationStatusBuilder_.mergeFrom(value);
+ }
+ if (managedRotationStatus_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearManagedRotationStatus() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ managedRotationStatus_ = null;
+ if (managedRotationStatusBuilder_ != null) {
+ managedRotationStatusBuilder_.dispose();
+ managedRotationStatusBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.Builder
+ getManagedRotationStatusBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return internalGetManagedRotationStatusFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatusOrBuilder
+ getManagedRotationStatusOrBuilder() {
+ if (managedRotationStatusBuilder_ != null) {
+ return managedRotationStatusBuilder_.getMessageOrBuilder();
+ } else {
+ return managedRotationStatus_ == null
+ ? com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.getDefaultInstance()
+ : managedRotationStatus_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus,
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.Builder,
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatusOrBuilder>
+ internalGetManagedRotationStatusFieldBuilder() {
+ if (managedRotationStatusBuilder_ == null) {
+ managedRotationStatusBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus,
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.Builder,
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatusOrBuilder>(
+ getManagedRotationStatus(), getParentForChildren(), isClean());
+ managedRotationStatus_ = null;
+ }
+ return managedRotationStatusBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Rotation)
}
diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java
index 0baabccb0c76..318b4458bcbc 100644
--- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java
+++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java
@@ -165,4 +165,54 @@ public interface RotationOrBuilder
*
*/
com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the managedRotationStatus field is set.
+ */
+ boolean hasManagedRotationStatus();
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The managedRotationStatus.
+ */
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus getManagedRotationStatus();
+
+ /**
+ *
+ *
+ * + * Output only. The current status of the managed rotation. + * This field is only applicable to Typed Secrets. + * This field is set by the service and cannot be set by the user. + *+ * + *
+ * .google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus managed_rotation_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatusOrBuilder
+ getManagedRotationStatusOrBuilder();
}
diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java
index fbbfd5f81b29..af85454030ce 100644
--- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java
+++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java
@@ -60,6 +60,7 @@ private Secret() {
name_ = "";
topics_ = java.util.Collections.emptyList();
etag_ = "";
+ secretType_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -95,6 +96,250 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
com.google.cloud.secretmanager.v1.Secret.Builder.class);
}
+ /**
+ *
+ *
+ * + * This defines the various values of the type of secret can be. + *+ * + * Protobuf enum {@code google.cloud.secretmanager.v1.Secret.SecretType} + */ + public enum SecretType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Applicable to all secrets which do not have any restriction on the + * SecretVersions. + *+ * + *
SECRET_TYPE_UNSPECIFIED = 0;
+ */
+ SECRET_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Applicable to secrets which are used for the managed rotation feature + * for Cloud SQL Single User. + *+ * + *
CLOUD_SQL_DB_CREDENTIALS = 1;
+ */
+ CLOUD_SQL_DB_CREDENTIALS(1),
+ /**
+ *
+ *
+ * + * Applicable to secrets where the payload contains an access key. + *+ * + *
ACCESS_KEY = 2;
+ */
+ ACCESS_KEY(2),
+ /**
+ *
+ *
+ * + * Applicable to secrets where the payload contains a certificate. + *+ * + *
CERTIFICATE = 3;
+ */
+ CERTIFICATE(3),
+ /**
+ *
+ *
+ * + * Applicable to secrets where the payload contains database credentials. + *+ * + *
OTHER_DB_CREDENTIALS = 4;
+ */
+ OTHER_DB_CREDENTIALS(4),
+ /**
+ *
+ *
+ * + * Applicable to secrets whose type doesn't belong to any of the above + * defined types. + *+ * + *
OTHER = 50;
+ */
+ OTHER(50),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "SecretType");
+ }
+
+ /**
+ *
+ *
+ * + * Applicable to all secrets which do not have any restriction on the + * SecretVersions. + *+ * + *
SECRET_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int SECRET_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Applicable to secrets which are used for the managed rotation feature + * for Cloud SQL Single User. + *+ * + *
CLOUD_SQL_DB_CREDENTIALS = 1;
+ */
+ public static final int CLOUD_SQL_DB_CREDENTIALS_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Applicable to secrets where the payload contains an access key. + *+ * + *
ACCESS_KEY = 2;
+ */
+ public static final int ACCESS_KEY_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Applicable to secrets where the payload contains a certificate. + *+ * + *
CERTIFICATE = 3;
+ */
+ public static final int CERTIFICATE_VALUE = 3;
+
+ /**
+ *
+ *
+ * + * Applicable to secrets where the payload contains database credentials. + *+ * + *
OTHER_DB_CREDENTIALS = 4;
+ */
+ public static final int OTHER_DB_CREDENTIALS_VALUE = 4;
+
+ /**
+ *
+ *
+ * + * Applicable to secrets whose type doesn't belong to any of the above + * defined types. + *+ * + *
OTHER = 50;
+ */
+ public static final int OTHER_VALUE = 50;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static SecretType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static SecretType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return SECRET_TYPE_UNSPECIFIED;
+ case 1:
+ return CLOUD_SQL_DB_CREDENTIALS;
+ case 2:
+ return ACCESS_KEY;
+ case 3:
+ return CERTIFICATE;
+ case 4:
+ return OTHER_DB_CREDENTIALS;
+ case 50:
+ return OTHER;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optional. Immutable. This defines the type of the secret. + * Enforces certain structural requirements on the + * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + * For secret of type UNSPECIFIED, the SecretVersions can be of any type. + *+ * + *
+ * .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for secretType.
+ */
+ @java.lang.Override
+ public int getSecretTypeValue() {
+ return secretType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. This defines the type of the secret. + * Enforces certain structural requirements on the + * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + * For secret of type UNSPECIFIED, the SecretVersions can be of any type. + *+ * + *
+ * .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The secretType.
+ */
+ @java.lang.Override
+ public com.google.cloud.secretmanager.v1.Secret.SecretType getSecretType() {
+ com.google.cloud.secretmanager.v1.Secret.SecretType result =
+ com.google.cloud.secretmanager.v1.Secret.SecretType.forNumber(secretType_);
+ return result == null
+ ? com.google.cloud.secretmanager.v1.Secret.SecretType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int POLICY_MEMBER_FIELD_NUMBER = 18;
+ private com.google.iam.v1.ResourcePolicyMember policyMember_;
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the policyMember field is set.
+ */
+ @java.lang.Override
+ public boolean hasPolicyMember() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The policyMember.
+ */
+ @java.lang.Override
+ public com.google.iam.v1.ResourcePolicyMember getPolicyMember() {
+ return policyMember_ == null
+ ? com.google.iam.v1.ResourcePolicyMember.getDefaultInstance()
+ : policyMember_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.iam.v1.ResourcePolicyMemberOrBuilder getPolicyMemberOrBuilder() {
+ return policyMember_ == null
+ ? com.google.iam.v1.ResourcePolicyMember.getDefaultInstance()
+ : policyMember_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1464,6 +1823,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
}
com.google.protobuf.GeneratedMessage.serializeStringMapTo(
output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 16);
+ if (secretType_
+ != com.google.cloud.secretmanager.v1.Secret.SecretType.SECRET_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(17, secretType_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeMessage(18, getPolicyMember());
+ }
getUnknownFields().writeTo(output);
}
@@ -1549,6 +1916,14 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, tags__);
}
+ if (secretType_
+ != com.google.cloud.secretmanager.v1.Secret.SecretType.SECRET_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, secretType_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getPolicyMember());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1592,6 +1967,11 @@ public boolean equals(final java.lang.Object obj) {
return false;
}
if (!internalGetTags().equals(other.internalGetTags())) return false;
+ if (secretType_ != other.secretType_) return false;
+ if (hasPolicyMember() != other.hasPolicyMember()) return false;
+ if (hasPolicyMember()) {
+ if (!getPolicyMember().equals(other.getPolicyMember())) return false;
+ }
if (!getExpirationCase().equals(other.getExpirationCase())) return false;
switch (expirationCase_) {
case 6:
@@ -1658,6 +2038,12 @@ public int hashCode() {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + internalGetTags().hashCode();
}
+ hash = (37 * hash) + SECRET_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + secretType_;
+ if (hasPolicyMember()) {
+ hash = (37 * hash) + POLICY_MEMBER_FIELD_NUMBER;
+ hash = (53 * hash) + getPolicyMember().hashCode();
+ }
switch (expirationCase_) {
case 6:
hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
@@ -1856,6 +2242,7 @@ private void maybeForceBuilderInitialization() {
internalGetRotationFieldBuilder();
internalGetVersionDestroyTtlFieldBuilder();
internalGetCustomerManagedEncryptionFieldBuilder();
+ internalGetPolicyMemberFieldBuilder();
}
}
@@ -1907,6 +2294,12 @@ public Builder clear() {
customerManagedEncryptionBuilder_ = null;
}
internalGetMutableTags().clear();
+ secretType_ = 0;
+ policyMember_ = null;
+ if (policyMemberBuilder_ != null) {
+ policyMemberBuilder_.dispose();
+ policyMemberBuilder_ = null;
+ }
expirationCase_ = 0;
expiration_ = null;
return this;
@@ -2009,6 +2402,14 @@ private void buildPartial0(com.google.cloud.secretmanager.v1.Secret result) {
result.tags_ = internalGetTags();
result.tags_.makeImmutable();
}
+ if (((from_bitField0_ & 0x00004000) != 0)) {
+ result.secretType_ = secretType_;
+ }
+ if (((from_bitField0_ & 0x00008000) != 0)) {
+ result.policyMember_ =
+ policyMemberBuilder_ == null ? policyMember_ : policyMemberBuilder_.build();
+ to_bitField0_ |= 0x00000020;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -2095,6 +2496,12 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Secret other) {
}
internalGetMutableTags().mergeFrom(other.internalGetTags());
bitField0_ |= 0x00002000;
+ if (other.secretType_ != 0) {
+ setSecretTypeValue(other.getSecretTypeValue());
+ }
+ if (other.hasPolicyMember()) {
+ mergePolicyMember(other.getPolicyMember());
+ }
switch (other.getExpirationCase()) {
case EXPIRE_TIME:
{
@@ -2256,6 +2663,19 @@ public Builder mergeFrom(
bitField0_ |= 0x00002000;
break;
} // case 130
+ case 136:
+ {
+ secretType_ = input.readEnum();
+ bitField0_ |= 0x00004000;
+ break;
+ } // case 136
+ case 146:
+ {
+ input.readMessage(
+ internalGetPolicyMemberFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00008000;
+ break;
+ } // case 146
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -5639,6 +6059,358 @@ public Builder putAllTags(java.util.Map+ * Optional. Immutable. This defines the type of the secret. + * Enforces certain structural requirements on the + * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + * For secret of type UNSPECIFIED, the SecretVersions can be of any type. + *+ * + *
+ * .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for secretType.
+ */
+ @java.lang.Override
+ public int getSecretTypeValue() {
+ return secretType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. This defines the type of the secret. + * Enforces certain structural requirements on the + * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + * For secret of type UNSPECIFIED, the SecretVersions can be of any type. + *+ * + *
+ * .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for secretType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecretTypeValue(int value) {
+ secretType_ = value;
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. This defines the type of the secret. + * Enforces certain structural requirements on the + * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + * For secret of type UNSPECIFIED, the SecretVersions can be of any type. + *+ * + *
+ * .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The secretType.
+ */
+ @java.lang.Override
+ public com.google.cloud.secretmanager.v1.Secret.SecretType getSecretType() {
+ com.google.cloud.secretmanager.v1.Secret.SecretType result =
+ com.google.cloud.secretmanager.v1.Secret.SecretType.forNumber(secretType_);
+ return result == null
+ ? com.google.cloud.secretmanager.v1.Secret.SecretType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. This defines the type of the secret. + * Enforces certain structural requirements on the + * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + * For secret of type UNSPECIFIED, the SecretVersions can be of any type. + *+ * + *
+ * .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The secretType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecretType(com.google.cloud.secretmanager.v1.Secret.SecretType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00004000;
+ secretType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. This defines the type of the secret. + * Enforces certain structural requirements on the + * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + * For secret of type UNSPECIFIED, the SecretVersions can be of any type. + *+ * + *
+ * .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSecretType() {
+ bitField0_ = (bitField0_ & ~0x00004000);
+ secretType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.iam.v1.ResourcePolicyMember policyMember_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.iam.v1.ResourcePolicyMember,
+ com.google.iam.v1.ResourcePolicyMember.Builder,
+ com.google.iam.v1.ResourcePolicyMemberOrBuilder>
+ policyMemberBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the policyMember field is set.
+ */
+ public boolean hasPolicyMember() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The policyMember.
+ */
+ public com.google.iam.v1.ResourcePolicyMember getPolicyMember() {
+ if (policyMemberBuilder_ == null) {
+ return policyMember_ == null
+ ? com.google.iam.v1.ResourcePolicyMember.getDefaultInstance()
+ : policyMember_;
+ } else {
+ return policyMemberBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setPolicyMember(com.google.iam.v1.ResourcePolicyMember value) {
+ if (policyMemberBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ policyMember_ = value;
+ } else {
+ policyMemberBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setPolicyMember(com.google.iam.v1.ResourcePolicyMember.Builder builderForValue) {
+ if (policyMemberBuilder_ == null) {
+ policyMember_ = builderForValue.build();
+ } else {
+ policyMemberBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergePolicyMember(com.google.iam.v1.ResourcePolicyMember value) {
+ if (policyMemberBuilder_ == null) {
+ if (((bitField0_ & 0x00008000) != 0)
+ && policyMember_ != null
+ && policyMember_ != com.google.iam.v1.ResourcePolicyMember.getDefaultInstance()) {
+ getPolicyMemberBuilder().mergeFrom(value);
+ } else {
+ policyMember_ = value;
+ }
+ } else {
+ policyMemberBuilder_.mergeFrom(value);
+ }
+ if (policyMember_ != null) {
+ bitField0_ |= 0x00008000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearPolicyMember() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ policyMember_ = null;
+ if (policyMemberBuilder_ != null) {
+ policyMemberBuilder_.dispose();
+ policyMemberBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.iam.v1.ResourcePolicyMember.Builder getPolicyMemberBuilder() {
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return internalGetPolicyMemberFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.iam.v1.ResourcePolicyMemberOrBuilder getPolicyMemberOrBuilder() {
+ if (policyMemberBuilder_ != null) {
+ return policyMemberBuilder_.getMessageOrBuilder();
+ } else {
+ return policyMember_ == null
+ ? com.google.iam.v1.ResourcePolicyMember.getDefaultInstance()
+ : policyMember_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.iam.v1.ResourcePolicyMember,
+ com.google.iam.v1.ResourcePolicyMember.Builder,
+ com.google.iam.v1.ResourcePolicyMemberOrBuilder>
+ internalGetPolicyMemberFieldBuilder() {
+ if (policyMemberBuilder_ == null) {
+ policyMemberBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.iam.v1.ResourcePolicyMember,
+ com.google.iam.v1.ResourcePolicyMember.Builder,
+ com.google.iam.v1.ResourcePolicyMemberOrBuilder>(
+ getPolicyMember(), getParentForChildren(), isClean());
+ policyMember_ = null;
+ }
+ return policyMemberBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Secret)
}
diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java
index ad96f6bd242c..acf82592bc0c 100644
--- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java
+++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java
@@ -969,5 +969,90 @@ java.lang.String getTagsOrDefault(
*/
java.lang.String getTagsOrThrow(java.lang.String key);
+ /**
+ *
+ *
+ * + * Optional. Immutable. This defines the type of the secret. + * Enforces certain structural requirements on the + * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + * For secret of type UNSPECIFIED, the SecretVersions can be of any type. + *+ * + *
+ * .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for secretType.
+ */
+ int getSecretTypeValue();
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. This defines the type of the secret. + * Enforces certain structural requirements on the + * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + * For secret of type UNSPECIFIED, the SecretVersions can be of any type. + *+ * + *
+ * .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The secretType.
+ */
+ com.google.cloud.secretmanager.v1.Secret.SecretType getSecretType();
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the policyMember field is set.
+ */
+ boolean hasPolicyMember();
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The policyMember.
+ */
+ com.google.iam.v1.ResourcePolicyMember getPolicyMember();
+
+ /**
+ *
+ *
+ * + * Output only. Defines the policy member for the secret. + * This will be used to check if the caller has the permission to perform + * certain operations on the typed secret. + *+ * + *
+ * .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.iam.v1.ResourcePolicyMemberOrBuilder getPolicyMemberOrBuilder();
+
com.google.cloud.secretmanager.v1.Secret.ExpirationCase getExpirationCase();
}
diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java
index 0a6eeb3f6cdf..c6e7115ad412 100644
--- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java
+++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java
@@ -56,6 +56,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_CloudSQLSingleUserCredentials_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_CloudSQLSingleUserCredentials_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_secretmanager_v1_RotateSecretRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_secretmanager_v1_RotateSecretRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -139,7 +151,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006parent\030\001 \001(\tB+\340A\002\372A%\n"
+ "#secretmanager.googleapis.com/Secret\022B\n"
+ "\007payload\030\002 \001(\0132,.goo"
- + "gle.cloud.secretmanager.v1.SecretPayloadB\003\340A\002\"M\n"
+ + "gle.cloud.secretmanager.v1.SecretPayloadB\003\340A\002\"\334\002\n"
+ + "\034EnableManagedRotationRequest\022;\n"
+ + "\006parent\030\001 \001(\tB+\340A\002\372A%\n"
+ + "#secretmanager.googleapis.com/Secret\022\206\001\n"
+ + "!cloud_sql_single_user_credentials\030\002 \001(\0132Y.google.cloud.s"
+ + "ecretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentialsH\000\032g\n"
+ + "\035CloudSQLSingleUserCredentials\022\030\n"
+ + "\013instance_id\030\001 \001(\tB\003\340A\002\022\025\n"
+ + "\010username\030\002 \001(\tB\003\340A\002\022\025\n"
+ + "\010password\030\003 \001(\tB\003\340A\001B\r\n"
+ + "\013credentials\"R\n"
+ + "\023RotateSecretRequest\022;\n"
+ + "\006parent\030\001 \001(\tB+\340A\002\372A%\n"
+ + "#secretmanager.googleapis.com/Secret\"M\n"
+ "\020GetSecretRequest\0229\n"
+ "\004name\030\001 \001(\tB+\340A\002\372A%\n"
+ "#secretmanager.googleapis.com/Secret\"\236\001\n"
@@ -157,8 +182,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB2\340A\002\372A,\n"
+ "*secretmanager.googleapis.com/SecretVersion\"\207\001\n"
+ "\023UpdateSecretRequest\022:\n"
- + "\006secret\030\001 \001(\0132%"
- + ".google.cloud.secretmanager.v1.SecretB\003\340A\002\0224\n"
+ + "\006secret\030\001"
+ + " \001(\0132%.google.cloud.secretmanager.v1.SecretB\003\340A\002\0224\n"
+ "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"^\n"
+ "\032AccessSecretVersionRequest\022@\n"
+ "\004name\030\001 \001(\tB2\340A\002\372A,\n"
@@ -182,88 +207,96 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\033DestroySecretVersionRequest\022@\n"
+ "\004name\030\001 \001(\tB2\340A\002\372A,\n"
+ "*secretmanager.googleapis.com/SecretVersion\022\021\n"
- + "\004etag\030\002 \001(\tB\003\340A\0012\350\034\n"
+ + "\004etag\030\002 \001(\tB\003\340A\0012\241!\n"
+ "\024SecretManagerService\022\325\001\n"
- + "\013ListSecrets\0221.google.cloud.secretmanager.v1.ListSecr"
- + "etsRequest\0322.google.cloud.secretmanager."
- + "v1.ListSecretsResponse\"_\332A\006parent\202\323\344\223\002P\022"
- + "\037/v1/{parent=projects/*}/secretsZ-\022+/v1/"
- + "{parent=projects/*/locations/*}/secrets\022\354\001\n"
- + "\014CreateSecret\0222.google.cloud.secretmanager.v1.CreateSecretRequest\032%.google.cl"
- + "oud.secretmanager.v1.Secret\"\200\001\332A\027parent,"
- + "secret_id,secret\202\323\344\223\002`\"\037/v1/{parent=proj"
- + "ects/*}/secrets:\006secretZ5\"+/v1/{parent=p"
- + "rojects/*/locations/*}/secrets:\006secret\022\202\002\n"
- + "\020AddSecretVersion\0226.google.cloud.secre"
- + "tmanager.v1.AddSecretVersionRequest\032,.google.cloud.secretmanager.v1.SecretVersio"
- + "n\"\207\001\332A\016parent,payload\202\323\344\223\002p\",/v1/{parent"
- + "=projects/*/secrets/*}:addVersion:\001*Z=\"8"
- + "/v1/{parent=projects/*/locations/*/secrets/*}:addVersion:\001*\022\302\001\n"
- + "\tGetSecret\022/.google.cloud.secretmanager.v1.GetSecretReque"
- + "st\032%.google.cloud.secretmanager.v1.Secre"
- + "t\"]\332A\004name\202\323\344\223\002P\022\037/v1/{name=projects/*/s"
- + "ecrets/*}Z-\022+/v1/{name=projects/*/locations/*/secrets/*}\022\365\001\n"
- + "\014UpdateSecret\0222.google.cloud.secretmanager.v1.UpdateSecretRe"
- + "quest\032%.google.cloud.secretmanager.v1.Se"
- + "cret\"\211\001\332A\022secret,update_mask\202\323\344\223\002n2&/v1/"
- + "{secret.name=projects/*/secrets/*}:\006secr"
- + "etZ<22/v1/{secret.name=projects/*/locations/*/secrets/*}:\006secret\022\271\001\n"
- + "\014DeleteSecret\0222.google.cloud.secretmanager.v1.Delete"
- + "SecretRequest\032\026.google.protobuf.Empty\"]\332"
- + "A\004name\202\323\344\223\002P*\037/v1/{name=projects/*/secre"
- + "ts/*}Z-*+/v1/{name=projects/*/locations/*/secrets/*}\022\200\002\n"
- + "\022ListSecretVersions\0228.google.cloud.secretmanager.v1.ListSecretVe"
- + "rsionsRequest\0329.google.cloud.secretmanag"
- + "er.v1.ListSecretVersionsResponse\"u\332A\006par"
- + "ent\202\323\344\223\002f\022*/v1/{parent=projects/*/secret"
- + "s/*}/versionsZ8\0226/v1/{parent=projects/*/locations/*/secrets/*}/versions\022\355\001\n"
- + "\020GetSecretVersion\0226.google.cloud.secretmanage"
- + "r.v1.GetSecretVersionRequest\032,.google.cl"
- + "oud.secretmanager.v1.SecretVersion\"s\332A\004n"
- + "ame\202\323\344\223\002f\022*/v1/{name=projects/*/secrets/"
- + "*/versions/*}Z8\0226/v1/{name=projects/*/locations/*/secrets/*/versions/*}\022\220\002\n"
- + "\023AccessSecretVersion\0229.google.cloud.secretman"
- + "ager.v1.AccessSecretVersionRequest\032:.google.cloud.secretmanager.v1.AccessSecretV"
- + "ersionResponse\"\201\001\332A\004name\202\323\344\223\002t\0221/v1/{nam"
- + "e=projects/*/secrets/*/versions/*}:acces"
- + "sZ?\022=/v1/{name=projects/*/locations/*/secrets/*/versions/*}:access\022\214\002\n"
- + "\024DisableSecretVersion\022:.google.cloud.secretmanager"
- + ".v1.DisableSecretVersionRequest\032,.google"
- + ".cloud.secretmanager.v1.SecretVersion\"\211\001"
- + "\332A\004name\202\323\344\223\002|\"2/v1/{name=projects/*/secr"
- + "ets/*/versions/*}:disable:\001*ZC\">/v1/{nam"
- + "e=projects/*/locations/*/secrets/*/versions/*}:disable:\001*\022\210\002\n"
- + "\023EnableSecretVersion\0229.google.cloud.secretmanager.v1.Enable"
- + "SecretVersionRequest\032,.google.cloud.secr"
- + "etmanager.v1.SecretVersion\"\207\001\332A\004name\202\323\344\223"
- + "\002z\"1/v1/{name=projects/*/secrets/*/versi"
- + "ons/*}:enable:\001*ZB\"=/v1/{name=projects/*"
- + "/locations/*/secrets/*/versions/*}:enable:\001*\022\214\002\n"
- + "\024DestroySecretVersion\022:.google.cloud.secretmanager.v1.DestroySecretVersi"
+ + "\013ListSecrets\0221.google.cloud.secretmanager.v1.ListSecretsRe"
+ + "quest\0322.google.cloud.secretmanager.v1.Li"
+ + "stSecretsResponse\"_\332A\006parent\202\323\344\223\002P\022\037/v1/"
+ + "{parent=projects/*}/secretsZ-\022+/v1/{parent=projects/*/locations/*}/secrets\022\354\001\n"
+ + "\014CreateSecret\0222.google.cloud.secretmanager"
+ + ".v1.CreateSecretRequest\032%.google.cloud.s"
+ + "ecretmanager.v1.Secret\"\200\001\332A\027parent,secre"
+ + "t_id,secret\202\323\344\223\002`\"\037/v1/{parent=projects/"
+ + "*}/secrets:\006secretZ5\"+/v1/{parent=projects/*/locations/*}/secrets:\006secret\022\202\002\n"
+ + "\020AddSecretVersion\0226.google.cloud.secretmana"
+ + "ger.v1.AddSecretVersionRequest\032,.google."
+ + "cloud.secretmanager.v1.SecretVersion\"\207\001\332"
+ + "A\016parent,payload\202\323\344\223\002p\",/v1/{parent=proj"
+ + "ects/*/secrets/*}:addVersion:\001*Z=\"8/v1/{"
+ + "parent=projects/*/locations/*/secrets/*}:addVersion:\001*\022\302\001\n"
+ + "\tGetSecret\022/.google.cloud.secretmanager.v1.GetSecretRequest\032%."
+ + "google.cloud.secretmanager.v1.Secret\"]\332A"
+ + "\004name\202\323\344\223\002P\022\037/v1/{name=projects/*/secret"
+ + "s/*}Z-\022+/v1/{name=projects/*/locations/*/secrets/*}\022\365\001\n"
+ + "\014UpdateSecret\0222.google.cloud.secretmanager.v1.UpdateSecretRequest"
+ + "\032%.google.cloud.secretmanager.v1.Secret\""
+ + "\211\001\332A\022secret,update_mask\202\323\344\223\002n2&/v1/{secr"
+ + "et.name=projects/*/secrets/*}:\006secretZ<2"
+ + "2/v1/{secret.name=projects/*/locations/*/secrets/*}:\006secret\022\271\001\n"
+ + "\014DeleteSecret\0222.google.cloud.secretmanager.v1.DeleteSecre"
+ + "tRequest\032\026.google.protobuf.Empty\"]\332A\004nam"
+ + "e\202\323\344\223\002P*\037/v1/{name=projects/*/secrets/*}"
+ + "Z-*+/v1/{name=projects/*/locations/*/secrets/*}\022\200\002\n"
+ + "\022ListSecretVersions\0228.google.cloud.secretmanager.v1.ListSecretVersion"
+ + "sRequest\0329.google.cloud.secretmanager.v1"
+ + ".ListSecretVersionsResponse\"u\332A\006parent\202\323"
+ + "\344\223\002f\022*/v1/{parent=projects/*/secrets/*}/"
+ + "versionsZ8\0226/v1/{parent=projects/*/locations/*/secrets/*}/versions\022\355\001\n"
+ + "\020GetSecretVersion\0226.google.cloud.secretmanager.v1."
+ + "GetSecretVersionRequest\032,.google.cloud.s"
+ + "ecretmanager.v1.SecretVersion\"s\332A\004name\202\323"
+ + "\344\223\002f\022*/v1/{name=projects/*/secrets/*/ver"
+ + "sions/*}Z8\0226/v1/{name=projects/*/locations/*/secrets/*/versions/*}\022\220\002\n"
+ + "\023AccessSecretVersion\0229.google.cloud.secretmanager."
+ + "v1.AccessSecretVersionRequest\032:.google.cloud.secretmanager.v1.AccessSecretVersio"
+ + "nResponse\"\201\001\332A\004name\202\323\344\223\002t\0221/v1/{name=pro"
+ + "jects/*/secrets/*/versions/*}:accessZ?\022="
+ + "/v1/{name=projects/*/locations/*/secrets/*/versions/*}:access\022\214\002\n"
+ + "\024DisableSecretVersion\022:.google.cloud.secretmanager.v1.D"
+ + "isableSecretVersionRequest\032,.google.clou"
+ + "d.secretmanager.v1.SecretVersion\"\211\001\332A\004na"
+ + "me\202\323\344\223\002|\"2/v1/{name=projects/*/secrets/*"
+ + "/versions/*}:disable:\001*ZC\">/v1/{name=pro"
+ + "jects/*/locations/*/secrets/*/versions/*}:disable:\001*\022\210\002\n"
+ + "\023EnableSecretVersion\0229.google.cloud.secretmanager.v1.EnableSecre"
+ + "tVersionRequest\032,.google.cloud.secretman"
+ + "ager.v1.SecretVersion\"\207\001\332A\004name\202\323\344\223\002z\"1/"
+ + "v1/{name=projects/*/secrets/*/versions/*}:enable:\001*ZB\"=/v1/{name=projects/*/loca"
+ + "tions/*/secrets/*/versions/*}:enable:\001*\022\214\002\n"
+ + "\024DestroySecretVersion\022:.google.cloud.secretmanager.v1.DestroySecretVersionReq"
+ + "uest\032,.google.cloud.secretmanager.v1.Sec"
+ + "retVersion\"\211\001\332A\004name\202\323\344\223\002|\"2/v1/{name=pr"
+ + "ojects/*/secrets/*/versions/*}:destroy:\001"
+ + "*ZC\">/v1/{name=projects/*/locations/*/secrets/*/versions/*}:destroy:\001*\022\311\001\n"
+ + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyRequ"
+ + "est\032\025.google.iam.v1.Policy\"~\202\323\344\223\002x\"0/v1/"
+ + "{resource=projects/*/secrets/*}:setIamPo"
+ + "licy:\001*ZA\"\022/v1/{name=projects/*/locations/*/secrets/*/versions/*}:destroy:\001*\022\311\001\n"
- + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolic"
- + "yRequest\032\025.google.iam.v1.Policy\"~\202\323\344\223\002x\""
- + "0/v1/{resource=projects/*/secrets/*}:setIamPolicy:\001*ZA\"\022 future =
+ secretManagerServiceClient.enableManagedRotationCallable().futureCall(request);
+ // Do something.
+ SecretVersion response = future.get();
+ }
+ }
+}
+// [END secretmanager_v1_generated_SecretManagerService_EnableManagedRotation_async]
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/enablemanagedrotation/SyncEnableManagedRotation.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/enablemanagedrotation/SyncEnableManagedRotation.java
new file mode 100644
index 000000000000..12bf9dbb8da3
--- /dev/null
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/enablemanagedrotation/SyncEnableManagedRotation.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2026 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.secretmanager.v1.samples;
+
+// [START secretmanager_v1_generated_SecretManagerService_EnableManagedRotation_sync]
+import com.google.cloud.secretmanager.v1.EnableManagedRotationRequest;
+import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
+import com.google.cloud.secretmanager.v1.SecretName;
+import com.google.cloud.secretmanager.v1.SecretVersion;
+
+public class SyncEnableManagedRotation {
+
+ public static void main(String[] args) throws Exception {
+ syncEnableManagedRotation();
+ }
+
+ public static void syncEnableManagedRotation() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SecretManagerServiceClient secretManagerServiceClient =
+ SecretManagerServiceClient.create()) {
+ EnableManagedRotationRequest request =
+ EnableManagedRotationRequest.newBuilder()
+ .setParent(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString())
+ .build();
+ SecretVersion response = secretManagerServiceClient.enableManagedRotation(request);
+ }
+ }
+}
+// [END secretmanager_v1_generated_SecretManagerService_EnableManagedRotation_sync]
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/enablemanagedrotation/SyncEnableManagedRotationSecretnameEnablemanagedrotationrequestcloudsqlsingleusercredentials.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/enablemanagedrotation/SyncEnableManagedRotationSecretnameEnablemanagedrotationrequestcloudsqlsingleusercredentials.java
new file mode 100644
index 000000000000..c6c737e26f6c
--- /dev/null
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/enablemanagedrotation/SyncEnableManagedRotationSecretnameEnablemanagedrotationrequestcloudsqlsingleusercredentials.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2026 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.secretmanager.v1.samples;
+
+// [START secretmanager_v1_generated_SecretManagerService_EnableManagedRotation_SecretnameEnablemanagedrotationrequestcloudsqlsingleusercredentials_sync]
+import com.google.cloud.secretmanager.v1.EnableManagedRotationRequest;
+import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
+import com.google.cloud.secretmanager.v1.SecretName;
+import com.google.cloud.secretmanager.v1.SecretVersion;
+
+public
+class SyncEnableManagedRotationSecretnameEnablemanagedrotationrequestcloudsqlsingleusercredentials {
+
+ public static void main(String[] args) throws Exception {
+ syncEnableManagedRotationSecretnameEnablemanagedrotationrequestcloudsqlsingleusercredentials();
+ }
+
+ public static void
+ syncEnableManagedRotationSecretnameEnablemanagedrotationrequestcloudsqlsingleusercredentials()
+ throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SecretManagerServiceClient secretManagerServiceClient =
+ SecretManagerServiceClient.create()) {
+ SecretName parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]");
+ EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials =
+ EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build();
+ SecretVersion response =
+ secretManagerServiceClient.enableManagedRotation(parent, cloudSqlSingleUserCredentials);
+ }
+ }
+}
+// [END secretmanager_v1_generated_SecretManagerService_EnableManagedRotation_SecretnameEnablemanagedrotationrequestcloudsqlsingleusercredentials_sync]
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/enablemanagedrotation/SyncEnableManagedRotationStringEnablemanagedrotationrequestcloudsqlsingleusercredentials.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/enablemanagedrotation/SyncEnableManagedRotationStringEnablemanagedrotationrequestcloudsqlsingleusercredentials.java
new file mode 100644
index 000000000000..6439b1c9aea0
--- /dev/null
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/enablemanagedrotation/SyncEnableManagedRotationStringEnablemanagedrotationrequestcloudsqlsingleusercredentials.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2026 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.secretmanager.v1.samples;
+
+// [START secretmanager_v1_generated_SecretManagerService_EnableManagedRotation_StringEnablemanagedrotationrequestcloudsqlsingleusercredentials_sync]
+import com.google.cloud.secretmanager.v1.EnableManagedRotationRequest;
+import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
+import com.google.cloud.secretmanager.v1.SecretName;
+import com.google.cloud.secretmanager.v1.SecretVersion;
+
+public
+class SyncEnableManagedRotationStringEnablemanagedrotationrequestcloudsqlsingleusercredentials {
+
+ public static void main(String[] args) throws Exception {
+ syncEnableManagedRotationStringEnablemanagedrotationrequestcloudsqlsingleusercredentials();
+ }
+
+ public static void
+ syncEnableManagedRotationStringEnablemanagedrotationrequestcloudsqlsingleusercredentials()
+ throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SecretManagerServiceClient secretManagerServiceClient =
+ SecretManagerServiceClient.create()) {
+ String parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString();
+ EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials =
+ EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build();
+ SecretVersion response =
+ secretManagerServiceClient.enableManagedRotation(parent, cloudSqlSingleUserCredentials);
+ }
+ }
+}
+// [END secretmanager_v1_generated_SecretManagerService_EnableManagedRotation_StringEnablemanagedrotationrequestcloudsqlsingleusercredentials_sync]
diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/rotatesecret/AsyncRotateSecret.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/rotatesecret/AsyncRotateSecret.java
new file mode 100644
index 000000000000..3e40fe7b6db7
--- /dev/null
+++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/rotatesecret/AsyncRotateSecret.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2026 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.secretmanager.v1.samples;
+
+// [START secretmanager_v1_generated_SecretManagerService_RotateSecret_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.secretmanager.v1.RotateSecretRequest;
+import com.google.cloud.secretmanager.v1.SecretManagerServiceClient;
+import com.google.cloud.secretmanager.v1.SecretName;
+import com.google.cloud.secretmanager.v1.SecretVersion;
+
+public class AsyncRotateSecret {
+
+ public static void main(String[] args) throws Exception {
+ asyncRotateSecret();
+ }
+
+ public static void asyncRotateSecret() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SecretManagerServiceClient secretManagerServiceClient =
+ SecretManagerServiceClient.create()) {
+ RotateSecretRequest request =
+ RotateSecretRequest.newBuilder()
+ .setParent(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString())
+ .build();
+ ApiFuture+ * Represents a monitored AI Agent. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Agent} + */ +@com.google.protobuf.Generated +public final class Agent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Agent) + AgentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Agent"); + } + + // Use Agent.newBuilder() to construct. + private Agent(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private Agent() { + id_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AgentProto + .internal_static_google_cloud_securitycenter_v1_Agent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AgentProto + .internal_static_google_cloud_securitycenter_v1_Agent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Agent.class, + com.google.cloud.securitycenter.v1.Agent.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+ * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ 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();
+ id_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ 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();
+ displayName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_);
+ }
+ 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.securitycenter.v1.Agent)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1.Agent other = (com.google.cloud.securitycenter.v1.Agent) obj;
+
+ if (!getId().equals(other.getId())) return false;
+ if (!getDisplayName().equals(other.getDisplayName())) 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) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1.Agent parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Agent 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.securitycenter.v1.Agent parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Agent 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.securitycenter.v1.Agent parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Agent parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Agent parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Agent parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Agent parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Agent parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Agent parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Agent parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.securitycenter.v1.Agent 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents a monitored AI Agent. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Agent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ displayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ displayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Agent)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Agent)
+ private static final com.google.cloud.securitycenter.v1.Agent DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Agent();
+ }
+
+ public static com.google.cloud.securitycenter.v1.Agent getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Represents details about an anomaly detected in an AI agent's behavior. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.AgentAnomaly} + */ +@com.google.protobuf.Generated +public final class AgentAnomaly extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.AgentAnomaly) + AgentAnomalyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentAnomaly"); + } + + // Use AgentAnomaly.newBuilder() to construct. + private AgentAnomaly(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AgentAnomaly() { + detectorReferences_ = java.util.Collections.emptyList(); + invocationReferences_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AgentAnomalyProto + .internal_static_google_cloud_securitycenter_v1_AgentAnomaly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AgentAnomalyProto + .internal_static_google_cloud_securitycenter_v1_AgentAnomaly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.AgentAnomaly.class, + com.google.cloud.securitycenter.v1.AgentAnomaly.Builder.class); + } + + public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 1; + private double confidenceScore_ = 0D; + + /** + * + * + *
+ * The overall confidence score indicating the likelihood that this session + * contains a true anomaly. The score ranges from 0.0 to 1.0, where 1.0 + * signifies 100% confidence in the presence of an anomaly and 0.0 signifies + * 0% confidence. + *+ * + *
double confidence_score = 1;
+ *
+ * @return The confidenceScore.
+ */
+ @java.lang.Override
+ public double getConfidenceScore() {
+ return confidenceScore_;
+ }
+
+ public static final int DETECTOR_REFERENCES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.securitycenter.v1.DetectorReferenceOrBuilder>
+ getDetectorReferencesOrBuilderList() {
+ return detectorReferences_;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ @java.lang.Override
+ public int getDetectorReferencesCount() {
+ return detectorReferences_.size();
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.DetectorReference getDetectorReferences(int index) {
+ return detectorReferences_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.DetectorReferenceOrBuilder
+ getDetectorReferencesOrBuilder(int index) {
+ return detectorReferences_.get(index);
+ }
+
+ public static final int INVOCATION_REFERENCES_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.securitycenter.v1.InvocationReferenceOrBuilder>
+ getInvocationReferencesOrBuilderList() {
+ return invocationReferences_;
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ @java.lang.Override
+ public int getInvocationReferencesCount() {
+ return invocationReferences_.size();
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.InvocationReference getInvocationReferences(int index) {
+ return invocationReferences_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.InvocationReferenceOrBuilder
+ getInvocationReferencesOrBuilder(int index) {
+ return invocationReferences_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (java.lang.Double.doubleToRawLongBits(confidenceScore_) != 0) {
+ output.writeDouble(1, confidenceScore_);
+ }
+ for (int i = 0; i < detectorReferences_.size(); i++) {
+ output.writeMessage(2, detectorReferences_.get(i));
+ }
+ for (int i = 0; i < invocationReferences_.size(); i++) {
+ output.writeMessage(3, invocationReferences_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (java.lang.Double.doubleToRawLongBits(confidenceScore_) != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, confidenceScore_);
+ }
+ for (int i = 0; i < detectorReferences_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(2, detectorReferences_.get(i));
+ }
+ for (int i = 0; i < invocationReferences_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, invocationReferences_.get(i));
+ }
+ 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.securitycenter.v1.AgentAnomaly)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1.AgentAnomaly other =
+ (com.google.cloud.securitycenter.v1.AgentAnomaly) obj;
+
+ if (java.lang.Double.doubleToLongBits(getConfidenceScore())
+ != java.lang.Double.doubleToLongBits(other.getConfidenceScore())) return false;
+ if (!getDetectorReferencesList().equals(other.getDetectorReferencesList())) return false;
+ if (!getInvocationReferencesList().equals(other.getInvocationReferencesList())) 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) + CONFIDENCE_SCORE_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getConfidenceScore()));
+ if (getDetectorReferencesCount() > 0) {
+ hash = (37 * hash) + DETECTOR_REFERENCES_FIELD_NUMBER;
+ hash = (53 * hash) + getDetectorReferencesList().hashCode();
+ }
+ if (getInvocationReferencesCount() > 0) {
+ hash = (37 * hash) + INVOCATION_REFERENCES_FIELD_NUMBER;
+ hash = (53 * hash) + getInvocationReferencesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentAnomaly parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentAnomaly 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.securitycenter.v1.AgentAnomaly parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentAnomaly 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.securitycenter.v1.AgentAnomaly parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentAnomaly parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentAnomaly parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentAnomaly parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentAnomaly parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentAnomaly parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentAnomaly parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentAnomaly parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.securitycenter.v1.AgentAnomaly 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents details about an anomaly detected in an AI agent's behavior. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.AgentAnomaly} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The overall confidence score indicating the likelihood that this session + * contains a true anomaly. The score ranges from 0.0 to 1.0, where 1.0 + * signifies 100% confidence in the presence of an anomaly and 0.0 signifies + * 0% confidence. + *+ * + *
double confidence_score = 1;
+ *
+ * @return The confidenceScore.
+ */
+ @java.lang.Override
+ public double getConfidenceScore() {
+ return confidenceScore_;
+ }
+
+ /**
+ *
+ *
+ * + * The overall confidence score indicating the likelihood that this session + * contains a true anomaly. The score ranges from 0.0 to 1.0, where 1.0 + * signifies 100% confidence in the presence of an anomaly and 0.0 signifies + * 0% confidence. + *+ * + *
double confidence_score = 1;
+ *
+ * @param value The confidenceScore to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConfidenceScore(double value) {
+
+ confidenceScore_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The overall confidence score indicating the likelihood that this session + * contains a true anomaly. The score ranges from 0.0 to 1.0, where 1.0 + * signifies 100% confidence in the presence of an anomaly and 0.0 signifies + * 0% confidence. + *+ * + *
double confidence_score = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearConfidenceScore() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ confidenceScore_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public java.util.List+ * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public int getDetectorReferencesCount() {
+ if (detectorReferencesBuilder_ == null) {
+ return detectorReferences_.size();
+ } else {
+ return detectorReferencesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.DetectorReference getDetectorReferences(int index) {
+ if (detectorReferencesBuilder_ == null) {
+ return detectorReferences_.get(index);
+ } else {
+ return detectorReferencesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder setDetectorReferences(
+ int index, com.google.cloud.securitycenter.v1.DetectorReference value) {
+ if (detectorReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.set(index, value);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder setDetectorReferences(
+ int index, com.google.cloud.securitycenter.v1.DetectorReference.Builder builderForValue) {
+ if (detectorReferencesBuilder_ == null) {
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder addDetectorReferences(
+ com.google.cloud.securitycenter.v1.DetectorReference value) {
+ if (detectorReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.add(value);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder addDetectorReferences(
+ int index, com.google.cloud.securitycenter.v1.DetectorReference value) {
+ if (detectorReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.add(index, value);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder addDetectorReferences(
+ com.google.cloud.securitycenter.v1.DetectorReference.Builder builderForValue) {
+ if (detectorReferencesBuilder_ == null) {
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.add(builderForValue.build());
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder addDetectorReferences(
+ int index, com.google.cloud.securitycenter.v1.DetectorReference.Builder builderForValue) {
+ if (detectorReferencesBuilder_ == null) {
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder addAllDetectorReferences(
+ java.lang.Iterable extends com.google.cloud.securitycenter.v1.DetectorReference> values) {
+ if (detectorReferencesBuilder_ == null) {
+ ensureDetectorReferencesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectorReferences_);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder clearDetectorReferences() {
+ if (detectorReferencesBuilder_ == null) {
+ detectorReferences_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder removeDetectorReferences(int index) {
+ if (detectorReferencesBuilder_ == null) {
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.remove(index);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.DetectorReference.Builder
+ getDetectorReferencesBuilder(int index) {
+ return internalGetDetectorReferencesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.DetectorReferenceOrBuilder
+ getDetectorReferencesOrBuilder(int index) {
+ if (detectorReferencesBuilder_ == null) {
+ return detectorReferences_.get(index);
+ } else {
+ return detectorReferencesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public java.util.List extends com.google.cloud.securitycenter.v1.DetectorReferenceOrBuilder>
+ getDetectorReferencesOrBuilderList() {
+ if (detectorReferencesBuilder_ != null) {
+ return detectorReferencesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(detectorReferences_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.DetectorReference.Builder
+ addDetectorReferencesBuilder() {
+ return internalGetDetectorReferencesFieldBuilder()
+ .addBuilder(com.google.cloud.securitycenter.v1.DetectorReference.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.DetectorReference.Builder
+ addDetectorReferencesBuilder(int index) {
+ return internalGetDetectorReferencesFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.securitycenter.v1.DetectorReference.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ public java.util.List+ * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public java.util.List+ * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public int getInvocationReferencesCount() {
+ if (invocationReferencesBuilder_ == null) {
+ return invocationReferences_.size();
+ } else {
+ return invocationReferencesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.InvocationReference getInvocationReferences(
+ int index) {
+ if (invocationReferencesBuilder_ == null) {
+ return invocationReferences_.get(index);
+ } else {
+ return invocationReferencesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public Builder setInvocationReferences(
+ int index, com.google.cloud.securitycenter.v1.InvocationReference value) {
+ if (invocationReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInvocationReferencesIsMutable();
+ invocationReferences_.set(index, value);
+ onChanged();
+ } else {
+ invocationReferencesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public Builder setInvocationReferences(
+ int index, com.google.cloud.securitycenter.v1.InvocationReference.Builder builderForValue) {
+ if (invocationReferencesBuilder_ == null) {
+ ensureInvocationReferencesIsMutable();
+ invocationReferences_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ invocationReferencesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public Builder addInvocationReferences(
+ com.google.cloud.securitycenter.v1.InvocationReference value) {
+ if (invocationReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInvocationReferencesIsMutable();
+ invocationReferences_.add(value);
+ onChanged();
+ } else {
+ invocationReferencesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public Builder addInvocationReferences(
+ int index, com.google.cloud.securitycenter.v1.InvocationReference value) {
+ if (invocationReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInvocationReferencesIsMutable();
+ invocationReferences_.add(index, value);
+ onChanged();
+ } else {
+ invocationReferencesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public Builder addInvocationReferences(
+ com.google.cloud.securitycenter.v1.InvocationReference.Builder builderForValue) {
+ if (invocationReferencesBuilder_ == null) {
+ ensureInvocationReferencesIsMutable();
+ invocationReferences_.add(builderForValue.build());
+ onChanged();
+ } else {
+ invocationReferencesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public Builder addInvocationReferences(
+ int index, com.google.cloud.securitycenter.v1.InvocationReference.Builder builderForValue) {
+ if (invocationReferencesBuilder_ == null) {
+ ensureInvocationReferencesIsMutable();
+ invocationReferences_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ invocationReferencesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public Builder addAllInvocationReferences(
+ java.lang.Iterable extends com.google.cloud.securitycenter.v1.InvocationReference>
+ values) {
+ if (invocationReferencesBuilder_ == null) {
+ ensureInvocationReferencesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invocationReferences_);
+ onChanged();
+ } else {
+ invocationReferencesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public Builder clearInvocationReferences() {
+ if (invocationReferencesBuilder_ == null) {
+ invocationReferences_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ invocationReferencesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public Builder removeInvocationReferences(int index) {
+ if (invocationReferencesBuilder_ == null) {
+ ensureInvocationReferencesIsMutable();
+ invocationReferences_.remove(index);
+ onChanged();
+ } else {
+ invocationReferencesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.InvocationReference.Builder
+ getInvocationReferencesBuilder(int index) {
+ return internalGetInvocationReferencesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.InvocationReferenceOrBuilder
+ getInvocationReferencesOrBuilder(int index) {
+ if (invocationReferencesBuilder_ == null) {
+ return invocationReferences_.get(index);
+ } else {
+ return invocationReferencesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public java.util.List extends com.google.cloud.securitycenter.v1.InvocationReferenceOrBuilder>
+ getInvocationReferencesOrBuilderList() {
+ if (invocationReferencesBuilder_ != null) {
+ return invocationReferencesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(invocationReferences_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.InvocationReference.Builder
+ addInvocationReferencesBuilder() {
+ return internalGetInvocationReferencesFieldBuilder()
+ .addBuilder(com.google.cloud.securitycenter.v1.InvocationReference.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.InvocationReference.Builder
+ addInvocationReferencesBuilder(int index) {
+ return internalGetInvocationReferencesFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.securitycenter.v1.InvocationReference.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ public java.util.List+ * The overall confidence score indicating the likelihood that this session + * contains a true anomaly. The score ranges from 0.0 to 1.0, where 1.0 + * signifies 100% confidence in the presence of an anomaly and 0.0 signifies + * 0% confidence. + *+ * + *
double confidence_score = 1;
+ *
+ * @return The confidenceScore.
+ */
+ double getConfidenceScore();
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ java.util.List+ * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ com.google.cloud.securitycenter.v1.DetectorReference getDetectorReferences(int index);
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ int getDetectorReferencesCount();
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ java.util.List extends com.google.cloud.securitycenter.v1.DetectorReferenceOrBuilder>
+ getDetectorReferencesOrBuilderList();
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v1.DetectorReference detector_references = 2;
+ *
+ */
+ com.google.cloud.securitycenter.v1.DetectorReferenceOrBuilder getDetectorReferencesOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ java.util.List+ * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ com.google.cloud.securitycenter.v1.InvocationReference getInvocationReferences(int index);
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ int getInvocationReferencesCount();
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ java.util.List extends com.google.cloud.securitycenter.v1.InvocationReferenceOrBuilder>
+ getInvocationReferencesOrBuilderList();
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v1.InvocationReference invocation_references = 3;
+ *
+ */
+ com.google.cloud.securitycenter.v1.InvocationReferenceOrBuilder getInvocationReferencesOrBuilder(
+ int index);
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentAnomalyProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentAnomalyProto.java
new file mode 100644
index 000000000000..d321b13839d7
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentAnomalyProto.java
@@ -0,0 +1,125 @@
+/*
+ * Copyright 2026 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!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/securitycenter/v1/agent_anomaly.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.securitycenter.v1;
+
+@com.google.protobuf.Generated
+public final class AgentAnomalyProto extends com.google.protobuf.GeneratedFile {
+ private AgentAnomalyProto() {}
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "AgentAnomalyProto");
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1_AgentAnomaly_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1_AgentAnomaly_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1_DetectorReference_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1_DetectorReference_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1_InvocationReference_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1_InvocationReference_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n"
+ + "2google/cloud/securitycenter/v1/agent_a"
+ + "nomaly.proto\022\036google.cloud.securitycenter.v1\"\314\001\n"
+ + "\014AgentAnomaly\022\030\n"
+ + "\020confidence_score\030\001 \001(\001\022N\n"
+ + "\023detector_references\030\002 \003(\01321.g"
+ + "oogle.cloud.securitycenter.v1.DetectorReference\022R\n"
+ + "\025invocation_references\030\003 \003(\01323"
+ + ".google.cloud.securitycenter.v1.InvocationReference\"\214\002\n"
+ + "\021DetectorReference\022L\n"
+ + "\010severity\030\001"
+ + " \001(\0162:.google.cloud.securitycenter.v1.DetectorReference.Severity\022\023\n"
+ + "\013detector_id\030\002 \001(\t\022\024\n"
+ + "\014display_name\030\003 \001(\t\022\023\n"
+ + "\013explanation\030\004 \001(\t\022\026\n"
+ + "\016recommendation\030\005 \001(\t\"Q\n"
+ + "\010Severity\022\030\n"
+ + "\024SEVERITY_UNSPECIFIED\020\000\022\014\n"
+ + "\010CRITICAL\020\001\022\010\n"
+ + "\004HIGH\020\002\022\n\n"
+ + "\006MEDIUM\020\003\022\007\n"
+ + "\003LOW\020\004\",\n"
+ + "\023InvocationReference\022\025\n\r"
+ + "invocation_id\030\001 \001(\tB\353\001\n"
+ + "\"com.google.cloud.securitycenter.v1B\021AgentAnomalyProtoP\001ZJcloud.goog"
+ + "le.com/go/securitycenter/apiv1/securityc"
+ + "enterpb;securitycenterpb\252\002\036Google.Cloud."
+ + "SecurityCenter.V1\312\002\036Google\\Cloud\\Securit"
+ + "yCenter\\V1\352\002!Google::Cloud::SecurityCenter::V1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+ internal_static_google_cloud_securitycenter_v1_AgentAnomaly_descriptor =
+ getDescriptor().getMessageType(0);
+ internal_static_google_cloud_securitycenter_v1_AgentAnomaly_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1_AgentAnomaly_descriptor,
+ new java.lang.String[] {
+ "ConfidenceScore", "DetectorReferences", "InvocationReferences",
+ });
+ internal_static_google_cloud_securitycenter_v1_DetectorReference_descriptor =
+ getDescriptor().getMessageType(1);
+ internal_static_google_cloud_securitycenter_v1_DetectorReference_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1_DetectorReference_descriptor,
+ new java.lang.String[] {
+ "Severity", "DetectorId", "DisplayName", "Explanation", "Recommendation",
+ });
+ internal_static_google_cloud_securitycenter_v1_InvocationReference_descriptor =
+ getDescriptor().getMessageType(2);
+ internal_static_google_cloud_securitycenter_v1_InvocationReference_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1_InvocationReference_descriptor,
+ new java.lang.String[] {
+ "InvocationId",
+ });
+ descriptor.resolveAllFeaturesImmutable();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentOrBuilder.java
new file mode 100644
index 000000000000..34efd6c33e68
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentOrBuilder.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright 2026 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!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/securitycenter/v1/agent.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.securitycenter.v1;
+
+@com.google.protobuf.Generated
+public interface AgentOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Agent)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ java.lang.String getId();
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString getIdBytes();
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentProto.java
new file mode 100644
index 000000000000..589c333139ab
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentProto.java
@@ -0,0 +1,81 @@
+/*
+ * Copyright 2026 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!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/securitycenter/v1/agent.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.securitycenter.v1;
+
+@com.google.protobuf.Generated
+public final class AgentProto extends com.google.protobuf.GeneratedFile {
+ private AgentProto() {}
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "AgentProto");
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1_Agent_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1_Agent_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n*google/cloud/securitycenter/v1/agent.p"
+ + "roto\022\036google.cloud.securitycenter.v1\")\n\005"
+ + "Agent\022\n\n\002id\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\tB"
+ + "\344\001\n\"com.google.cloud.securitycenter.v1B\n"
+ + "AgentProtoP\001ZJcloud.google.com/go/securi"
+ + "tycenter/apiv1/securitycenterpb;security"
+ + "centerpb\252\002\036Google.Cloud.SecurityCenter.V"
+ + "1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Goo"
+ + "gle::Cloud::SecurityCenter::V1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+ internal_static_google_cloud_securitycenter_v1_Agent_descriptor =
+ getDescriptor().getMessageType(0);
+ internal_static_google_cloud_securitycenter_v1_Agent_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1_Agent_descriptor,
+ new java.lang.String[] {
+ "Id", "DisplayName",
+ });
+ descriptor.resolveAllFeaturesImmutable();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentSession.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentSession.java
new file mode 100644
index 000000000000..036ff3068445
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentSession.java
@@ -0,0 +1,596 @@
+/*
+ * Copyright 2026 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!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/securitycenter/v1/agent_session.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.securitycenter.v1;
+
+/**
+ *
+ *
+ * + * Represents a conversational session where the finding occurred. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.AgentSession} + */ +@com.google.protobuf.Generated +public final class AgentSession extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.AgentSession) + AgentSessionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentSession"); + } + + // Use AgentSession.newBuilder() to construct. + private AgentSession(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AgentSession() { + sessionId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AgentSessionProto + .internal_static_google_cloud_securitycenter_v1_AgentSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AgentSessionProto + .internal_static_google_cloud_securitycenter_v1_AgentSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.AgentSession.class, + com.google.cloud.securitycenter.v1.AgentSession.Builder.class); + } + + public static final int SESSION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sessionId_ = ""; + + /** + * + * + *
+ * The session ID of a conversation. + *+ * + *
string session_id = 1;
+ *
+ * @return The sessionId.
+ */
+ @java.lang.Override
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ 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();
+ sessionId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The session ID of a conversation. + *+ * + *
string session_id = 1;
+ *
+ * @return The bytes for sessionId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, sessionId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sessionId_);
+ }
+ 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.securitycenter.v1.AgentSession)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1.AgentSession other =
+ (com.google.cloud.securitycenter.v1.AgentSession) obj;
+
+ if (!getSessionId().equals(other.getSessionId())) 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) + SESSION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSessionId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentSession parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentSession 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.securitycenter.v1.AgentSession parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentSession 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.securitycenter.v1.AgentSession parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentSession parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentSession parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentSession parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentSession parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentSession parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentSession parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentSession parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.securitycenter.v1.AgentSession 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents a conversational session where the finding occurred. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.AgentSession} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The session ID of a conversation. + *+ * + *
string session_id = 1;
+ *
+ * @return The sessionId.
+ */
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The session ID of a conversation. + *+ * + *
string session_id = 1;
+ *
+ * @return The bytes for sessionId.
+ */
+ public com.google.protobuf.ByteString getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The session ID of a conversation. + *+ * + *
string session_id = 1;
+ *
+ * @param value The sessionId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSessionId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sessionId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The session ID of a conversation. + *+ * + *
string session_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSessionId() {
+ sessionId_ = getDefaultInstance().getSessionId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The session ID of a conversation. + *+ * + *
string session_id = 1;
+ *
+ * @param value The bytes for sessionId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSessionIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sessionId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.AgentSession)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.AgentSession)
+ private static final com.google.cloud.securitycenter.v1.AgentSession DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.AgentSession();
+ }
+
+ public static com.google.cloud.securitycenter.v1.AgentSession getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The session ID of a conversation. + *+ * + *
string session_id = 1;
+ *
+ * @return The sessionId.
+ */
+ java.lang.String getSessionId();
+
+ /**
+ *
+ *
+ * + * The session ID of a conversation. + *+ * + *
string session_id = 1;
+ *
+ * @return The bytes for sessionId.
+ */
+ com.google.protobuf.ByteString getSessionIdBytes();
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentSessionProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentSessionProto.java
new file mode 100644
index 000000000000..aec948e23f6c
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AgentSessionProto.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright 2026 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!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/securitycenter/v1/agent_session.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.securitycenter.v1;
+
+@com.google.protobuf.Generated
+public final class AgentSessionProto extends com.google.protobuf.GeneratedFile {
+ private AgentSessionProto() {}
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "AgentSessionProto");
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1_AgentSession_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1_AgentSession_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n2google/cloud/securitycenter/v1/agent_s"
+ + "ession.proto\022\036google.cloud.securitycente"
+ + "r.v1\"\"\n\014AgentSession\022\022\n\nsession_id\030\001 \001(\t"
+ + "B\353\001\n\"com.google.cloud.securitycenter.v1B"
+ + "\021AgentSessionProtoP\001ZJcloud.google.com/g"
+ + "o/securitycenter/apiv1/securitycenterpb;"
+ + "securitycenterpb\252\002\036Google.Cloud.Security"
+ + "Center.V1\312\002\036Google\\Cloud\\SecurityCenter\\"
+ + "V1\352\002!Google::Cloud::SecurityCenter::V1b\006"
+ + "proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+ internal_static_google_cloud_securitycenter_v1_AgentSession_descriptor =
+ getDescriptor().getMessageType(0);
+ internal_static_google_cloud_securitycenter_v1_AgentSession_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1_AgentSession_descriptor,
+ new java.lang.String[] {
+ "SessionId",
+ });
+ descriptor.resolveAllFeaturesImmutable();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DetectorReference.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DetectorReference.java
new file mode 100644
index 000000000000..e285b0b91e4f
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DetectorReference.java
@@ -0,0 +1,1579 @@
+/*
+ * Copyright 2026 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!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/securitycenter/v1/agent_anomaly.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.securitycenter.v1;
+
+/**
+ *
+ *
+ * + * Represents a reference to a specific anomaly detector. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.DetectorReference} + */ +@com.google.protobuf.Generated +public final class DetectorReference extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.DetectorReference) + DetectorReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DetectorReference"); + } + + // Use DetectorReference.newBuilder() to construct. + private DetectorReference(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private DetectorReference() { + severity_ = 0; + detectorId_ = ""; + displayName_ = ""; + explanation_ = ""; + recommendation_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AgentAnomalyProto + .internal_static_google_cloud_securitycenter_v1_DetectorReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AgentAnomalyProto + .internal_static_google_cloud_securitycenter_v1_DetectorReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.DetectorReference.class, + com.google.cloud.securitycenter.v1.DetectorReference.Builder.class); + } + + /** + * + * + *
+ * Severity levels for detectors. + *+ * + * Protobuf enum {@code google.cloud.securitycenter.v1.DetectorReference.Severity} + */ + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified severity. + *+ * + *
SEVERITY_UNSPECIFIED = 0;
+ */
+ SEVERITY_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Critical severity. + *+ * + *
CRITICAL = 1;
+ */
+ CRITICAL(1),
+ /**
+ *
+ *
+ * + * High severity. + *+ * + *
HIGH = 2;
+ */
+ HIGH(2),
+ /**
+ *
+ *
+ * + * Medium severity. + *+ * + *
MEDIUM = 3;
+ */
+ MEDIUM(3),
+ /**
+ *
+ *
+ * + * Low severity. + *+ * + *
LOW = 4;
+ */
+ LOW(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "Severity");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified severity. + *+ * + *
SEVERITY_UNSPECIFIED = 0;
+ */
+ public static final int SEVERITY_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Critical severity. + *+ * + *
CRITICAL = 1;
+ */
+ public static final int CRITICAL_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * High severity. + *+ * + *
HIGH = 2;
+ */
+ public static final int HIGH_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Medium severity. + *+ * + *
MEDIUM = 3;
+ */
+ public static final int MEDIUM_VALUE = 3;
+
+ /**
+ *
+ *
+ * + * Low severity. + *+ * + *
LOW = 4;
+ */
+ public static final int LOW_VALUE = 4;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Severity valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Severity forNumber(int value) {
+ switch (value) {
+ case 0:
+ return SEVERITY_UNSPECIFIED;
+ case 1:
+ return CRITICAL;
+ case 2:
+ return HIGH;
+ case 3:
+ return MEDIUM;
+ case 4:
+ return LOW;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The severity of the detector. + *+ * + *
.google.cloud.securitycenter.v1.DetectorReference.Severity severity = 1;
+ *
+ * @return The enum numeric value on the wire for severity.
+ */
+ @java.lang.Override
+ public int getSeverityValue() {
+ return severity_;
+ }
+
+ /**
+ *
+ *
+ * + * The severity of the detector. + *+ * + *
.google.cloud.securitycenter.v1.DetectorReference.Severity severity = 1;
+ *
+ * @return The severity.
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.DetectorReference.Severity getSeverity() {
+ com.google.cloud.securitycenter.v1.DetectorReference.Severity result =
+ com.google.cloud.securitycenter.v1.DetectorReference.Severity.forNumber(severity_);
+ return result == null
+ ? com.google.cloud.securitycenter.v1.DetectorReference.Severity.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int DETECTOR_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object detectorId_ = "";
+
+ /**
+ *
+ *
+ * + * The unique identifier of the detector. + *+ * + *
string detector_id = 2;
+ *
+ * @return The detectorId.
+ */
+ @java.lang.Override
+ public java.lang.String getDetectorId() {
+ java.lang.Object ref = detectorId_;
+ 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();
+ detectorId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The unique identifier of the detector. + *+ * + *
string detector_id = 2;
+ *
+ * @return The bytes for detectorId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDetectorIdBytes() {
+ java.lang.Object ref = detectorId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ detectorId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ * + * A human readable name for the detector, providing context on its purpose. + * For example, "ASI02: Tool Misuse", or "Excessive API Calls". + *+ * + *
string display_name = 3;
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ 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();
+ displayName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A human readable name for the detector, providing context on its purpose. + * For example, "ASI02: Tool Misuse", or "Excessive API Calls". + *+ * + *
string display_name = 3;
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXPLANATION_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object explanation_ = "";
+
+ /**
+ *
+ *
+ * + * A detailed explanation generated by an LLM or the detector itself, + * describing why this specific anomaly was flagged. This provides rationale + * and context for the detection. + *+ * + *
string explanation = 4;
+ *
+ * @return The explanation.
+ */
+ @java.lang.Override
+ public java.lang.String getExplanation() {
+ java.lang.Object ref = explanation_;
+ 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();
+ explanation_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A detailed explanation generated by an LLM or the detector itself, + * describing why this specific anomaly was flagged. This provides rationale + * and context for the detection. + *+ * + *
string explanation = 4;
+ *
+ * @return The bytes for explanation.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getExplanationBytes() {
+ java.lang.Object ref = explanation_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ explanation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RECOMMENDATION_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object recommendation_ = "";
+
+ /**
+ *
+ *
+ * + * Recommended steps or actions to remediate or investigate the anomaly + * flagged by this detector. These could include configuration changes, code + * adjustments, or further diagnostic procedures. + *+ * + *
string recommendation = 5;
+ *
+ * @return The recommendation.
+ */
+ @java.lang.Override
+ public java.lang.String getRecommendation() {
+ java.lang.Object ref = recommendation_;
+ 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();
+ recommendation_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Recommended steps or actions to remediate or investigate the anomaly + * flagged by this detector. These could include configuration changes, code + * adjustments, or further diagnostic procedures. + *+ * + *
string recommendation = 5;
+ *
+ * @return The bytes for recommendation.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRecommendationBytes() {
+ java.lang.Object ref = recommendation_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ recommendation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (severity_
+ != com.google.cloud.securitycenter.v1.DetectorReference.Severity.SEVERITY_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, severity_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(detectorId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, detectorId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(explanation_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, explanation_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(recommendation_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, recommendation_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (severity_
+ != com.google.cloud.securitycenter.v1.DetectorReference.Severity.SEVERITY_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, severity_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(detectorId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, detectorId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(explanation_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, explanation_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(recommendation_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, recommendation_);
+ }
+ 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.securitycenter.v1.DetectorReference)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1.DetectorReference other =
+ (com.google.cloud.securitycenter.v1.DetectorReference) obj;
+
+ if (severity_ != other.severity_) return false;
+ if (!getDetectorId().equals(other.getDetectorId())) return false;
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getExplanation().equals(other.getExplanation())) return false;
+ if (!getRecommendation().equals(other.getRecommendation())) 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) + SEVERITY_FIELD_NUMBER;
+ hash = (53 * hash) + severity_;
+ hash = (37 * hash) + DETECTOR_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getDetectorId().hashCode();
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + EXPLANATION_FIELD_NUMBER;
+ hash = (53 * hash) + getExplanation().hashCode();
+ hash = (37 * hash) + RECOMMENDATION_FIELD_NUMBER;
+ hash = (53 * hash) + getRecommendation().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1.DetectorReference parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.DetectorReference 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.securitycenter.v1.DetectorReference parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.DetectorReference 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.securitycenter.v1.DetectorReference parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.DetectorReference parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.DetectorReference parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.DetectorReference parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.DetectorReference parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.DetectorReference parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.DetectorReference parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.DetectorReference parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.securitycenter.v1.DetectorReference 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents a reference to a specific anomaly detector. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.DetectorReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The severity of the detector. + *+ * + *
.google.cloud.securitycenter.v1.DetectorReference.Severity severity = 1;
+ *
+ * @return The enum numeric value on the wire for severity.
+ */
+ @java.lang.Override
+ public int getSeverityValue() {
+ return severity_;
+ }
+
+ /**
+ *
+ *
+ * + * The severity of the detector. + *+ * + *
.google.cloud.securitycenter.v1.DetectorReference.Severity severity = 1;
+ *
+ * @param value The enum numeric value on the wire for severity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSeverityValue(int value) {
+ severity_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The severity of the detector. + *+ * + *
.google.cloud.securitycenter.v1.DetectorReference.Severity severity = 1;
+ *
+ * @return The severity.
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.DetectorReference.Severity getSeverity() {
+ com.google.cloud.securitycenter.v1.DetectorReference.Severity result =
+ com.google.cloud.securitycenter.v1.DetectorReference.Severity.forNumber(severity_);
+ return result == null
+ ? com.google.cloud.securitycenter.v1.DetectorReference.Severity.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * The severity of the detector. + *+ * + *
.google.cloud.securitycenter.v1.DetectorReference.Severity severity = 1;
+ *
+ * @param value The severity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSeverity(
+ com.google.cloud.securitycenter.v1.DetectorReference.Severity value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ severity_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The severity of the detector. + *+ * + *
.google.cloud.securitycenter.v1.DetectorReference.Severity severity = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSeverity() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ severity_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object detectorId_ = "";
+
+ /**
+ *
+ *
+ * + * The unique identifier of the detector. + *+ * + *
string detector_id = 2;
+ *
+ * @return The detectorId.
+ */
+ public java.lang.String getDetectorId() {
+ java.lang.Object ref = detectorId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ detectorId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The unique identifier of the detector. + *+ * + *
string detector_id = 2;
+ *
+ * @return The bytes for detectorId.
+ */
+ public com.google.protobuf.ByteString getDetectorIdBytes() {
+ java.lang.Object ref = detectorId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ detectorId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The unique identifier of the detector. + *+ * + *
string detector_id = 2;
+ *
+ * @param value The detectorId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDetectorId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ detectorId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The unique identifier of the detector. + *+ * + *
string detector_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDetectorId() {
+ detectorId_ = getDefaultInstance().getDetectorId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The unique identifier of the detector. + *+ * + *
string detector_id = 2;
+ *
+ * @param value The bytes for detectorId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDetectorIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ detectorId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ * + * A human readable name for the detector, providing context on its purpose. + * For example, "ASI02: Tool Misuse", or "Excessive API Calls". + *+ * + *
string display_name = 3;
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A human readable name for the detector, providing context on its purpose. + * For example, "ASI02: Tool Misuse", or "Excessive API Calls". + *+ * + *
string display_name = 3;
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A human readable name for the detector, providing context on its purpose. + * For example, "ASI02: Tool Misuse", or "Excessive API Calls". + *+ * + *
string display_name = 3;
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ displayName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A human readable name for the detector, providing context on its purpose. + * For example, "ASI02: Tool Misuse", or "Excessive API Calls". + *+ * + *
string display_name = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A human readable name for the detector, providing context on its purpose. + * For example, "ASI02: Tool Misuse", or "Excessive API Calls". + *+ * + *
string display_name = 3;
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ displayName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object explanation_ = "";
+
+ /**
+ *
+ *
+ * + * A detailed explanation generated by an LLM or the detector itself, + * describing why this specific anomaly was flagged. This provides rationale + * and context for the detection. + *+ * + *
string explanation = 4;
+ *
+ * @return The explanation.
+ */
+ public java.lang.String getExplanation() {
+ java.lang.Object ref = explanation_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ explanation_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A detailed explanation generated by an LLM or the detector itself, + * describing why this specific anomaly was flagged. This provides rationale + * and context for the detection. + *+ * + *
string explanation = 4;
+ *
+ * @return The bytes for explanation.
+ */
+ public com.google.protobuf.ByteString getExplanationBytes() {
+ java.lang.Object ref = explanation_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ explanation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A detailed explanation generated by an LLM or the detector itself, + * describing why this specific anomaly was flagged. This provides rationale + * and context for the detection. + *+ * + *
string explanation = 4;
+ *
+ * @param value The explanation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExplanation(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ explanation_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A detailed explanation generated by an LLM or the detector itself, + * describing why this specific anomaly was flagged. This provides rationale + * and context for the detection. + *+ * + *
string explanation = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearExplanation() {
+ explanation_ = getDefaultInstance().getExplanation();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A detailed explanation generated by an LLM or the detector itself, + * describing why this specific anomaly was flagged. This provides rationale + * and context for the detection. + *+ * + *
string explanation = 4;
+ *
+ * @param value The bytes for explanation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExplanationBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ explanation_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object recommendation_ = "";
+
+ /**
+ *
+ *
+ * + * Recommended steps or actions to remediate or investigate the anomaly + * flagged by this detector. These could include configuration changes, code + * adjustments, or further diagnostic procedures. + *+ * + *
string recommendation = 5;
+ *
+ * @return The recommendation.
+ */
+ public java.lang.String getRecommendation() {
+ java.lang.Object ref = recommendation_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ recommendation_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Recommended steps or actions to remediate or investigate the anomaly + * flagged by this detector. These could include configuration changes, code + * adjustments, or further diagnostic procedures. + *+ * + *
string recommendation = 5;
+ *
+ * @return The bytes for recommendation.
+ */
+ public com.google.protobuf.ByteString getRecommendationBytes() {
+ java.lang.Object ref = recommendation_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ recommendation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Recommended steps or actions to remediate or investigate the anomaly + * flagged by this detector. These could include configuration changes, code + * adjustments, or further diagnostic procedures. + *+ * + *
string recommendation = 5;
+ *
+ * @param value The recommendation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecommendation(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ recommendation_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Recommended steps or actions to remediate or investigate the anomaly + * flagged by this detector. These could include configuration changes, code + * adjustments, or further diagnostic procedures. + *+ * + *
string recommendation = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecommendation() {
+ recommendation_ = getDefaultInstance().getRecommendation();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Recommended steps or actions to remediate or investigate the anomaly + * flagged by this detector. These could include configuration changes, code + * adjustments, or further diagnostic procedures. + *+ * + *
string recommendation = 5;
+ *
+ * @param value The bytes for recommendation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecommendationBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ recommendation_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.DetectorReference)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.DetectorReference)
+ private static final com.google.cloud.securitycenter.v1.DetectorReference DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.DetectorReference();
+ }
+
+ public static com.google.cloud.securitycenter.v1.DetectorReference getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The severity of the detector. + *+ * + *
.google.cloud.securitycenter.v1.DetectorReference.Severity severity = 1;
+ *
+ * @return The enum numeric value on the wire for severity.
+ */
+ int getSeverityValue();
+
+ /**
+ *
+ *
+ * + * The severity of the detector. + *+ * + *
.google.cloud.securitycenter.v1.DetectorReference.Severity severity = 1;
+ *
+ * @return The severity.
+ */
+ com.google.cloud.securitycenter.v1.DetectorReference.Severity getSeverity();
+
+ /**
+ *
+ *
+ * + * The unique identifier of the detector. + *+ * + *
string detector_id = 2;
+ *
+ * @return The detectorId.
+ */
+ java.lang.String getDetectorId();
+
+ /**
+ *
+ *
+ * + * The unique identifier of the detector. + *+ * + *
string detector_id = 2;
+ *
+ * @return The bytes for detectorId.
+ */
+ com.google.protobuf.ByteString getDetectorIdBytes();
+
+ /**
+ *
+ *
+ * + * A human readable name for the detector, providing context on its purpose. + * For example, "ASI02: Tool Misuse", or "Excessive API Calls". + *+ * + *
string display_name = 3;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+
+ /**
+ *
+ *
+ * + * A human readable name for the detector, providing context on its purpose. + * For example, "ASI02: Tool Misuse", or "Excessive API Calls". + *+ * + *
string display_name = 3;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ * + * A detailed explanation generated by an LLM or the detector itself, + * describing why this specific anomaly was flagged. This provides rationale + * and context for the detection. + *+ * + *
string explanation = 4;
+ *
+ * @return The explanation.
+ */
+ java.lang.String getExplanation();
+
+ /**
+ *
+ *
+ * + * A detailed explanation generated by an LLM or the detector itself, + * describing why this specific anomaly was flagged. This provides rationale + * and context for the detection. + *+ * + *
string explanation = 4;
+ *
+ * @return The bytes for explanation.
+ */
+ com.google.protobuf.ByteString getExplanationBytes();
+
+ /**
+ *
+ *
+ * + * Recommended steps or actions to remediate or investigate the anomaly + * flagged by this detector. These could include configuration changes, code + * adjustments, or further diagnostic procedures. + *+ * + *
string recommendation = 5;
+ *
+ * @return The recommendation.
+ */
+ java.lang.String getRecommendation();
+
+ /**
+ *
+ *
+ * + * Recommended steps or actions to remediate or investigate the anomaly + * flagged by this detector. These could include configuration changes, code + * adjustments, or further diagnostic procedures. + *+ * + *
string recommendation = 5;
+ *
+ * @return The bytes for recommendation.
+ */
+ com.google.protobuf.ByteString getRecommendationBytes();
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java
index 235cb7e3b16b..96bccd16237f 100644
--- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java
@@ -83,6 +83,7 @@ private Finding() {
logEntries_ = java.util.Collections.emptyList();
loadBalancers_ = java.util.Collections.emptyList();
groupMemberships_ = java.util.Collections.emptyList();
+ agentSessions_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -7879,6 +7880,185 @@ public com.google.cloud.securitycenter.v1.ExternalExposure getExternalExposure()
: externalExposure_;
}
+ public static final int AGENT_FIELD_NUMBER = 88;
+ private com.google.cloud.securitycenter.v1.Agent agent_;
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ *
+ * @return Whether the agent field is set.
+ */
+ @java.lang.Override
+ public boolean hasAgent() {
+ return ((bitField0_ & 0x01000000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ *
+ * @return The agent.
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.Agent getAgent() {
+ return agent_ == null ? com.google.cloud.securitycenter.v1.Agent.getDefaultInstance() : agent_;
+ }
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.AgentOrBuilder getAgentOrBuilder() {
+ return agent_ == null ? com.google.cloud.securitycenter.v1.Agent.getDefaultInstance() : agent_;
+ }
+
+ public static final int AGENT_SESSIONS_FIELD_NUMBER = 89;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ @java.lang.Override
+ public java.util.List+ * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.securitycenter.v1.AgentSessionOrBuilder>
+ getAgentSessionsOrBuilderList() {
+ return agentSessions_;
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ @java.lang.Override
+ public int getAgentSessionsCount() {
+ return agentSessions_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.AgentSession getAgentSessions(int index) {
+ return agentSessions_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.AgentSessionOrBuilder getAgentSessionsOrBuilder(
+ int index) {
+ return agentSessions_.get(index);
+ }
+
+ public static final int AGENT_ANOMALY_FIELD_NUMBER = 90;
+ private com.google.cloud.securitycenter.v1.AgentAnomaly agentAnomaly_;
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ *
+ * @return Whether the agentAnomaly field is set.
+ */
+ @java.lang.Override
+ public boolean hasAgentAnomaly() {
+ return ((bitField0_ & 0x02000000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ *
+ * @return The agentAnomaly.
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.AgentAnomaly getAgentAnomaly() {
+ return agentAnomaly_ == null
+ ? com.google.cloud.securitycenter.v1.AgentAnomaly.getDefaultInstance()
+ : agentAnomaly_;
+ }
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.AgentAnomalyOrBuilder getAgentAnomalyOrBuilder() {
+ return agentAnomaly_ == null
+ ? com.google.cloud.securitycenter.v1.AgentAnomaly.getDefaultInstance()
+ : agentAnomaly_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -8049,6 +8229,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00800000) != 0)) {
output.writeMessage(84, getExternalExposure());
}
+ if (((bitField0_ & 0x01000000) != 0)) {
+ output.writeMessage(88, getAgent());
+ }
+ for (int i = 0; i < agentSessions_.size(); i++) {
+ output.writeMessage(89, agentSessions_.get(i));
+ }
+ if (((bitField0_ & 0x02000000) != 0)) {
+ output.writeMessage(90, getAgentAnomaly());
+ }
getUnknownFields().writeTo(output);
}
@@ -8245,6 +8434,15 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00800000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(84, getExternalExposure());
}
+ if (((bitField0_ & 0x01000000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(88, getAgent());
+ }
+ for (int i = 0; i < agentSessions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(89, agentSessions_.get(i));
+ }
+ if (((bitField0_ & 0x02000000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(90, getAgentAnomaly());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -8385,6 +8583,15 @@ public boolean equals(final java.lang.Object obj) {
if (hasExternalExposure()) {
if (!getExternalExposure().equals(other.getExternalExposure())) return false;
}
+ if (hasAgent() != other.hasAgent()) return false;
+ if (hasAgent()) {
+ if (!getAgent().equals(other.getAgent())) return false;
+ }
+ if (!getAgentSessionsList().equals(other.getAgentSessionsList())) return false;
+ if (hasAgentAnomaly() != other.hasAgentAnomaly()) return false;
+ if (hasAgentAnomaly()) {
+ if (!getAgentAnomaly().equals(other.getAgentAnomaly())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -8574,6 +8781,18 @@ public int hashCode() {
hash = (37 * hash) + EXTERNAL_EXPOSURE_FIELD_NUMBER;
hash = (53 * hash) + getExternalExposure().hashCode();
}
+ if (hasAgent()) {
+ hash = (37 * hash) + AGENT_FIELD_NUMBER;
+ hash = (53 * hash) + getAgent().hashCode();
+ }
+ if (getAgentSessionsCount() > 0) {
+ hash = (37 * hash) + AGENT_SESSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getAgentSessionsList().hashCode();
+ }
+ if (hasAgentAnomaly()) {
+ hash = (37 * hash) + AGENT_ANOMALY_FIELD_NUMBER;
+ hash = (53 * hash) + getAgentAnomaly().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -8785,6 +9004,9 @@ private void maybeForceBuilderInitialization() {
internalGetGroupMembershipsFieldBuilder();
internalGetChokepointFieldBuilder();
internalGetExternalExposureFieldBuilder();
+ internalGetAgentFieldBuilder();
+ internalGetAgentSessionsFieldBuilder();
+ internalGetAgentAnomalyFieldBuilder();
}
}
@@ -9001,6 +9223,23 @@ public Builder clear() {
externalExposureBuilder_.dispose();
externalExposureBuilder_ = null;
}
+ agent_ = null;
+ if (agentBuilder_ != null) {
+ agentBuilder_.dispose();
+ agentBuilder_ = null;
+ }
+ if (agentSessionsBuilder_ == null) {
+ agentSessions_ = java.util.Collections.emptyList();
+ } else {
+ agentSessions_ = null;
+ agentSessionsBuilder_.clear();
+ }
+ bitField1_ = (bitField1_ & ~0x00200000);
+ agentAnomaly_ = null;
+ if (agentAnomalyBuilder_ != null) {
+ agentAnomalyBuilder_.dispose();
+ agentAnomalyBuilder_ = null;
+ }
return this;
}
@@ -9130,6 +9369,15 @@ private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v1.Findi
} else {
result.groupMemberships_ = groupMembershipsBuilder_.build();
}
+ if (agentSessionsBuilder_ == null) {
+ if (((bitField1_ & 0x00200000) != 0)) {
+ agentSessions_ = java.util.Collections.unmodifiableList(agentSessions_);
+ bitField1_ = (bitField1_ & ~0x00200000);
+ }
+ result.agentSessions_ = agentSessions_;
+ } else {
+ result.agentSessions_ = agentSessionsBuilder_.build();
+ }
}
private void buildPartial0(com.google.cloud.securitycenter.v1.Finding result) {
@@ -9313,6 +9561,15 @@ private void buildPartial1(com.google.cloud.securitycenter.v1.Finding result) {
externalExposureBuilder_ == null ? externalExposure_ : externalExposureBuilder_.build();
to_bitField0_ |= 0x00800000;
}
+ if (((from_bitField1_ & 0x00100000) != 0)) {
+ result.agent_ = agentBuilder_ == null ? agent_ : agentBuilder_.build();
+ to_bitField0_ |= 0x01000000;
+ }
+ if (((from_bitField1_ & 0x00400000) != 0)) {
+ result.agentAnomaly_ =
+ agentAnomalyBuilder_ == null ? agentAnomaly_ : agentAnomalyBuilder_.build();
+ to_bitField0_ |= 0x02000000;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -9743,6 +10000,39 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
if (other.hasExternalExposure()) {
mergeExternalExposure(other.getExternalExposure());
}
+ if (other.hasAgent()) {
+ mergeAgent(other.getAgent());
+ }
+ if (agentSessionsBuilder_ == null) {
+ if (!other.agentSessions_.isEmpty()) {
+ if (agentSessions_.isEmpty()) {
+ agentSessions_ = other.agentSessions_;
+ bitField1_ = (bitField1_ & ~0x00200000);
+ } else {
+ ensureAgentSessionsIsMutable();
+ agentSessions_.addAll(other.agentSessions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.agentSessions_.isEmpty()) {
+ if (agentSessionsBuilder_.isEmpty()) {
+ agentSessionsBuilder_.dispose();
+ agentSessionsBuilder_ = null;
+ agentSessions_ = other.agentSessions_;
+ bitField1_ = (bitField1_ & ~0x00200000);
+ agentSessionsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? internalGetAgentSessionsFieldBuilder()
+ : null;
+ } else {
+ agentSessionsBuilder_.addAllMessages(other.agentSessions_);
+ }
+ }
+ }
+ if (other.hasAgentAnomaly()) {
+ mergeAgentAnomaly(other.getAgentAnomaly());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -10200,6 +10490,33 @@ public Builder mergeFrom(
bitField1_ |= 0x00080000;
break;
} // case 674
+ case 706:
+ {
+ input.readMessage(internalGetAgentFieldBuilder().getBuilder(), extensionRegistry);
+ bitField1_ |= 0x00100000;
+ break;
+ } // case 706
+ case 714:
+ {
+ com.google.cloud.securitycenter.v1.AgentSession m =
+ input.readMessage(
+ com.google.cloud.securitycenter.v1.AgentSession.parser(),
+ extensionRegistry);
+ if (agentSessionsBuilder_ == null) {
+ ensureAgentSessionsIsMutable();
+ agentSessions_.add(m);
+ } else {
+ agentSessionsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 714
+ case 722:
+ {
+ input.readMessage(
+ internalGetAgentAnomalyFieldBuilder().getBuilder(), extensionRegistry);
+ bitField1_ |= 0x00400000;
+ break;
+ } // case 722
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -21665,6 +21982,773 @@ public Builder clearExternalExposure() {
return externalExposureBuilder_;
}
+ private com.google.cloud.securitycenter.v1.Agent agent_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.securitycenter.v1.Agent,
+ com.google.cloud.securitycenter.v1.Agent.Builder,
+ com.google.cloud.securitycenter.v1.AgentOrBuilder>
+ agentBuilder_;
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ *
+ * @return Whether the agent field is set.
+ */
+ public boolean hasAgent() {
+ return ((bitField1_ & 0x00100000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ *
+ * @return The agent.
+ */
+ public com.google.cloud.securitycenter.v1.Agent getAgent() {
+ if (agentBuilder_ == null) {
+ return agent_ == null
+ ? com.google.cloud.securitycenter.v1.Agent.getDefaultInstance()
+ : agent_;
+ } else {
+ return agentBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ */
+ public Builder setAgent(com.google.cloud.securitycenter.v1.Agent value) {
+ if (agentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ agent_ = value;
+ } else {
+ agentBuilder_.setMessage(value);
+ }
+ bitField1_ |= 0x00100000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ */
+ public Builder setAgent(com.google.cloud.securitycenter.v1.Agent.Builder builderForValue) {
+ if (agentBuilder_ == null) {
+ agent_ = builderForValue.build();
+ } else {
+ agentBuilder_.setMessage(builderForValue.build());
+ }
+ bitField1_ |= 0x00100000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ */
+ public Builder mergeAgent(com.google.cloud.securitycenter.v1.Agent value) {
+ if (agentBuilder_ == null) {
+ if (((bitField1_ & 0x00100000) != 0)
+ && agent_ != null
+ && agent_ != com.google.cloud.securitycenter.v1.Agent.getDefaultInstance()) {
+ getAgentBuilder().mergeFrom(value);
+ } else {
+ agent_ = value;
+ }
+ } else {
+ agentBuilder_.mergeFrom(value);
+ }
+ if (agent_ != null) {
+ bitField1_ |= 0x00100000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ */
+ public Builder clearAgent() {
+ bitField1_ = (bitField1_ & ~0x00100000);
+ agent_ = null;
+ if (agentBuilder_ != null) {
+ agentBuilder_.dispose();
+ agentBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ */
+ public com.google.cloud.securitycenter.v1.Agent.Builder getAgentBuilder() {
+ bitField1_ |= 0x00100000;
+ onChanged();
+ return internalGetAgentFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ */
+ public com.google.cloud.securitycenter.v1.AgentOrBuilder getAgentOrBuilder() {
+ if (agentBuilder_ != null) {
+ return agentBuilder_.getMessageOrBuilder();
+ } else {
+ return agent_ == null
+ ? com.google.cloud.securitycenter.v1.Agent.getDefaultInstance()
+ : agent_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.securitycenter.v1.Agent,
+ com.google.cloud.securitycenter.v1.Agent.Builder,
+ com.google.cloud.securitycenter.v1.AgentOrBuilder>
+ internalGetAgentFieldBuilder() {
+ if (agentBuilder_ == null) {
+ agentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.securitycenter.v1.Agent,
+ com.google.cloud.securitycenter.v1.Agent.Builder,
+ com.google.cloud.securitycenter.v1.AgentOrBuilder>(
+ getAgent(), getParentForChildren(), isClean());
+ agent_ = null;
+ }
+ return agentBuilder_;
+ }
+
+ private java.util.List+ * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public java.util.List+ * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public int getAgentSessionsCount() {
+ if (agentSessionsBuilder_ == null) {
+ return agentSessions_.size();
+ } else {
+ return agentSessionsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public com.google.cloud.securitycenter.v1.AgentSession getAgentSessions(int index) {
+ if (agentSessionsBuilder_ == null) {
+ return agentSessions_.get(index);
+ } else {
+ return agentSessionsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public Builder setAgentSessions(
+ int index, com.google.cloud.securitycenter.v1.AgentSession value) {
+ if (agentSessionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAgentSessionsIsMutable();
+ agentSessions_.set(index, value);
+ onChanged();
+ } else {
+ agentSessionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public Builder setAgentSessions(
+ int index, com.google.cloud.securitycenter.v1.AgentSession.Builder builderForValue) {
+ if (agentSessionsBuilder_ == null) {
+ ensureAgentSessionsIsMutable();
+ agentSessions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ agentSessionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public Builder addAgentSessions(com.google.cloud.securitycenter.v1.AgentSession value) {
+ if (agentSessionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAgentSessionsIsMutable();
+ agentSessions_.add(value);
+ onChanged();
+ } else {
+ agentSessionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public Builder addAgentSessions(
+ int index, com.google.cloud.securitycenter.v1.AgentSession value) {
+ if (agentSessionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAgentSessionsIsMutable();
+ agentSessions_.add(index, value);
+ onChanged();
+ } else {
+ agentSessionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public Builder addAgentSessions(
+ com.google.cloud.securitycenter.v1.AgentSession.Builder builderForValue) {
+ if (agentSessionsBuilder_ == null) {
+ ensureAgentSessionsIsMutable();
+ agentSessions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ agentSessionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public Builder addAgentSessions(
+ int index, com.google.cloud.securitycenter.v1.AgentSession.Builder builderForValue) {
+ if (agentSessionsBuilder_ == null) {
+ ensureAgentSessionsIsMutable();
+ agentSessions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ agentSessionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public Builder addAllAgentSessions(
+ java.lang.Iterable extends com.google.cloud.securitycenter.v1.AgentSession> values) {
+ if (agentSessionsBuilder_ == null) {
+ ensureAgentSessionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, agentSessions_);
+ onChanged();
+ } else {
+ agentSessionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public Builder clearAgentSessions() {
+ if (agentSessionsBuilder_ == null) {
+ agentSessions_ = java.util.Collections.emptyList();
+ bitField1_ = (bitField1_ & ~0x00200000);
+ onChanged();
+ } else {
+ agentSessionsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public Builder removeAgentSessions(int index) {
+ if (agentSessionsBuilder_ == null) {
+ ensureAgentSessionsIsMutable();
+ agentSessions_.remove(index);
+ onChanged();
+ } else {
+ agentSessionsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public com.google.cloud.securitycenter.v1.AgentSession.Builder getAgentSessionsBuilder(
+ int index) {
+ return internalGetAgentSessionsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public com.google.cloud.securitycenter.v1.AgentSessionOrBuilder getAgentSessionsOrBuilder(
+ int index) {
+ if (agentSessionsBuilder_ == null) {
+ return agentSessions_.get(index);
+ } else {
+ return agentSessionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public java.util.List extends com.google.cloud.securitycenter.v1.AgentSessionOrBuilder>
+ getAgentSessionsOrBuilderList() {
+ if (agentSessionsBuilder_ != null) {
+ return agentSessionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(agentSessions_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public com.google.cloud.securitycenter.v1.AgentSession.Builder addAgentSessionsBuilder() {
+ return internalGetAgentSessionsFieldBuilder()
+ .addBuilder(com.google.cloud.securitycenter.v1.AgentSession.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public com.google.cloud.securitycenter.v1.AgentSession.Builder addAgentSessionsBuilder(
+ int index) {
+ return internalGetAgentSessionsFieldBuilder()
+ .addBuilder(index, com.google.cloud.securitycenter.v1.AgentSession.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ public java.util.List+ * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ *
+ * @return Whether the agentAnomaly field is set.
+ */
+ public boolean hasAgentAnomaly() {
+ return ((bitField1_ & 0x00400000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ *
+ * @return The agentAnomaly.
+ */
+ public com.google.cloud.securitycenter.v1.AgentAnomaly getAgentAnomaly() {
+ if (agentAnomalyBuilder_ == null) {
+ return agentAnomaly_ == null
+ ? com.google.cloud.securitycenter.v1.AgentAnomaly.getDefaultInstance()
+ : agentAnomaly_;
+ } else {
+ return agentAnomalyBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ */
+ public Builder setAgentAnomaly(com.google.cloud.securitycenter.v1.AgentAnomaly value) {
+ if (agentAnomalyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ agentAnomaly_ = value;
+ } else {
+ agentAnomalyBuilder_.setMessage(value);
+ }
+ bitField1_ |= 0x00400000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ */
+ public Builder setAgentAnomaly(
+ com.google.cloud.securitycenter.v1.AgentAnomaly.Builder builderForValue) {
+ if (agentAnomalyBuilder_ == null) {
+ agentAnomaly_ = builderForValue.build();
+ } else {
+ agentAnomalyBuilder_.setMessage(builderForValue.build());
+ }
+ bitField1_ |= 0x00400000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ */
+ public Builder mergeAgentAnomaly(com.google.cloud.securitycenter.v1.AgentAnomaly value) {
+ if (agentAnomalyBuilder_ == null) {
+ if (((bitField1_ & 0x00400000) != 0)
+ && agentAnomaly_ != null
+ && agentAnomaly_
+ != com.google.cloud.securitycenter.v1.AgentAnomaly.getDefaultInstance()) {
+ getAgentAnomalyBuilder().mergeFrom(value);
+ } else {
+ agentAnomaly_ = value;
+ }
+ } else {
+ agentAnomalyBuilder_.mergeFrom(value);
+ }
+ if (agentAnomaly_ != null) {
+ bitField1_ |= 0x00400000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ */
+ public Builder clearAgentAnomaly() {
+ bitField1_ = (bitField1_ & ~0x00400000);
+ agentAnomaly_ = null;
+ if (agentAnomalyBuilder_ != null) {
+ agentAnomalyBuilder_.dispose();
+ agentAnomalyBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ */
+ public com.google.cloud.securitycenter.v1.AgentAnomaly.Builder getAgentAnomalyBuilder() {
+ bitField1_ |= 0x00400000;
+ onChanged();
+ return internalGetAgentAnomalyFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ */
+ public com.google.cloud.securitycenter.v1.AgentAnomalyOrBuilder getAgentAnomalyOrBuilder() {
+ if (agentAnomalyBuilder_ != null) {
+ return agentAnomalyBuilder_.getMessageOrBuilder();
+ } else {
+ return agentAnomaly_ == null
+ ? com.google.cloud.securitycenter.v1.AgentAnomaly.getDefaultInstance()
+ : agentAnomaly_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.securitycenter.v1.AgentAnomaly,
+ com.google.cloud.securitycenter.v1.AgentAnomaly.Builder,
+ com.google.cloud.securitycenter.v1.AgentAnomalyOrBuilder>
+ internalGetAgentAnomalyFieldBuilder() {
+ if (agentAnomalyBuilder_ == null) {
+ agentAnomalyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.securitycenter.v1.AgentAnomaly,
+ com.google.cloud.securitycenter.v1.AgentAnomaly.Builder,
+ com.google.cloud.securitycenter.v1.AgentAnomalyOrBuilder>(
+ getAgentAnomaly(), getParentForChildren(), isClean());
+ agentAnomaly_ = null;
+ }
+ return agentAnomalyBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Finding)
}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java
index 06751917dae1..22de203798ba 100644
--- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java
@@ -2352,4 +2352,134 @@ com.google.cloud.securitycenter.v1.GroupMembershipOrBuilder getGroupMembershipsO
* .google.cloud.securitycenter.v1.ExternalExposure external_exposure = 84;
*/
com.google.cloud.securitycenter.v1.ExternalExposureOrBuilder getExternalExposureOrBuilder();
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ *
+ * @return Whether the agent field is set.
+ */
+ boolean hasAgent();
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ *
+ * @return The agent.
+ */
+ com.google.cloud.securitycenter.v1.Agent getAgent();
+
+ /**
+ *
+ *
+ * + * Primary Agent that the specified finding was flagged for + *+ * + *
.google.cloud.securitycenter.v1.Agent agent = 88;
+ */
+ com.google.cloud.securitycenter.v1.AgentOrBuilder getAgentOrBuilder();
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ java.util.List+ * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ com.google.cloud.securitycenter.v1.AgentSession getAgentSessions(int index);
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ int getAgentSessionsCount();
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ java.util.List extends com.google.cloud.securitycenter.v1.AgentSessionOrBuilder>
+ getAgentSessionsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Conversational session(s) where the finding occurred. + *+ * + *
repeated .google.cloud.securitycenter.v1.AgentSession agent_sessions = 89;
+ */
+ com.google.cloud.securitycenter.v1.AgentSessionOrBuilder getAgentSessionsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ *
+ * @return Whether the agentAnomaly field is set.
+ */
+ boolean hasAgentAnomaly();
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ *
+ * @return The agentAnomaly.
+ */
+ com.google.cloud.securitycenter.v1.AgentAnomaly getAgentAnomaly();
+
+ /**
+ *
+ *
+ * + * Details about behavior anomalies detected in AI agents. + *+ * + *
.google.cloud.securitycenter.v1.AgentAnomaly agent_anomaly = 90;
+ */
+ com.google.cloud.securitycenter.v1.AgentAnomalyOrBuilder getAgentAnomalyOrBuilder();
}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java
index 5d3e45626178..18bacb907ae0 100644
--- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java
@@ -77,169 +77,172 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n,google/cloud/securitycenter/v1/finding"
+ "\n"
+ + ",google/cloud/securitycenter/v1/finding"
+ ".proto\022\036google.cloud.securitycenter.v1\032\037"
+ "google/api/field_behavior.proto\032\031google/"
- + "api/resource.proto\032+google/cloud/securit"
- + "ycenter/v1/access.proto\0320google/cloud/se"
- + "curitycenter/v1/application.proto\0324googl"
- + "e/cloud/securitycenter/v1/attack_exposur"
- + "e.proto\032=google/cloud/securitycenter/v1/"
- + "backup_disaster_recovery.proto\032/google/c"
- + "loud/securitycenter/v1/chokepoint.proto\032"
- + "0google/cloud/securitycenter/v1/cloud_ar"
- + "mor.proto\032;google/cloud/securitycenter/v"
- + "1/cloud_dlp_data_profile.proto\0329google/c"
- + "loud/securitycenter/v1/cloud_dlp_inspect"
- + "ion.proto\032/google/cloud/securitycenter/v"
- + "1/compliance.proto\032/google/cloud/securit"
- + "ycenter/v1/connection.proto\0324google/clou"
- + "d/securitycenter/v1/contact_details.prot"
- + "o\032.google/cloud/securitycenter/v1/contai"
- + "ner.proto\032-google/cloud/securitycenter/v"
- + "1/database.proto\0321google/cloud/securityc"
- + "enter/v1/exfiltration.proto\0326google/clou"
- + "d/securitycenter/v1/external_exposure.pr"
- + "oto\0324google/cloud/securitycenter/v1/exte"
- + "rnal_system.proto\032)google/cloud/security"
- + "center/v1/file.proto\0325google/cloud/secur"
- + "itycenter/v1/group_membership.proto\0320goo"
- + "gle/cloud/securitycenter/v1/iam_binding."
- + "proto\032.google/cloud/securitycenter/v1/in"
- + "dicator.proto\0323google/cloud/securitycent"
- + "er/v1/kernel_rootkit.proto\032/google/cloud"
- + "/securitycenter/v1/kubernetes.proto\0322goo"
- + "gle/cloud/securitycenter/v1/load_balance"
- + "r.proto\032.google/cloud/securitycenter/v1/"
- + "log_entry.proto\0321google/cloud/securityce"
- + "nter/v1/mitre_attack.proto\032-google/cloud"
- + "/securitycenter/v1/notebook.proto\032/googl"
- + "e/cloud/securitycenter/v1/org_policy.pro"
- + "to\032,google/cloud/securitycenter/v1/proce"
- + "ss.proto\0323google/cloud/securitycenter/v1"
- + "/security_marks.proto\0325google/cloud/secu"
- + "ritycenter/v1/security_posture.proto\0326go"
- + "ogle/cloud/securitycenter/v1/toxic_combi"
- + "nation.proto\0322google/cloud/securitycente"
- + "r/v1/vulnerability.proto\032\034google/protobu"
- + "f/struct.proto\032\037google/protobuf/timestam"
- + "p.proto\"\330\"\n\007Finding\022\014\n\004name\030\001 \001(\t\022\016\n\006par"
- + "ent\030\002 \001(\t\022\025\n\rresource_name\030\003 \001(\t\022<\n\005stat"
- + "e\030\004 \001(\0162-.google.cloud.securitycenter.v1"
- + ".Finding.State\022\020\n\010category\030\005 \001(\t\022\024\n\014exte"
- + "rnal_uri\030\006 \001(\t\022X\n\021source_properties\030\007 \003("
- + "\0132=.google.cloud.securitycenter.v1.Findi"
- + "ng.SourcePropertiesEntry\022J\n\016security_mar"
- + "ks\030\010 \001(\0132-.google.cloud.securitycenter.v"
- + "1.SecurityMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\013"
- + "2\032.google.protobuf.Timestamp\022/\n\013create_t"
- + "ime\030\n \001(\0132\032.google.protobuf.Timestamp\022B\n"
- + "\010severity\030\014 \001(\01620.google.cloud.securityc"
- + "enter.v1.Finding.Severity\022\026\n\016canonical_n"
- + "ame\030\016 \001(\t\022:\n\004mute\030\017 \001(\0162,.google.cloud.s"
- + "ecuritycenter.v1.Finding.Mute\022K\n\rfinding"
- + "_class\030\021 \001(\01624.google.cloud.securitycent"
- + "er.v1.Finding.FindingClass\022<\n\tindicator\030"
- + "\022 \001(\0132).google.cloud.securitycenter.v1.I"
- + "ndicator\022D\n\rvulnerability\030\024 \001(\0132-.google"
- + ".cloud.securitycenter.v1.Vulnerability\0229"
- + "\n\020mute_update_time\030\025 \001(\0132\032.google.protob"
- + "uf.TimestampB\003\340A\003\022[\n\020external_systems\030\026 "
- + "\003(\0132<.google.cloud.securitycenter.v1.Fin"
- + "ding.ExternalSystemsEntryB\003\340A\003\022A\n\014mitre_"
- + "attack\030\031 \001(\0132+.google.cloud.securitycent"
- + "er.v1.MitreAttack\0226\n\006access\030\032 \001(\0132&.goog"
- + "le.cloud.securitycenter.v1.Access\022?\n\013con"
- + "nections\030\037 \003(\0132*.google.cloud.securityce"
- + "nter.v1.Connection\022\026\n\016mute_initiator\030\034 \001"
- + "(\t\022H\n\tmute_info\030= \001(\01320.google.cloud.sec"
- + "uritycenter.v1.Finding.MuteInfoB\003\340A\003\022:\n\t"
- + "processes\030\036 \003(\0132\'.google.cloud.securityc"
- + "enter.v1.Process\022L\n\010contacts\030! \003(\01325.goo"
- + "gle.cloud.securitycenter.v1.Finding.Cont"
- + "actsEntryB\003\340A\003\022?\n\013compliances\030\" \003(\0132*.go"
- + "ogle.cloud.securitycenter.v1.Compliance\022"
- + " \n\023parent_display_name\030$ \001(\tB\003\340A\003\022\023\n\013des"
- + "cription\030% \001(\t\022B\n\014exfiltration\030& \001(\0132,.g"
- + "oogle.cloud.securitycenter.v1.Exfiltrati"
- + "on\022@\n\014iam_bindings\030\' \003(\0132*.google.cloud."
- + "securitycenter.v1.IamBinding\022\022\n\nnext_ste"
- + "ps\030( \001(\t\022\023\n\013module_name\030) \001(\t\022=\n\ncontain"
- + "ers\030* \003(\0132).google.cloud.securitycenter."
- + "v1.Container\022>\n\nkubernetes\030+ \001(\0132*.googl"
- + "e.cloud.securitycenter.v1.Kubernetes\022:\n\010"
- + "database\030, \001(\0132(.google.cloud.securityce"
- + "nter.v1.Database\022G\n\017attack_exposure\030- \001("
- + "\0132..google.cloud.securitycenter.v1.Attac"
- + "kExposure\0223\n\005files\030. \003(\0132$.google.cloud."
- + "securitycenter.v1.File\022P\n\024cloud_dlp_insp"
- + "ection\0300 \001(\01322.google.cloud.securitycent"
- + "er.v1.CloudDlpInspection\022S\n\026cloud_dlp_da"
- + "ta_profile\0301 \001(\01323.google.cloud.security"
- + "center.v1.CloudDlpDataProfile\022E\n\016kernel_"
- + "rootkit\0302 \001(\0132-.google.cloud.securitycen"
- + "ter.v1.KernelRootkit\022?\n\014org_policies\0303 \003"
- + "(\0132).google.cloud.securitycenter.v1.OrgP"
- + "olicy\022@\n\013application\0305 \001(\0132+.google.clou"
- + "d.securitycenter.v1.Application\022X\n\030backu"
- + "p_disaster_recovery\0307 \001(\01326.google.cloud"
- + ".securitycenter.v1.BackupDisasterRecover"
- + "y\022I\n\020security_posture\0308 \001(\0132/.google.clo"
- + "ud.securitycenter.v1.SecurityPosture\022=\n\013"
- + "log_entries\0309 \003(\0132(.google.cloud.securit"
- + "ycenter.v1.LogEntry\022D\n\016load_balancers\030: "
- + "\003(\0132,.google.cloud.securitycenter.v1.Loa"
- + "dBalancer\022?\n\013cloud_armor\030; \001(\0132*.google."
- + "cloud.securitycenter.v1.CloudArmor\022:\n\010no"
- + "tebook\030? \001(\0132(.google.cloud.securitycent"
- + "er.v1.Notebook\022K\n\021toxic_combination\030@ \001("
- + "\01320.google.cloud.securitycenter.v1.Toxic"
- + "Combination\022J\n\021group_memberships\030A \003(\0132/"
- + ".google.cloud.securitycenter.v1.GroupMem"
- + "bership\022>\n\nchokepoint\030M \001(\0132*.google.clo"
- + "ud.securitycenter.v1.Chokepoint\022K\n\021exter"
- + "nal_exposure\030T \001(\01320.google.cloud.securi"
- + "tycenter.v1.ExternalExposure\032\223\003\n\010MuteInf"
- + "o\022P\n\013static_mute\030\001 \001(\0132;.google.cloud.se"
- + "curitycenter.v1.Finding.MuteInfo.StaticM"
- + "ute\022`\n\024dynamic_mute_records\030\002 \003(\0132B.goog"
- + "le.cloud.securitycenter.v1.Finding.MuteI"
- + "nfo.DynamicMuteRecord\032y\n\nStaticMute\022;\n\005s"
- + "tate\030\001 \001(\0162,.google.cloud.securitycenter"
- + ".v1.Finding.Mute\022.\n\napply_time\030\002 \001(\0132\032.g"
- + "oogle.protobuf.Timestamp\032X\n\021DynamicMuteR"
- + "ecord\022\023\n\013mute_config\030\001 \001(\t\022.\n\nmatch_time"
- + "\030\002 \001(\0132\032.google.protobuf.Timestamp\032O\n\025So"
- + "urcePropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005valu"
- + "e\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032f\n\024E"
- + "xternalSystemsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005valu"
- + "e\030\002 \001(\0132..google.cloud.securitycenter.v1"
- + ".ExternalSystem:\0028\001\032_\n\rContactsEntry\022\013\n\003"
- + "key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.cloud."
- + "securitycenter.v1.ContactDetails:\0028\001\"8\n\005"
- + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001"
- + "\022\014\n\010INACTIVE\020\002\"Q\n\010Severity\022\030\n\024SEVERITY_U"
- + "NSPECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006"
- + "MEDIUM\020\003\022\007\n\003LOW\020\004\"C\n\004Mute\022\024\n\020MUTE_UNSPEC"
- + "IFIED\020\000\022\t\n\005MUTED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUNDEF"
- + "INED\020\004\"\360\001\n\014FindingClass\022\035\n\031FINDING_CLASS"
- + "_UNSPECIFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABIL"
- + "ITY\020\002\022\024\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATI"
- + "ON\020\004\022\r\n\tSCC_ERROR\020\005\022\025\n\021POSTURE_VIOLATION"
- + "\020\006\022\025\n\021TOXIC_COMBINATION\020\007\022\027\n\023SENSITIVE_D"
- + "ATA_RISK\020\010\022\016\n\nCHOKEPOINT\020\t\022\025\n\021EXTERNAL_E"
- + "XPOSURE\020\n:\356\001\352A\352\001\n%securitycenter.googlea"
- + "pis.com/Finding\022@organizations/{organiza"
- + "tion}/sources/{source}/findings/{finding"
- + "}\0224folders/{folder}/sources/{source}/fin"
- + "dings/{finding}\0226projects/{project}/sour"
- + "ces/{source}/findings/{finding}*\010finding"
- + "s2\007findingB\330\001\n\"com.google.cloud.security"
- + "center.v1P\001ZJcloud.google.com/go/securit"
- + "ycenter/apiv1/securitycenterpb;securityc"
- + "enterpb\252\002\036Google.Cloud.SecurityCenter.V1"
- + "\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Goog"
- + "le::Cloud::SecurityCenter::V1b\006proto3"
+ + "api/resource.proto\032+google/cloud/securitycenter/v1/access.proto\032*google/cloud/se"
+ + "curitycenter/v1/agent.proto\0322google/cloud/securitycenter/v1/agent_anomaly.proto\032"
+ + "2google/cloud/securitycenter/v1/agent_session.proto\0320google/cloud/securitycenter"
+ + "/v1/application.proto\0324google/cloud/securitycenter/v1/attack_exposure.proto\032=goo"
+ + "gle/cloud/securitycenter/v1/backup_disaster_recovery.proto\032/google/cloud/securit"
+ + "ycenter/v1/chokepoint.proto\0320google/cloud/securitycenter/v1/cloud_armor.proto\032;g"
+ + "oogle/cloud/securitycenter/v1/cloud_dlp_data_profile.proto\0329google/cloud/securit"
+ + "ycenter/v1/cloud_dlp_inspection.proto\032/google/cloud/securitycenter/v1/compliance"
+ + ".proto\032/google/cloud/securitycenter/v1/connection.proto\0324google/cloud/securityce"
+ + "nter/v1/contact_details.proto\032.google/cloud/securitycenter/v1/container.proto\032-g"
+ + "oogle/cloud/securitycenter/v1/database.proto\0321google/cloud/securitycenter/v1/exf"
+ + "iltration.proto\0326google/cloud/securitycenter/v1/external_exposure.proto\0324google/"
+ + "cloud/securitycenter/v1/external_system.proto\032)google/cloud/securitycenter/v1/fi"
+ + "le.proto\0325google/cloud/securitycenter/v1/group_membership.proto\0320google/cloud/se"
+ + "curitycenter/v1/iam_binding.proto\032.google/cloud/securitycenter/v1/indicator.prot"
+ + "o\0323google/cloud/securitycenter/v1/kernel_rootkit.proto\032/google/cloud/securitycen"
+ + "ter/v1/kubernetes.proto\0322google/cloud/securitycenter/v1/load_balancer.proto\032.goo"
+ + "gle/cloud/securitycenter/v1/log_entry.proto\0321google/cloud/securitycenter/v1/mitr"
+ + "e_attack.proto\032-google/cloud/securitycenter/v1/notebook.proto\032/google/cloud/secu"
+ + "ritycenter/v1/org_policy.proto\032,google/cloud/securitycenter/v1/process.proto\0323go"
+ + "ogle/cloud/securitycenter/v1/security_marks.proto\0325google/cloud/securitycenter/v"
+ + "1/security_posture.proto\0326google/cloud/securitycenter/v1/toxic_combination.proto"
+ + "\0322google/cloud/securitycenter/v1/vulnera"
+ + "bility.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\231$\n"
+ + "\007Finding\022\014\n"
+ + "\004name\030\001 \001(\t\022\016\n"
+ + "\006parent\030\002 \001(\t\022\025\n"
+ + "\r"
+ + "resource_name\030\003 \001(\t\022<\n"
+ + "\005state\030\004 \001(\0162-.google.cloud.securitycenter.v1.Finding.State\022\020\n"
+ + "\010category\030\005 \001(\t\022\024\n"
+ + "\014external_uri\030\006 \001(\t\022X\n"
+ + "\021source_properties\030\007 \003(\0132=.google.c"
+ + "loud.securitycenter.v1.Finding.SourcePropertiesEntry\022J\n"
+ + "\016security_marks\030\010 \001(\0132-.g"
+ + "oogle.cloud.securitycenter.v1.SecurityMarksB\003\340A\003\022.\n\n"
+ + "event_time\030\t \001(\0132\032.google.protobuf.Timestamp\022/\n"
+ + "\013create_time\030\n"
+ + " \001(\0132\032.google.protobuf.Timestamp\022B\n"
+ + "\010severity\030\014 "
+ + "\001(\01620.google.cloud.securitycenter.v1.Finding.Severity\022\026\n"
+ + "\016canonical_name\030\016 \001(\t\022:\n"
+ + "\004mute\030\017 \001(\0162,.google.cloud.securitycenter.v1.Finding.Mute\022K\n\r"
+ + "finding_class\030\021 \001(\016"
+ + "24.google.cloud.securitycenter.v1.Finding.FindingClass\022<\n"
+ + "\tindicator\030\022 \001(\0132).google.cloud.securitycenter.v1.Indicator\022D\n\r"
+ + "vulnerability\030\024 \001(\0132-.google.cloud.securitycenter.v1.Vulnerability\0229\n"
+ + "\020mute_update_time\030\025"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022[\n"
+ + "\020external_systems\030\026 \003(\0132<.google"
+ + ".cloud.securitycenter.v1.Finding.ExternalSystemsEntryB\003\340A\003\022A\n"
+ + "\014mitre_attack\030\031 \001(\0132+.google.cloud.securitycenter.v1.MitreAttack\0226\n"
+ + "\006access\030\032 \001(\0132&.google.cloud.securitycenter.v1.Access\022?\n"
+ + "\013connections\030\037 \003"
+ + "(\0132*.google.cloud.securitycenter.v1.Connection\022\026\n"
+ + "\016mute_initiator\030\034 \001(\t\022H\n"
+ + "\tmute_info\030="
+ + " \001(\01320.google.cloud.securitycenter.v1.Finding.MuteInfoB\003\340A\003\022:\n"
+ + "\tprocesses\030\036 \003(\0132\'.google.cloud.securitycenter.v1.Process\022L\n"
+ + "\010contacts\030! \003(\01325.google.cloud.se"
+ + "curitycenter.v1.Finding.ContactsEntryB\003\340A\003\022?\n"
+ + "\013compliances\030\" \003(\0132*.google.cloud.securitycenter.v1.Compliance\022 \n"
+ + "\023parent_display_name\030$ \001(\tB\003\340A\003\022\023\n"
+ + "\013description\030% \001(\t\022B\n"
+ + "\014exfiltration\030& \001(\0132,.google.cloud.securitycenter.v1.Exfiltration\022@\n"
+ + "\014iam_bindings\030\'"
+ + " \003(\0132*.google.cloud.securitycenter.v1.IamBinding\022\022\n\n"
+ + "next_steps\030( \001(\t\022\023\n"
+ + "\013module_name\030) \001(\t\022=\n\n"
+ + "containers\030* \003(\0132).google.cloud.securitycenter.v1.Container\022>\n\n"
+ + "kubernetes\030+ \001(\0132*.google.cloud.securitycenter.v1.Kubernetes\022:\n"
+ + "\010database\030, \001(\0132(.google.cloud.securitycenter.v1.Database\022G\n"
+ + "\017attack_exposure\030-"
+ + " \001(\0132..google.cloud.securitycenter.v1.AttackExposure\0223\n"
+ + "\005files\030. \003(\0132$.google.cloud.securitycenter.v1.File\022P\n"
+ + "\024cloud_dlp_inspection\0300 \001(\013"
+ + "22.google.cloud.securitycenter.v1.CloudDlpInspection\022S\n"
+ + "\026cloud_dlp_data_profile\0301"
+ + " \001(\01323.google.cloud.securitycenter.v1.CloudDlpDataProfile\022E\n"
+ + "\016kernel_rootkit\0302 \001("
+ + "\0132-.google.cloud.securitycenter.v1.KernelRootkit\022?\n"
+ + "\014org_policies\0303 \003(\0132).google.cloud.securitycenter.v1.OrgPolicy\022@\n"
+ + "\013application\0305 \001(\0132+.google.cloud.securitycenter.v1.Application\022X\n"
+ + "\030backup_disaster_recovery\0307"
+ + " \001(\01326.google.cloud.securitycenter.v1.BackupDisasterRecovery\022I\n"
+ + "\020security_posture\0308"
+ + " \001(\0132/.google.cloud.securitycenter.v1.SecurityPosture\022=\n"
+ + "\013log_entries\0309 \003(\0132(.google.cloud.securitycenter.v1.LogEntry\022D\n"
+ + "\016load_balancers\030: \003(\0132,.google.cloud.securitycenter.v1.LoadBalancer\022?\n"
+ + "\013cloud_armor\030; \001(\0132*.google.cloud.securitycenter.v1.CloudArmor\022:\n"
+ + "\010notebook\030? \001(\0132(.google.cloud.securitycenter.v1.Notebook\022K\n"
+ + "\021toxic_combination\030@ \001(\01320.google.c"
+ + "loud.securitycenter.v1.ToxicCombination\022J\n"
+ + "\021group_memberships\030A"
+ + " \003(\0132/.google.cloud.securitycenter.v1.GroupMembership\022>\n\n"
+ + "chokepoint\030M \001(\0132*.google.cloud.securitycenter.v1.Chokepoint\022K\n"
+ + "\021external_exposure\030T"
+ + " \001(\01320.google.cloud.securitycenter.v1.ExternalExposure\0224\n"
+ + "\005agent\030X \001(\0132%.google.cloud.securitycenter.v1.Agent\022D\n"
+ + "\016agent_sessions\030Y"
+ + " \003(\0132,.google.cloud.securitycenter.v1.AgentSession\022C\n\r"
+ + "agent_anomaly\030Z "
+ + "\001(\0132,.google.cloud.securitycenter.v1.AgentAnomaly\032\223\003\n"
+ + "\010MuteInfo\022P\n"
+ + "\013static_mute\030\001 "
+ + "\001(\0132;.google.cloud.securitycenter.v1.Finding.MuteInfo.StaticMute\022`\n"
+ + "\024dynamic_mute_records\030\002 \003(\0132B.google.cloud.securityce"
+ + "nter.v1.Finding.MuteInfo.DynamicMuteRecord\032y\n\n"
+ + "StaticMute\022;\n"
+ + "\005state\030\001 \001(\0162,.google.cloud.securitycenter.v1.Finding.Mute\022.\n"
+ + "\n"
+ + "apply_time\030\002 \001(\0132\032.google.protobuf.Timestamp\032X\n"
+ + "\021DynamicMuteRecord\022\023\n"
+ + "\013mute_config\030\001 \001(\t\022.\n\n"
+ + "match_time\030\002 \001(\0132\032.google.protobuf.Timestamp\032O\n"
+ + "\025SourcePropertiesEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022%\n"
+ + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032f\n"
+ + "\024ExternalSystemsEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022=\n"
+ + "\005value\030\002 \001(\0132..google.cl"
+ + "oud.securitycenter.v1.ExternalSystem:\0028\001\032_\n\r"
+ + "ContactsEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022=\n"
+ + "\005value\030\002"
+ + " \001(\0132..google.cloud.securitycenter.v1.ContactDetails:\0028\001\"8\n"
+ + "\005State\022\025\n"
+ + "\021STATE_UNSPECIFIED\020\000\022\n\n"
+ + "\006ACTIVE\020\001\022\014\n"
+ + "\010INACTIVE\020\002\"Q\n"
+ + "\010Severity\022\030\n"
+ + "\024SEVERITY_UNSPECIFIED\020\000\022\014\n"
+ + "\010CRITICAL\020\001\022\010\n"
+ + "\004HIGH\020\002\022\n\n"
+ + "\006MEDIUM\020\003\022\007\n"
+ + "\003LOW\020\004\"C\n"
+ + "\004Mute\022\024\n"
+ + "\020MUTE_UNSPECIFIED\020\000\022\t\n"
+ + "\005MUTED\020\001\022\013\n"
+ + "\007UNMUTED\020\002\022\r\n"
+ + "\tUNDEFINED\020\004\"\360\001\n"
+ + "\014FindingClass\022\035\n"
+ + "\031FINDING_CLASS_UNSPECIFIED\020\000\022\n\n"
+ + "\006THREAT\020\001\022\021\n\r"
+ + "VULNERABILITY\020\002\022\024\n"
+ + "\020MISCONFIGURATION\020\003\022\017\n"
+ + "\013OBSERVATION\020\004\022\r\n"
+ + "\tSCC_ERROR\020\005\022\025\n"
+ + "\021POSTURE_VIOLATION\020\006\022\025\n"
+ + "\021TOXIC_COMBINATION\020\007\022\027\n"
+ + "\023SENSITIVE_DATA_RISK\020\010\022\016\n\n"
+ + "CHOKEPOINT\020\t\022\025\n"
+ + "\021EXTERNAL_EXPOSURE\020\n"
+ + ":\356\001\352A\352\001\n"
+ + "%securitycenter.googleapis.com/Finding\022@organizations/{organization}/sources/{sour"
+ + "ce}/findings/{finding}\0224folders/{folder}/sources/{source}/findings/{finding}\0226pr"
+ + "ojects/{project}/sources/{source}/findings/{finding}*\010findings2\007findingB\330\001\n"
+ + "\"com.google.cloud.securitycenter.v1P\001ZJcloud."
+ + "google.com/go/securitycenter/apiv1/secur"
+ + "itycenterpb;securitycenterpb\252\002\036Google.Cl"
+ + "oud.SecurityCenter.V1\312\002\036Google\\Cloud\\Sec"
+ + "urityCenter\\V1\352\002!Google::Cloud::SecurityCenter::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -248,6 +251,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.securitycenter.v1.AccessProto.getDescriptor(),
+ com.google.cloud.securitycenter.v1.AgentProto.getDescriptor(),
+ com.google.cloud.securitycenter.v1.AgentAnomalyProto.getDescriptor(),
+ com.google.cloud.securitycenter.v1.AgentSessionProto.getDescriptor(),
com.google.cloud.securitycenter.v1.ApplicationProto.getDescriptor(),
com.google.cloud.securitycenter.v1.AttackExposureProto.getDescriptor(),
com.google.cloud.securitycenter.v1.BackupDisasterRecoveryProto.getDescriptor(),
@@ -340,6 +346,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GroupMemberships",
"Chokepoint",
"ExternalExposure",
+ "Agent",
+ "AgentSessions",
+ "AgentAnomaly",
});
internal_static_google_cloud_securitycenter_v1_Finding_MuteInfo_descriptor =
internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedType(0);
@@ -393,6 +402,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.securitycenter.v1.AccessProto.getDescriptor();
+ com.google.cloud.securitycenter.v1.AgentProto.getDescriptor();
+ com.google.cloud.securitycenter.v1.AgentAnomalyProto.getDescriptor();
+ com.google.cloud.securitycenter.v1.AgentSessionProto.getDescriptor();
com.google.cloud.securitycenter.v1.ApplicationProto.getDescriptor();
com.google.cloud.securitycenter.v1.AttackExposureProto.getDescriptor();
com.google.cloud.securitycenter.v1.BackupDisasterRecoveryProto.getDescriptor();
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/InvocationReference.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/InvocationReference.java
new file mode 100644
index 000000000000..dd2724f7470e
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/InvocationReference.java
@@ -0,0 +1,597 @@
+/*
+ * Copyright 2026 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!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/securitycenter/v1/agent_anomaly.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.securitycenter.v1;
+
+/**
+ *
+ *
+ * + * Represents a reference to a specific OpenTelemetry invocation. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.InvocationReference} + */ +@com.google.protobuf.Generated +public final class InvocationReference extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.InvocationReference) + InvocationReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InvocationReference"); + } + + // Use InvocationReference.newBuilder() to construct. + private InvocationReference(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private InvocationReference() { + invocationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AgentAnomalyProto + .internal_static_google_cloud_securitycenter_v1_InvocationReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AgentAnomalyProto + .internal_static_google_cloud_securitycenter_v1_InvocationReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.InvocationReference.class, + com.google.cloud.securitycenter.v1.InvocationReference.Builder.class); + } + + public static final int INVOCATION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object invocationId_ = ""; + + /** + * + * + *
+ * The unique identifier of the invocation. + *+ * + *
string invocation_id = 1;
+ *
+ * @return The invocationId.
+ */
+ @java.lang.Override
+ public java.lang.String getInvocationId() {
+ java.lang.Object ref = invocationId_;
+ 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();
+ invocationId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The unique identifier of the invocation. + *+ * + *
string invocation_id = 1;
+ *
+ * @return The bytes for invocationId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInvocationIdBytes() {
+ java.lang.Object ref = invocationId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ invocationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(invocationId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, invocationId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(invocationId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, invocationId_);
+ }
+ 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.securitycenter.v1.InvocationReference)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1.InvocationReference other =
+ (com.google.cloud.securitycenter.v1.InvocationReference) obj;
+
+ if (!getInvocationId().equals(other.getInvocationId())) 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) + INVOCATION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInvocationId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1.InvocationReference parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.InvocationReference 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.securitycenter.v1.InvocationReference parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.InvocationReference 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.securitycenter.v1.InvocationReference parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.InvocationReference parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.InvocationReference parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.InvocationReference parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.InvocationReference parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.InvocationReference parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.InvocationReference parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.InvocationReference parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.securitycenter.v1.InvocationReference 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents a reference to a specific OpenTelemetry invocation. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v1.InvocationReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The unique identifier of the invocation. + *+ * + *
string invocation_id = 1;
+ *
+ * @return The invocationId.
+ */
+ public java.lang.String getInvocationId() {
+ java.lang.Object ref = invocationId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ invocationId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The unique identifier of the invocation. + *+ * + *
string invocation_id = 1;
+ *
+ * @return The bytes for invocationId.
+ */
+ public com.google.protobuf.ByteString getInvocationIdBytes() {
+ java.lang.Object ref = invocationId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ invocationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The unique identifier of the invocation. + *+ * + *
string invocation_id = 1;
+ *
+ * @param value The invocationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInvocationId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ invocationId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The unique identifier of the invocation. + *+ * + *
string invocation_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInvocationId() {
+ invocationId_ = getDefaultInstance().getInvocationId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The unique identifier of the invocation. + *+ * + *
string invocation_id = 1;
+ *
+ * @param value The bytes for invocationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInvocationIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ invocationId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.InvocationReference)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.InvocationReference)
+ private static final com.google.cloud.securitycenter.v1.InvocationReference DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.InvocationReference();
+ }
+
+ public static com.google.cloud.securitycenter.v1.InvocationReference getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The unique identifier of the invocation. + *+ * + *
string invocation_id = 1;
+ *
+ * @return The invocationId.
+ */
+ java.lang.String getInvocationId();
+
+ /**
+ *
+ *
+ * + * The unique identifier of the invocation. + *+ * + *
string invocation_id = 1;
+ *
+ * @return The bytes for invocationId.
+ */
+ com.google.protobuf.ByteString getInvocationIdBytes();
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/agent.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/agent.proto
new file mode 100644
index 000000000000..e1071aa708ec
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/agent.proto
@@ -0,0 +1,35 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.securitycenter.v1;
+
+option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
+option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
+option java_multiple_files = true;
+option java_outer_classname = "AgentProto";
+option java_package = "com.google.cloud.securitycenter.v1";
+option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
+option ruby_package = "Google::Cloud::SecurityCenter::V1";
+
+// Represents a monitored AI Agent.
+message Agent {
+ // Identifier of the agent.
+ string id = 1;
+
+ // The user friendly name of the specific agent instance where the finding was
+ // detected, for example, "Banking Agent".
+ string display_name = 2;
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/agent_anomaly.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/agent_anomaly.proto
new file mode 100644
index 000000000000..90001cba95e7
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/agent_anomaly.proto
@@ -0,0 +1,88 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.securitycenter.v1;
+
+option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
+option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
+option java_multiple_files = true;
+option java_outer_classname = "AgentAnomalyProto";
+option java_package = "com.google.cloud.securitycenter.v1";
+option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
+option ruby_package = "Google::Cloud::SecurityCenter::V1";
+
+// Represents details about an anomaly detected in an AI agent's behavior.
+message AgentAnomaly {
+ // The overall confidence score indicating the likelihood that this session
+ // contains a true anomaly. The score ranges from 0.0 to 1.0, where 1.0
+ // signifies 100% confidence in the presence of an anomaly and 0.0 signifies
+ // 0% confidence.
+ double confidence_score = 1;
+
+ // The list of references to specific detectors that identified anomalies
+ // within this session.
+ repeated DetectorReference detector_references = 2;
+
+ // References to the OpenTelemetry invocations.
+ repeated InvocationReference invocation_references = 3;
+}
+
+// Represents a reference to a specific anomaly detector.
+message DetectorReference {
+ // Severity levels for detectors.
+ enum Severity {
+ // Unspecified severity.
+ SEVERITY_UNSPECIFIED = 0;
+
+ // Critical severity.
+ CRITICAL = 1;
+
+ // High severity.
+ HIGH = 2;
+
+ // Medium severity.
+ MEDIUM = 3;
+
+ // Low severity.
+ LOW = 4;
+ }
+
+ // The severity of the detector.
+ Severity severity = 1;
+
+ // The unique identifier of the detector.
+ string detector_id = 2;
+
+ // A human readable name for the detector, providing context on its purpose.
+ // For example, "ASI02: Tool Misuse", or "Excessive API Calls".
+ string display_name = 3;
+
+ // A detailed explanation generated by an LLM or the detector itself,
+ // describing why this specific anomaly was flagged. This provides rationale
+ // and context for the detection.
+ string explanation = 4;
+
+ // Recommended steps or actions to remediate or investigate the anomaly
+ // flagged by this detector. These could include configuration changes, code
+ // adjustments, or further diagnostic procedures.
+ string recommendation = 5;
+}
+
+// Represents a reference to a specific OpenTelemetry invocation.
+message InvocationReference {
+ // The unique identifier of the invocation.
+ string invocation_id = 1;
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/agent_session.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/agent_session.proto
new file mode 100644
index 000000000000..56e2051db1b3
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/agent_session.proto
@@ -0,0 +1,31 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.securitycenter.v1;
+
+option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
+option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
+option java_multiple_files = true;
+option java_outer_classname = "AgentSessionProto";
+option java_package = "com.google.cloud.securitycenter.v1";
+option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
+option ruby_package = "Google::Cloud::SecurityCenter::V1";
+
+// Represents a conversational session where the finding occurred.
+message AgentSession {
+ // The session ID of a conversation.
+ string session_id = 1;
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
index dd7a7e1a05c0..84f6e23cd33d 100644
--- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
@@ -19,6 +19,9 @@ package google.cloud.securitycenter.v1;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/securitycenter/v1/access.proto";
+import "google/cloud/securitycenter/v1/agent.proto";
+import "google/cloud/securitycenter/v1/agent_anomaly.proto";
+import "google/cloud/securitycenter/v1/agent_session.proto";
import "google/cloud/securitycenter/v1/application.proto";
import "google/cloud/securitycenter/v1/attack_exposure.proto";
import "google/cloud/securitycenter/v1/backup_disaster_recovery.proto";
@@ -482,4 +485,13 @@ message Finding {
// External exposure associated with the finding.
ExternalExposure external_exposure = 84;
+
+ // Primary Agent that the specified finding was flagged for
+ Agent agent = 88;
+
+ // Conversational session(s) where the finding occurred.
+ repeated AgentSession agent_sessions = 89;
+
+ // Details about behavior anomalies detected in AI agents.
+ AgentAnomaly agent_anomaly = 90;
}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Agent.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Agent.java
new file mode 100644
index 000000000000..69a35e31dc53
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Agent.java
@@ -0,0 +1,790 @@
+/*
+ * Copyright 2026 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!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/securitycenter/v2/agent.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.securitycenter.v2;
+
+/**
+ *
+ *
+ * + * Represents a monitored AI Agent. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v2.Agent} + */ +@com.google.protobuf.Generated +public final class Agent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.Agent) + AgentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Agent"); + } + + // Use Agent.newBuilder() to construct. + private Agent(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private Agent() { + id_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.AgentProto + .internal_static_google_cloud_securitycenter_v2_Agent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.AgentProto + .internal_static_google_cloud_securitycenter_v2_Agent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Agent.class, + com.google.cloud.securitycenter.v2.Agent.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+ * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ 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();
+ id_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ 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();
+ displayName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_);
+ }
+ 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.securitycenter.v2.Agent)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v2.Agent other = (com.google.cloud.securitycenter.v2.Agent) obj;
+
+ if (!getId().equals(other.getId())) return false;
+ if (!getDisplayName().equals(other.getDisplayName())) 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) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v2.Agent parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v2.Agent 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.securitycenter.v2.Agent parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v2.Agent 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.securitycenter.v2.Agent parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v2.Agent parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v2.Agent parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v2.Agent parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v2.Agent parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v2.Agent parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v2.Agent parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v2.Agent parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.securitycenter.v2.Agent 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents a monitored AI Agent. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v2.Agent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Identifier of the agent. + *+ * + *
string id = 1;
+ *
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ displayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The user friendly name of the specific agent instance where the finding was + * detected, for example, "Banking Agent". + *+ * + *
string display_name = 2;
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ displayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.Agent)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.Agent)
+ private static final com.google.cloud.securitycenter.v2.Agent DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.Agent();
+ }
+
+ public static com.google.cloud.securitycenter.v2.Agent getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Represents details about an anomaly detected in an AI agent's behavior. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v2.AgentAnomaly} + */ +@com.google.protobuf.Generated +public final class AgentAnomaly extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.AgentAnomaly) + AgentAnomalyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentAnomaly"); + } + + // Use AgentAnomaly.newBuilder() to construct. + private AgentAnomaly(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AgentAnomaly() { + detectorReferences_ = java.util.Collections.emptyList(); + invocationReferences_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.AgentAnomalyProto + .internal_static_google_cloud_securitycenter_v2_AgentAnomaly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.AgentAnomalyProto + .internal_static_google_cloud_securitycenter_v2_AgentAnomaly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.AgentAnomaly.class, + com.google.cloud.securitycenter.v2.AgentAnomaly.Builder.class); + } + + public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 1; + private double confidenceScore_ = 0D; + + /** + * + * + *
+ * The overall confidence score indicating the likelihood that this session + * contains a true anomaly. The score ranges from 0.0 to 1.0, where 1.0 + * signifies 100% confidence in the presence of an anomaly and 0.0 signifies + * 0% confidence. + *+ * + *
double confidence_score = 1;
+ *
+ * @return The confidenceScore.
+ */
+ @java.lang.Override
+ public double getConfidenceScore() {
+ return confidenceScore_;
+ }
+
+ public static final int DETECTOR_REFERENCES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.securitycenter.v2.DetectorReferenceOrBuilder>
+ getDetectorReferencesOrBuilderList() {
+ return detectorReferences_;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ @java.lang.Override
+ public int getDetectorReferencesCount() {
+ return detectorReferences_.size();
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v2.DetectorReference getDetectorReferences(int index) {
+ return detectorReferences_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v2.DetectorReferenceOrBuilder
+ getDetectorReferencesOrBuilder(int index) {
+ return detectorReferences_.get(index);
+ }
+
+ public static final int INVOCATION_REFERENCES_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v2.InvocationReference invocation_references = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v2.InvocationReference invocation_references = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.securitycenter.v2.InvocationReferenceOrBuilder>
+ getInvocationReferencesOrBuilderList() {
+ return invocationReferences_;
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v2.InvocationReference invocation_references = 3;
+ *
+ */
+ @java.lang.Override
+ public int getInvocationReferencesCount() {
+ return invocationReferences_.size();
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v2.InvocationReference invocation_references = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v2.InvocationReference getInvocationReferences(int index) {
+ return invocationReferences_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * References to the OpenTelemetry invocations. + *+ * + *
repeated .google.cloud.securitycenter.v2.InvocationReference invocation_references = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v2.InvocationReferenceOrBuilder
+ getInvocationReferencesOrBuilder(int index) {
+ return invocationReferences_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (java.lang.Double.doubleToRawLongBits(confidenceScore_) != 0) {
+ output.writeDouble(1, confidenceScore_);
+ }
+ for (int i = 0; i < detectorReferences_.size(); i++) {
+ output.writeMessage(2, detectorReferences_.get(i));
+ }
+ for (int i = 0; i < invocationReferences_.size(); i++) {
+ output.writeMessage(3, invocationReferences_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (java.lang.Double.doubleToRawLongBits(confidenceScore_) != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, confidenceScore_);
+ }
+ for (int i = 0; i < detectorReferences_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(2, detectorReferences_.get(i));
+ }
+ for (int i = 0; i < invocationReferences_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, invocationReferences_.get(i));
+ }
+ 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.securitycenter.v2.AgentAnomaly)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v2.AgentAnomaly other =
+ (com.google.cloud.securitycenter.v2.AgentAnomaly) obj;
+
+ if (java.lang.Double.doubleToLongBits(getConfidenceScore())
+ != java.lang.Double.doubleToLongBits(other.getConfidenceScore())) return false;
+ if (!getDetectorReferencesList().equals(other.getDetectorReferencesList())) return false;
+ if (!getInvocationReferencesList().equals(other.getInvocationReferencesList())) 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) + CONFIDENCE_SCORE_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getConfidenceScore()));
+ if (getDetectorReferencesCount() > 0) {
+ hash = (37 * hash) + DETECTOR_REFERENCES_FIELD_NUMBER;
+ hash = (53 * hash) + getDetectorReferencesList().hashCode();
+ }
+ if (getInvocationReferencesCount() > 0) {
+ hash = (37 * hash) + INVOCATION_REFERENCES_FIELD_NUMBER;
+ hash = (53 * hash) + getInvocationReferencesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v2.AgentAnomaly parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v2.AgentAnomaly 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.securitycenter.v2.AgentAnomaly parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v2.AgentAnomaly 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.securitycenter.v2.AgentAnomaly parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v2.AgentAnomaly parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v2.AgentAnomaly parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v2.AgentAnomaly parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v2.AgentAnomaly parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v2.AgentAnomaly parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v2.AgentAnomaly parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v2.AgentAnomaly parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.securitycenter.v2.AgentAnomaly 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents details about an anomaly detected in an AI agent's behavior. + *+ * + * Protobuf type {@code google.cloud.securitycenter.v2.AgentAnomaly} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The overall confidence score indicating the likelihood that this session + * contains a true anomaly. The score ranges from 0.0 to 1.0, where 1.0 + * signifies 100% confidence in the presence of an anomaly and 0.0 signifies + * 0% confidence. + *+ * + *
double confidence_score = 1;
+ *
+ * @return The confidenceScore.
+ */
+ @java.lang.Override
+ public double getConfidenceScore() {
+ return confidenceScore_;
+ }
+
+ /**
+ *
+ *
+ * + * The overall confidence score indicating the likelihood that this session + * contains a true anomaly. The score ranges from 0.0 to 1.0, where 1.0 + * signifies 100% confidence in the presence of an anomaly and 0.0 signifies + * 0% confidence. + *+ * + *
double confidence_score = 1;
+ *
+ * @param value The confidenceScore to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConfidenceScore(double value) {
+
+ confidenceScore_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The overall confidence score indicating the likelihood that this session + * contains a true anomaly. The score ranges from 0.0 to 1.0, where 1.0 + * signifies 100% confidence in the presence of an anomaly and 0.0 signifies + * 0% confidence. + *+ * + *
double confidence_score = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearConfidenceScore() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ confidenceScore_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public java.util.List+ * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public int getDetectorReferencesCount() {
+ if (detectorReferencesBuilder_ == null) {
+ return detectorReferences_.size();
+ } else {
+ return detectorReferencesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public com.google.cloud.securitycenter.v2.DetectorReference getDetectorReferences(int index) {
+ if (detectorReferencesBuilder_ == null) {
+ return detectorReferences_.get(index);
+ } else {
+ return detectorReferencesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder setDetectorReferences(
+ int index, com.google.cloud.securitycenter.v2.DetectorReference value) {
+ if (detectorReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.set(index, value);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder setDetectorReferences(
+ int index, com.google.cloud.securitycenter.v2.DetectorReference.Builder builderForValue) {
+ if (detectorReferencesBuilder_ == null) {
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder addDetectorReferences(
+ com.google.cloud.securitycenter.v2.DetectorReference value) {
+ if (detectorReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.add(value);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder addDetectorReferences(
+ int index, com.google.cloud.securitycenter.v2.DetectorReference value) {
+ if (detectorReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.add(index, value);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder addDetectorReferences(
+ com.google.cloud.securitycenter.v2.DetectorReference.Builder builderForValue) {
+ if (detectorReferencesBuilder_ == null) {
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.add(builderForValue.build());
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder addDetectorReferences(
+ int index, com.google.cloud.securitycenter.v2.DetectorReference.Builder builderForValue) {
+ if (detectorReferencesBuilder_ == null) {
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder addAllDetectorReferences(
+ java.lang.Iterable extends com.google.cloud.securitycenter.v2.DetectorReference> values) {
+ if (detectorReferencesBuilder_ == null) {
+ ensureDetectorReferencesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, detectorReferences_);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder clearDetectorReferences() {
+ if (detectorReferencesBuilder_ == null) {
+ detectorReferences_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public Builder removeDetectorReferences(int index) {
+ if (detectorReferencesBuilder_ == null) {
+ ensureDetectorReferencesIsMutable();
+ detectorReferences_.remove(index);
+ onChanged();
+ } else {
+ detectorReferencesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public com.google.cloud.securitycenter.v2.DetectorReference.Builder
+ getDetectorReferencesBuilder(int index) {
+ return internalGetDetectorReferencesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public com.google.cloud.securitycenter.v2.DetectorReferenceOrBuilder
+ getDetectorReferencesOrBuilder(int index) {
+ if (detectorReferencesBuilder_ == null) {
+ return detectorReferences_.get(index);
+ } else {
+ return detectorReferencesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public java.util.List extends com.google.cloud.securitycenter.v2.DetectorReferenceOrBuilder>
+ getDetectorReferencesOrBuilderList() {
+ if (detectorReferencesBuilder_ != null) {
+ return detectorReferencesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(detectorReferences_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public com.google.cloud.securitycenter.v2.DetectorReference.Builder
+ addDetectorReferencesBuilder() {
+ return internalGetDetectorReferencesFieldBuilder()
+ .addBuilder(com.google.cloud.securitycenter.v2.DetectorReference.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public com.google.cloud.securitycenter.v2.DetectorReference.Builder
+ addDetectorReferencesBuilder(int index) {
+ return internalGetDetectorReferencesFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.securitycenter.v2.DetectorReference.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * The list of references to specific detectors that identified anomalies + * within this session. + *+ * + *
repeated .google.cloud.securitycenter.v2.DetectorReference detector_references = 2;
+ *
+ */
+ public java.util.List