diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md
index 028a14d90d66..6ba3f7315aa2 100644
--- a/java-accessapproval/README.md
+++ b/java-accessapproval/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
+ * Source code is in a public Git repository. + *+ * + *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return Whether the gitSource field is set.
+ */
+ boolean hasGitSource();
+
+ /**
+ *
+ *
+ * + * Source code is in a public Git repository. + *+ * + *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return The gitSource.
+ */
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource getGitSource();
+
+ /**
+ *
+ *
+ * + * Source code is in a public Git repository. + *+ * + *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder
+ getGitSourceOrBuilder();
+
/**
*
*
@@ -8551,150 +8595,107 @@ public com.google.protobuf.Parser- * Optional. The version of Python to use. Support version - * includes 3.9, 3.10, 3.11, 3.12, 3.13. - * If not specified, default value is 3.10. - *- * - *
string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The version.
- */
- java.lang.String getVersion();
-
- /**
- *
- *
- * - * Optional. The version of Python to use. Support version - * includes 3.9, 3.10, 3.11, 3.12, 3.13. - * If not specified, default value is 3.10. - *- * - *
string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for version.
- */
- com.google.protobuf.ByteString getVersionBytes();
-
- /**
- *
- *
- *
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The HTTPS URL of the public Git repository to clone.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The entrypointModule.
+ * @return The url.
*/
- java.lang.String getEntrypointModule();
+ java.lang.String getUrl();
/**
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The HTTPS URL of the public Git repository to clone.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for entrypointModule.
+ * @return The bytes for url.
*/
- com.google.protobuf.ByteString getEntrypointModuleBytes();
+ com.google.protobuf.ByteString getUrlBytes();
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The entrypointObject.
+ * @return The dir.
*/
- java.lang.String getEntrypointObject();
+ java.lang.String getDir();
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The bytes for entrypointObject.
+ * @return The bytes for dir.
*/
- com.google.protobuf.ByteString getEntrypointObjectBytes();
+ com.google.protobuf.ByteString getDirBytes();
/**
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The requirementsFile.
+ * @return The revision.
*/
- java.lang.String getRequirementsFile();
+ java.lang.String getRevision();
/**
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for requirementsFile.
+ * @return The bytes for revision.
*/
- com.google.protobuf.ByteString getRequirementsFileBytes();
+ com.google.protobuf.ByteString getRevisionBytes();
}
/**
*
*
*
- * Specification for running a Python application from source.
+ * Specifies source code to be fetched from a public Git repository.
*
*
- * Protobuf type {@code
- * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec}
+ * Protobuf type {@code google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource}
*/
- public static final class PythonSpec extends com.google.protobuf.GeneratedMessage
+ public static final class GitSource extends com.google.protobuf.GeneratedMessage
implements
- // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
- PythonSpecOrBuilder {
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ GitSourceOrBuilder {
private static final long serialVersionUID = 0L;
static {
@@ -8704,64 +8705,61 @@ public static final class PythonSpec extends com.google.protobuf.GeneratedMessag
/* minor= */ 33,
/* patch= */ 6,
/* suffix= */ "",
- "PythonSpec");
+ "GitSource");
}
- // Use PythonSpec.newBuilder() to construct.
- private PythonSpec(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ // Use GitSource.newBuilder() to construct.
+ private GitSource(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
- private PythonSpec() {
- version_ = "";
- entrypointModule_ = "";
- entrypointObject_ = "";
- requirementsFile_ = "";
+ private GitSource() {
+ url_ = "";
+ dir_ = "";
+ revision_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.aiplatform.v1.ReasoningEngineProto
- .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor;
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.aiplatform.v1.ReasoningEngineProto
- .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable
+ .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.class,
- com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.class,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder
.class);
}
- public static final int VERSION_FIELD_NUMBER = 1;
+ public static final int URL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private volatile java.lang.Object version_ = "";
+ private volatile java.lang.Object url_ = "";
/**
*
*
*
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
+ * Required. The HTTPS URL of the public Git repository to clone.
*
*
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The version.
+ * @return The url.
*/
@java.lang.Override
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
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();
- version_ = s;
+ url_ = s;
return s;
}
}
@@ -8770,58 +8768,52 @@ public java.lang.String getVersion() {
*
*
*
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
+ * Required. The HTTPS URL of the public Git repository to clone.
*
*
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for version.
+ * @return The bytes for url.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getVersionBytes() {
- java.lang.Object ref = version_;
+ public com.google.protobuf.ByteString getUrlBytes() {
+ java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- version_ = b;
+ url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2;
+ public static final int DIR_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private volatile java.lang.Object entrypointModule_ = "";
+ private volatile java.lang.Object dir_ = "";
/**
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The entrypointModule.
+ * @return The dir.
*/
@java.lang.Override
- public java.lang.String getEntrypointModule() {
- java.lang.Object ref = entrypointModule_;
+ public java.lang.String getDir() {
+ java.lang.Object ref = dir_;
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();
- entrypointModule_ = s;
+ dir_ = s;
return s;
}
}
@@ -8830,58 +8822,53 @@ public java.lang.String getEntrypointModule() {
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The bytes for entrypointModule.
+ * @return The bytes for dir.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getEntrypointModuleBytes() {
- java.lang.Object ref = entrypointModule_;
+ public com.google.protobuf.ByteString getDirBytes() {
+ java.lang.Object ref = dir_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- entrypointModule_ = b;
+ dir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3;
+ public static final int REVISION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
- private volatile java.lang.Object entrypointObject_ = "";
+ private volatile java.lang.Object revision_ = "";
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The entrypointObject.
+ * @return The revision.
*/
@java.lang.Override
- public java.lang.String getEntrypointObject() {
- java.lang.Object ref = entrypointObject_;
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
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();
- entrypointObject_ = s;
+ revision_ = s;
return s;
}
}
@@ -8890,60 +8877,1205 @@ public java.lang.String getEntrypointObject() {
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for entrypointObject.
+ * @return The bytes for revision.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getEntrypointObjectBytes() {
- java.lang.Object ref = entrypointObject_;
+ public com.google.protobuf.ByteString getRevisionBytes() {
+ java.lang.Object ref = revision_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- entrypointObject_ = b;
+ revision_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object requirementsFile_ = "";
+ private byte memoizedIsInitialized = -1;
- /**
- *
- *
- * - * Optional. The path to the requirements file, relative to the source - * root. If not specified, defaults to "requirements.txt". - *- * - *
string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The requirementsFile.
- */
@java.lang.Override
- public java.lang.String getRequirementsFile() {
- java.lang.Object ref = requirementsFile_;
- 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();
- requirementsFile_ = s;
- return s;
- }
+ 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(url_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, url_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, dir_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revision_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, revision_);
+ }
+ 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(url_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dir_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revision_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, revision_);
+ }
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource other =
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) obj;
+
+ if (!getUrl().equals(other.getUrl())) return false;
+ if (!getDir().equals(other.getDir())) return false;
+ if (!getRevision().equals(other.getRevision())) 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) + URL_FIELD_NUMBER;
+ hash = (53 * hash) + getUrl().hashCode();
+ hash = (37 * hash) + DIR_FIELD_NUMBER;
+ hash = (53 * hash) + getDir().hashCode();
+ hash = (37 * hash) + REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getRevision().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource 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;
+ }
+
+ /**
+ *
+ *
+ * + * Specifies source code to be fetched from a public Git repository. + *+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The HTTPS URL of the public Git repository to clone. + *+ * + *
string url = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The url.
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The HTTPS URL of the public Git repository to clone. + *+ * + *
string url = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for url.
+ */
+ public com.google.protobuf.ByteString getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The HTTPS URL of the public Git repository to clone. + *+ * + *
string url = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrl(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ url_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The HTTPS URL of the public Git repository to clone. + *+ * + *
string url = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUrl() {
+ url_ = getDefaultInstance().getUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The HTTPS URL of the public Git repository to clone. + *+ * + *
string url = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrlBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ url_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object dir_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. Directory, relative to the source root, in which to run the + * build. + *+ * + *
string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The dir.
+ */
+ public java.lang.String getDir() {
+ java.lang.Object ref = dir_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dir_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Directory, relative to the source root, in which to run the + * build. + *+ * + *
string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for dir.
+ */
+ public com.google.protobuf.ByteString getDirBytes() {
+ java.lang.Object ref = dir_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dir_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Directory, relative to the source root, in which to run the + * build. + *+ * + *
string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The dir to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDir(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dir_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Directory, relative to the source root, in which to run the + * build. + *+ * + *
string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDir() {
+ dir_ = getDefaultInstance().getDir();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Directory, relative to the source root, in which to run the + * build. + *+ * + *
string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for dir to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDirBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ dir_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object revision_ = "";
+
+ /**
+ *
+ *
+ * + * Required. The revision to fetch from the Git repository: a branch, a + * tag, or a full commit SHA. Abbreviated commit SHAs are not supported. + *+ * + *
string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The revision.
+ */
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ revision_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The revision to fetch from the Git repository: a branch, a + * tag, or a full commit SHA. Abbreviated commit SHAs are not supported. + *+ * + *
string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for revision.
+ */
+ public com.google.protobuf.ByteString getRevisionBytes() {
+ java.lang.Object ref = revision_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ revision_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The revision to fetch from the Git repository: a branch, a + * tag, or a full commit SHA. Abbreviated commit SHAs are not supported. + *+ * + *
string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The revision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevision(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ revision_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The revision to fetch from the Git repository: a branch, a + * tag, or a full commit SHA. Abbreviated commit SHAs are not supported. + *+ * + *
string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRevision() {
+ revision_ = getDefaultInstance().getRevision();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The revision to fetch from the Git repository: a branch, a + * tag, or a full commit SHA. Abbreviated commit SHAs are not supported. + *+ * + *
string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for revision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevisionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ revision_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ private static final com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSource
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource();
+ }
+
+ public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. The version of Python to use. Support version + * includes 3.9, 3.10, 3.11, 3.12, 3.13. + * If not specified, default value is 3.10. + *+ * + *
string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The version.
+ */
+ java.lang.String getVersion();
+
+ /**
+ *
+ *
+ * + * Optional. The version of Python to use. Support version + * includes 3.9, 3.10, 3.11, 3.12, 3.13. + * If not specified, default value is 3.10. + *+ * + *
string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for version.
+ */
+ com.google.protobuf.ByteString getVersionBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The Python module to load as the entrypoint, specified as a + * fully qualified module name. For example: path.to.agent. + * If not specified, defaults to "agent". + * + * The project root will be added to Python sys.path, allowing imports + * to be specified relative to the root. + *+ * + *
string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointModule.
+ */
+ java.lang.String getEntrypointModule();
+
+ /**
+ *
+ *
+ * + * Optional. The Python module to load as the entrypoint, specified as a + * fully qualified module name. For example: path.to.agent. + * If not specified, defaults to "agent". + * + * The project root will be added to Python sys.path, allowing imports + * to be specified relative to the root. + *+ * + *
string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointModule.
+ */
+ com.google.protobuf.ByteString getEntrypointModuleBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The name of the callable object within the + * `entrypoint_module` to use as the application If not specified, + * defaults to "root_agent". + *+ * + *
string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointObject.
+ */
+ java.lang.String getEntrypointObject();
+
+ /**
+ *
+ *
+ * + * Optional. The name of the callable object within the + * `entrypoint_module` to use as the application If not specified, + * defaults to "root_agent". + *+ * + *
string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointObject.
+ */
+ com.google.protobuf.ByteString getEntrypointObjectBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The path to the requirements file, relative to the source + * root. If not specified, defaults to "requirements.txt". + *+ * + *
string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requirementsFile.
+ */
+ java.lang.String getRequirementsFile();
+
+ /**
+ *
+ *
+ * + * Optional. The path to the requirements file, relative to the source + * root. If not specified, defaults to "requirements.txt". + *+ * + *
string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for requirementsFile.
+ */
+ com.google.protobuf.ByteString getRequirementsFileBytes();
+ }
+
+ /**
+ *
+ *
+ * + * Specification for running a Python application from source. + *+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec} + */ + public static final class PythonSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + PythonSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PythonSpec"); + } + + // Use PythonSpec.newBuilder() to construct. + private PythonSpec(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private PythonSpec() { + version_ = ""; + entrypointModule_ = ""; + entrypointObject_ = ""; + requirementsFile_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder + .class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+ * Optional. The version of Python to use. Support version + * includes 3.9, 3.10, 3.11, 3.12, 3.13. + * If not specified, default value is 3.10. + *+ * + *
string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The version.
+ */
+ @java.lang.Override
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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();
+ version_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The version of Python to use. Support version + * includes 3.9, 3.10, 3.11, 3.12, 3.13. + * If not specified, default value is 3.10. + *+ * + *
string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for version.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object entrypointModule_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The Python module to load as the entrypoint, specified as a + * fully qualified module name. For example: path.to.agent. + * If not specified, defaults to "agent". + * + * The project root will be added to Python sys.path, allowing imports + * to be specified relative to the root. + *+ * + *
string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointModule.
+ */
+ @java.lang.Override
+ public java.lang.String getEntrypointModule() {
+ java.lang.Object ref = entrypointModule_;
+ 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();
+ entrypointModule_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The Python module to load as the entrypoint, specified as a + * fully qualified module name. For example: path.to.agent. + * If not specified, defaults to "agent". + * + * The project root will be added to Python sys.path, allowing imports + * to be specified relative to the root. + *+ * + *
string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointModule.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEntrypointModuleBytes() {
+ java.lang.Object ref = entrypointModule_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entrypointModule_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object entrypointObject_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The name of the callable object within the + * `entrypoint_module` to use as the application If not specified, + * defaults to "root_agent". + *+ * + *
string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointObject.
+ */
+ @java.lang.Override
+ public java.lang.String getEntrypointObject() {
+ java.lang.Object ref = entrypointObject_;
+ 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();
+ entrypointObject_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The name of the callable object within the + * `entrypoint_module` to use as the application If not specified, + * defaults to "root_agent". + *+ * + *
string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointObject.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEntrypointObjectBytes() {
+ java.lang.Object ref = entrypointObject_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entrypointObject_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object requirementsFile_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The path to the requirements file, relative to the source + * root. If not specified, defaults to "requirements.txt". + *+ * + *
string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requirementsFile.
+ */
+ @java.lang.Override
+ public java.lang.String getRequirementsFile() {
+ java.lang.Object ref = requirementsFile_;
+ 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();
+ requirementsFile_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
*
*
* Optional. The path to the requirements file, relative to the source
@@ -9941,6 +11073,7 @@ public enum SourceCase
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INLINE_SOURCE(1),
DEVELOPER_CONNECT_SOURCE(3),
+ GIT_SOURCE(6),
SOURCE_NOT_SET(0);
private final int value;
@@ -9964,6 +11097,8 @@ public static SourceCase forNumber(int value) {
return INLINE_SOURCE;
case 3:
return DEVELOPER_CONNECT_SOURCE;
+ case 6:
+ return GIT_SOURCE;
case 0:
return SOURCE_NOT_SET;
default:
@@ -10165,6 +11300,72 @@ public boolean hasDeveloperConnectSource() {
.DeveloperConnectSource.getDefaultInstance();
}
+ public static final int GIT_SOURCE_FIELD_NUMBER = 6;
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return Whether the gitSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasGitSource() {
+ return sourceCase_ == 6;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return The gitSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ getGitSource() {
+ if (sourceCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder
+ getGitSourceOrBuilder() {
+ if (sourceCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ }
+
public static final int PYTHON_SPEC_FIELD_NUMBER = 2;
/**
@@ -10336,6 +11537,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
(com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec)
languageSpec_);
}
+ if (sourceCase_ == 6) {
+ output.writeMessage(
+ 6,
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) source_);
+ }
getUnknownFields().writeTo(output);
}
@@ -10374,6 +11580,13 @@ public int getSerializedSize() {
(com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec)
languageSpec_);
}
+ if (sourceCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6,
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ source_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -10398,6 +11611,9 @@ public boolean equals(final java.lang.Object obj) {
case 3:
if (!getDeveloperConnectSource().equals(other.getDeveloperConnectSource())) return false;
break;
+ case 6:
+ if (!getGitSource().equals(other.getGitSource())) return false;
+ break;
case 0:
default:
}
@@ -10432,6 +11648,10 @@ public int hashCode() {
hash = (37 * hash) + DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getDeveloperConnectSource().hashCode();
break;
+ case 6:
+ hash = (37 * hash) + GIT_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getGitSource().hashCode();
+ break;
case 0:
default:
}
@@ -10596,6 +11816,9 @@ public Builder clear() {
if (developerConnectSourceBuilder_ != null) {
developerConnectSourceBuilder_.clear();
}
+ if (gitSourceBuilder_ != null) {
+ gitSourceBuilder_.clear();
+ }
if (pythonSpecBuilder_ != null) {
pythonSpecBuilder_.clear();
}
@@ -10658,6 +11881,9 @@ private void buildPartialOneofs(
if (sourceCase_ == 3 && developerConnectSourceBuilder_ != null) {
result.source_ = developerConnectSourceBuilder_.build();
}
+ if (sourceCase_ == 6 && gitSourceBuilder_ != null) {
+ result.source_ = gitSourceBuilder_.build();
+ }
result.languageSpecCase_ = languageSpecCase_;
result.languageSpec_ = this.languageSpec_;
if (languageSpecCase_ == 2 && pythonSpecBuilder_ != null) {
@@ -10695,6 +11921,11 @@ public Builder mergeFrom(
mergeDeveloperConnectSource(other.getDeveloperConnectSource());
break;
}
+ case GIT_SOURCE:
+ {
+ mergeGitSource(other.getGitSource());
+ break;
+ }
case SOURCE_NOT_SET:
{
break;
@@ -10771,6 +12002,13 @@ public Builder mergeFrom(
languageSpecCase_ = 5;
break;
} // case 42
+ case 50:
+ {
+ input.readMessage(
+ internalGetGitSourceFieldBuilder().getBuilder(), extensionRegistry);
+ sourceCase_ = 6;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -11352,6 +12590,263 @@ public Builder clearDeveloperConnectSource() {
return developerConnectSourceBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder>
+ gitSourceBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return Whether the gitSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasGitSource() {
+ return sourceCase_ == 6;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return The gitSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ getGitSource() {
+ if (gitSourceBuilder_ == null) {
+ if (sourceCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ } else {
+ if (sourceCase_ == 6) {
+ return gitSourceBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ public Builder setGitSource(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource value) {
+ if (gitSourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ gitSourceBuilder_.setMessage(value);
+ }
+ sourceCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ public Builder setGitSource(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder
+ builderForValue) {
+ if (gitSourceBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ gitSourceBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ public Builder mergeGitSource(
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource value) {
+ if (gitSourceBuilder_ == null) {
+ if (sourceCase_ == 6
+ && source_
+ != com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance()) {
+ source_ =
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .newBuilder(
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSource)
+ source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 6) {
+ gitSourceBuilder_.mergeFrom(value);
+ } else {
+ gitSourceBuilder_.setMessage(value);
+ }
+ }
+ sourceCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ public Builder clearGitSource() {
+ if (gitSourceBuilder_ == null) {
+ if (sourceCase_ == 6) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 6) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ gitSourceBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder
+ getGitSourceBuilder() {
+ return internalGetGitSourceFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder
+ getGitSourceOrBuilder() {
+ if ((sourceCase_ == 6) && (gitSourceBuilder_ != null)) {
+ return gitSourceBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder>
+ internalGetGitSourceFieldBuilder() {
+ if (gitSourceBuilder_ == null) {
+ if (!(sourceCase_ == 6)) {
+ source_ =
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ }
+ gitSourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .Builder,
+ com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSourceOrBuilder>(
+ (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 6;
+ onChanged();
+ return gitSourceBuilder_;
+ }
+
private com.google.protobuf.SingleFieldBuilder<
com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec,
com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder,
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto
index 585c9c864fa6..82a2cb13df28 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto
@@ -157,6 +157,20 @@ message ReasoningEngineSpec {
[(google.api.field_behavior) = REQUIRED];
}
+ // Specifies source code to be fetched from a public Git repository.
+ message GitSource {
+ // Required. The HTTPS URL of the public Git repository to clone.
+ string url = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Directory, relative to the source root, in which to run the
+ // build.
+ string dir = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The revision to fetch from the Git repository: a branch, a
+ // tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+ string revision = 3 [(google.api.field_behavior) = REQUIRED];
+ }
+
// Specification for running a Python application from source.
message PythonSpec {
// Optional. The version of Python to use. Support version
@@ -189,6 +203,9 @@ message ReasoningEngineSpec {
// Source code is in a Git repository managed by Developer Connect.
DeveloperConnectSource developer_connect_source = 3;
+
+ // Source code is in a public Git repository.
+ GitSource git_source = 6;
}
// Specifies the language-specific configuration for building and running
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java
index a7bb0651799f..ff05cd266a62 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java
@@ -80,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -157,7 +161,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "v_var.proto\0328google/cloud/aiplatform/v1b"
+ "eta1/service_networking.proto\032\036google/pr"
+ "otobuf/duration.proto\032\034google/protobuf/s"
- + "truct.proto\032\037google/protobuf/timestamp.proto\"\255\026\n"
+ + "truct.proto\032\037google/protobuf/timestamp.proto\"\335\027\n"
+ "\023ReasoningEngineSpec\022_\n"
+ "\020source_code_spec\030\013 \001(\0132C.google.cloud.aiplatform"
+ ".v1beta1.ReasoningEngineSpec.SourceCodeSpecH\000\022\\\n"
@@ -197,22 +201,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005value\030\002 \001(\t:\0028\001B\020\n"
+ "\016_min_instancesB\020\n"
+ "\016_max_instancesB\030\n"
- + "\026_container_concurrency\032\204\t\n"
+ + "\026_container_concurrency\032\264\n\n"
+ "\016SourceCodeSpec\022i\n\r"
+ "inline_source\030\001 \001(\0132P.google.c"
+ "loud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\000\022~\n"
+ "\030developer_connect_source\030\003 \001(\0132Z.google.clo"
+ "ud.aiplatform.v1beta1.ReasoningEngineSpe"
- + "c.SourceCodeSpec.DeveloperConnectSourceH\000\022e\n"
- + "\013python_spec\030\002 \001(\0132N.google.cloud.ai"
- + "platform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\022i\n\n"
- + "image_spec\030\005 \001(\0132M.google.cloud.aiplatform.v1beta1.R"
- + "easoningEngineSpec.SourceCodeSpec.ImageSpecB\004\342A\001\001H\001\032-\n"
+ + "c.SourceCodeSpec.DeveloperConnectSourceH\000\022c\n\n"
+ + "git_source\030\006 \001(\0132M.google.cloud.aip"
+ + "latform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSourceH\000\022e\n"
+ + "\013python_spec\030\002 \001(\0132N.google.cloud.aiplatform.v1beta1.Re"
+ + "asoningEngineSpec.SourceCodeSpec.PythonSpecH\001\022i\n\n"
+ + "image_spec\030\005 \001(\0132M.google.cloud"
+ + ".aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.ImageSpecB\004\342A\001\001H\001\032-\n"
+ "\014InlineSource\022\035\n"
+ "\016source_archive\030\001 \001(\014B\005\342A\002\002\004\032\265\001\n"
+ "\tImageSpec\022v\n\n"
- + "build_args\030\001 \003(\0132\\.google.cloud.aiplatform.v"
- + "1beta1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\004\342A\001\001\0320\n"
+ + "build_args\030\001 \003(\0132\\.google.cloud.aiplatform.v1beta1.ReasoningEng"
+ + "ineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\004\342A\001\001\0320\n"
+ "\016BuildArgsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001\032\234\001\n"
@@ -222,8 +228,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\003dir\030\002 \001(\tB\004\342A\001\002\022\026\n"
+ "\010revision\030\003 \001(\tB\004\342A\001\002\032\212\001\n"
+ "\026DeveloperConnectSource\022p\n"
- + "\006config\030\001 \001(\0132Z.google.cloud.aiplatform.v1beta1.R"
- + "easoningEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\004\342A\001\002\032\206\001\n\n"
+ + "\006config\030\001 \001(\0132Z.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec."
+ + "SourceCodeSpec.DeveloperConnectConfigB\004\342A\001\002\032I\n"
+ + "\tGitSource\022\021\n"
+ + "\003url\030\001 \001(\tB\004\342A\001\002\022\021\n"
+ + "\003dir\030\002 \001(\tB\004\342A\001\001\022\026\n"
+ + "\010revision\030\003 \001(\tB\004\342A\001\002\032\206\001\n\n"
+ "PythonSpec\022\025\n"
+ "\007version\030\001 \001(\tB\004\342A\001\001\022\037\n"
+ "\021entrypoint_module\030\002 \001(\tB\004\342A\001\001\022\037\n"
@@ -246,31 +256,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n"
+ "\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n"
+ "\013description\030\007 \001(\tB\004\342A\001\001\022H\n"
- + "\004spec\030\003"
- + " \001(\01324.google.cloud.aiplatform.v1beta1.ReasoningEngineSpecB\004\342A\001\001\0225\n"
+ + "\004spec\030\003 \001(\01324.goog"
+ + "le.cloud.aiplatform.v1beta1.ReasoningEngineSpecB\004\342A\001\001\0225\n"
+ "\013create_time\030\004"
+ " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n"
+ "\013update_time\030\005"
+ " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\022\n"
+ "\004etag\030\006 \001(\tB\004\342A\001\001\022W\n"
- + "\014context_spec\030\t \001(\0132;.google.c"
- + "loud.aiplatform.v1beta1.ReasoningEngineContextSpecB\004\342A\001\001\022H\n"
- + "\017encryption_spec\030\013 \001("
- + "\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\022L\n"
- + "\006labels\030\021 \003(\0132<.google.clou"
- + "d.aiplatform.v1beta1.ReasoningEngine.LabelsEntry\022\\\n"
- + "\016traffic_config\030\024 \001(\0132>.googl"
- + "e.cloud.aiplatform.v1beta1.ReasoningEngine.TrafficConfigB\004\342A\001\001\032\302\004\n\r"
+ + "\014context_spec\030\t"
+ + " \001(\0132;.google.cloud.aiplatform.v1beta1.ReasoningEngineContextSpecB\004\342A\001\001\022H\n"
+ + "\017encryption_spec\030\013"
+ + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\022L\n"
+ + "\006labels\030\021 \003"
+ + "(\0132<.google.cloud.aiplatform.v1beta1.ReasoningEngine.LabelsEntry\022\\\n"
+ + "\016traffic_config\030\024 \001(\0132>.google.cloud.aiplatform.v1bet"
+ + "a1.ReasoningEngine.TrafficConfigB\004\342A\001\001\032\302\004\n\r"
+ "TrafficConfig\022w\n"
- + "\024traffic_split_manual\030\022 \001(\0132Q.google."
- + "cloud.aiplatform.v1beta1.ReasoningEngine"
- + ".TrafficConfig.TrafficSplitManualB\004\342A\001\001H\000\022\204\001\n"
- + "\033traffic_split_always_latest\030\023 \001(\0132"
- + "W.google.cloud.aiplatform.v1beta1.Reason"
- + "ingEngine.TrafficConfig.TrafficSplitAlwaysLatestB\004\342A\001\001H\000\032\203\002\n"
+ + "\024traffic_split_manual\030\022 \001(\0132Q.google.cloud.aiplatform.v1beta1"
+ + ".ReasoningEngine.TrafficConfig.TrafficSplitManualB\004\342A\001\001H\000\022\204\001\n"
+ + "\033traffic_split_always_latest\030\023 \001(\0132W.google.cloud.aiplatfor"
+ + "m.v1beta1.ReasoningEngine.TrafficConfig.TrafficSplitAlwaysLatestB\004\342A\001\001H\000\032\203\002\n"
+ "\022TrafficSplitManual\022i\n"
- + "\007targets\030\001 \003(\0132X.google.cloud.aiplatfo"
- + "rm.v1beta1.ReasoningEngine.TrafficConfig.TrafficSplitManual.Target\032\201\001\n"
+ + "\007targets\030\001 \003(\0132X.google.cloud.aiplatform.v1beta1.ReasoningEngi"
+ + "ne.TrafficConfig.TrafficSplitManual.Target\032\201\001\n"
+ "\006Target\022`\n"
+ "\025runtime_revision_name\030\001 \001(\tBA\342A\001\002\372A:\n"
+ "8aiplatform.googleapis.com/ReasoningEngineRuntimeRevision\022\025\n"
@@ -280,26 +288,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n"
- + ")aiplatform.googleapis.com/ReasoningEngine\022Kprojects/{project}"
- + "/locations/{location}/reasoningEngines/{"
- + "reasoning_engine}*\020reasoningEngines2\017reasoningEngine\"\367\010\n"
+ + ")aiplatform.googleapis.com/ReasoningEngine\022Kpr"
+ + "ojects/{project}/locations/{location}/re"
+ + "asoningEngines/{reasoning_engine}*\020reasoningEngines2\017reasoningEngine\"\367\010\n"
+ "\032ReasoningEngineContextSpec\022n\n"
- + "\022memory_bank_config\030\001 \001(\0132L.google"
- + ".cloud.aiplatform.v1beta1.ReasoningEngineContextSpec.MemoryBankConfigB\004\342A\001\001\032\350\007\n"
+ + "\022memory_bank_config\030\001 \001(\0132L.google.cloud.aiplatform.v1beta"
+ + "1.ReasoningEngineContextSpec.MemoryBankConfigB\004\342A\001\001\032\350\007\n"
+ "\020MemoryBankConfig\022~\n"
- + "\021generation_config\030\001 \001(\0132].google.cloud.aiplatform.v1beta1.Re"
- + "asoningEngineContextSpec.MemoryBankConfig.GenerationConfigB\004\342A\001\001\022\213\001\n"
- + "\030similarity_search_config\030\002 \001(\0132c.google.cloud.aipla"
+ + "\021generation_config\030\001 \001(\0132].google.cloud.aipla"
+ "tform.v1beta1.ReasoningEngineContextSpec"
- + ".MemoryBankConfig.SimilaritySearchConfigB\004\342A\001\001\022p\n\n"
- + "ttl_config\030\005 \001(\0132V.google.cloud.aiplatform.v1beta1.ReasoningEngineCont"
- + "extSpec.MemoryBankConfig.TtlConfigB\004\342A\001\001\032\243\003\n"
+ + ".MemoryBankConfig.GenerationConfigB\004\342A\001\001\022\213\001\n"
+ + "\030similarity_search_config\030\002 \001(\0132c.go"
+ + "ogle.cloud.aiplatform.v1beta1.ReasoningE"
+ + "ngineContextSpec.MemoryBankConfig.SimilaritySearchConfigB\004\342A\001\001\022p\n\n"
+ + "ttl_config\030\005 \001(\0132V.google.cloud.aiplatform.v1beta1.Rea"
+ + "soningEngineContextSpec.MemoryBankConfig.TtlConfigB\004\342A\001\001\032\243\003\n"
+ "\tTtlConfig\0226\n"
+ "\013default_ttl\030\001"
+ " \001(\0132\031.google.protobuf.DurationB\004\342A\001\001H\000\022\215\001\n"
- + "\023granular_ttl_config\030\002 \001(\0132h.google.cloud.aipl"
- + "atform.v1beta1.ReasoningEngineContextSpe"
- + "c.MemoryBankConfig.TtlConfig.GranularTtlConfigB\004\342A\001\001H\000\032\306\001\n"
+ + "\023granular_ttl_config\030\002 \001(\0132h.google.cloud.aiplatform.v1beta1.Reasoning"
+ + "EngineContextSpec.MemoryBankConfig.TtlConfig.GranularTtlConfigB\004\342A\001\001H\000\032\306\001\n"
+ "\021GranularTtlConfig\0223\n\n"
+ "create_ttl\030\001 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001\022=\n"
+ "\024generate_created_ttl\030\002"
@@ -313,14 +321,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\026SimilaritySearchConfig\022D\n"
+ "\017embedding_model\030\001 \001(\tB+\342A\001\002\372A$\n"
+ "\"aiplatform.googleapis.com/EndpointB\215\003\n"
- + "#com.google.cloud.aiplatform.v1beta1B\024ReasoningEngineProtoP\001ZCcloud.google.com"
- + "/go/aiplatform/apiv1beta1/aiplatformpb;a"
- + "iplatformpb\252\002\037Google.Cloud.AIPlatform.V1"
- + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352"
- + "\002\"Google::Cloud::AIPlatform::V1beta1\352A\236\001\n"
- + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{project}/location"
- + "s/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}b\006"
- + "proto3"
+ + "#com.google.cloud.aiplatform.v1beta1B\024ReasoningEngineProtoP\001ZC"
+ + "cloud.google.com/go/aiplatform/apiv1beta"
+ + "1/aiplatformpb;aiplatformpb\252\002\037Google.Clo"
+ + "ud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIP"
+ + "latform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352A\236\001\n"
+ + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{p"
+ + "roject}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_re"
+ + "pository_link}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -394,6 +402,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"InlineSource",
"DeveloperConnectSource",
+ "GitSource",
"PythonSpec",
"ImageSpec",
"Source",
@@ -444,9 +453,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Config",
});
- internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor
.getNestedType(4);
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor,
+ new java.lang.String[] {
+ "Url", "Dir", "Revision",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor
+ .getNestedType(5);
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor,
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java
index eb3cbae42566..fdb6da492da2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java
@@ -4954,6 +4954,50 @@ public interface SourceCodeSpecOrBuilder
.DeveloperConnectSourceOrBuilder
getDeveloperConnectSourceOrBuilder();
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return Whether the gitSource field is set.
+ */
+ boolean hasGitSource();
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return The gitSource.
+ */
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource getGitSource();
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder
+ getGitSourceOrBuilder();
+
/**
*
*
@@ -8621,150 +8665,108 @@ public com.google.protobuf.Parser getParserForType() {
}
}
- public interface PythonSpecOrBuilder
+ public interface GitSourceOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
- *
- *
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The version.
- */
- java.lang.String getVersion();
-
- /**
- *
- *
- *
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
- *
- *
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for version.
- */
- com.google.protobuf.ByteString getVersionBytes();
-
- /**
- *
- *
- *
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The HTTPS URL of the public Git repository to clone.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The entrypointModule.
+ * @return The url.
*/
- java.lang.String getEntrypointModule();
+ java.lang.String getUrl();
/**
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Required. The HTTPS URL of the public Git repository to clone.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for entrypointModule.
+ * @return The bytes for url.
*/
- com.google.protobuf.ByteString getEntrypointModuleBytes();
+ com.google.protobuf.ByteString getUrlBytes();
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The entrypointObject.
+ * @return The dir.
*/
- java.lang.String getEntrypointObject();
+ java.lang.String getDir();
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The bytes for entrypointObject.
+ * @return The bytes for dir.
*/
- com.google.protobuf.ByteString getEntrypointObjectBytes();
+ com.google.protobuf.ByteString getDirBytes();
/**
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The requirementsFile.
+ * @return The revision.
*/
- java.lang.String getRequirementsFile();
+ java.lang.String getRevision();
/**
*
*
*
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
*
*
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for requirementsFile.
+ * @return The bytes for revision.
*/
- com.google.protobuf.ByteString getRequirementsFileBytes();
+ com.google.protobuf.ByteString getRevisionBytes();
}
/**
*
*
*
- * Specification for running a Python application from source.
+ * Specifies source code to be fetched from a public Git repository.
*
*
* Protobuf type {@code
- * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec}
+ * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource}
*/
- public static final class PythonSpec extends com.google.protobuf.GeneratedMessage
+ public static final class GitSource extends com.google.protobuf.GeneratedMessage
implements
- // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
- PythonSpecOrBuilder {
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ GitSourceOrBuilder {
private static final long serialVersionUID = 0L;
static {
@@ -8774,65 +8776,62 @@ public static final class PythonSpec extends com.google.protobuf.GeneratedMessag
/* minor= */ 33,
/* patch= */ 6,
/* suffix= */ "",
- "PythonSpec");
+ "GitSource");
}
- // Use PythonSpec.newBuilder() to construct.
- private PythonSpec(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ // Use GitSource.newBuilder() to construct.
+ private GitSource(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
- private PythonSpec() {
- version_ = "";
- entrypointModule_ = "";
- entrypointObject_ = "";
- requirementsFile_ = "";
+ private GitSource() {
+ url_ = "";
+ dir_ = "";
+ revision_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
- .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor;
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
- .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
.class,
- com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
.Builder.class);
}
- public static final int VERSION_FIELD_NUMBER = 1;
+ public static final int URL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private volatile java.lang.Object version_ = "";
+ private volatile java.lang.Object url_ = "";
/**
*
*
*
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
+ * Required. The HTTPS URL of the public Git repository to clone.
*
*
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The version.
+ * @return The url.
*/
@java.lang.Override
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
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();
- version_ = s;
+ url_ = s;
return s;
}
}
@@ -8841,58 +8840,52 @@ public java.lang.String getVersion() {
*
*
*
- * Optional. The version of Python to use. Support version
- * includes 3.9, 3.10, 3.11, 3.12, 3.13.
- * If not specified, default value is 3.10.
+ * Required. The HTTPS URL of the public Git repository to clone.
*
*
- * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for version.
+ * @return The bytes for url.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getVersionBytes() {
- java.lang.Object ref = version_;
+ public com.google.protobuf.ByteString getUrlBytes() {
+ java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- version_ = b;
+ url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2;
+ public static final int DIR_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private volatile java.lang.Object entrypointModule_ = "";
+ private volatile java.lang.Object dir_ = "";
/**
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The entrypointModule.
+ * @return The dir.
*/
@java.lang.Override
- public java.lang.String getEntrypointModule() {
- java.lang.Object ref = entrypointModule_;
+ public java.lang.String getDir() {
+ java.lang.Object ref = dir_;
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();
- entrypointModule_ = s;
+ dir_ = s;
return s;
}
}
@@ -8901,58 +8894,53 @@ public java.lang.String getEntrypointModule() {
*
*
*
- * Optional. The Python module to load as the entrypoint, specified as a
- * fully qualified module name. For example: path.to.agent.
- * If not specified, defaults to "agent".
- *
- * The project root will be added to Python sys.path, allowing imports
- * to be specified relative to the root.
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
*
*
- * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The bytes for entrypointModule.
+ * @return The bytes for dir.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getEntrypointModuleBytes() {
- java.lang.Object ref = entrypointModule_;
+ public com.google.protobuf.ByteString getDirBytes() {
+ java.lang.Object ref = dir_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- entrypointModule_ = b;
+ dir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3;
+ public static final int REVISION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
- private volatile java.lang.Object entrypointObject_ = "";
+ private volatile java.lang.Object revision_ = "";
/**
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The entrypointObject.
+ * @return The revision.
*/
@java.lang.Override
- public java.lang.String getEntrypointObject() {
- java.lang.Object ref = entrypointObject_;
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
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();
- entrypointObject_ = s;
+ revision_ = s;
return s;
}
}
@@ -8961,61 +8949,1214 @@ public java.lang.String getEntrypointObject() {
*
*
*
- * Optional. The name of the callable object within the
- * `entrypoint_module` to use as the application If not specified,
- * defaults to "root_agent".
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
*
*
- * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The bytes for entrypointObject.
+ * @return The bytes for revision.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getEntrypointObjectBytes() {
- java.lang.Object ref = entrypointObject_;
+ public com.google.protobuf.ByteString getRevisionBytes() {
+ java.lang.Object ref = revision_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- entrypointObject_ = b;
+ revision_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object requirementsFile_ = "";
+ private byte memoizedIsInitialized = -1;
- /**
- *
- *
- *
- * Optional. The path to the requirements file, relative to the source
- * root. If not specified, defaults to "requirements.txt".
- *
- *
- * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The requirementsFile.
- */
@java.lang.Override
- public java.lang.String getRequirementsFile() {
- java.lang.Object ref = requirementsFile_;
- 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();
- requirementsFile_ = s;
- return s;
- }
+ 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(url_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, url_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, dir_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revision_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, revision_);
+ }
+ 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(url_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dir_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revision_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, revision_);
+ }
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource other =
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) obj;
+
+ if (!getUrl().equals(other.getUrl())) return false;
+ if (!getDir().equals(other.getDir())) return false;
+ if (!getRevision().equals(other.getRevision())) 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) + URL_FIELD_NUMBER;
+ hash = (53 * hash) + getUrl().hashCode();
+ hash = (37 * hash) + DIR_FIELD_NUMBER;
+ hash = (53 * hash) + getDir().hashCode();
+ hash = (37 * hash) + REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getRevision().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * Specifies source code to be fetched from a public Git repository.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSourceOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .class,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ url_ = "";
+ dir_ = "";
+ revision_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ build() {
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource result =
+ new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource(
+ this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.url_ = url_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.dir_ = dir_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.revision_ = revision_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance()) return this;
+ if (!other.getUrl().isEmpty()) {
+ url_ = other.url_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getDir().isEmpty()) {
+ dir_ = other.dir_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getRevision().isEmpty()) {
+ revision_ = other.revision_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ url_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ dir_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ revision_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object url_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The HTTPS URL of the public Git repository to clone.
+ *
+ *
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The url.
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The HTTPS URL of the public Git repository to clone.
+ *
+ *
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for url.
+ */
+ public com.google.protobuf.ByteString getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The HTTPS URL of the public Git repository to clone.
+ *
+ *
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrl(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ url_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The HTTPS URL of the public Git repository to clone.
+ *
+ *
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUrl() {
+ url_ = getDefaultInstance().getUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The HTTPS URL of the public Git repository to clone.
+ *
+ *
+ * string url = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrlBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ url_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object dir_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The dir.
+ */
+ public java.lang.String getDir() {
+ java.lang.Object ref = dir_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dir_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for dir.
+ */
+ public com.google.protobuf.ByteString getDirBytes() {
+ java.lang.Object ref = dir_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dir_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The dir to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDir(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dir_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDir() {
+ dir_ = getDefaultInstance().getDir();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Directory, relative to the source root, in which to run the
+ * build.
+ *
+ *
+ * string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for dir to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDirBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ dir_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object revision_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The revision.
+ */
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ revision_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for revision.
+ */
+ public com.google.protobuf.ByteString getRevisionBytes() {
+ java.lang.Object ref = revision_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ revision_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The revision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevision(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ revision_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRevision() {
+ revision_ = getDefaultInstance().getRevision();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The revision to fetch from the Git repository: a branch, a
+ * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+ *
+ *
+ * string revision = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for revision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevisionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ revision_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ private static final com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSource
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GitSource parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface PythonSpecOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The version.
+ */
+ java.lang.String getVersion();
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for version.
+ */
+ com.google.protobuf.ByteString getVersionBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointModule.
+ */
+ java.lang.String getEntrypointModule();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointModule.
+ */
+ com.google.protobuf.ByteString getEntrypointModuleBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointObject.
+ */
+ java.lang.String getEntrypointObject();
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointObject.
+ */
+ com.google.protobuf.ByteString getEntrypointObjectBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The path to the requirements file, relative to the source
+ * root. If not specified, defaults to "requirements.txt".
+ *
+ *
+ * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requirementsFile.
+ */
+ java.lang.String getRequirementsFile();
+
+ /**
+ *
+ *
+ *
+ * Optional. The path to the requirements file, relative to the source
+ * root. If not specified, defaults to "requirements.txt".
+ *
+ *
+ * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for requirementsFile.
+ */
+ com.google.protobuf.ByteString getRequirementsFileBytes();
+ }
+
+ /**
+ *
+ *
+ *
+ * Specification for running a Python application from source.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec}
+ */
+ public static final class PythonSpec extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec)
+ PythonSpecOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "PythonSpec");
+ }
+
+ // Use PythonSpec.newBuilder() to construct.
+ private PythonSpec(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private PythonSpec() {
+ version_ = "";
+ entrypointModule_ = "";
+ entrypointObject_ = "";
+ requirementsFile_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
+ .class,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
+ .Builder.class);
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object version_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The version.
+ */
+ @java.lang.Override
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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();
+ version_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The version of Python to use. Support version
+ * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+ * If not specified, default value is 3.10.
+ *
+ *
+ * string version = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for version.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object entrypointModule_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointModule.
+ */
+ @java.lang.Override
+ public java.lang.String getEntrypointModule() {
+ java.lang.Object ref = entrypointModule_;
+ 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();
+ entrypointModule_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The Python module to load as the entrypoint, specified as a
+ * fully qualified module name. For example: path.to.agent.
+ * If not specified, defaults to "agent".
+ *
+ * The project root will be added to Python sys.path, allowing imports
+ * to be specified relative to the root.
+ *
+ *
+ * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointModule.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEntrypointModuleBytes() {
+ java.lang.Object ref = entrypointModule_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entrypointModule_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object entrypointObject_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The entrypointObject.
+ */
+ @java.lang.Override
+ public java.lang.String getEntrypointObject() {
+ java.lang.Object ref = entrypointObject_;
+ 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();
+ entrypointObject_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The name of the callable object within the
+ * `entrypoint_module` to use as the application If not specified,
+ * defaults to "root_agent".
+ *
+ *
+ * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for entrypointObject.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEntrypointObjectBytes() {
+ java.lang.Object ref = entrypointObject_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entrypointObject_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object requirementsFile_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The path to the requirements file, relative to the source
+ * root. If not specified, defaults to "requirements.txt".
+ *
+ *
+ * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requirementsFile.
+ */
+ @java.lang.Override
+ public java.lang.String getRequirementsFile() {
+ java.lang.Object ref = requirementsFile_;
+ 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();
+ requirementsFile_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
*
* Optional. The path to the requirements file, relative to the source
* root. If not specified, defaults to "requirements.txt".
@@ -10029,6 +11170,7 @@ public enum SourceCase
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INLINE_SOURCE(1),
DEVELOPER_CONNECT_SOURCE(3),
+ GIT_SOURCE(6),
SOURCE_NOT_SET(0);
private final int value;
@@ -10052,6 +11194,8 @@ public static SourceCase forNumber(int value) {
return INLINE_SOURCE;
case 3:
return DEVELOPER_CONNECT_SOURCE;
+ case 6:
+ return GIT_SOURCE;
case 0:
return SOURCE_NOT_SET;
default:
@@ -10255,6 +11399,72 @@ public boolean hasDeveloperConnectSource() {
.DeveloperConnectSource.getDefaultInstance();
}
+ public static final int GIT_SOURCE_FIELD_NUMBER = 6;
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return Whether the gitSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasGitSource() {
+ return sourceCase_ == 6;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return The gitSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ getGitSource() {
+ if (sourceCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder
+ getGitSourceOrBuilder() {
+ if (sourceCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ }
+
public static final int PYTHON_SPEC_FIELD_NUMBER = 2;
/**
@@ -10427,6 +11637,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
(com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec)
languageSpec_);
}
+ if (sourceCase_ == 6) {
+ output.writeMessage(
+ 6,
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ source_);
+ }
getUnknownFields().writeTo(output);
}
@@ -10466,6 +11682,13 @@ public int getSerializedSize() {
(com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec)
languageSpec_);
}
+ if (sourceCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6,
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ source_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -10491,6 +11714,9 @@ public boolean equals(final java.lang.Object obj) {
case 3:
if (!getDeveloperConnectSource().equals(other.getDeveloperConnectSource())) return false;
break;
+ case 6:
+ if (!getGitSource().equals(other.getGitSource())) return false;
+ break;
case 0:
default:
}
@@ -10525,6 +11751,10 @@ public int hashCode() {
hash = (37 * hash) + DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getDeveloperConnectSource().hashCode();
break;
+ case 6:
+ hash = (37 * hash) + GIT_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getGitSource().hashCode();
+ break;
case 0:
default:
}
@@ -10690,6 +11920,9 @@ public Builder clear() {
if (developerConnectSourceBuilder_ != null) {
developerConnectSourceBuilder_.clear();
}
+ if (gitSourceBuilder_ != null) {
+ gitSourceBuilder_.clear();
+ }
if (pythonSpecBuilder_ != null) {
pythonSpecBuilder_.clear();
}
@@ -10753,6 +11986,9 @@ private void buildPartialOneofs(
if (sourceCase_ == 3 && developerConnectSourceBuilder_ != null) {
result.source_ = developerConnectSourceBuilder_.build();
}
+ if (sourceCase_ == 6 && gitSourceBuilder_ != null) {
+ result.source_ = gitSourceBuilder_.build();
+ }
result.languageSpecCase_ = languageSpecCase_;
result.languageSpec_ = this.languageSpec_;
if (languageSpecCase_ == 2 && pythonSpecBuilder_ != null) {
@@ -10791,6 +12027,11 @@ public Builder mergeFrom(
mergeDeveloperConnectSource(other.getDeveloperConnectSource());
break;
}
+ case GIT_SOURCE:
+ {
+ mergeGitSource(other.getGitSource());
+ break;
+ }
case SOURCE_NOT_SET:
{
break;
@@ -10867,6 +12108,13 @@ public Builder mergeFrom(
languageSpecCase_ = 5;
break;
} // case 42
+ case 50:
+ {
+ input.readMessage(
+ internalGetGitSourceFieldBuilder().getBuilder(), extensionRegistry);
+ sourceCase_ = 6;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -11459,6 +12707,271 @@ public Builder clearDeveloperConnectSource() {
return developerConnectSourceBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSourceOrBuilder>
+ gitSourceBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return Whether the gitSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasGitSource() {
+ return sourceCase_ == 6;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ *
+ * @return The gitSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ getGitSource() {
+ if (gitSourceBuilder_ == null) {
+ if (sourceCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ } else {
+ if (sourceCase_ == 6) {
+ return gitSourceBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ public Builder setGitSource(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource value) {
+ if (gitSourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ gitSourceBuilder_.setMessage(value);
+ }
+ sourceCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ public Builder setGitSource(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder
+ builderForValue) {
+ if (gitSourceBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ gitSourceBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ public Builder mergeGitSource(
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource value) {
+ if (gitSourceBuilder_ == null) {
+ if (sourceCase_ == 6
+ && source_
+ != com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSource.getDefaultInstance()) {
+ source_ =
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .newBuilder(
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSource)
+ source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 6) {
+ gitSourceBuilder_.mergeFrom(value);
+ } else {
+ gitSourceBuilder_.setMessage(value);
+ }
+ }
+ sourceCase_ = 6;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ public Builder clearGitSource() {
+ if (gitSourceBuilder_ == null) {
+ if (sourceCase_ == 6) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 6) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ gitSourceBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .Builder
+ getGitSourceBuilder() {
+ return internalGetGitSourceFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSourceOrBuilder
+ getGitSourceOrBuilder() {
+ if ((sourceCase_ == 6) && (gitSourceBuilder_ != null)) {
+ return gitSourceBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 6) {
+ return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSource)
+ source_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Source code is in a public Git repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSourceOrBuilder>
+ internalGetGitSourceFieldBuilder() {
+ if (gitSourceBuilder_ == null) {
+ if (!(sourceCase_ == 6)) {
+ source_ =
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .getDefaultInstance();
+ }
+ gitSourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec
+ .GitSourceOrBuilder>(
+ (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)
+ source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 6;
+ onChanged();
+ return gitSourceBuilder_;
+ }
+
private com.google.protobuf.SingleFieldBuilder<
com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec,
com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto
index ca45a85af2c7..01222f8473f8 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto
@@ -159,6 +159,20 @@ message ReasoningEngineSpec {
[(google.api.field_behavior) = REQUIRED];
}
+ // Specifies source code to be fetched from a public Git repository.
+ message GitSource {
+ // Required. The HTTPS URL of the public Git repository to clone.
+ string url = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Directory, relative to the source root, in which to run the
+ // build.
+ string dir = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The revision to fetch from the Git repository: a branch, a
+ // tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+ string revision = 3 [(google.api.field_behavior) = REQUIRED];
+ }
+
// Specification for running a Python application from source.
message PythonSpec {
// Optional. The version of Python to use. Support version
@@ -191,6 +205,9 @@ message ReasoningEngineSpec {
// Source code is in a Git repository managed by Developer Connect.
DeveloperConnectSource developer_connect_source = 3;
+
+ // Source code is in a public Git repository.
+ GitSource git_source = 6;
}
// Specifies the language-specific configuration for building and running
diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md
index 544ff8c0dfe4..1f3f92064eaf 100644
--- a/java-alloydb-connectors/README.md
+++ b/java-alloydb-connectors/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-alloydb-connectors
- 0.78.0
+ 0.79.0
```
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-alloydb-connectors'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.78.0'
+implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.79.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.78.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.79.0"
```
## Authentication
@@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb-connectors/latest/overview
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.78.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.79.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-alloydb/README.md b/java-alloydb/README.md
index c4e99b292d1e..23de865af1af 100644
--- a/java-alloydb/README.md
+++ b/java-alloydb/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-alloydb
- 0.89.0
+ 0.90.0
```
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-alloydb'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-alloydb:0.89.0'
+implementation 'com.google.cloud:google-cloud-alloydb:0.90.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.89.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.90.0"
```
## Authentication
@@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb/latest/overview
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.89.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.90.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md
index a32359fcfff2..b25f91c83976 100644
--- a/java-analytics-admin/README.md
+++ b/java-analytics-admin/README.md
@@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.analytics
google-analytics-admin
- 0.110.0
+ 0.111.0
```
@@ -59,13 +59,13 @@ implementation 'com.google.analytics:google-analytics-admin'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.analytics:google-analytics-admin:0.110.0'
+implementation 'com.google.analytics:google-analytics-admin:0.111.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.110.0"
+libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.111.0"
```
## Authentication
@@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-admin/latest/overview
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.110.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.111.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md
index 75c8f2a15763..5d79cab48783 100644
--- a/java-analytics-data/README.md
+++ b/java-analytics-data/README.md
@@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.analytics
google-analytics-data
- 0.111.0
+ 0.112.0
```
@@ -59,13 +59,13 @@ implementation 'com.google.analytics:google-analytics-data'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.analytics:google-analytics-data:0.111.0'
+implementation 'com.google.analytics:google-analytics-data:0.112.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.111.0"
+libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.112.0"
```
## Authentication
@@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-data/latest/overview
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.111.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.112.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md
index 05ca55a87136..4c5ca74e47d9 100644
--- a/java-analyticshub/README.md
+++ b/java-analyticshub/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-analyticshub
- 0.97.0
+ 0.98.0
```
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-analyticshub'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-analyticshub:0.97.0'
+implementation 'com.google.cloud:google-cloud-analyticshub:0.98.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.97.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.98.0"
```
## Authentication
@@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-analyticshub/latest/overview
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.97.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.98.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md
index 86845d176a5f..ad007e327003 100644
--- a/java-api-gateway/README.md
+++ b/java-api-gateway/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-api-gateway
- 2.100.0
+ 2.101.0
```
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-api-gateway'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-api-gateway:2.100.0'
+implementation 'com.google.cloud:google-cloud-api-gateway:2.101.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.100.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.101.0"
```
## Authentication
@@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-api-gateway/latest/overview
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.100.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.101.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md
index 057be8868c43..823bc80f3a5d 100644
--- a/java-apigee-connect/README.md
+++ b/java-apigee-connect/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-apigee-connect
- 2.100.0
+ 2.101.0
```
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-apigee-connect'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-apigee-connect:2.100.0'
+implementation 'com.google.cloud:google-cloud-apigee-connect:2.101.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.100.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.101.0"
```
## Authentication
@@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apigee-connect/latest/overview
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.100.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.101.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-apihub/README.md b/java-apihub/README.md
index 80719dd0fe6a..51f5e21962b8 100644
--- a/java-apihub/README.md
+++ b/java-apihub/README.md
@@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-apihub
- 0.53.0
+ 0.54.0
```
@@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apihub'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-apihub:0.53.0'
+implementation 'com.google.cloud:google-cloud-apihub:0.54.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.53.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.54.0"
```
## Authentication
@@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apihub/latest/overview
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apihub.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.53.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.54.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-apikeys/README.md b/java-apikeys/README.md
index b7d837ad03de..d543b57aa1c0 100644
--- a/java-apikeys/README.md
+++ b/java-apikeys/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-apikeys
- 0.98.0
+ 0.99.0
```
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-apikeys'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-apikeys:0.98.0'
+implementation 'com.google.cloud:google-cloud-apikeys:0.99.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.98.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.99.0"
```
## Authentication
@@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/overview
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.98.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.99.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md
index 9a7e117e586b..c109108cf975 100644
--- a/java-appengine-admin/README.md
+++ b/java-appengine-admin/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-appengine-admin
- 2.100.0
+ 2.101.0
```
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-appengine-admin'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-appengine-admin:2.100.0'
+implementation 'com.google.cloud:google-cloud-appengine-admin:2.101.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.100.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.101.0"
```
## Authentication
@@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appengine-admin/latest/overview
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.100.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.101.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-apphub/README.md b/java-apphub/README.md
index bb26fcd48c4d..9f81ce19f9e6 100644
--- a/java-apphub/README.md
+++ b/java-apphub/README.md
@@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-apphub
- 0.64.0
+ 0.65.0
```
@@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apphub'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-apphub:0.64.0'
+implementation 'com.google.cloud:google-cloud-apphub:0.65.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.64.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.65.0"
```
## Authentication
@@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apphub/latest/overview
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.64.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.65.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-appoptimize/README.md b/java-appoptimize/README.md
index f47983babf6c..66e266a6806d 100644
--- a/java-appoptimize/README.md
+++ b/java-appoptimize/README.md
@@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-appoptimize
- 0.10.0
+ 0.11.0
```
@@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-appoptimize'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-appoptimize:0.10.0'
+implementation 'com.google.cloud:google-cloud-appoptimize:0.11.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.10.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.11.0"
```
## Authentication
@@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/overview
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appoptimize.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/0.10.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/0.11.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-apptopology/README.md b/java-apptopology/README.md
index 3b64af6a656b..d1119dca7540 100644
--- a/java-apptopology/README.md
+++ b/java-apptopology/README.md
@@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-apptopology
- 0.4.0
+ 0.5.0
```
@@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apptopology'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-apptopology:0.4.0'
+implementation 'com.google.cloud:google-cloud-apptopology:0.5.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-apptopology" % "0.4.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-apptopology" % "0.5.0"
```
## Authentication
@@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apptopology/latest/overview
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apptopology.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apptopology/0.4.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apptopology/0.5.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md
index e4c4e5fe2574..70a0219a0c3f 100644
--- a/java-artifact-registry/README.md
+++ b/java-artifact-registry/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-artifact-registry
- 1.99.0
+ 1.100.0
```
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-artifact-registry'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-artifact-registry:1.99.0'
+implementation 'com.google.cloud:google-cloud-artifact-registry:1.100.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.99.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.100.0"
```
## Authentication
@@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/overview
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.99.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.100.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-asset/README.md b/java-asset/README.md
index a24d509538a8..e66c8088e310 100644
--- a/java-asset/README.md
+++ b/java-asset/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-asset
- 3.104.0
+ 3.105.0
```
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-asset'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-asset:3.104.0'
+implementation 'com.google.cloud:google-cloud-asset:3.105.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.104.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.105.0"
```
## Authentication
@@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.104.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.105.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md
index d822ec86b798..88cf4a2bbef2 100644
--- a/java-assured-workloads/README.md
+++ b/java-assured-workloads/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-assured-workloads
- 2.100.0
+ 2.101.0
```
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-assured-workloads'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-assured-workloads:2.100.0'
+implementation 'com.google.cloud:google-cloud-assured-workloads:2.101.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.100.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.101.0"
```
## Authentication
@@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-assured-workloads/latest/overview
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.100.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.101.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-auditmanager/README.md b/java-auditmanager/README.md
index 1cb154913248..f87828c74b3e 100644
--- a/java-auditmanager/README.md
+++ b/java-auditmanager/README.md
@@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-auditmanager
- 0.18.0
+ 0.19.0
```
@@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-auditmanager'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-auditmanager:0.18.0'
+implementation 'com.google.cloud:google-cloud-auditmanager:0.19.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.18.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.19.0"
```
## Authentication
@@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-auditmanager.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.18.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.19.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerClient.java b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerClient.java
index f0080187a3c9..dc59181c07e5 100644
--- a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerClient.java
+++ b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerClient.java
@@ -1310,6 +1310,7 @@ public final AuditScopeReport generateAuditScopeReport(
* .setComplianceStandard("complianceStandard-1534269448")
* .setComplianceFramework("complianceFramework-1808314333")
* .setValidateOnly(true)
+ * .putAllParameterOverrides(new HashMap())
* .build();
* AuditScopeReport response = auditManagerClient.generateAuditScopeReport(request);
* }
@@ -1349,6 +1350,7 @@ public final AuditScopeReport generateAuditScopeReport(GenerateAuditScopeReportR
* .setComplianceStandard("complianceStandard-1534269448")
* .setComplianceFramework("complianceFramework-1808314333")
* .setValidateOnly(true)
+ * .putAllParameterOverrides(new HashMap())
* .build();
* ApiFuture future =
* auditManagerClient.generateAuditScopeReportCallable().futureCall(request);
@@ -1437,6 +1439,7 @@ public final OperationFuture generateAuditReport
* .setScope("scope109264468")
* .setComplianceStandard("complianceStandard-1534269448")
* .setComplianceFramework("complianceFramework-1808314333")
+ * .putAllParameterOverrides(new HashMap())
* .setValidateOnly(true)
* .build();
* AuditReport response = auditManagerClient.generateAuditReportAsync(request).get();
@@ -1470,6 +1473,7 @@ public final OperationFuture generateAuditReport
* .setScope("scope109264468")
* .setComplianceStandard("complianceStandard-1534269448")
* .setComplianceFramework("complianceFramework-1808314333")
+ * .putAllParameterOverrides(new HashMap())
* .setValidateOnly(true)
* .build();
* OperationFuture future =
@@ -1503,6 +1507,7 @@ public final OperationFuture generateAuditReport
* .setScope("scope109264468")
* .setComplianceStandard("complianceStandard-1534269448")
* .setComplianceFramework("complianceFramework-1808314333")
+ * .putAllParameterOverrides(new HashMap())
* .setValidateOnly(true)
* .build();
* ApiFuture future =
diff --git a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStubSettings.java b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStubSettings.java
index a8dd51416fb8..42cbbc054146 100644
--- a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStubSettings.java
+++ b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStubSettings.java
@@ -790,10 +790,10 @@ public static class Builder extends StubSettings.BuildernewArrayList()));
- definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
definitions.put(
"retry_policy_0_codes",
ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE)));
+ definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
}
@@ -810,8 +810,6 @@ public static class Builder extends StubSettings.Builder())
.build();
mockService.addResponse(expectedResponse);
@@ -172,6 +173,7 @@ public void createAuditScheduleTest2() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
mockService.addResponse(expectedResponse);
@@ -234,6 +236,7 @@ public void createAuditScheduleTest3() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
mockService.addResponse(expectedResponse);
@@ -296,6 +299,7 @@ public void updateAuditScheduleTest() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
mockService.addResponse(expectedResponse);
@@ -315,6 +319,7 @@ public void updateAuditScheduleTest() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
@@ -360,6 +365,7 @@ public void updateAuditScheduleExceptionTest() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateAuditSchedule(auditSchedule, updateMask);
@@ -387,6 +393,7 @@ public void getAuditScheduleTest() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
mockService.addResponse(expectedResponse);
@@ -448,6 +455,7 @@ public void getAuditScheduleTest2() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
mockService.addResponse(expectedResponse);
@@ -753,6 +761,7 @@ public void generateAuditReportTest() throws Exception {
.addAllControlDetails(new ArrayList())
.setComplianceFramework("complianceFramework-1808314333")
.setScopeId("scopeId1923941007")
+ .putAllCloudControlParameterStates(new HashMap())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -975,6 +984,7 @@ public void getAuditReportTest() throws Exception {
.addAllControlDetails(new ArrayList())
.setComplianceFramework("complianceFramework-1808314333")
.setScopeId("scopeId1923941007")
+ .putAllCloudControlParameterStates(new HashMap())
.build();
mockService.addResponse(expectedResponse);
@@ -1034,6 +1044,7 @@ public void getAuditReportTest2() throws Exception {
.addAllControlDetails(new ArrayList())
.setComplianceFramework("complianceFramework-1808314333")
.setScopeId("scopeId1923941007")
+ .putAllCloudControlParameterStates(new HashMap())
.build();
mockService.addResponse(expectedResponse);
diff --git a/java-auditmanager/google-cloud-auditmanager/src/test/java/com/google/cloud/auditmanager/v1/AuditManagerClientTest.java b/java-auditmanager/google-cloud-auditmanager/src/test/java/com/google/cloud/auditmanager/v1/AuditManagerClientTest.java
index c32e70f192b8..dc1b8b1eb63e 100644
--- a/java-auditmanager/google-cloud-auditmanager/src/test/java/com/google/cloud/auditmanager/v1/AuditManagerClientTest.java
+++ b/java-auditmanager/google-cloud-auditmanager/src/test/java/com/google/cloud/auditmanager/v1/AuditManagerClientTest.java
@@ -115,6 +115,7 @@ public void createAuditScheduleTest() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
mockAuditManager.addResponse(expectedResponse);
@@ -175,6 +176,7 @@ public void createAuditScheduleTest2() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
mockAuditManager.addResponse(expectedResponse);
@@ -233,6 +235,7 @@ public void createAuditScheduleTest3() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
mockAuditManager.addResponse(expectedResponse);
@@ -291,6 +294,7 @@ public void updateAuditScheduleTest() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
mockAuditManager.addResponse(expectedResponse);
@@ -345,6 +349,7 @@ public void getAuditScheduleTest() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
mockAuditManager.addResponse(expectedResponse);
@@ -400,6 +405,7 @@ public void getAuditScheduleTest2() throws Exception {
.setNextRunTime(Timestamp.newBuilder().build())
.setLastTriggerTime(Timestamp.newBuilder().build())
.setErrorMessage("errorMessage1203236063")
+ .putAllParameterOverrides(new HashMap())
.build();
mockAuditManager.addResponse(expectedResponse);
@@ -672,6 +678,7 @@ public void generateAuditReportTest() throws Exception {
.addAllControlDetails(new ArrayList())
.setComplianceFramework("complianceFramework-1808314333")
.setScopeId("scopeId1923941007")
+ .putAllCloudControlParameterStates(new HashMap())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -876,6 +883,7 @@ public void getAuditReportTest() throws Exception {
.addAllControlDetails(new ArrayList())
.setComplianceFramework("complianceFramework-1808314333")
.setScopeId("scopeId1923941007")
+ .putAllCloudControlParameterStates(new HashMap())
.build();
mockAuditManager.addResponse(expectedResponse);
@@ -929,6 +937,7 @@ public void getAuditReportTest2() throws Exception {
.addAllControlDetails(new ArrayList())
.setComplianceFramework("complianceFramework-1808314333")
.setScopeId("scopeId1923941007")
+ .putAllCloudControlParameterStates(new HashMap())
.build();
mockAuditManager.addResponse(expectedResponse);
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java
index 8b9c816f5082..62a25dc38080 100644
--- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java
@@ -67,6 +67,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_auditmanager_v1_AuditReport_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 16:
+ return internalGetCloudControlParameterStates();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -559,7 +571,7 @@ public com.google.cloud.auditmanager.v1.DestinationDetails getDestinationDetails
*
*
* @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=877
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=892
* @return The complianceStandard.
*/
@java.lang.Override
@@ -590,7 +602,7 @@ public java.lang.String getComplianceStandard() {
*
*
* @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=877
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=892
* @return The bytes for complianceStandard.
*/
@java.lang.Override
@@ -964,6 +976,143 @@ public com.google.protobuf.ByteString getScopeIdBytes() {
}
}
+ public static final int CLOUD_CONTROL_PARAMETER_STATES_FIELD_NUMBER = 16;
+
+ private static final class CloudControlParameterStatesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ defaultEntry =
+ com.google.protobuf.MapEntry
+ .
+ newDefaultInstance(
+ com.google.cloud.auditmanager.v1.V1mainProto
+ .internal_static_google_cloud_auditmanager_v1_AuditReport_CloudControlParameterStatesEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates
+ .getDefaultInstance());
+ }
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ cloudControlParameterStates_;
+
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ internalGetCloudControlParameterStates() {
+ if (cloudControlParameterStates_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ CloudControlParameterStatesDefaultEntryHolder.defaultEntry);
+ }
+ return cloudControlParameterStates_;
+ }
+
+ public int getCloudControlParameterStatesCount() {
+ return internalGetCloudControlParameterStates().getMap().size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public boolean containsCloudControlParameterStates(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetCloudControlParameterStates().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getCloudControlParameterStatesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ getCloudControlParameterStates() {
+ return getCloudControlParameterStatesMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ getCloudControlParameterStatesMap() {
+ return internalGetCloudControlParameterStates().getMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.auditmanager.v1.CloudControlParameterStates
+ getCloudControlParameterStatesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ map = internalGetCloudControlParameterStates().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.CloudControlParameterStates
+ getCloudControlParameterStatesOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ map = internalGetCloudControlParameterStates().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1014,6 +1163,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeId_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 11, scopeId_);
}
+ com.google.protobuf.GeneratedMessage.serializeStringMapTo(
+ output,
+ internalGetCloudControlParameterStates(),
+ CloudControlParameterStatesDefaultEntryHolder.defaultEntry,
+ 16);
getUnknownFields().writeTo(output);
}
@@ -1059,6 +1213,21 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeId_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(11, scopeId_);
}
+ for (java.util.Map.Entry<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ entry : internalGetCloudControlParameterStates().getMap().entrySet()) {
+ com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ cloudControlParameterStates__ =
+ CloudControlParameterStatesDefaultEntryHolder.defaultEntry
+ .newBuilderForType()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue())
+ .build();
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 16, cloudControlParameterStates__);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1095,6 +1264,8 @@ public boolean equals(final java.lang.Object obj) {
if (reportGenerationState_ != other.reportGenerationState_) return false;
if (!getComplianceFramework().equals(other.getComplianceFramework())) return false;
if (!getScopeId().equals(other.getScopeId())) return false;
+ if (!internalGetCloudControlParameterStates()
+ .equals(other.internalGetCloudControlParameterStates())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1136,6 +1307,10 @@ public int hashCode() {
hash = (53 * hash) + getComplianceFramework().hashCode();
hash = (37 * hash) + SCOPE_ID_FIELD_NUMBER;
hash = (53 * hash) + getScopeId().hashCode();
+ if (!internalGetCloudControlParameterStates().getMap().isEmpty()) {
+ hash = (37 * hash) + CLOUD_CONTROL_PARAMETER_STATES_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetCloudControlParameterStates().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1255,6 +1430,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_auditmanager_v1_AuditReport_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 16:
+ return internalGetCloudControlParameterStates();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 16:
+ return internalGetMutableCloudControlParameterStates();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -1317,6 +1514,7 @@ public Builder clear() {
reportGenerationState_ = 0;
complianceFramework_ = "";
scopeId_ = "";
+ internalGetMutableCloudControlParameterStates().clear();
return this;
}
@@ -1404,6 +1602,11 @@ private void buildPartial0(com.google.cloud.auditmanager.v1.AuditReport result)
if (((from_bitField0_ & 0x00000400) != 0)) {
result.scopeId_ = scopeId_;
}
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.cloudControlParameterStates_ =
+ internalGetCloudControlParameterStates()
+ .build(CloudControlParameterStatesDefaultEntryHolder.defaultEntry);
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1488,6 +1691,9 @@ public Builder mergeFrom(com.google.cloud.auditmanager.v1.AuditReport other) {
bitField0_ |= 0x00000400;
onChanged();
}
+ internalGetMutableCloudControlParameterStates()
+ .mergeFrom(other.internalGetCloudControlParameterStates());
+ bitField0_ |= 0x00000800;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1591,6 +1797,24 @@ public Builder mergeFrom(
bitField0_ |= 0x00000400;
break;
} // case 90
+ case 130:
+ {
+ com.google.protobuf.MapEntry<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ cloudControlParameterStates__ =
+ input.readMessage(
+ CloudControlParameterStatesDefaultEntryHolder.defaultEntry
+ .getParserForType(),
+ extensionRegistry);
+ internalGetMutableCloudControlParameterStates()
+ .ensureBuilderMap()
+ .put(
+ cloudControlParameterStates__.getKey(),
+ cloudControlParameterStates__.getValue());
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 130
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2309,7 +2533,7 @@ public Builder clearDestinationDetails() {
*
*
* @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=877
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=892
* @return The complianceStandard.
*/
@java.lang.Deprecated
@@ -2339,7 +2563,7 @@ public java.lang.String getComplianceStandard() {
*
*
* @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=877
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=892
* @return The bytes for complianceStandard.
*/
@java.lang.Deprecated
@@ -2369,7 +2593,7 @@ public com.google.protobuf.ByteString getComplianceStandardBytes() {
*
*
* @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=877
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=892
* @param value The complianceStandard to set.
* @return This builder for chaining.
*/
@@ -2398,7 +2622,7 @@ public Builder setComplianceStandard(java.lang.String value) {
*
*
* @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=877
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=892
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -2423,7 +2647,7 @@ public Builder clearComplianceStandard() {
*
*
* @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=877
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=892
* @param value The bytes for complianceStandard to set.
* @return This builder for chaining.
*/
@@ -3542,6 +3766,295 @@ public Builder setScopeIdBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private static final class CloudControlParameterStatesConverter
+ implements com.google.protobuf.MapFieldBuilder.Converter<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStatesOrBuilder,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates> {
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.CloudControlParameterStates build(
+ com.google.cloud.auditmanager.v1.CloudControlParameterStatesOrBuilder val) {
+ if (val instanceof com.google.cloud.auditmanager.v1.CloudControlParameterStates) {
+ return (com.google.cloud.auditmanager.v1.CloudControlParameterStates) val;
+ }
+ return ((com.google.cloud.auditmanager.v1.CloudControlParameterStates.Builder) val).build();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ defaultEntry() {
+ return CloudControlParameterStatesDefaultEntryHolder.defaultEntry;
+ }
+ }
+ ;
+
+ private static final CloudControlParameterStatesConverter cloudControlParameterStatesConverter =
+ new CloudControlParameterStatesConverter();
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStatesOrBuilder,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates.Builder>
+ cloudControlParameterStates_;
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStatesOrBuilder,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates.Builder>
+ internalGetCloudControlParameterStates() {
+ if (cloudControlParameterStates_ == null) {
+ return new com.google.protobuf.MapFieldBuilder<>(cloudControlParameterStatesConverter);
+ }
+ return cloudControlParameterStates_;
+ }
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStatesOrBuilder,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates.Builder>
+ internalGetMutableCloudControlParameterStates() {
+ if (cloudControlParameterStates_ == null) {
+ cloudControlParameterStates_ =
+ new com.google.protobuf.MapFieldBuilder<>(cloudControlParameterStatesConverter);
+ }
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return cloudControlParameterStates_;
+ }
+
+ public int getCloudControlParameterStatesCount() {
+ return internalGetCloudControlParameterStates().ensureBuilderMap().size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public boolean containsCloudControlParameterStates(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetCloudControlParameterStates().ensureBuilderMap().containsKey(key);
+ }
+
+ /** Use {@link #getCloudControlParameterStatesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ getCloudControlParameterStates() {
+ return getCloudControlParameterStatesMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ getCloudControlParameterStatesMap() {
+ return internalGetCloudControlParameterStates().getImmutableMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.auditmanager.v1.CloudControlParameterStates
+ getCloudControlParameterStatesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStatesOrBuilder>
+ map = internalGetMutableCloudControlParameterStates().ensureBuilderMap();
+ return map.containsKey(key)
+ ? cloudControlParameterStatesConverter.build(map.get(key))
+ : defaultValue;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.CloudControlParameterStates
+ getCloudControlParameterStatesOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStatesOrBuilder>
+ map = internalGetMutableCloudControlParameterStates().ensureBuilderMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return cloudControlParameterStatesConverter.build(map.get(key));
+ }
+
+ public Builder clearCloudControlParameterStates() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ internalGetMutableCloudControlParameterStates().clear();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeCloudControlParameterStates(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableCloudControlParameterStates().ensureBuilderMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ getMutableCloudControlParameterStates() {
+ bitField0_ |= 0x00000800;
+ return internalGetMutableCloudControlParameterStates().ensureMessageMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder putCloudControlParameterStates(
+ java.lang.String key, com.google.cloud.auditmanager.v1.CloudControlParameterStates value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableCloudControlParameterStates().ensureBuilderMap().put(key, value);
+ bitField0_ |= 0x00000800;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder putAllCloudControlParameterStates(
+ java.util.Map<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ values) {
+ for (java.util.Map.Entry<
+ java.lang.String, com.google.cloud.auditmanager.v1.CloudControlParameterStates>
+ e : values.entrySet()) {
+ if (e.getKey() == null || e.getValue() == null) {
+ throw new NullPointerException();
+ }
+ }
+ internalGetMutableCloudControlParameterStates().ensureBuilderMap().putAll(values);
+ bitField0_ |= 0x00000800;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.CloudControlParameterStates.Builder
+ putCloudControlParameterStatesBuilderIfAbsent(java.lang.String key) {
+ java.util.Map<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStatesOrBuilder>
+ builderMap = internalGetMutableCloudControlParameterStates().ensureBuilderMap();
+ com.google.cloud.auditmanager.v1.CloudControlParameterStatesOrBuilder entry =
+ builderMap.get(key);
+ if (entry == null) {
+ entry = com.google.cloud.auditmanager.v1.CloudControlParameterStates.newBuilder();
+ builderMap.put(key, entry);
+ }
+ if (entry instanceof com.google.cloud.auditmanager.v1.CloudControlParameterStates) {
+ entry = ((com.google.cloud.auditmanager.v1.CloudControlParameterStates) entry).toBuilder();
+ builderMap.put(key, entry);
+ }
+ return (com.google.cloud.auditmanager.v1.CloudControlParameterStates.Builder) entry;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.auditmanager.v1.AuditReport)
}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java
index 49aa5b55ef74..9f943a4d0399 100644
--- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java
@@ -189,7 +189,7 @@ public interface AuditReportOrBuilder
*
*
* @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=877
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=892
* @return The complianceStandard.
*/
@java.lang.Deprecated
@@ -209,7 +209,7 @@ public interface AuditReportOrBuilder
*
*
* @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=877
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=892
* @return The bytes for complianceStandard.
*/
@java.lang.Deprecated
@@ -442,4 +442,86 @@ public interface AuditReportOrBuilder
* @return The bytes for scopeId.
*/
com.google.protobuf.ByteString getScopeIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getCloudControlParameterStatesCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ boolean containsCloudControlParameterStates(java.lang.String key);
+
+ /** Use {@link #getCloudControlParameterStatesMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map
+ getCloudControlParameterStates();
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.Map
+ getCloudControlParameterStatesMap();
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ /* nullable */
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates
+ getCloudControlParameterStatesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates defaultValue);
+
+ /**
+ *
+ *
+ *
+ * Output only. Parameter values provided by the user and values for
+ * tunable parameters, stored in the DB, keyed by control name.
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.CloudControlParameterStates> cloud_control_parameter_states = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates
+ getCloudControlParameterStatesOrThrow(java.lang.String key);
}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditSchedule.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditSchedule.java
index 55730345ce48..0748238e6bba 100644
--- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditSchedule.java
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditSchedule.java
@@ -69,6 +69,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_auditmanager_v1_AuditSchedule_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 14:
+ return internalGetParameterOverrides();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -876,6 +888,148 @@ public com.google.protobuf.ByteString getErrorMessageBytes() {
}
}
+ public static final int PARAMETER_OVERRIDES_FIELD_NUMBER = 14;
+
+ private static final class ParameterOverridesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ defaultEntry =
+ com.google.protobuf.MapEntry
+ .
+ newDefaultInstance(
+ com.google.cloud.auditmanager.v1.V1mainProto
+ .internal_static_google_cloud_auditmanager_v1_AuditSchedule_ParameterOverridesEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.getDefaultInstance());
+ }
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ parameterOverrides_;
+
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ internalGetParameterOverrides() {
+ if (parameterOverrides_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ ParameterOverridesDefaultEntryHolder.defaultEntry);
+ }
+ return parameterOverrides_;
+ }
+
+ public int getParameterOverridesCount() {
+ return internalGetParameterOverrides().getMap().size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsParameterOverrides(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetParameterOverrides().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getParameterOverridesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ getParameterOverrides() {
+ return getParameterOverridesMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map
+ getParameterOverridesMap() {
+ return internalGetParameterOverrides().getMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.auditmanager.v1.ParameterOverrides
+ getParameterOverridesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map =
+ internalGetParameterOverrides().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map =
+ internalGetParameterOverrides().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -930,6 +1084,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 13, errorMessage_);
}
+ com.google.protobuf.GeneratedMessage.serializeStringMapTo(
+ output,
+ internalGetParameterOverrides(),
+ ParameterOverridesDefaultEntryHolder.defaultEntry,
+ 14);
getUnknownFields().writeTo(output);
}
@@ -979,6 +1138,18 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(13, errorMessage_);
}
+ for (java.util.Map.Entry
+ entry : internalGetParameterOverrides().getMap().entrySet()) {
+ com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ parameterOverrides__ =
+ ParameterOverridesDefaultEntryHolder.defaultEntry
+ .newBuilderForType()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue())
+ .build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, parameterOverrides__);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1022,6 +1193,8 @@ public boolean equals(final java.lang.Object obj) {
if (!getLastTriggerTime().equals(other.getLastTriggerTime())) return false;
}
if (!getErrorMessage().equals(other.getErrorMessage())) return false;
+ if (!internalGetParameterOverrides().equals(other.internalGetParameterOverrides()))
+ return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1067,6 +1240,10 @@ public int hashCode() {
}
hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
+ if (!internalGetParameterOverrides().getMap().isEmpty()) {
+ hash = (37 * hash) + PARAMETER_OVERRIDES_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetParameterOverrides().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1189,6 +1366,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_auditmanager_v1_AuditSchedule_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 14:
+ return internalGetParameterOverrides();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 14:
+ return internalGetMutableParameterOverrides();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -1255,6 +1454,7 @@ public Builder clear() {
lastTriggerTimeBuilder_ = null;
}
errorMessage_ = "";
+ internalGetMutableParameterOverrides().clear();
return this;
}
@@ -1336,6 +1536,11 @@ private void buildPartial0(com.google.cloud.auditmanager.v1.AuditSchedule result
if (((from_bitField0_ & 0x00000800) != 0)) {
result.errorMessage_ = errorMessage_;
}
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ result.parameterOverrides_ =
+ internalGetParameterOverrides()
+ .build(ParameterOverridesDefaultEntryHolder.defaultEntry);
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1397,6 +1602,8 @@ public Builder mergeFrom(com.google.cloud.auditmanager.v1.AuditSchedule other) {
bitField0_ |= 0x00000800;
onChanged();
}
+ internalGetMutableParameterOverrides().mergeFrom(other.internalGetParameterOverrides());
+ bitField0_ |= 0x00001000;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1500,6 +1707,20 @@ public Builder mergeFrom(
bitField0_ |= 0x00000800;
break;
} // case 106
+ case 114:
+ {
+ com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ parameterOverrides__ =
+ input.readMessage(
+ ParameterOverridesDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutableParameterOverrides()
+ .ensureBuilderMap()
+ .put(parameterOverrides__.getKey(), parameterOverrides__.getValue());
+ bitField0_ |= 0x00001000;
+ break;
+ } // case 114
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3403,6 +3624,298 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private static final class ParameterOverridesConverter
+ implements com.google.protobuf.MapFieldBuilder.Converter<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides> {
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides build(
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder val) {
+ if (val instanceof com.google.cloud.auditmanager.v1.ParameterOverrides) {
+ return (com.google.cloud.auditmanager.v1.ParameterOverrides) val;
+ }
+ return ((com.google.cloud.auditmanager.v1.ParameterOverrides.Builder) val).build();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ defaultEntry() {
+ return ParameterOverridesDefaultEntryHolder.defaultEntry;
+ }
+ }
+ ;
+
+ private static final ParameterOverridesConverter parameterOverridesConverter =
+ new ParameterOverridesConverter();
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.Builder>
+ parameterOverrides_;
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.Builder>
+ internalGetParameterOverrides() {
+ if (parameterOverrides_ == null) {
+ return new com.google.protobuf.MapFieldBuilder<>(parameterOverridesConverter);
+ }
+ return parameterOverrides_;
+ }
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.Builder>
+ internalGetMutableParameterOverrides() {
+ if (parameterOverrides_ == null) {
+ parameterOverrides_ =
+ new com.google.protobuf.MapFieldBuilder<>(parameterOverridesConverter);
+ }
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return parameterOverrides_;
+ }
+
+ public int getParameterOverridesCount() {
+ return internalGetParameterOverrides().ensureBuilderMap().size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsParameterOverrides(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetParameterOverrides().ensureBuilderMap().containsKey(key);
+ }
+
+ /** Use {@link #getParameterOverridesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ getParameterOverrides() {
+ return getParameterOverridesMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map
+ getParameterOverridesMap() {
+ return internalGetParameterOverrides().getImmutableMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.auditmanager.v1.ParameterOverrides
+ getParameterOverridesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ map = internalGetMutableParameterOverrides().ensureBuilderMap();
+ return map.containsKey(key) ? parameterOverridesConverter.build(map.get(key)) : defaultValue;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ map = internalGetMutableParameterOverrides().ensureBuilderMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return parameterOverridesConverter.build(map.get(key));
+ }
+
+ public Builder clearParameterOverrides() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ internalGetMutableParameterOverrides().clear();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeParameterOverrides(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableParameterOverrides().ensureBuilderMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map
+ getMutableParameterOverrides() {
+ bitField0_ |= 0x00001000;
+ return internalGetMutableParameterOverrides().ensureMessageMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putParameterOverrides(
+ java.lang.String key, com.google.cloud.auditmanager.v1.ParameterOverrides value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableParameterOverrides().ensureBuilderMap().put(key, value);
+ bitField0_ |= 0x00001000;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putAllParameterOverrides(
+ java.util.Map
+ values) {
+ for (java.util.Map.Entry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ e : values.entrySet()) {
+ if (e.getKey() == null || e.getValue() == null) {
+ throw new NullPointerException();
+ }
+ }
+ internalGetMutableParameterOverrides().ensureBuilderMap().putAll(values);
+ bitField0_ |= 0x00001000;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.ParameterOverrides.Builder
+ putParameterOverridesBuilderIfAbsent(java.lang.String key) {
+ java.util.Map
+ builderMap = internalGetMutableParameterOverrides().ensureBuilderMap();
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder entry = builderMap.get(key);
+ if (entry == null) {
+ entry = com.google.cloud.auditmanager.v1.ParameterOverrides.newBuilder();
+ builderMap.put(key, entry);
+ }
+ if (entry instanceof com.google.cloud.auditmanager.v1.ParameterOverrides) {
+ entry = ((com.google.cloud.auditmanager.v1.ParameterOverrides) entry).toBuilder();
+ builderMap.put(key, entry);
+ }
+ return (com.google.cloud.auditmanager.v1.ParameterOverrides.Builder) entry;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.auditmanager.v1.AuditSchedule)
}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditScheduleOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditScheduleOrBuilder.java
index 7f27dfe04a54..bf1f10ed936d 100644
--- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditScheduleOrBuilder.java
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditScheduleOrBuilder.java
@@ -445,4 +445,95 @@ public interface AuditScheduleOrBuilder
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString getErrorMessageBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getParameterOverridesCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ boolean containsParameterOverrides(java.lang.String key);
+
+ /** Use {@link #getParameterOverridesMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map
+ getParameterOverrides();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.Map
+ getParameterOverridesMap();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides defaultValue);
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrThrow(
+ java.lang.String key);
}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/CloudControlParameterStates.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/CloudControlParameterStates.java
new file mode 100644
index 000000000000..2b59c1aee919
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/CloudControlParameterStates.java
@@ -0,0 +1,987 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+/**
+ *
+ *
+ *
+ * Collection of parameter states for a cloud control.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.CloudControlParameterStates}
+ */
+@com.google.protobuf.Generated
+public final class CloudControlParameterStates extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.auditmanager.v1.CloudControlParameterStates)
+ CloudControlParameterStatesOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "CloudControlParameterStates");
+ }
+
+ // Use CloudControlParameterStates.newBuilder() to construct.
+ private CloudControlParameterStates(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private CloudControlParameterStates() {
+ parameterStates_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_CloudControlParameterStates_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_CloudControlParameterStates_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates.class,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates.Builder.class);
+ }
+
+ public static final int PARAMETER_STATES_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private java.util.List parameterStates_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List getParameterStatesList() {
+ return parameterStates_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.auditmanager.v1.ParameterStateOrBuilder>
+ getParameterStatesOrBuilderList() {
+ return parameterStates_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getParameterStatesCount() {
+ return parameterStates_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterState getParameterStates(int index) {
+ return parameterStates_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterStateOrBuilder getParameterStatesOrBuilder(
+ int index) {
+ return parameterStates_.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 {
+ for (int i = 0; i < parameterStates_.size(); i++) {
+ output.writeMessage(1, parameterStates_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < parameterStates_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, parameterStates_.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.auditmanager.v1.CloudControlParameterStates)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates other =
+ (com.google.cloud.auditmanager.v1.CloudControlParameterStates) obj;
+
+ if (!getParameterStatesList().equals(other.getParameterStatesList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getParameterStatesCount() > 0) {
+ hash = (37 * hash) + PARAMETER_STATES_FIELD_NUMBER;
+ hash = (53 * hash) + getParameterStatesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.auditmanager.v1.CloudControlParameterStates parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.CloudControlParameterStates 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.auditmanager.v1.CloudControlParameterStates parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.CloudControlParameterStates 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.auditmanager.v1.CloudControlParameterStates parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.CloudControlParameterStates parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.auditmanager.v1.CloudControlParameterStates parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.CloudControlParameterStates 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.auditmanager.v1.CloudControlParameterStates parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.CloudControlParameterStates 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.auditmanager.v1.CloudControlParameterStates parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.CloudControlParameterStates 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.auditmanager.v1.CloudControlParameterStates 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * Collection of parameter states for a cloud control.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.CloudControlParameterStates}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.auditmanager.v1.CloudControlParameterStates)
+ com.google.cloud.auditmanager.v1.CloudControlParameterStatesOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_CloudControlParameterStates_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_CloudControlParameterStates_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates.class,
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates.Builder.class);
+ }
+
+ // Construct using com.google.cloud.auditmanager.v1.CloudControlParameterStates.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (parameterStatesBuilder_ == null) {
+ parameterStates_ = java.util.Collections.emptyList();
+ } else {
+ parameterStates_ = null;
+ parameterStatesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_CloudControlParameterStates_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.CloudControlParameterStates
+ getDefaultInstanceForType() {
+ return com.google.cloud.auditmanager.v1.CloudControlParameterStates.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.CloudControlParameterStates build() {
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.CloudControlParameterStates buildPartial() {
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates result =
+ new com.google.cloud.auditmanager.v1.CloudControlParameterStates(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates result) {
+ if (parameterStatesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ parameterStates_ = java.util.Collections.unmodifiableList(parameterStates_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.parameterStates_ = parameterStates_;
+ } else {
+ result.parameterStates_ = parameterStatesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(
+ com.google.cloud.auditmanager.v1.CloudControlParameterStates result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.auditmanager.v1.CloudControlParameterStates) {
+ return mergeFrom((com.google.cloud.auditmanager.v1.CloudControlParameterStates) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.auditmanager.v1.CloudControlParameterStates other) {
+ if (other
+ == com.google.cloud.auditmanager.v1.CloudControlParameterStates.getDefaultInstance())
+ return this;
+ if (parameterStatesBuilder_ == null) {
+ if (!other.parameterStates_.isEmpty()) {
+ if (parameterStates_.isEmpty()) {
+ parameterStates_ = other.parameterStates_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureParameterStatesIsMutable();
+ parameterStates_.addAll(other.parameterStates_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.parameterStates_.isEmpty()) {
+ if (parameterStatesBuilder_.isEmpty()) {
+ parameterStatesBuilder_.dispose();
+ parameterStatesBuilder_ = null;
+ parameterStates_ = other.parameterStates_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ parameterStatesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? internalGetParameterStatesFieldBuilder()
+ : null;
+ } else {
+ parameterStatesBuilder_.addAllMessages(other.parameterStates_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.cloud.auditmanager.v1.ParameterState m =
+ input.readMessage(
+ com.google.cloud.auditmanager.v1.ParameterState.parser(),
+ extensionRegistry);
+ if (parameterStatesBuilder_ == null) {
+ ensureParameterStatesIsMutable();
+ parameterStates_.add(m);
+ } else {
+ parameterStatesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.util.List parameterStates_ =
+ java.util.Collections.emptyList();
+
+ private void ensureParameterStatesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ parameterStates_ =
+ new java.util.ArrayList(
+ parameterStates_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.auditmanager.v1.ParameterState,
+ com.google.cloud.auditmanager.v1.ParameterState.Builder,
+ com.google.cloud.auditmanager.v1.ParameterStateOrBuilder>
+ parameterStatesBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
+ getParameterStatesList() {
+ if (parameterStatesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(parameterStates_);
+ } else {
+ return parameterStatesBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getParameterStatesCount() {
+ if (parameterStatesBuilder_ == null) {
+ return parameterStates_.size();
+ } else {
+ return parameterStatesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.ParameterState getParameterStates(int index) {
+ if (parameterStatesBuilder_ == null) {
+ return parameterStates_.get(index);
+ } else {
+ return parameterStatesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setParameterStates(
+ int index, com.google.cloud.auditmanager.v1.ParameterState value) {
+ if (parameterStatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParameterStatesIsMutable();
+ parameterStates_.set(index, value);
+ onChanged();
+ } else {
+ parameterStatesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setParameterStates(
+ int index, com.google.cloud.auditmanager.v1.ParameterState.Builder builderForValue) {
+ if (parameterStatesBuilder_ == null) {
+ ensureParameterStatesIsMutable();
+ parameterStates_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ parameterStatesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addParameterStates(com.google.cloud.auditmanager.v1.ParameterState value) {
+ if (parameterStatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParameterStatesIsMutable();
+ parameterStates_.add(value);
+ onChanged();
+ } else {
+ parameterStatesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addParameterStates(
+ int index, com.google.cloud.auditmanager.v1.ParameterState value) {
+ if (parameterStatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParameterStatesIsMutable();
+ parameterStates_.add(index, value);
+ onChanged();
+ } else {
+ parameterStatesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addParameterStates(
+ com.google.cloud.auditmanager.v1.ParameterState.Builder builderForValue) {
+ if (parameterStatesBuilder_ == null) {
+ ensureParameterStatesIsMutable();
+ parameterStates_.add(builderForValue.build());
+ onChanged();
+ } else {
+ parameterStatesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addParameterStates(
+ int index, com.google.cloud.auditmanager.v1.ParameterState.Builder builderForValue) {
+ if (parameterStatesBuilder_ == null) {
+ ensureParameterStatesIsMutable();
+ parameterStates_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ parameterStatesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllParameterStates(
+ java.lang.Iterable extends com.google.cloud.auditmanager.v1.ParameterState> values) {
+ if (parameterStatesBuilder_ == null) {
+ ensureParameterStatesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterStates_);
+ onChanged();
+ } else {
+ parameterStatesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearParameterStates() {
+ if (parameterStatesBuilder_ == null) {
+ parameterStates_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ parameterStatesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeParameterStates(int index) {
+ if (parameterStatesBuilder_ == null) {
+ ensureParameterStatesIsMutable();
+ parameterStates_.remove(index);
+ onChanged();
+ } else {
+ parameterStatesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.ParameterState.Builder getParameterStatesBuilder(
+ int index) {
+ return internalGetParameterStatesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.ParameterStateOrBuilder getParameterStatesOrBuilder(
+ int index) {
+ if (parameterStatesBuilder_ == null) {
+ return parameterStates_.get(index);
+ } else {
+ return parameterStatesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.cloud.auditmanager.v1.ParameterStateOrBuilder>
+ getParameterStatesOrBuilderList() {
+ if (parameterStatesBuilder_ != null) {
+ return parameterStatesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(parameterStates_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.ParameterState.Builder addParameterStatesBuilder() {
+ return internalGetParameterStatesFieldBuilder()
+ .addBuilder(com.google.cloud.auditmanager.v1.ParameterState.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.ParameterState.Builder addParameterStatesBuilder(
+ int index) {
+ return internalGetParameterStatesFieldBuilder()
+ .addBuilder(index, com.google.cloud.auditmanager.v1.ParameterState.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
+ getParameterStatesBuilderList() {
+ return internalGetParameterStatesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.auditmanager.v1.ParameterState,
+ com.google.cloud.auditmanager.v1.ParameterState.Builder,
+ com.google.cloud.auditmanager.v1.ParameterStateOrBuilder>
+ internalGetParameterStatesFieldBuilder() {
+ if (parameterStatesBuilder_ == null) {
+ parameterStatesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.auditmanager.v1.ParameterState,
+ com.google.cloud.auditmanager.v1.ParameterState.Builder,
+ com.google.cloud.auditmanager.v1.ParameterStateOrBuilder>(
+ parameterStates_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ parameterStates_ = null;
+ }
+ return parameterStatesBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.auditmanager.v1.CloudControlParameterStates)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.auditmanager.v1.CloudControlParameterStates)
+ private static final com.google.cloud.auditmanager.v1.CloudControlParameterStates
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.auditmanager.v1.CloudControlParameterStates();
+ }
+
+ public static com.google.cloud.auditmanager.v1.CloudControlParameterStates getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CloudControlParameterStates parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.CloudControlParameterStates getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/CloudControlParameterStatesOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/CloudControlParameterStatesOrBuilder.java
new file mode 100644
index 000000000000..5afa88a52467
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/CloudControlParameterStatesOrBuilder.java
@@ -0,0 +1,94 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+@com.google.protobuf.Generated
+public interface CloudControlParameterStatesOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.auditmanager.v1.CloudControlParameterStates)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List getParameterStatesList();
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.auditmanager.v1.ParameterState getParameterStates(int index);
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getParameterStatesCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.cloud.auditmanager.v1.ParameterStateOrBuilder>
+ getParameterStatesOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter states for the cloud control.
+ *
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.ParameterState parameter_states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.auditmanager.v1.ParameterStateOrBuilder getParameterStatesOrBuilder(int index);
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java
index 3dbdee11e6f2..8e67021d8b5b 100644
--- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java
@@ -64,6 +64,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_auditmanager_v1_GenerateAuditReportRequest_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 7:
+ return internalGetParameterOverrides();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -433,7 +445,7 @@ public com.google.protobuf.ByteString getScopeBytes() {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=478
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=486
* @return The complianceStandard.
*/
@java.lang.Override
@@ -464,7 +476,7 @@ public java.lang.String getComplianceStandard() {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=478
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=486
* @return The bytes for complianceStandard.
*/
@java.lang.Override
@@ -581,6 +593,148 @@ public com.google.protobuf.ByteString getComplianceFrameworkBytes() {
}
}
+ public static final int PARAMETER_OVERRIDES_FIELD_NUMBER = 7;
+
+ private static final class ParameterOverridesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ defaultEntry =
+ com.google.protobuf.MapEntry
+ .
+ newDefaultInstance(
+ com.google.cloud.auditmanager.v1.V1mainProto
+ .internal_static_google_cloud_auditmanager_v1_GenerateAuditReportRequest_ParameterOverridesEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.getDefaultInstance());
+ }
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ parameterOverrides_;
+
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ internalGetParameterOverrides() {
+ if (parameterOverrides_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ ParameterOverridesDefaultEntryHolder.defaultEntry);
+ }
+ return parameterOverrides_;
+ }
+
+ public int getParameterOverridesCount() {
+ return internalGetParameterOverrides().getMap().size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsParameterOverrides(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetParameterOverrides().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getParameterOverridesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ getParameterOverrides() {
+ return getParameterOverridesMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map
+ getParameterOverridesMap() {
+ return internalGetParameterOverrides().getMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.auditmanager.v1.ParameterOverrides
+ getParameterOverridesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map =
+ internalGetParameterOverrides().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map =
+ internalGetParameterOverrides().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
public static final int VALIDATE_ONLY_FIELD_NUMBER = 8;
private boolean validateOnly_ = false;
@@ -644,6 +798,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(complianceFramework_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, complianceFramework_);
}
+ com.google.protobuf.GeneratedMessage.serializeStringMapTo(
+ output,
+ internalGetParameterOverrides(),
+ ParameterOverridesDefaultEntryHolder.defaultEntry,
+ 7);
if (validateOnly_ != false) {
output.writeBool(8, validateOnly_);
}
@@ -674,6 +833,18 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(complianceFramework_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, complianceFramework_);
}
+ for (java.util.Map.Entry
+ entry : internalGetParameterOverrides().getMap().entrySet()) {
+ com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ parameterOverrides__ =
+ ParameterOverridesDefaultEntryHolder.defaultEntry
+ .newBuilderForType()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue())
+ .build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, parameterOverrides__);
+ }
if (validateOnly_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, validateOnly_);
}
@@ -697,6 +868,8 @@ public boolean equals(final java.lang.Object obj) {
if (!getComplianceStandard().equals(other.getComplianceStandard())) return false;
if (reportFormat_ != other.reportFormat_) return false;
if (!getComplianceFramework().equals(other.getComplianceFramework())) return false;
+ if (!internalGetParameterOverrides().equals(other.internalGetParameterOverrides()))
+ return false;
if (getValidateOnly() != other.getValidateOnly()) return false;
if (!getDestinationCase().equals(other.getDestinationCase())) return false;
switch (destinationCase_) {
@@ -725,6 +898,10 @@ public int hashCode() {
hash = (53 * hash) + reportFormat_;
hash = (37 * hash) + COMPLIANCE_FRAMEWORK_FIELD_NUMBER;
hash = (53 * hash) + getComplianceFramework().hashCode();
+ if (!internalGetParameterOverrides().getMap().isEmpty()) {
+ hash = (37 * hash) + PARAMETER_OVERRIDES_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetParameterOverrides().hashCode();
+ }
hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
switch (destinationCase_) {
@@ -856,6 +1033,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_auditmanager_v1_GenerateAuditReportRequest_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 7:
+ return internalGetParameterOverrides();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 7:
+ return internalGetMutableParameterOverrides();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -881,6 +1080,7 @@ public Builder clear() {
complianceStandard_ = "";
reportFormat_ = 0;
complianceFramework_ = "";
+ internalGetMutableParameterOverrides().clear();
validateOnly_ = false;
destinationCase_ = 0;
destination_ = null;
@@ -934,6 +1134,11 @@ private void buildPartial0(com.google.cloud.auditmanager.v1.GenerateAuditReportR
result.complianceFramework_ = complianceFramework_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.parameterOverrides_ =
+ internalGetParameterOverrides()
+ .build(ParameterOverridesDefaultEntryHolder.defaultEntry);
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
result.validateOnly_ = validateOnly_;
}
}
@@ -975,6 +1180,8 @@ public Builder mergeFrom(com.google.cloud.auditmanager.v1.GenerateAuditReportReq
bitField0_ |= 0x00000010;
onChanged();
}
+ internalGetMutableParameterOverrides().mergeFrom(other.internalGetParameterOverrides());
+ bitField0_ |= 0x00000020;
if (other.getValidateOnly() != false) {
setValidateOnly(other.getValidateOnly());
}
@@ -1048,10 +1255,24 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 42
+ case 58:
+ {
+ com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ parameterOverrides__ =
+ input.readMessage(
+ ParameterOverridesDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutableParameterOverrides()
+ .ensureBuilderMap()
+ .put(parameterOverrides__.getKey(), parameterOverrides__.getValue());
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 58
case 64:
{
validateOnly_ = input.readBool();
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
} // case 64
default:
@@ -1390,7 +1611,7 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=478
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=486
* @return The complianceStandard.
*/
@java.lang.Deprecated
@@ -1420,7 +1641,7 @@ public java.lang.String getComplianceStandard() {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=478
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=486
* @return The bytes for complianceStandard.
*/
@java.lang.Deprecated
@@ -1450,7 +1671,7 @@ public com.google.protobuf.ByteString getComplianceStandardBytes() {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=478
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=486
* @param value The complianceStandard to set.
* @return This builder for chaining.
*/
@@ -1479,7 +1700,7 @@ public Builder setComplianceStandard(java.lang.String value) {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=478
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=486
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -1504,7 +1725,7 @@ public Builder clearComplianceStandard() {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=478
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=486
* @param value The bytes for complianceStandard to set.
* @return This builder for chaining.
*/
@@ -1747,6 +1968,298 @@ public Builder setComplianceFrameworkBytes(com.google.protobuf.ByteString value)
return this;
}
+ private static final class ParameterOverridesConverter
+ implements com.google.protobuf.MapFieldBuilder.Converter<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides> {
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides build(
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder val) {
+ if (val instanceof com.google.cloud.auditmanager.v1.ParameterOverrides) {
+ return (com.google.cloud.auditmanager.v1.ParameterOverrides) val;
+ }
+ return ((com.google.cloud.auditmanager.v1.ParameterOverrides.Builder) val).build();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ defaultEntry() {
+ return ParameterOverridesDefaultEntryHolder.defaultEntry;
+ }
+ }
+ ;
+
+ private static final ParameterOverridesConverter parameterOverridesConverter =
+ new ParameterOverridesConverter();
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.Builder>
+ parameterOverrides_;
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.Builder>
+ internalGetParameterOverrides() {
+ if (parameterOverrides_ == null) {
+ return new com.google.protobuf.MapFieldBuilder<>(parameterOverridesConverter);
+ }
+ return parameterOverrides_;
+ }
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.Builder>
+ internalGetMutableParameterOverrides() {
+ if (parameterOverrides_ == null) {
+ parameterOverrides_ =
+ new com.google.protobuf.MapFieldBuilder<>(parameterOverridesConverter);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return parameterOverrides_;
+ }
+
+ public int getParameterOverridesCount() {
+ return internalGetParameterOverrides().ensureBuilderMap().size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsParameterOverrides(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetParameterOverrides().ensureBuilderMap().containsKey(key);
+ }
+
+ /** Use {@link #getParameterOverridesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ getParameterOverrides() {
+ return getParameterOverridesMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map
+ getParameterOverridesMap() {
+ return internalGetParameterOverrides().getImmutableMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.auditmanager.v1.ParameterOverrides
+ getParameterOverridesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ map = internalGetMutableParameterOverrides().ensureBuilderMap();
+ return map.containsKey(key) ? parameterOverridesConverter.build(map.get(key)) : defaultValue;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ map = internalGetMutableParameterOverrides().ensureBuilderMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return parameterOverridesConverter.build(map.get(key));
+ }
+
+ public Builder clearParameterOverrides() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ internalGetMutableParameterOverrides().clear();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeParameterOverrides(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableParameterOverrides().ensureBuilderMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map
+ getMutableParameterOverrides() {
+ bitField0_ |= 0x00000020;
+ return internalGetMutableParameterOverrides().ensureMessageMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putParameterOverrides(
+ java.lang.String key, com.google.cloud.auditmanager.v1.ParameterOverrides value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableParameterOverrides().ensureBuilderMap().put(key, value);
+ bitField0_ |= 0x00000020;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putAllParameterOverrides(
+ java.util.Map
+ values) {
+ for (java.util.Map.Entry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ e : values.entrySet()) {
+ if (e.getKey() == null || e.getValue() == null) {
+ throw new NullPointerException();
+ }
+ }
+ internalGetMutableParameterOverrides().ensureBuilderMap().putAll(values);
+ bitField0_ |= 0x00000020;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.ParameterOverrides.Builder
+ putParameterOverridesBuilderIfAbsent(java.lang.String key) {
+ java.util.Map
+ builderMap = internalGetMutableParameterOverrides().ensureBuilderMap();
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder entry = builderMap.get(key);
+ if (entry == null) {
+ entry = com.google.cloud.auditmanager.v1.ParameterOverrides.newBuilder();
+ builderMap.put(key, entry);
+ }
+ if (entry instanceof com.google.cloud.auditmanager.v1.ParameterOverrides) {
+ entry = ((com.google.cloud.auditmanager.v1.ParameterOverrides) entry).toBuilder();
+ builderMap.put(key, entry);
+ }
+ return (com.google.cloud.auditmanager.v1.ParameterOverrides.Builder) entry;
+ }
+
private boolean validateOnly_;
/**
@@ -1804,7 +2317,7 @@ public boolean getValidateOnly() {
public Builder setValidateOnly(boolean value) {
validateOnly_ = value;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -1833,7 +2346,7 @@ public Builder setValidateOnly(boolean value) {
* @return This builder for chaining.
*/
public Builder clearValidateOnly() {
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
validateOnly_ = false;
onChanged();
return this;
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java
index 9b5a8e33a22b..5f0f1150294d 100644
--- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java
@@ -121,7 +121,7 @@ public interface GenerateAuditReportRequestOrBuilder
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=478
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=486
* @return The complianceStandard.
*/
@java.lang.Deprecated
@@ -141,7 +141,7 @@ public interface GenerateAuditReportRequestOrBuilder
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=478
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=486
* @return The bytes for complianceStandard.
*/
@java.lang.Deprecated
@@ -205,6 +205,97 @@ public interface GenerateAuditReportRequestOrBuilder
*/
com.google.protobuf.ByteString getComplianceFrameworkBytes();
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getParameterOverridesCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ boolean containsParameterOverrides(java.lang.String key);
+
+ /** Use {@link #getParameterOverridesMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map
+ getParameterOverrides();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.Map
+ getParameterOverridesMap();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides defaultValue);
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrThrow(
+ java.lang.String key);
+
/**
*
*
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditScopeReportRequest.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditScopeReportRequest.java
index 1c2d031b6644..4ef212e04a93 100644
--- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditScopeReportRequest.java
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditScopeReportRequest.java
@@ -64,6 +64,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_auditmanager_v1_GenerateAuditScopeReportRequest_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 7:
+ return internalGetParameterOverrides();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -309,7 +321,7 @@ public com.google.protobuf.ByteString getScopeBytes() {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=420
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421
* @return The complianceStandard.
*/
@java.lang.Override
@@ -341,7 +353,7 @@ public java.lang.String getComplianceStandard() {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=420
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421
* @return The bytes for complianceStandard.
*/
@java.lang.Override
@@ -490,6 +502,148 @@ public boolean getValidateOnly() {
return validateOnly_;
}
+ public static final int PARAMETER_OVERRIDES_FIELD_NUMBER = 7;
+
+ private static final class ParameterOverridesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ defaultEntry =
+ com.google.protobuf.MapEntry
+ .
+ newDefaultInstance(
+ com.google.cloud.auditmanager.v1.V1mainProto
+ .internal_static_google_cloud_auditmanager_v1_GenerateAuditScopeReportRequest_ParameterOverridesEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.getDefaultInstance());
+ }
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ parameterOverrides_;
+
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ internalGetParameterOverrides() {
+ if (parameterOverrides_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ ParameterOverridesDefaultEntryHolder.defaultEntry);
+ }
+ return parameterOverrides_;
+ }
+
+ public int getParameterOverridesCount() {
+ return internalGetParameterOverrides().getMap().size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsParameterOverrides(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetParameterOverrides().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getParameterOverridesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ getParameterOverrides() {
+ return getParameterOverridesMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map
+ getParameterOverridesMap() {
+ return internalGetParameterOverrides().getMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.auditmanager.v1.ParameterOverrides
+ getParameterOverridesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map =
+ internalGetParameterOverrides().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map =
+ internalGetParameterOverrides().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -522,6 +676,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (validateOnly_ != false) {
output.writeBool(6, validateOnly_);
}
+ com.google.protobuf.GeneratedMessage.serializeStringMapTo(
+ output,
+ internalGetParameterOverrides(),
+ ParameterOverridesDefaultEntryHolder.defaultEntry,
+ 7);
getUnknownFields().writeTo(output);
}
@@ -549,6 +708,18 @@ public int getSerializedSize() {
if (validateOnly_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, validateOnly_);
}
+ for (java.util.Map.Entry
+ entry : internalGetParameterOverrides().getMap().entrySet()) {
+ com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ parameterOverrides__ =
+ ParameterOverridesDefaultEntryHolder.defaultEntry
+ .newBuilderForType()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue())
+ .build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, parameterOverrides__);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -570,6 +741,8 @@ public boolean equals(final java.lang.Object obj) {
if (reportFormat_ != other.reportFormat_) return false;
if (!getComplianceFramework().equals(other.getComplianceFramework())) return false;
if (getValidateOnly() != other.getValidateOnly()) return false;
+ if (!internalGetParameterOverrides().equals(other.internalGetParameterOverrides()))
+ return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -591,6 +764,10 @@ public int hashCode() {
hash = (53 * hash) + getComplianceFramework().hashCode();
hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly());
+ if (!internalGetParameterOverrides().getMap().isEmpty()) {
+ hash = (37 * hash) + PARAMETER_OVERRIDES_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetParameterOverrides().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -712,6 +889,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_auditmanager_v1_GenerateAuditScopeReportRequest_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 7:
+ return internalGetParameterOverrides();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 7:
+ return internalGetMutableParameterOverrides();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -738,6 +937,7 @@ public Builder clear() {
reportFormat_ = 0;
complianceFramework_ = "";
validateOnly_ = false;
+ internalGetMutableParameterOverrides().clear();
return this;
}
@@ -791,6 +991,11 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000010) != 0)) {
result.validateOnly_ = validateOnly_;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.parameterOverrides_ =
+ internalGetParameterOverrides()
+ .build(ParameterOverridesDefaultEntryHolder.defaultEntry);
+ }
}
@java.lang.Override
@@ -829,6 +1034,8 @@ public Builder mergeFrom(
if (other.getValidateOnly() != false) {
setValidateOnly(other.getValidateOnly());
}
+ internalGetMutableParameterOverrides().mergeFrom(other.internalGetParameterOverrides());
+ bitField0_ |= 0x00000020;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -885,6 +1092,20 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 48
+ case 58:
+ {
+ com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ parameterOverrides__ =
+ input.readMessage(
+ ParameterOverridesDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutableParameterOverrides()
+ .ensureBuilderMap()
+ .put(parameterOverrides__.getKey(), parameterOverrides__.getValue());
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1057,7 +1278,7 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard
- * is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=420
+ * is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421
* @return The complianceStandard.
*/
@java.lang.Deprecated
@@ -1088,7 +1309,7 @@ public java.lang.String getComplianceStandard() {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard
- * is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=420
+ * is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421
* @return The bytes for complianceStandard.
*/
@java.lang.Deprecated
@@ -1119,7 +1340,7 @@ public com.google.protobuf.ByteString getComplianceStandardBytes() {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard
- * is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=420
+ * is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421
* @param value The complianceStandard to set.
* @return This builder for chaining.
*/
@@ -1149,7 +1370,7 @@ public Builder setComplianceStandard(java.lang.String value) {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard
- * is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=420
+ * is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -1175,7 +1396,7 @@ public Builder clearComplianceStandard() {
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard
- * is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=420
+ * is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421
* @param value The bytes for complianceStandard to set.
* @return This builder for chaining.
*/
@@ -1512,6 +1733,298 @@ public Builder clearValidateOnly() {
return this;
}
+ private static final class ParameterOverridesConverter
+ implements com.google.protobuf.MapFieldBuilder.Converter<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides> {
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides build(
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder val) {
+ if (val instanceof com.google.cloud.auditmanager.v1.ParameterOverrides) {
+ return (com.google.cloud.auditmanager.v1.ParameterOverrides) val;
+ }
+ return ((com.google.cloud.auditmanager.v1.ParameterOverrides.Builder) val).build();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ defaultEntry() {
+ return ParameterOverridesDefaultEntryHolder.defaultEntry;
+ }
+ }
+ ;
+
+ private static final ParameterOverridesConverter parameterOverridesConverter =
+ new ParameterOverridesConverter();
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.Builder>
+ parameterOverrides_;
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.Builder>
+ internalGetParameterOverrides() {
+ if (parameterOverrides_ == null) {
+ return new com.google.protobuf.MapFieldBuilder<>(parameterOverridesConverter);
+ }
+ return parameterOverrides_;
+ }
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder,
+ com.google.cloud.auditmanager.v1.ParameterOverrides,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.Builder>
+ internalGetMutableParameterOverrides() {
+ if (parameterOverrides_ == null) {
+ parameterOverrides_ =
+ new com.google.protobuf.MapFieldBuilder<>(parameterOverridesConverter);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return parameterOverrides_;
+ }
+
+ public int getParameterOverridesCount() {
+ return internalGetParameterOverrides().ensureBuilderMap().size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsParameterOverrides(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetParameterOverrides().ensureBuilderMap().containsKey(key);
+ }
+
+ /** Use {@link #getParameterOverridesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ getParameterOverrides() {
+ return getParameterOverridesMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map
+ getParameterOverridesMap() {
+ return internalGetParameterOverrides().getImmutableMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.auditmanager.v1.ParameterOverrides
+ getParameterOverridesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ map = internalGetMutableParameterOverrides().ensureBuilderMap();
+ return map.containsKey(key) ? parameterOverridesConverter.build(map.get(key)) : defaultValue;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ map = internalGetMutableParameterOverrides().ensureBuilderMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return parameterOverridesConverter.build(map.get(key));
+ }
+
+ public Builder clearParameterOverrides() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ internalGetMutableParameterOverrides().clear();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeParameterOverrides(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableParameterOverrides().ensureBuilderMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map
+ getMutableParameterOverrides() {
+ bitField0_ |= 0x00000020;
+ return internalGetMutableParameterOverrides().ensureMessageMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putParameterOverrides(
+ java.lang.String key, com.google.cloud.auditmanager.v1.ParameterOverrides value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableParameterOverrides().ensureBuilderMap().put(key, value);
+ bitField0_ |= 0x00000020;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putAllParameterOverrides(
+ java.util.Map
+ values) {
+ for (java.util.Map.Entry<
+ java.lang.String, com.google.cloud.auditmanager.v1.ParameterOverrides>
+ e : values.entrySet()) {
+ if (e.getKey() == null || e.getValue() == null) {
+ throw new NullPointerException();
+ }
+ }
+ internalGetMutableParameterOverrides().ensureBuilderMap().putAll(values);
+ bitField0_ |= 0x00000020;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.ParameterOverrides.Builder
+ putParameterOverridesBuilderIfAbsent(java.lang.String key) {
+ java.util.Map
+ builderMap = internalGetMutableParameterOverrides().ensureBuilderMap();
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder entry = builderMap.get(key);
+ if (entry == null) {
+ entry = com.google.cloud.auditmanager.v1.ParameterOverrides.newBuilder();
+ builderMap.put(key, entry);
+ }
+ if (entry instanceof com.google.cloud.auditmanager.v1.ParameterOverrides) {
+ entry = ((com.google.cloud.auditmanager.v1.ParameterOverrides) entry).toBuilder();
+ builderMap.put(key, entry);
+ }
+ return (com.google.cloud.auditmanager.v1.ParameterOverrides.Builder) entry;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest)
}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditScopeReportRequestOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditScopeReportRequestOrBuilder.java
index c1fed40d8642..2c40acee8bb8 100644
--- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditScopeReportRequestOrBuilder.java
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditScopeReportRequestOrBuilder.java
@@ -77,7 +77,7 @@ public interface GenerateAuditScopeReportRequestOrBuilder
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=420
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421
* @return The complianceStandard.
*/
@java.lang.Deprecated
@@ -98,7 +98,7 @@ public interface GenerateAuditScopeReportRequestOrBuilder
*
*
* @deprecated google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.compliance_standard is
- * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=420
+ * deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=421
* @return The bytes for complianceStandard.
*/
@java.lang.Deprecated
@@ -187,4 +187,95 @@ public interface GenerateAuditScopeReportRequestOrBuilder
* @return The validateOnly.
*/
boolean getValidateOnly();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getParameterOverridesCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ boolean containsParameterOverrides(java.lang.String key);
+
+ /** Use {@link #getParameterOverridesMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map
+ getParameterOverrides();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.Map
+ getParameterOverridesMap();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.auditmanager.v1.ParameterOverrides defaultValue);
+
+ /**
+ *
+ *
+ *
+ * Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ * at execution time. For example,
+ * `{"organizations/123/locations/global/cloudControls/control-1":
+ * {parameters: [...]}}`
+ *
+ *
+ *
+ * map<string, .google.cloud.auditmanager.v1.ParameterOverrides> parameter_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.auditmanager.v1.ParameterOverrides getParameterOverridesOrThrow(
+ java.lang.String key);
}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParamValue.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParamValue.java
new file mode 100644
index 000000000000..13c91c02130a
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParamValue.java
@@ -0,0 +1,1674 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+/**
+ *
+ *
+ *
+ * The possible parameter value types.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.ParamValue}
+ */
+@com.google.protobuf.Generated
+public final class ParamValue extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.auditmanager.v1.ParamValue)
+ ParamValueOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "ParamValue");
+ }
+
+ // Use ParamValue.newBuilder() to construct.
+ private ParamValue(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ParamValue() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParamValue_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParamValue_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.ParamValue.class,
+ com.google.cloud.auditmanager.v1.ParamValue.Builder.class);
+ }
+
+ private int kindCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object kind_;
+
+ public enum KindCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ STRING_VALUE(3),
+ BOOL_VALUE(4),
+ STRING_LIST_VALUE(5),
+ NUMBER_VALUE(6),
+ ONEOF_VALUE(7),
+ KIND_NOT_SET(0);
+ private final int value;
+
+ private KindCase(int value) {
+ this.value = value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static KindCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static KindCase forNumber(int value) {
+ switch (value) {
+ case 3:
+ return STRING_VALUE;
+ case 4:
+ return BOOL_VALUE;
+ case 5:
+ return STRING_LIST_VALUE;
+ case 6:
+ return NUMBER_VALUE;
+ case 7:
+ return ONEOF_VALUE;
+ case 0:
+ return KIND_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public KindCase getKindCase() {
+ return KindCase.forNumber(kindCase_);
+ }
+
+ public static final int STRING_VALUE_FIELD_NUMBER = 3;
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the stringValue field is set.
+ */
+ public boolean hasStringValue() {
+ return kindCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The stringValue.
+ */
+ public java.lang.String getStringValue() {
+ java.lang.Object ref = "";
+ if (kindCase_ == 3) {
+ ref = kind_;
+ }
+ 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();
+ if (kindCase_ == 3) {
+ kind_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for stringValue.
+ */
+ public com.google.protobuf.ByteString getStringValueBytes() {
+ java.lang.Object ref = "";
+ if (kindCase_ == 3) {
+ ref = kind_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (kindCase_ == 3) {
+ kind_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BOOL_VALUE_FIELD_NUMBER = 4;
+
+ /**
+ *
+ *
+ *
+ * Optional. A boolean value.
+ *
+ *
+ * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the boolValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasBoolValue() {
+ return kindCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A boolean value.
+ *
+ *
+ * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The boolValue.
+ */
+ @java.lang.Override
+ public boolean getBoolValue() {
+ if (kindCase_ == 4) {
+ return (java.lang.Boolean) kind_;
+ }
+ return false;
+ }
+
+ public static final int STRING_LIST_VALUE_FIELD_NUMBER = 5;
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the stringListValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasStringListValue() {
+ return kindCase_ == 5;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The stringListValue.
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.StringList getStringListValue() {
+ if (kindCase_ == 5) {
+ return (com.google.cloud.auditmanager.v1.StringList) kind_;
+ }
+ return com.google.cloud.auditmanager.v1.StringList.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.StringListOrBuilder getStringListValueOrBuilder() {
+ if (kindCase_ == 5) {
+ return (com.google.cloud.auditmanager.v1.StringList) kind_;
+ }
+ return com.google.cloud.auditmanager.v1.StringList.getDefaultInstance();
+ }
+
+ public static final int NUMBER_VALUE_FIELD_NUMBER = 6;
+
+ /**
+ *
+ *
+ *
+ * Optional. A double value.
+ *
+ *
+ * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the numberValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasNumberValue() {
+ return kindCase_ == 6;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A double value.
+ *
+ *
+ * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The numberValue.
+ */
+ @java.lang.Override
+ public double getNumberValue() {
+ if (kindCase_ == 6) {
+ return (java.lang.Double) kind_;
+ }
+ return 0D;
+ }
+
+ public static final int ONEOF_VALUE_FIELD_NUMBER = 7;
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the oneofValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasOneofValue() {
+ return kindCase_ == 7;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The oneofValue.
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.Parameter getOneofValue() {
+ if (kindCase_ == 7) {
+ return (com.google.cloud.auditmanager.v1.Parameter) kind_;
+ }
+ return com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOrBuilder getOneofValueOrBuilder() {
+ if (kindCase_ == 7) {
+ return (com.google.cloud.auditmanager.v1.Parameter) kind_;
+ }
+ return com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (kindCase_ == 3) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, kind_);
+ }
+ if (kindCase_ == 4) {
+ output.writeBool(4, (boolean) ((java.lang.Boolean) kind_));
+ }
+ if (kindCase_ == 5) {
+ output.writeMessage(5, (com.google.cloud.auditmanager.v1.StringList) kind_);
+ }
+ if (kindCase_ == 6) {
+ output.writeDouble(6, (double) ((java.lang.Double) kind_));
+ }
+ if (kindCase_ == 7) {
+ output.writeMessage(7, (com.google.cloud.auditmanager.v1.Parameter) kind_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (kindCase_ == 3) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, kind_);
+ }
+ if (kindCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(
+ 4, (boolean) ((java.lang.Boolean) kind_));
+ }
+ if (kindCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.cloud.auditmanager.v1.StringList) kind_);
+ }
+ if (kindCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeDoubleSize(
+ 6, (double) ((java.lang.Double) kind_));
+ }
+ if (kindCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7, (com.google.cloud.auditmanager.v1.Parameter) kind_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.auditmanager.v1.ParamValue)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.auditmanager.v1.ParamValue other =
+ (com.google.cloud.auditmanager.v1.ParamValue) obj;
+
+ if (!getKindCase().equals(other.getKindCase())) return false;
+ switch (kindCase_) {
+ case 3:
+ if (!getStringValue().equals(other.getStringValue())) return false;
+ break;
+ case 4:
+ if (getBoolValue() != other.getBoolValue()) return false;
+ break;
+ case 5:
+ if (!getStringListValue().equals(other.getStringListValue())) return false;
+ break;
+ case 6:
+ if (java.lang.Double.doubleToLongBits(getNumberValue())
+ != java.lang.Double.doubleToLongBits(other.getNumberValue())) return false;
+ break;
+ case 7:
+ if (!getOneofValue().equals(other.getOneofValue())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (kindCase_) {
+ case 3:
+ hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getStringValue().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue());
+ break;
+ case 5:
+ hash = (37 * hash) + STRING_LIST_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getStringListValue().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + NUMBER_VALUE_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getNumberValue()));
+ break;
+ case 7:
+ hash = (37 * hash) + ONEOF_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getOneofValue().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParamValue parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParamValue 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.auditmanager.v1.ParamValue parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParamValue 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.auditmanager.v1.ParamValue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParamValue parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParamValue parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParamValue 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.auditmanager.v1.ParamValue parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParamValue 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.auditmanager.v1.ParamValue parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParamValue 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.auditmanager.v1.ParamValue 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * The possible parameter value types.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.ParamValue}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.auditmanager.v1.ParamValue)
+ com.google.cloud.auditmanager.v1.ParamValueOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParamValue_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParamValue_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.ParamValue.class,
+ com.google.cloud.auditmanager.v1.ParamValue.Builder.class);
+ }
+
+ // Construct using com.google.cloud.auditmanager.v1.ParamValue.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (stringListValueBuilder_ != null) {
+ stringListValueBuilder_.clear();
+ }
+ if (oneofValueBuilder_ != null) {
+ oneofValueBuilder_.clear();
+ }
+ kindCase_ = 0;
+ kind_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParamValue_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParamValue getDefaultInstanceForType() {
+ return com.google.cloud.auditmanager.v1.ParamValue.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParamValue build() {
+ com.google.cloud.auditmanager.v1.ParamValue result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParamValue buildPartial() {
+ com.google.cloud.auditmanager.v1.ParamValue result =
+ new com.google.cloud.auditmanager.v1.ParamValue(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.auditmanager.v1.ParamValue result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ private void buildPartialOneofs(com.google.cloud.auditmanager.v1.ParamValue result) {
+ result.kindCase_ = kindCase_;
+ result.kind_ = this.kind_;
+ if (kindCase_ == 5 && stringListValueBuilder_ != null) {
+ result.kind_ = stringListValueBuilder_.build();
+ }
+ if (kindCase_ == 7 && oneofValueBuilder_ != null) {
+ result.kind_ = oneofValueBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.auditmanager.v1.ParamValue) {
+ return mergeFrom((com.google.cloud.auditmanager.v1.ParamValue) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.auditmanager.v1.ParamValue other) {
+ if (other == com.google.cloud.auditmanager.v1.ParamValue.getDefaultInstance()) return this;
+ switch (other.getKindCase()) {
+ case STRING_VALUE:
+ {
+ kindCase_ = 3;
+ kind_ = other.kind_;
+ onChanged();
+ break;
+ }
+ case BOOL_VALUE:
+ {
+ setBoolValue(other.getBoolValue());
+ break;
+ }
+ case STRING_LIST_VALUE:
+ {
+ mergeStringListValue(other.getStringListValue());
+ break;
+ }
+ case NUMBER_VALUE:
+ {
+ setNumberValue(other.getNumberValue());
+ break;
+ }
+ case ONEOF_VALUE:
+ {
+ mergeOneofValue(other.getOneofValue());
+ break;
+ }
+ case KIND_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ kindCase_ = 3;
+ kind_ = s;
+ break;
+ } // case 26
+ case 32:
+ {
+ kind_ = input.readBool();
+ kindCase_ = 4;
+ break;
+ } // case 32
+ case 42:
+ {
+ input.readMessage(
+ internalGetStringListValueFieldBuilder().getBuilder(), extensionRegistry);
+ kindCase_ = 5;
+ break;
+ } // case 42
+ case 49:
+ {
+ kind_ = input.readDouble();
+ kindCase_ = 6;
+ break;
+ } // case 49
+ case 58:
+ {
+ input.readMessage(
+ internalGetOneofValueFieldBuilder().getBuilder(), extensionRegistry);
+ kindCase_ = 7;
+ break;
+ } // case 58
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int kindCase_ = 0;
+ private java.lang.Object kind_;
+
+ public KindCase getKindCase() {
+ return KindCase.forNumber(kindCase_);
+ }
+
+ public Builder clearKind() {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the stringValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasStringValue() {
+ return kindCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The stringValue.
+ */
+ @java.lang.Override
+ public java.lang.String getStringValue() {
+ java.lang.Object ref = "";
+ if (kindCase_ == 3) {
+ ref = kind_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (kindCase_ == 3) {
+ kind_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for stringValue.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getStringValueBytes() {
+ java.lang.Object ref = "";
+ if (kindCase_ == 3) {
+ ref = kind_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (kindCase_ == 3) {
+ kind_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The stringValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStringValue(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kindCase_ = 3;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStringValue() {
+ if (kindCase_ == 3) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for stringValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStringValueBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ kindCase_ = 3;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A boolean value.
+ *
+ *
+ * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the boolValue field is set.
+ */
+ public boolean hasBoolValue() {
+ return kindCase_ == 4;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A boolean value.
+ *
+ *
+ * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The boolValue.
+ */
+ public boolean getBoolValue() {
+ if (kindCase_ == 4) {
+ return (java.lang.Boolean) kind_;
+ }
+ return false;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A boolean value.
+ *
+ *
+ * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The boolValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBoolValue(boolean value) {
+
+ kindCase_ = 4;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A boolean value.
+ *
+ *
+ * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBoolValue() {
+ if (kindCase_ == 4) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.StringList,
+ com.google.cloud.auditmanager.v1.StringList.Builder,
+ com.google.cloud.auditmanager.v1.StringListOrBuilder>
+ stringListValueBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the stringListValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasStringListValue() {
+ return kindCase_ == 5;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The stringListValue.
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.StringList getStringListValue() {
+ if (stringListValueBuilder_ == null) {
+ if (kindCase_ == 5) {
+ return (com.google.cloud.auditmanager.v1.StringList) kind_;
+ }
+ return com.google.cloud.auditmanager.v1.StringList.getDefaultInstance();
+ } else {
+ if (kindCase_ == 5) {
+ return stringListValueBuilder_.getMessage();
+ }
+ return com.google.cloud.auditmanager.v1.StringList.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setStringListValue(com.google.cloud.auditmanager.v1.StringList value) {
+ if (stringListValueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ stringListValueBuilder_.setMessage(value);
+ }
+ kindCase_ = 5;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setStringListValue(
+ com.google.cloud.auditmanager.v1.StringList.Builder builderForValue) {
+ if (stringListValueBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ stringListValueBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 5;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeStringListValue(com.google.cloud.auditmanager.v1.StringList value) {
+ if (stringListValueBuilder_ == null) {
+ if (kindCase_ == 5
+ && kind_ != com.google.cloud.auditmanager.v1.StringList.getDefaultInstance()) {
+ kind_ =
+ com.google.cloud.auditmanager.v1.StringList.newBuilder(
+ (com.google.cloud.auditmanager.v1.StringList) kind_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 5) {
+ stringListValueBuilder_.mergeFrom(value);
+ } else {
+ stringListValueBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 5;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearStringListValue() {
+ if (stringListValueBuilder_ == null) {
+ if (kindCase_ == 5) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 5) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ stringListValueBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.StringList.Builder getStringListValueBuilder() {
+ return internalGetStringListValueFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.StringListOrBuilder getStringListValueOrBuilder() {
+ if ((kindCase_ == 5) && (stringListValueBuilder_ != null)) {
+ return stringListValueBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 5) {
+ return (com.google.cloud.auditmanager.v1.StringList) kind_;
+ }
+ return com.google.cloud.auditmanager.v1.StringList.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.StringList,
+ com.google.cloud.auditmanager.v1.StringList.Builder,
+ com.google.cloud.auditmanager.v1.StringListOrBuilder>
+ internalGetStringListValueFieldBuilder() {
+ if (stringListValueBuilder_ == null) {
+ if (!(kindCase_ == 5)) {
+ kind_ = com.google.cloud.auditmanager.v1.StringList.getDefaultInstance();
+ }
+ stringListValueBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.StringList,
+ com.google.cloud.auditmanager.v1.StringList.Builder,
+ com.google.cloud.auditmanager.v1.StringListOrBuilder>(
+ (com.google.cloud.auditmanager.v1.StringList) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 5;
+ onChanged();
+ return stringListValueBuilder_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A double value.
+ *
+ *
+ * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the numberValue field is set.
+ */
+ public boolean hasNumberValue() {
+ return kindCase_ == 6;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A double value.
+ *
+ *
+ * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The numberValue.
+ */
+ public double getNumberValue() {
+ if (kindCase_ == 6) {
+ return (java.lang.Double) kind_;
+ }
+ return 0D;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A double value.
+ *
+ *
+ * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The numberValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNumberValue(double value) {
+
+ kindCase_ = 6;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. A double value.
+ *
+ *
+ * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNumberValue() {
+ if (kindCase_ == 6) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.Parameter,
+ com.google.cloud.auditmanager.v1.Parameter.Builder,
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder>
+ oneofValueBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the oneofValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasOneofValue() {
+ return kindCase_ == 7;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The oneofValue.
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.Parameter getOneofValue() {
+ if (oneofValueBuilder_ == null) {
+ if (kindCase_ == 7) {
+ return (com.google.cloud.auditmanager.v1.Parameter) kind_;
+ }
+ return com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance();
+ } else {
+ if (kindCase_ == 7) {
+ return oneofValueBuilder_.getMessage();
+ }
+ return com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setOneofValue(com.google.cloud.auditmanager.v1.Parameter value) {
+ if (oneofValueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ oneofValueBuilder_.setMessage(value);
+ }
+ kindCase_ = 7;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setOneofValue(
+ com.google.cloud.auditmanager.v1.Parameter.Builder builderForValue) {
+ if (oneofValueBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ oneofValueBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 7;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeOneofValue(com.google.cloud.auditmanager.v1.Parameter value) {
+ if (oneofValueBuilder_ == null) {
+ if (kindCase_ == 7
+ && kind_ != com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance()) {
+ kind_ =
+ com.google.cloud.auditmanager.v1.Parameter.newBuilder(
+ (com.google.cloud.auditmanager.v1.Parameter) kind_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 7) {
+ oneofValueBuilder_.mergeFrom(value);
+ } else {
+ oneofValueBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 7;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearOneofValue() {
+ if (oneofValueBuilder_ == null) {
+ if (kindCase_ == 7) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 7) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ oneofValueBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.Parameter.Builder getOneofValueBuilder() {
+ return internalGetOneofValueFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOrBuilder getOneofValueOrBuilder() {
+ if ((kindCase_ == 7) && (oneofValueBuilder_ != null)) {
+ return oneofValueBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 7) {
+ return (com.google.cloud.auditmanager.v1.Parameter) kind_;
+ }
+ return com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.Parameter,
+ com.google.cloud.auditmanager.v1.Parameter.Builder,
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder>
+ internalGetOneofValueFieldBuilder() {
+ if (oneofValueBuilder_ == null) {
+ if (!(kindCase_ == 7)) {
+ kind_ = com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance();
+ }
+ oneofValueBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.Parameter,
+ com.google.cloud.auditmanager.v1.Parameter.Builder,
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder>(
+ (com.google.cloud.auditmanager.v1.Parameter) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 7;
+ onChanged();
+ return oneofValueBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.auditmanager.v1.ParamValue)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.auditmanager.v1.ParamValue)
+ private static final com.google.cloud.auditmanager.v1.ParamValue DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.auditmanager.v1.ParamValue();
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParamValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ParamValue parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParamValue getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParamValueOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParamValueOrBuilder.java
new file mode 100644
index 000000000000..c5023f5e6792
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParamValueOrBuilder.java
@@ -0,0 +1,207 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+@com.google.protobuf.Generated
+public interface ParamValueOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.auditmanager.v1.ParamValue)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the stringValue field is set.
+ */
+ boolean hasStringValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The stringValue.
+ */
+ java.lang.String getStringValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. A string value.
+ *
+ *
+ * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for stringValue.
+ */
+ com.google.protobuf.ByteString getStringValueBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. A boolean value.
+ *
+ *
+ * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the boolValue field is set.
+ */
+ boolean hasBoolValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. A boolean value.
+ *
+ *
+ * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The boolValue.
+ */
+ boolean getBoolValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the stringListValue field is set.
+ */
+ boolean hasStringListValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The stringListValue.
+ */
+ com.google.cloud.auditmanager.v1.StringList getStringListValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. A repeated string.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.auditmanager.v1.StringListOrBuilder getStringListValueOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. A double value.
+ *
+ *
+ * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the numberValue field is set.
+ */
+ boolean hasNumberValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. A double value.
+ *
+ *
+ * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The numberValue.
+ */
+ double getNumberValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the oneofValue field is set.
+ */
+ boolean hasOneofValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The oneofValue.
+ */
+ com.google.cloud.auditmanager.v1.Parameter getOneofValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. Sub-parameter values.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder getOneofValueOrBuilder();
+
+ com.google.cloud.auditmanager.v1.ParamValue.KindCase getKindCase();
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/Parameter.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/Parameter.java
new file mode 100644
index 000000000000..6bbe32da87ea
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/Parameter.java
@@ -0,0 +1,918 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+/**
+ *
+ *
+ *
+ * Parameters are key-value pairs that let you provide your custom location
+ * requirements, environment requirements, or other settings that are
+ * relevant to the cloud control.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.Parameter}
+ */
+@com.google.protobuf.Generated
+public final class Parameter extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.auditmanager.v1.Parameter)
+ ParameterOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "Parameter");
+ }
+
+ // Use Parameter.newBuilder() to construct.
+ private Parameter(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private Parameter() {
+ name_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_Parameter_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_Parameter_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.Parameter.class,
+ com.google.cloud.auditmanager.v1.Parameter.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The name or key of the parameter.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name or key of the parameter.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARAMETER_VALUE_FIELD_NUMBER = 2;
+ private com.google.cloud.auditmanager.v1.ParamValue parameterValue_;
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the parameterValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasParameterValue() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The parameterValue.
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParamValue getParameterValue() {
+ return parameterValue_ == null
+ ? com.google.cloud.auditmanager.v1.ParamValue.getDefaultInstance()
+ : parameterValue_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParamValueOrBuilder getParameterValueOrBuilder() {
+ return parameterValue_ == null
+ ? com.google.cloud.auditmanager.v1.ParamValue.getDefaultInstance()
+ : parameterValue_;
+ }
+
+ 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(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getParameterValue());
+ }
+ 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(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getParameterValue());
+ }
+ 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.auditmanager.v1.Parameter)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.auditmanager.v1.Parameter other =
+ (com.google.cloud.auditmanager.v1.Parameter) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (hasParameterValue() != other.hasParameterValue()) return false;
+ if (hasParameterValue()) {
+ if (!getParameterValue().equals(other.getParameterValue())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (hasParameterValue()) {
+ hash = (37 * hash) + PARAMETER_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getParameterValue().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.auditmanager.v1.Parameter parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.Parameter 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.auditmanager.v1.Parameter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.Parameter 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.auditmanager.v1.Parameter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.Parameter parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.auditmanager.v1.Parameter parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.Parameter 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.auditmanager.v1.Parameter parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.Parameter 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.auditmanager.v1.Parameter parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.Parameter 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.auditmanager.v1.Parameter 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * Parameters are key-value pairs that let you provide your custom location
+ * requirements, environment requirements, or other settings that are
+ * relevant to the cloud control.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.Parameter}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.auditmanager.v1.Parameter)
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_Parameter_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_Parameter_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.Parameter.class,
+ com.google.cloud.auditmanager.v1.Parameter.Builder.class);
+ }
+
+ // Construct using com.google.cloud.auditmanager.v1.Parameter.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ internalGetParameterValueFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ name_ = "";
+ parameterValue_ = null;
+ if (parameterValueBuilder_ != null) {
+ parameterValueBuilder_.dispose();
+ parameterValueBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_Parameter_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.Parameter getDefaultInstanceForType() {
+ return com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.Parameter build() {
+ com.google.cloud.auditmanager.v1.Parameter result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.Parameter buildPartial() {
+ com.google.cloud.auditmanager.v1.Parameter result =
+ new com.google.cloud.auditmanager.v1.Parameter(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.auditmanager.v1.Parameter result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.parameterValue_ =
+ parameterValueBuilder_ == null ? parameterValue_ : parameterValueBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.auditmanager.v1.Parameter) {
+ return mergeFrom((com.google.cloud.auditmanager.v1.Parameter) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.auditmanager.v1.Parameter other) {
+ if (other == com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasParameterValue()) {
+ mergeParameterValue(other.getParameterValue());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(
+ internalGetParameterValueFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object name_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. The name or key of the parameter.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name or key of the parameter.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name or key of the parameter.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name or key of the parameter.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The name or key of the parameter.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.auditmanager.v1.ParamValue parameterValue_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.ParamValue,
+ com.google.cloud.auditmanager.v1.ParamValue.Builder,
+ com.google.cloud.auditmanager.v1.ParamValueOrBuilder>
+ parameterValueBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the parameterValue field is set.
+ */
+ public boolean hasParameterValue() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The parameterValue.
+ */
+ public com.google.cloud.auditmanager.v1.ParamValue getParameterValue() {
+ if (parameterValueBuilder_ == null) {
+ return parameterValue_ == null
+ ? com.google.cloud.auditmanager.v1.ParamValue.getDefaultInstance()
+ : parameterValue_;
+ } else {
+ return parameterValueBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setParameterValue(com.google.cloud.auditmanager.v1.ParamValue value) {
+ if (parameterValueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parameterValue_ = value;
+ } else {
+ parameterValueBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setParameterValue(
+ com.google.cloud.auditmanager.v1.ParamValue.Builder builderForValue) {
+ if (parameterValueBuilder_ == null) {
+ parameterValue_ = builderForValue.build();
+ } else {
+ parameterValueBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeParameterValue(com.google.cloud.auditmanager.v1.ParamValue value) {
+ if (parameterValueBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && parameterValue_ != null
+ && parameterValue_
+ != com.google.cloud.auditmanager.v1.ParamValue.getDefaultInstance()) {
+ getParameterValueBuilder().mergeFrom(value);
+ } else {
+ parameterValue_ = value;
+ }
+ } else {
+ parameterValueBuilder_.mergeFrom(value);
+ }
+ if (parameterValue_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearParameterValue() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ parameterValue_ = null;
+ if (parameterValueBuilder_ != null) {
+ parameterValueBuilder_.dispose();
+ parameterValueBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.ParamValue.Builder getParameterValueBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetParameterValueFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.ParamValueOrBuilder getParameterValueOrBuilder() {
+ if (parameterValueBuilder_ != null) {
+ return parameterValueBuilder_.getMessageOrBuilder();
+ } else {
+ return parameterValue_ == null
+ ? com.google.cloud.auditmanager.v1.ParamValue.getDefaultInstance()
+ : parameterValue_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.ParamValue,
+ com.google.cloud.auditmanager.v1.ParamValue.Builder,
+ com.google.cloud.auditmanager.v1.ParamValueOrBuilder>
+ internalGetParameterValueFieldBuilder() {
+ if (parameterValueBuilder_ == null) {
+ parameterValueBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.ParamValue,
+ com.google.cloud.auditmanager.v1.ParamValue.Builder,
+ com.google.cloud.auditmanager.v1.ParamValueOrBuilder>(
+ getParameterValue(), getParentForChildren(), isClean());
+ parameterValue_ = null;
+ }
+ return parameterValueBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.auditmanager.v1.Parameter)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.auditmanager.v1.Parameter)
+ private static final com.google.cloud.auditmanager.v1.Parameter DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.auditmanager.v1.Parameter();
+ }
+
+ public static com.google.cloud.auditmanager.v1.Parameter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Parameter parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.Parameter getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterOrBuilder.java
new file mode 100644
index 000000000000..9198a7f15be2
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterOrBuilder.java
@@ -0,0 +1,97 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+@com.google.protobuf.Generated
+public interface ParameterOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.auditmanager.v1.Parameter)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The name or key of the parameter.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+
+ /**
+ *
+ *
+ *
+ * Required. The name or key of the parameter.
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the parameterValue field is set.
+ */
+ boolean hasParameterValue();
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The parameterValue.
+ */
+ com.google.cloud.auditmanager.v1.ParamValue getParameterValue();
+
+ /**
+ *
+ *
+ *
+ * Required. The value of the parameter.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.ParamValue parameter_value = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.auditmanager.v1.ParamValueOrBuilder getParameterValueOrBuilder();
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterOverrides.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterOverrides.java
new file mode 100644
index 000000000000..12873c400a4a
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterOverrides.java
@@ -0,0 +1,926 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+/**
+ *
+ *
+ *
+ * Wrapper message to associate a list of CSC internal parameter overrides with
+ * a control name.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.ParameterOverrides}
+ */
+@com.google.protobuf.Generated
+public final class ParameterOverrides extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.auditmanager.v1.ParameterOverrides)
+ ParameterOverridesOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "ParameterOverrides");
+ }
+
+ // Use ParameterOverrides.newBuilder() to construct.
+ private ParameterOverrides(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ParameterOverrides() {
+ parameters_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParameterOverrides_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParameterOverrides_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.ParameterOverrides.class,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.Builder.class);
+ }
+
+ public static final int PARAMETERS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private java.util.List parameters_;
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ @java.lang.Override
+ public java.util.List getParametersList() {
+ return parameters_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.auditmanager.v1.ParameterOrBuilder>
+ getParametersOrBuilderList() {
+ return parameters_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ @java.lang.Override
+ public int getParametersCount() {
+ return parameters_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.Parameter getParameters(int index) {
+ return parameters_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOrBuilder getParametersOrBuilder(int index) {
+ return parameters_.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 {
+ for (int i = 0; i < parameters_.size(); i++) {
+ output.writeMessage(1, parameters_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < parameters_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, parameters_.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.auditmanager.v1.ParameterOverrides)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.auditmanager.v1.ParameterOverrides other =
+ (com.google.cloud.auditmanager.v1.ParameterOverrides) obj;
+
+ if (!getParametersList().equals(other.getParametersList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getParametersCount() > 0) {
+ hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
+ hash = (53 * hash) + getParametersList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterOverrides parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterOverrides 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.auditmanager.v1.ParameterOverrides parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterOverrides 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.auditmanager.v1.ParameterOverrides parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterOverrides parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterOverrides parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterOverrides 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.auditmanager.v1.ParameterOverrides parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterOverrides 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.auditmanager.v1.ParameterOverrides parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterOverrides 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.auditmanager.v1.ParameterOverrides 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * Wrapper message to associate a list of CSC internal parameter overrides with
+ * a control name.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.ParameterOverrides}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.auditmanager.v1.ParameterOverrides)
+ com.google.cloud.auditmanager.v1.ParameterOverridesOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParameterOverrides_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParameterOverrides_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.ParameterOverrides.class,
+ com.google.cloud.auditmanager.v1.ParameterOverrides.Builder.class);
+ }
+
+ // Construct using com.google.cloud.auditmanager.v1.ParameterOverrides.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (parametersBuilder_ == null) {
+ parameters_ = java.util.Collections.emptyList();
+ } else {
+ parameters_ = null;
+ parametersBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParameterOverrides_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides getDefaultInstanceForType() {
+ return com.google.cloud.auditmanager.v1.ParameterOverrides.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides build() {
+ com.google.cloud.auditmanager.v1.ParameterOverrides result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides buildPartial() {
+ com.google.cloud.auditmanager.v1.ParameterOverrides result =
+ new com.google.cloud.auditmanager.v1.ParameterOverrides(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.auditmanager.v1.ParameterOverrides result) {
+ if (parametersBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ parameters_ = java.util.Collections.unmodifiableList(parameters_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.parameters_ = parameters_;
+ } else {
+ result.parameters_ = parametersBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.google.cloud.auditmanager.v1.ParameterOverrides result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.auditmanager.v1.ParameterOverrides) {
+ return mergeFrom((com.google.cloud.auditmanager.v1.ParameterOverrides) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.auditmanager.v1.ParameterOverrides other) {
+ if (other == com.google.cloud.auditmanager.v1.ParameterOverrides.getDefaultInstance())
+ return this;
+ if (parametersBuilder_ == null) {
+ if (!other.parameters_.isEmpty()) {
+ if (parameters_.isEmpty()) {
+ parameters_ = other.parameters_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureParametersIsMutable();
+ parameters_.addAll(other.parameters_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.parameters_.isEmpty()) {
+ if (parametersBuilder_.isEmpty()) {
+ parametersBuilder_.dispose();
+ parametersBuilder_ = null;
+ parameters_ = other.parameters_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ parametersBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? internalGetParametersFieldBuilder()
+ : null;
+ } else {
+ parametersBuilder_.addAllMessages(other.parameters_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.cloud.auditmanager.v1.Parameter m =
+ input.readMessage(
+ com.google.cloud.auditmanager.v1.Parameter.parser(), extensionRegistry);
+ if (parametersBuilder_ == null) {
+ ensureParametersIsMutable();
+ parameters_.add(m);
+ } else {
+ parametersBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.util.List parameters_ =
+ java.util.Collections.emptyList();
+
+ private void ensureParametersIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ parameters_ =
+ new java.util.ArrayList(parameters_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.auditmanager.v1.Parameter,
+ com.google.cloud.auditmanager.v1.Parameter.Builder,
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder>
+ parametersBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public java.util.List getParametersList() {
+ if (parametersBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(parameters_);
+ } else {
+ return parametersBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public int getParametersCount() {
+ if (parametersBuilder_ == null) {
+ return parameters_.size();
+ } else {
+ return parametersBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public com.google.cloud.auditmanager.v1.Parameter getParameters(int index) {
+ if (parametersBuilder_ == null) {
+ return parameters_.get(index);
+ } else {
+ return parametersBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public Builder setParameters(int index, com.google.cloud.auditmanager.v1.Parameter value) {
+ if (parametersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParametersIsMutable();
+ parameters_.set(index, value);
+ onChanged();
+ } else {
+ parametersBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public Builder setParameters(
+ int index, com.google.cloud.auditmanager.v1.Parameter.Builder builderForValue) {
+ if (parametersBuilder_ == null) {
+ ensureParametersIsMutable();
+ parameters_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ parametersBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public Builder addParameters(com.google.cloud.auditmanager.v1.Parameter value) {
+ if (parametersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParametersIsMutable();
+ parameters_.add(value);
+ onChanged();
+ } else {
+ parametersBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public Builder addParameters(int index, com.google.cloud.auditmanager.v1.Parameter value) {
+ if (parametersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParametersIsMutable();
+ parameters_.add(index, value);
+ onChanged();
+ } else {
+ parametersBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public Builder addParameters(
+ com.google.cloud.auditmanager.v1.Parameter.Builder builderForValue) {
+ if (parametersBuilder_ == null) {
+ ensureParametersIsMutable();
+ parameters_.add(builderForValue.build());
+ onChanged();
+ } else {
+ parametersBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public Builder addParameters(
+ int index, com.google.cloud.auditmanager.v1.Parameter.Builder builderForValue) {
+ if (parametersBuilder_ == null) {
+ ensureParametersIsMutable();
+ parameters_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ parametersBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public Builder addAllParameters(
+ java.lang.Iterable extends com.google.cloud.auditmanager.v1.Parameter> values) {
+ if (parametersBuilder_ == null) {
+ ensureParametersIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_);
+ onChanged();
+ } else {
+ parametersBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public Builder clearParameters() {
+ if (parametersBuilder_ == null) {
+ parameters_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ parametersBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public Builder removeParameters(int index) {
+ if (parametersBuilder_ == null) {
+ ensureParametersIsMutable();
+ parameters_.remove(index);
+ onChanged();
+ } else {
+ parametersBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public com.google.cloud.auditmanager.v1.Parameter.Builder getParametersBuilder(int index) {
+ return internalGetParametersFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public com.google.cloud.auditmanager.v1.ParameterOrBuilder getParametersOrBuilder(int index) {
+ if (parametersBuilder_ == null) {
+ return parameters_.get(index);
+ } else {
+ return parametersBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public java.util.List extends com.google.cloud.auditmanager.v1.ParameterOrBuilder>
+ getParametersOrBuilderList() {
+ if (parametersBuilder_ != null) {
+ return parametersBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(parameters_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public com.google.cloud.auditmanager.v1.Parameter.Builder addParametersBuilder() {
+ return internalGetParametersFieldBuilder()
+ .addBuilder(com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public com.google.cloud.auditmanager.v1.Parameter.Builder addParametersBuilder(int index) {
+ return internalGetParametersFieldBuilder()
+ .addBuilder(index, com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ public java.util.List
+ getParametersBuilderList() {
+ return internalGetParametersFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.auditmanager.v1.Parameter,
+ com.google.cloud.auditmanager.v1.Parameter.Builder,
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder>
+ internalGetParametersFieldBuilder() {
+ if (parametersBuilder_ == null) {
+ parametersBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.auditmanager.v1.Parameter,
+ com.google.cloud.auditmanager.v1.Parameter.Builder,
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder>(
+ parameters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ parameters_ = null;
+ }
+ return parametersBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.auditmanager.v1.ParameterOverrides)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.auditmanager.v1.ParameterOverrides)
+ private static final com.google.cloud.auditmanager.v1.ParameterOverrides DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.auditmanager.v1.ParameterOverrides();
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterOverrides getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ParameterOverrides parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOverrides getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterOverridesOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterOverridesOrBuilder.java
new file mode 100644
index 000000000000..d4aae8da763a
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterOverridesOrBuilder.java
@@ -0,0 +1,84 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+@com.google.protobuf.Generated
+public interface ParameterOverridesOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.auditmanager.v1.ParameterOverrides)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ java.util.List getParametersList();
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ com.google.cloud.auditmanager.v1.Parameter getParameters(int index);
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ int getParametersCount();
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ java.util.List extends com.google.cloud.auditmanager.v1.ParameterOrBuilder>
+ getParametersOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * The list of parameter overrides.
+ *
+ *
+ * repeated .google.cloud.auditmanager.v1.Parameter parameters = 1;
+ */
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder getParametersOrBuilder(int index);
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterState.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterState.java
new file mode 100644
index 000000000000..ad7bf985f314
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterState.java
@@ -0,0 +1,820 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+/**
+ *
+ *
+ *
+ * State of a parameter for a cloud control.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.ParameterState}
+ */
+@com.google.protobuf.Generated
+public final class ParameterState extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.auditmanager.v1.ParameterState)
+ ParameterStateOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "ParameterState");
+ }
+
+ // Use ParameterState.newBuilder() to construct.
+ private ParameterState(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ParameterState() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParameterState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParameterState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.ParameterState.class,
+ com.google.cloud.auditmanager.v1.ParameterState.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int PARAMETER_FIELD_NUMBER = 1;
+ private com.google.cloud.auditmanager.v1.Parameter parameter_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the parameter field is set.
+ */
+ @java.lang.Override
+ public boolean hasParameter() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The parameter.
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.Parameter getParameter() {
+ return parameter_ == null
+ ? com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance()
+ : parameter_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterOrBuilder getParameterOrBuilder() {
+ return parameter_ == null
+ ? com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance()
+ : parameter_;
+ }
+
+ public static final int IS_OVERRIDDEN_FIELD_NUMBER = 2;
+ private boolean isOverridden_ = false;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this parameter was overridden by the user.
+ *
+ *
+ * bool is_overridden = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The isOverridden.
+ */
+ @java.lang.Override
+ public boolean getIsOverridden() {
+ return isOverridden_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getParameter());
+ }
+ if (isOverridden_ != false) {
+ output.writeBool(2, isOverridden_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getParameter());
+ }
+ if (isOverridden_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isOverridden_);
+ }
+ 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.auditmanager.v1.ParameterState)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.auditmanager.v1.ParameterState other =
+ (com.google.cloud.auditmanager.v1.ParameterState) obj;
+
+ if (hasParameter() != other.hasParameter()) return false;
+ if (hasParameter()) {
+ if (!getParameter().equals(other.getParameter())) return false;
+ }
+ if (getIsOverridden() != other.getIsOverridden()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasParameter()) {
+ hash = (37 * hash) + PARAMETER_FIELD_NUMBER;
+ hash = (53 * hash) + getParameter().hashCode();
+ }
+ hash = (37 * hash) + IS_OVERRIDDEN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsOverridden());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterState parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterState 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.auditmanager.v1.ParameterState parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterState 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.auditmanager.v1.ParameterState parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterState parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterState parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterState 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.auditmanager.v1.ParameterState parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterState 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.auditmanager.v1.ParameterState parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterState 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.auditmanager.v1.ParameterState 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * State of a parameter for a cloud control.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.ParameterState}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.auditmanager.v1.ParameterState)
+ com.google.cloud.auditmanager.v1.ParameterStateOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParameterState_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParameterState_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.ParameterState.class,
+ com.google.cloud.auditmanager.v1.ParameterState.Builder.class);
+ }
+
+ // Construct using com.google.cloud.auditmanager.v1.ParameterState.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ internalGetParameterFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ parameter_ = null;
+ if (parameterBuilder_ != null) {
+ parameterBuilder_.dispose();
+ parameterBuilder_ = null;
+ }
+ isOverridden_ = false;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_ParameterState_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterState getDefaultInstanceForType() {
+ return com.google.cloud.auditmanager.v1.ParameterState.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterState build() {
+ com.google.cloud.auditmanager.v1.ParameterState result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterState buildPartial() {
+ com.google.cloud.auditmanager.v1.ParameterState result =
+ new com.google.cloud.auditmanager.v1.ParameterState(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.auditmanager.v1.ParameterState result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parameter_ = parameterBuilder_ == null ? parameter_ : parameterBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.isOverridden_ = isOverridden_;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.auditmanager.v1.ParameterState) {
+ return mergeFrom((com.google.cloud.auditmanager.v1.ParameterState) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.auditmanager.v1.ParameterState other) {
+ if (other == com.google.cloud.auditmanager.v1.ParameterState.getDefaultInstance())
+ return this;
+ if (other.hasParameter()) {
+ mergeParameter(other.getParameter());
+ }
+ if (other.getIsOverridden() != false) {
+ setIsOverridden(other.getIsOverridden());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(
+ internalGetParameterFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16:
+ {
+ isOverridden_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.cloud.auditmanager.v1.Parameter parameter_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.Parameter,
+ com.google.cloud.auditmanager.v1.Parameter.Builder,
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder>
+ parameterBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the parameter field is set.
+ */
+ public boolean hasParameter() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The parameter.
+ */
+ public com.google.cloud.auditmanager.v1.Parameter getParameter() {
+ if (parameterBuilder_ == null) {
+ return parameter_ == null
+ ? com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance()
+ : parameter_;
+ } else {
+ return parameterBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setParameter(com.google.cloud.auditmanager.v1.Parameter value) {
+ if (parameterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parameter_ = value;
+ } else {
+ parameterBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setParameter(
+ com.google.cloud.auditmanager.v1.Parameter.Builder builderForValue) {
+ if (parameterBuilder_ == null) {
+ parameter_ = builderForValue.build();
+ } else {
+ parameterBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeParameter(com.google.cloud.auditmanager.v1.Parameter value) {
+ if (parameterBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && parameter_ != null
+ && parameter_ != com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance()) {
+ getParameterBuilder().mergeFrom(value);
+ } else {
+ parameter_ = value;
+ }
+ } else {
+ parameterBuilder_.mergeFrom(value);
+ }
+ if (parameter_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearParameter() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ parameter_ = null;
+ if (parameterBuilder_ != null) {
+ parameterBuilder_.dispose();
+ parameterBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.Parameter.Builder getParameterBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetParameterFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.auditmanager.v1.ParameterOrBuilder getParameterOrBuilder() {
+ if (parameterBuilder_ != null) {
+ return parameterBuilder_.getMessageOrBuilder();
+ } else {
+ return parameter_ == null
+ ? com.google.cloud.auditmanager.v1.Parameter.getDefaultInstance()
+ : parameter_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.Parameter,
+ com.google.cloud.auditmanager.v1.Parameter.Builder,
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder>
+ internalGetParameterFieldBuilder() {
+ if (parameterBuilder_ == null) {
+ parameterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.auditmanager.v1.Parameter,
+ com.google.cloud.auditmanager.v1.Parameter.Builder,
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder>(
+ getParameter(), getParentForChildren(), isClean());
+ parameter_ = null;
+ }
+ return parameterBuilder_;
+ }
+
+ private boolean isOverridden_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this parameter was overridden by the user.
+ *
+ *
+ * bool is_overridden = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The isOverridden.
+ */
+ @java.lang.Override
+ public boolean getIsOverridden() {
+ return isOverridden_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this parameter was overridden by the user.
+ *
+ *
+ * bool is_overridden = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The isOverridden to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsOverridden(boolean value) {
+
+ isOverridden_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this parameter was overridden by the user.
+ *
+ *
+ * bool is_overridden = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIsOverridden() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ isOverridden_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.auditmanager.v1.ParameterState)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.auditmanager.v1.ParameterState)
+ private static final com.google.cloud.auditmanager.v1.ParameterState DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.auditmanager.v1.ParameterState();
+ }
+
+ public static com.google.cloud.auditmanager.v1.ParameterState getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ParameterState parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.ParameterState getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterStateOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterStateOrBuilder.java
new file mode 100644
index 000000000000..b7a41e01ff59
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParameterStateOrBuilder.java
@@ -0,0 +1,84 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+@com.google.protobuf.Generated
+public interface ParameterStateOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.auditmanager.v1.ParameterState)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the parameter field is set.
+ */
+ boolean hasParameter();
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The parameter.
+ */
+ com.google.cloud.auditmanager.v1.Parameter getParameter();
+
+ /**
+ *
+ *
+ *
+ * Output only. The parameter key and value.
+ *
+ *
+ *
+ * .google.cloud.auditmanager.v1.Parameter parameter = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.auditmanager.v1.ParameterOrBuilder getParameterOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this parameter was overridden by the user.
+ *
+ *
+ * bool is_overridden = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The isOverridden.
+ */
+ boolean getIsOverridden();
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParametersProto.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParametersProto.java
new file mode 100644
index 000000000000..dca7e057ad64
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ParametersProto.java
@@ -0,0 +1,176 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+@com.google.protobuf.Generated
+public final class ParametersProto extends com.google.protobuf.GeneratedFile {
+ private ParametersProto() {}
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "ParametersProto");
+ }
+
+ 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_auditmanager_v1_Parameter_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_auditmanager_v1_Parameter_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_auditmanager_v1_StringList_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_auditmanager_v1_StringList_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_auditmanager_v1_ParamValue_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_auditmanager_v1_ParamValue_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_auditmanager_v1_ParameterOverrides_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_auditmanager_v1_ParameterOverrides_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_auditmanager_v1_ParameterState_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_auditmanager_v1_ParameterState_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_auditmanager_v1_CloudControlParameterStates_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_auditmanager_v1_CloudControlParameterStates_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/auditmanager/v1/parameter"
+ + "s.proto\022\034google.cloud.auditmanager.v1\032\037g"
+ + "oogle/api/field_behavior.proto\032\031google/api/resource.proto\"h\n"
+ + "\tParameter\022\022\n"
+ + "\004name\030\001 \001(\tB\004\342A\001\002\022G\n"
+ + "\017parameter_value\030\002 \001(\0132(.go"
+ + "ogle.cloud.auditmanager.v1.ParamValueB\004\342A\001\002\"\"\n\n"
+ + "StringList\022\024\n"
+ + "\006values\030\001 \003(\tB\004\342A\001\002\"\377\001\n\n"
+ + "ParamValue\022\034\n"
+ + "\014string_value\030\003 \001(\tB\004\342A\001\001H\000\022\032\n\n"
+ + "bool_value\030\004 \001(\010B\004\342A\001\001H\000\022K\n"
+ + "\021string_list_value\030\005"
+ + " \001(\0132(.google.cloud.auditmanager.v1.StringListB\004\342A\001\001H\000\022\034\n"
+ + "\014number_value\030\006 \001(\001B\004\342A\001\001H\000\022D\n"
+ + "\013oneof_value\030\007 \001(\013"
+ + "2\'.google.cloud.auditmanager.v1.ParameterB\004\342A\001\001H\000B\006\n"
+ + "\004kind\"Q\n"
+ + "\022ParameterOverrides\022;\n\n"
+ + "parameters\030\001 \003(\0132\'.google.cloud.auditmanager.v1.Parameter\"o\n"
+ + "\016ParameterState\022@\n"
+ + "\tparameter\030\001"
+ + " \001(\0132\'.google.cloud.auditmanager.v1.ParameterB\004\342A\001\003\022\033\n\r"
+ + "is_overridden\030\002 \001(\010B\004\342A\001\003\"k\n"
+ + "\033CloudControlParameterStates\022L\n"
+ + "\020parameter_states\030\001 \003(\0132,.google."
+ + "cloud.auditmanager.v1.ParameterStateB\004\342A\001\003B\333\001\n"
+ + " com.google.cloud.auditmanager.v1B\017ParametersProtoP\001ZDcloud.google.com/go/"
+ + "auditmanager/apiv1/auditmanagerpb;auditm"
+ + "anagerpb\252\002\034Google.Cloud.AuditManager.V1\312"
+ + "\002\034Google\\Cloud\\AuditManager\\V1\352\002\037Google:"
+ + ":Cloud::AuditManager::V1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ });
+ internal_static_google_cloud_auditmanager_v1_Parameter_descriptor =
+ getDescriptor().getMessageType(0);
+ internal_static_google_cloud_auditmanager_v1_Parameter_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_auditmanager_v1_Parameter_descriptor,
+ new java.lang.String[] {
+ "Name", "ParameterValue",
+ });
+ internal_static_google_cloud_auditmanager_v1_StringList_descriptor =
+ getDescriptor().getMessageType(1);
+ internal_static_google_cloud_auditmanager_v1_StringList_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_auditmanager_v1_StringList_descriptor,
+ new java.lang.String[] {
+ "Values",
+ });
+ internal_static_google_cloud_auditmanager_v1_ParamValue_descriptor =
+ getDescriptor().getMessageType(2);
+ internal_static_google_cloud_auditmanager_v1_ParamValue_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_auditmanager_v1_ParamValue_descriptor,
+ new java.lang.String[] {
+ "StringValue", "BoolValue", "StringListValue", "NumberValue", "OneofValue", "Kind",
+ });
+ internal_static_google_cloud_auditmanager_v1_ParameterOverrides_descriptor =
+ getDescriptor().getMessageType(3);
+ internal_static_google_cloud_auditmanager_v1_ParameterOverrides_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_auditmanager_v1_ParameterOverrides_descriptor,
+ new java.lang.String[] {
+ "Parameters",
+ });
+ internal_static_google_cloud_auditmanager_v1_ParameterState_descriptor =
+ getDescriptor().getMessageType(4);
+ internal_static_google_cloud_auditmanager_v1_ParameterState_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_auditmanager_v1_ParameterState_descriptor,
+ new java.lang.String[] {
+ "Parameter", "IsOverridden",
+ });
+ internal_static_google_cloud_auditmanager_v1_CloudControlParameterStates_descriptor =
+ getDescriptor().getMessageType(5);
+ internal_static_google_cloud_auditmanager_v1_CloudControlParameterStates_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_auditmanager_v1_CloudControlParameterStates_descriptor,
+ new java.lang.String[] {
+ "ParameterStates",
+ });
+ descriptor.resolveAllFeaturesImmutable();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java
index f89d43af730d..6c439bcb4da3 100644
--- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java
@@ -410,7 +410,7 @@ public com.google.cloud.auditmanager.v1.EnrollmentOrBuilder getEnrollmentOrBuild
* bool enrolled = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
*
* @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=812
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=827
* @return The enrolled.
*/
@java.lang.Override
@@ -1319,7 +1319,7 @@ public com.google.cloud.auditmanager.v1.EnrollmentOrBuilder getEnrollmentOrBuild
*
*
* @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=812
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=827
* @return The enrolled.
*/
@java.lang.Override
@@ -1340,7 +1340,7 @@ public boolean getEnrolled() {
*
*
* @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=812
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=827
* @param value The enrolled to set.
* @return This builder for chaining.
*/
@@ -1365,7 +1365,7 @@ public Builder setEnrolled(boolean value) {
*
*
* @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=812
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=827
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java
index 7fe3671f7ab2..6bcb05d6fdc2 100644
--- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java
@@ -119,7 +119,7 @@ public interface ResourceEnrollmentStatusOrBuilder
* bool enrolled = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
*
* @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See
- * google/cloud/auditmanager/v1/auditmanager.proto;l=812
+ * google/cloud/auditmanager/v1/auditmanager.proto;l=827
* @return The enrolled.
*/
@java.lang.Deprecated
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/StringList.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/StringList.java
new file mode 100644
index 000000000000..f385a20a0f81
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/StringList.java
@@ -0,0 +1,696 @@
+/*
+ * 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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+/**
+ *
+ *
+ *
+ * A list of strings for the parameter value.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.StringList}
+ */
+@com.google.protobuf.Generated
+public final class StringList extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.auditmanager.v1.StringList)
+ StringListOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "StringList");
+ }
+
+ // Use StringList.newBuilder() to construct.
+ private StringList(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private StringList() {
+ values_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_StringList_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_StringList_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.StringList.class,
+ com.google.cloud.auditmanager.v1.StringList.Builder.class);
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList values_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the values.
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ return values_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < values_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, values_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < values_.size(); i++) {
+ dataSize += computeStringSizeNoTag(values_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getValuesList().size();
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.auditmanager.v1.StringList)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.auditmanager.v1.StringList other =
+ (com.google.cloud.auditmanager.v1.StringList) obj;
+
+ if (!getValuesList().equals(other.getValuesList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.auditmanager.v1.StringList parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.StringList 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.auditmanager.v1.StringList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.StringList 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.auditmanager.v1.StringList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.auditmanager.v1.StringList parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.auditmanager.v1.StringList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.StringList 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.auditmanager.v1.StringList parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.StringList 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.auditmanager.v1.StringList parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.auditmanager.v1.StringList 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.auditmanager.v1.StringList 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * A list of strings for the parameter value.
+ *
+ *
+ * Protobuf type {@code google.cloud.auditmanager.v1.StringList}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.auditmanager.v1.StringList)
+ com.google.cloud.auditmanager.v1.StringListOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_StringList_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_StringList_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.auditmanager.v1.StringList.class,
+ com.google.cloud.auditmanager.v1.StringList.Builder.class);
+ }
+
+ // Construct using com.google.cloud.auditmanager.v1.StringList.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ values_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.auditmanager.v1.ParametersProto
+ .internal_static_google_cloud_auditmanager_v1_StringList_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.StringList getDefaultInstanceForType() {
+ return com.google.cloud.auditmanager.v1.StringList.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.StringList build() {
+ com.google.cloud.auditmanager.v1.StringList result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.StringList buildPartial() {
+ com.google.cloud.auditmanager.v1.StringList result =
+ new com.google.cloud.auditmanager.v1.StringList(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.auditmanager.v1.StringList result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ values_.makeImmutable();
+ result.values_ = values_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.auditmanager.v1.StringList) {
+ return mergeFrom((com.google.cloud.auditmanager.v1.StringList) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.auditmanager.v1.StringList other) {
+ if (other == com.google.cloud.auditmanager.v1.StringList.getDefaultInstance()) return this;
+ if (!other.values_.isEmpty()) {
+ if (values_.isEmpty()) {
+ values_ = other.values_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureValuesIsMutable();
+ values_.addAll(other.values_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureValuesIsMutable();
+ values_.add(s);
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringArrayList values_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureValuesIsMutable() {
+ if (!values_.isModifiable()) {
+ values_ = new com.google.protobuf.LazyStringArrayList(values_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the values.
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ values_.makeImmutable();
+ return values_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index to set the value at.
+ * @param value The values to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValues(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValues(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param values The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllValues(java.lang.Iterable values) {
+ ensureValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValues() {
+ values_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes of the values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValuesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureValuesIsMutable();
+ values_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.auditmanager.v1.StringList)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.auditmanager.v1.StringList)
+ private static final com.google.cloud.auditmanager.v1.StringList DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.auditmanager.v1.StringList();
+ }
+
+ public static com.google.cloud.auditmanager.v1.StringList getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public StringList parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.auditmanager.v1.StringList getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/StringListOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/StringListOrBuilder.java
new file mode 100644
index 000000000000..5ac8aa80bcd6
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/StringListOrBuilder.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/auditmanager/v1/parameters.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.auditmanager.v1;
+
+@com.google.protobuf.Generated
+public interface StringListOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.auditmanager.v1.StringList)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the values.
+ */
+ java.util.List getValuesList();
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of values.
+ */
+ int getValuesCount();
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ java.lang.String getValues(int index);
+
+ /**
+ *
+ *
+ *
+ * Required. The strings in the list.
+ *
+ *
+ * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ com.google.protobuf.ByteString getValuesBytes(int index);
+}
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/V1mainProto.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/V1mainProto.java
index ca92c8f09d37..ddcf8ca1d354 100644
--- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/V1mainProto.java
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/V1mainProto.java
@@ -52,10 +52,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_auditmanager_v1_GenerateAuditScopeReportRequest_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_auditmanager_v1_GenerateAuditScopeReportRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_auditmanager_v1_GenerateAuditScopeReportRequest_ParameterOverridesEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_auditmanager_v1_GenerateAuditScopeReportRequest_ParameterOverridesEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_auditmanager_v1_GenerateAuditReportRequest_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_auditmanager_v1_GenerateAuditReportRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_auditmanager_v1_GenerateAuditReportRequest_ParameterOverridesEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_auditmanager_v1_GenerateAuditReportRequest_ParameterOverridesEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_auditmanager_v1_GetResourceEnrollmentStatusRequest_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -112,6 +120,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_auditmanager_v1_AuditReport_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_auditmanager_v1_AuditReport_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_auditmanager_v1_AuditReport_CloudControlParameterStatesEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_auditmanager_v1_AuditReport_CloudControlParameterStatesEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_auditmanager_v1_ControlFamily_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -156,6 +168,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_auditmanager_v1_AuditSchedule_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_auditmanager_v1_AuditSchedule_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_auditmanager_v1_AuditSchedule_ParameterOverridesEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_auditmanager_v1_AuditSchedule_ParameterOverridesEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_auditmanager_v1_ScheduleConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -174,34 +190,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ger.proto\022\034google.cloud.auditmanager.v1\032"
+ "\034google/api/annotations.proto\032\027google/ap"
+ "i/client.proto\032\037google/api/field_behavio"
- + "r.proto\032\031google/api/resource.proto\032#google/longrunning/operations.proto\032"
- + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\375\001\n"
+ + "r.proto\032\031google/api/resource.proto\032-goog"
+ + "le/cloud/auditmanager/v1/parameters.proto\032#google/longrunning/operations.proto\032 "
+ + "google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\375\001\n"
+ "\025EnrollResourceRequest\022\023\n"
+ "\005scope\030\001 \001(\tB\004\342A\001\002\022c\n"
- + "\014destinations\030\002 \003(\0132G.google.cloud.auditmanager.v1.E"
- + "nrollResourceRequest.EligibleDestinationB\004\342A\001\002\022\033\n\r"
+ + "\014destinations\030\002 \003(\0132G.google.cloud.auditmanag"
+ + "er.v1.EnrollResourceRequest.EligibleDestinationB\004\342A\001\002\022\033\n\r"
+ "validate_only\030\004 \001(\010B\004\342A\001\001\032M\n"
+ "\023EligibleDestination\022\035\n"
+ "\023eligible_gcs_bucket\030\003 \001(\tH\000B\027\n"
- + "\025eligible_destinations\"\367\002\n"
+ + "\025eligible_destinations\"\336\004\n"
+ "\037GenerateAuditScopeReportRequest\022\023\n"
+ "\005scope\030\002 \001(\tB\004\342A\001\002\022#\n"
+ "\023compliance_standard\030\003 \001(\tB\006\030\001\342A\001\001\022q\n\r"
- + "report_format\030\004 \001(\0162T.google.cloud.auditmanager.v1.GenerateAuditScop"
- + "eReportRequest.AuditScopeReportFormatB\004\342A\001\002\022\"\n"
+ + "report_format\030\004 \001(\0162T.google.cloud.auditmanager.v1.GenerateAu"
+ + "ditScopeReportRequest.AuditScopeReportFormatB\004\342A\001\002\022\"\n"
+ "\024compliance_framework\030\005 \001(\tB\004\342A\001\002\022\033\n\r"
- + "validate_only\030\006 \001(\010B\004\342A\001\001\"f\n"
+ + "validate_only\030\006 \001(\010B\004\342A\001\001\022x\n"
+ + "\023parameter_overrides\030\007 \003(\0132U.google.cloud."
+ + "auditmanager.v1.GenerateAuditScopeReportRequest.ParameterOverridesEntryB\004\342A\001\001\032k\n"
+ + "\027ParameterOverridesEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022?\n"
+ + "\005value\030\002"
+ + " \001(\01320.google.cloud.auditmanager.v1.ParameterOverrides:\0028\001\"f\n"
+ "\026AuditScopeReportFormat\022)\n"
+ "%AUDIT_SCOPE_REPORT_FORMAT_UNSPECIFIED\020\000\022!\n"
- + "\035AUDIT_SCOPE_REPORT_FORMAT_ODF\020\001\"\371\002\n"
+ + "\035AUDIT_SCOPE_REPORT_FORMAT_ODF\020\001\"\333\004\n"
+ "\032GenerateAuditReportRequest\022\021\n"
+ "\007gcs_uri\030\002 \001(\tH\000\022\023\n"
+ "\005scope\030\001 \001(\tB\004\342A\001\002\022#\n"
+ "\023compliance_standard\030\003 \001(\tB\006\030\001\342A\001\001\022g\n\r"
- + "report_format\030\004 \001(\0162J.google.cloud.a"
- + "uditmanager.v1.GenerateAuditReportRequest.AuditReportFormatB\004\342A\001\002\022\"\n"
- + "\024compliance_framework\030\005 \001(\tB\004\342A\001\002\022\033\n\r"
- + "validate_only\030\010 \001(\010B\004\342A\001\001\"U\n"
+ + "report_format\030\004 \001(\0162J.google.cloud.aud"
+ + "itmanager.v1.GenerateAuditReportRequest.AuditReportFormatB\004\342A\001\002\022\"\n"
+ + "\024compliance_framework\030\005 \001(\tB\004\342A\001\002\022s\n"
+ + "\023parameter_overrides\030\007 \003(\0132P.google.cloud.auditmanager.v1."
+ + "GenerateAuditReportRequest.ParameterOverridesEntryB\004\342A\001\001\022\033\n\r"
+ + "validate_only\030\010 \001(\010B\004\342A\001\001\032k\n"
+ + "\027ParameterOverridesEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022?\n"
+ + "\005value\030\002"
+ + " \001(\01320.google.cloud.auditmanager.v1.ParameterOverrides:\0028\001\"U\n"
+ "\021AuditReportFormat\022#\n"
+ "\037AUDIT_REPORT_FORMAT_UNSPECIFIED\020\000\022\033\n"
+ "\027AUDIT_REPORT_FORMAT_ODF\020\001B\r\n"
@@ -215,17 +244,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n"
+ "page_token\030\003 \001(\tB\004\342A\001\001\"\245\001\n"
+ "&ListResourceEnrollmentStatusesResponse\022\\\n"
- + "\034resource_enrollment_statuses\030\001 \003(\01326."
- + "google.cloud.auditmanager.v1.ResourceEnrollmentStatus\022\035\n"
+ + "\034resource_enrollment_statuses\030\001"
+ + " \003(\01326.google.cloud.auditmanager.v1.ResourceEnrollmentStatus\022\035\n"
+ "\017next_page_token\030\002 \001(\tB\004\342A\001\003\"\216\001\n"
+ "\027ListAuditReportsRequest\022@\n"
- + "\006parent\030\001 \001("
- + "\tB0\342A\001\002\372A)\022\'auditmanager.googleapis.com/AuditReport\022\027\n"
+ + "\006parent\030\001 \001(\tB0\342A\001\002\372A"
+ + ")\022\'auditmanager.googleapis.com/AuditReport\022\027\n"
+ "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n"
+ "page_token\030\003 \001(\tB\004\342A\001\001\"\201\001\n"
+ "\030ListAuditReportsResponse\022F\n\r"
- + "audit_reports\030\001 \003("
- + "\0132).google.cloud.auditmanager.v1.AuditReportB\004\342A\001\003\022\035\n"
+ + "audit_reports\030\001"
+ + " \003(\0132).google.cloud.auditmanager.v1.AuditReportB\004\342A\001\003\022\035\n"
+ "\017next_page_token\030\002 \001(\tB\004\342A\001\003\"W\n"
+ "\025GetAuditReportRequest\022>\n"
+ "\004name\030\001 \001(\tB0\342A\001\002\372A)\n"
@@ -240,8 +269,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \003(\0132%.google.cloud.auditmanager.v1.ControlB\004\342A\001\003\022\035\n"
+ "\017next_page_token\030\002 \001(\tB\004\342A\001\003\"\345\002\n"
+ "\030ReportGenerationProgress\022A\n"
- + "\005state\030\001 \001(\0162,.google."
- + "cloud.auditmanager.v1.OperationStateB\004\342A\001\003\022\034\n"
+ + "\005state\030\001"
+ + " \001(\0162,.google.cloud.auditmanager.v1.OperationStateB\004\342A\001\003\022\034\n"
+ "\016failure_reason\030\002 \001(\tB\004\342A\001\003\022#\n"
+ "\033evaluation_percent_complete\030\024 \001(\001\022*\n"
+ "\"report_generation_percent_complete\030\036 \001(\001\022)\n"
@@ -251,21 +280,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\'auditmanager.googleapis.com/AuditReport\"\213\003\n\n"
+ "Enrollment\022\022\n"
+ "\004name\030\001 \001(\tB\004\342A\001\010\022S\n"
- + "\023destination_details\030\003"
- + " \003(\01320.google.cloud.auditmanager.v1.DestinationDetailsB\004\342A\001\003:\223\002\352A\217\002\n"
- + "&auditmanager.googleapis.com/Enrollment\022@proje"
- + "cts/{project}/locations/{location}/enrollments/{enrollment}\022>folders/{folder}/lo"
- + "cations/{location}/enrollments/{enrollment}\022Jorganizations/{organization}/locati"
- + "ons/{location}/enrollments/{enrollment}*\013enrollments2\n"
+ + "\023destination_details\030\003 \003(\01320.goo"
+ + "gle.cloud.auditmanager.v1.DestinationDetailsB\004\342A\001\003:\223\002\352A\217\002\n"
+ + "&auditmanager.googleapis.com/Enrollment\022@projects/{project}/lo"
+ + "cations/{location}/enrollments/{enrollment}\022>folders/{folder}/locations/{locatio"
+ + "n}/enrollments/{enrollment}\022Jorganizatio"
+ + "ns/{organization}/locations/{location}/enrollments/{enrollment}*\013enrollments2\n"
+ "enrollment\"\251\003\n"
+ "\020AuditScopeReport\022\037\n"
+ "\025scope_report_contents\030\001 \001(\014H\000\022\022\n"
+ "\004name\030\002 \001(\tB\004\342A\001\010:\317\002\352A\313\002\n"
- + ",auditmanager.googleapis.com/AuditScopeReport\022Nproject"
- + "s/{project}/locations/{location}/auditScopeReports/{audit_scope_report}\022Lfolders"
- + "/{folder}/locations/{location}/auditScopeReports/{audit_scope_report}\022Xorganizat"
- + "ions/{organization}/locations/{location}"
- + "/auditScopeReports/{audit_scope_report}*\021auditScopeReports2\020auditScopeReportB\016\n"
+ + ",auditmanager.googleapis.com/AuditScopeReport\022Nprojects/{project}/loca"
+ + "tions/{location}/auditScopeReports/{audit_scope_report}\022Lfolders/{folder}/locati"
+ + "ons/{location}/auditScopeReports/{audit_scope_report}\022Xorganizations/{organizati"
+ + "on}/locations/{location}/auditScopeRepor"
+ + "ts/{audit_scope_report}*\021auditScopeReports2\020auditScopeReportB\016\n"
+ "\014audit_report\"\207\002\n"
+ "\021OperationMetadata\0225\n"
+ "\013create_time\030\001"
@@ -283,23 +312,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \001(\0132(.google.cloud.auditmanager.v1.EnrollmentB\004\342A\001\003\022\030\n"
+ "\010enrolled\030\003 \001(\010B\006\030\001\342A\001\003\022\032\n"
+ "\014display_name\030\004 \001(\tB\004\342A\001\003\022n\n"
- + "\020enrollment_state\030\005 \001(\0162N.google.cloud.auditmanager.v1.ResourceEnrol"
- + "lmentStatus.ResourceEnrollmentStateB\004\342A\001\003\"s\n"
+ + "\020enrollment_state\030\005 \001(\0162N.google.cloud.audit"
+ + "manager.v1.ResourceEnrollmentStatus.ResourceEnrollmentStateB\004\342A\001\003\"s\n"
+ "\027ResourceEnrollmentState\022)\n"
+ "%RESOURCE_ENROLLMENT_STATE_UNSPECIFIED\020\000\022\020\n"
+ "\014NOT_ENROLLED\020\001\022\r\n"
+ "\tINHERITED\020\002\022\014\n"
+ "\010ENROLLED\020\003:\233\003\352A\227\003\n"
- + "4auditmanager.googleapis.com/ResourceEnrollmentStatus\022]folders/{folder}/lo"
- + "cations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}\022_proj"
- + "ects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollm"
- + "ent_status}\022iorganizations/{organization}/locations/{location}/resourceEnrollmen"
- + "tStatuses/{resource_enrollment_status}*\032"
- + "resourceEnrollmentStatuses2\030resourceEnrollmentStatus\"\345\007\n"
+ + "4auditmanager.googleapis.com/ResourceEnrollmentSta"
+ + "tus\022]folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_"
+ + "enrollment_status}\022_projects/{project}/locations/{location}/resourceEnrollmentSt"
+ + "atuses/{resource_enrollment_status}\022iorganizations/{organization}/locations/{loc"
+ + "ation}/resourceEnrollmentStatuses/{resou"
+ + "rce_enrollment_status}*\032resourceEnrollmentStatuses2\030resourceEnrollmentStatus\"\336"
+ + "\t\n"
+ "\013AuditReport\022\022\n"
+ "\004name\030\001 \001(\tB\004\342A\001\010\022I\n"
- + "\016report_summary\030\002 \001(\0132+.googl"
- + "e.cloud.auditmanager.v1.ReportSummaryB\004\342A\001\003\022\032\n"
+ + "\016report_summary\030\002"
+ + " \001(\0132+.google.cloud.auditmanager.v1.ReportSummaryB\004\342A\001\003\022\032\n"
+ "\014operation_id\030\003 \001(\tB\004\342A\001\003\022S\n"
+ "\023destination_details\030\004"
+ " \001(\01320.google.cloud.auditmanager.v1.DestinationDetailsB\004\342A\001\003\022#\n"
@@ -307,23 +337,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005scope\030\006 \001(\tB\004\342A\001\003\0225\n"
+ "\013create_time\030\007"
+ " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022K\n"
- + "\017control_details\030\010"
- + " \003(\0132,.google.cloud.auditmanager.v1.ControlDetailsB\004\342A\001\003\022f\n"
- + "\027report_generation_state\030\t \001(\0162?.google.cloud.audit"
- + "manager.v1.AuditReport.ReportGenerationStateB\004\342A\001\003\022\"\n"
+ + "\017control_details\030\010 \003(\0132,"
+ + ".google.cloud.auditmanager.v1.ControlDetailsB\004\342A\001\003\022f\n"
+ + "\027report_generation_state\030\t "
+ + "\001(\0162?.google.cloud.auditmanager.v1.AuditReport.ReportGenerationStateB\004\342A\001\003\022\"\n"
+ "\024compliance_framework\030\n"
+ " \001(\tB\004\342A\001\003\022\026\n"
- + "\010scope_id\030\013 \001(\tB\004\342A\001\003\"\201\001\n"
+ + "\010scope_id\030\013 \001(\tB\004\342A\001\003\022x\n"
+ + "\036cloud_control_parameter_states\030\020 \003(\0132J.google.cloud.auditmanag"
+ + "er.v1.AuditReport.CloudControlParameterStatesEntryB\004\342A\001\003\032}\n"
+ + " CloudControlParameterStatesEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022H\n"
+ + "\005value\030\002 \001(\013"
+ + "29.google.cloud.auditmanager.v1.CloudControlParameterStates:\0028\001\"\201\001\n"
+ "\025ReportGenerationState\022\'\n"
+ "#REPORT_GENERATION_STATE_UNSPECIFIED\020\000\022\017\n"
+ "\013IN_PROGRESS\020\001\022\r\n"
+ "\tCOMPLETED\020\002\022\n\n"
+ "\006FAILED\020\003\022\023\n"
+ "\017SUMMARY_UNKNOWN\020\004:\237\002\352A\233\002\n"
- + "\'auditmanager.googleapis.com/AuditReport\022Cprojects/{project}/locations"
- + "/{location}/auditReports/{audit_report}\022Afolders/{folder}/locations/{location}/a"
- + "uditReports/{audit_report}\022Morganizations/{organization}/locations/{location}/au"
- + "ditReports/{audit_report}*\014auditReports2\013auditReport\"8\n\r"
+ + "\'auditmanager.googleapis.com/AuditReport\022Cprojects/{project}/locations/{locat"
+ + "ion}/auditReports/{audit_report}\022Afolders/{folder}/locations/{location}/auditRep"
+ + "orts/{audit_report}\022Morganizations/{organization}/locations/{location}/auditRepo"
+ + "rts/{audit_report}*\014auditReports2\013auditReport\"8\n\r"
+ "ControlFamily\022\021\n"
+ "\tfamily_id\030\001 \001(\t\022\024\n"
+ "\014display_name\030\002 \001(\t\"\205\005\n"
@@ -373,20 +409,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013error_count\030\005 \001(\005\"\344\001\n"
+ "\016ControlDetails\0226\n"
+ "\007control\030\001 \001(\0132%.google.cloud.auditmanager.v1.Control\022M\n"
- + "\020compliance_state\030\002 \001(\0162-.google.cl"
- + "oud.auditmanager.v1.ComplianceStateB\004\342A\001\003\022K\n"
- + "\026control_report_summary\030\003 \001(\0132+.goog"
- + "le.cloud.auditmanager.v1.ReportSummary\"\351\001\n"
+ + "\020compliance_state\030\002"
+ + " \001(\0162-.google.cloud.auditmanager.v1.ComplianceStateB\004\342A\001\003\022K\n"
+ + "\026control_report_summary\030\003"
+ + " \001(\0132+.google.cloud.auditmanager.v1.ReportSummary\"\351\001\n"
+ "\032CreateAuditScheduleRequest\022B\n"
- + "\006parent\030\001 \001("
- + "\tB2\342A\001\002\372A+\022)auditmanager.googleapis.com/AuditSchedule\022I\n"
- + "\016audit_schedule\030\002 \001("
- + "\0132+.google.cloud.auditmanager.v1.AuditScheduleB\004\342A\001\002\022\037\n"
+ + "\006parent\030\001 \001(\tB2"
+ + "\342A\001\002\372A+\022)auditmanager.googleapis.com/AuditSchedule\022I\n"
+ + "\016audit_schedule\030\002 \001(\0132+.goo"
+ + "gle.cloud.auditmanager.v1.AuditScheduleB\004\342A\001\002\022\037\n"
+ "\021audit_schedule_id\030\003 \001(\tB\004\342A\001\002\022\033\n\r"
+ "validate_only\030\004 \001(\010B\004\342A\001\001\"\273\001\n"
+ "\032UpdateAuditScheduleRequest\022I\n"
- + "\016audit_schedule\030\001"
- + " \001(\0132+.google.cloud.auditmanager.v1.AuditScheduleB\004\342A\001\002\0225\n"
+ + "\016audit_schedule\030\001 \001"
+ + "(\0132+.google.cloud.auditmanager.v1.AuditScheduleB\004\342A\001\002\0225\n"
+ "\013update_mask\030\002"
+ " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022\033\n\r"
+ "validate_only\030\003 \001(\010B\004\342A\001\001\"[\n"
@@ -394,26 +430,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB2\342A\001\002\372A+\n"
+ ")auditmanager.googleapis.com/AuditSchedule\"\222\001\n"
+ "\031ListAuditSchedulesRequest\022B\n"
- + "\006parent\030\001 \001("
- + "\tB2\342A\001\002\372A+\022)auditmanager.googleapis.com/AuditSchedule\022\027\n"
+ + "\006parent\030\001 \001(\tB2\342A"
+ + "\001\002\372A+\022)auditmanager.googleapis.com/AuditSchedule\022\027\n"
+ "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n"
+ "page_token\030\003 \001(\tB\004\342A\001\001\"\220\001\n"
+ "\032ListAuditSchedulesResponse\022D\n"
- + "\017audit_schedules\030\001 \003"
- + "(\0132+.google.cloud.auditmanager.v1.AuditSchedule\022\027\n"
+ + "\017audit_schedules\030\001 \003(\0132+.go"
+ + "ogle.cloud.auditmanager.v1.AuditSchedule\022\027\n"
+ "\017next_page_token\030\002 \001(\t\022\023\n"
- + "\013unreachable\030\003 \003(\t\"\361\007\n\r"
+ + "\013unreachable\030\003 \003(\t\"\306\t\n\r"
+ "AuditSchedule\022\022\n"
+ "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n"
+ "\014display_name\030\002 \001(\tB\004\342A\001\001\022\025\n"
+ "\007gcs_uri\030\003 \001(\tB\004\342A\001\002\022\"\n"
+ "\024compliance_framework\030\004 \001(\tB\004\342A\001\002\022Z\n\r"
- + "report_format\030\005 \001("
- + "\0162=.google.cloud.auditmanager.v1.AuditSchedule.AuditReportFormatB\004\342A\001\002\022K\n"
+ + "report_format\030\005 \001(\0162=.goo"
+ + "gle.cloud.auditmanager.v1.AuditSchedule.AuditReportFormatB\004\342A\001\002\022K\n"
+ "\017schedule_config\030\006"
+ " \001(\0132,.google.cloud.auditmanager.v1.ScheduleConfigB\004\342A\001\002\022@\n"
- + "\005state\030\007 \001"
- + "(\0162+.google.cloud.auditmanager.v1.ScheduleStateB\004\342A\001\001\0225\n"
+ + "\005state\030\007 \001(\0162+.go"
+ + "ogle.cloud.auditmanager.v1.ScheduleStateB\004\342A\001\001\0225\n"
+ "\013create_time\030\010"
+ " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n"
+ "\013update_time\030\t"
@@ -423,14 +459,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021last_trigger_time\030\013"
+ " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\033\n\r"
+ "error_message\030\r"
- + " \001(\tB\004\342A\001\003\"U\n"
+ + " \001(\tB\004\342A\001\003\022f\n"
+ + "\023parameter_overrides\030\016 \003(\0132C.google.cloud.auditmanager"
+ + ".v1.AuditSchedule.ParameterOverridesEntryB\004\342A\001\001\032k\n"
+ + "\027ParameterOverridesEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022?\n"
+ + "\005value\030\002"
+ + " \001(\01320.google.cloud.auditmanager.v1.ParameterOverrides:\0028\001\"U\n"
+ "\021AuditReportFormat\022#\n"
+ "\037AUDIT_REPORT_FORMAT_UNSPECIFIED\020\000\022\033\n"
+ "\027AUDIT_REPORT_FORMAT_ODF\020\001:\261\002\352A\255\002\n"
- + ")auditmanager.googleapis.com/AuditSchedule\022Gprojects/{project}/locations/{l"
- + "ocation}/auditSchedules/{audit_schedule}\022Efolders/{folder}/locations/{location}/"
- + "auditSchedules/{audit_schedule}\022Qorganizations/{organization}/locations/{locatio"
- + "n}/auditSchedules/{audit_schedule}*\016auditSchedules2\r"
+ + ")auditmanager.googleapis.com/AuditSchedule\022Gprojects/{project}/locati"
+ + "ons/{location}/auditSchedules/{audit_schedule}\022Efolders/{folder}/locations/{loca"
+ + "tion}/auditSchedules/{audit_schedule}\022Qorganizations/{organization}/locations/{l"
+ + "ocation}/auditSchedules/{audit_schedule}*\016auditSchedules2\r"
+ "auditSchedule\"\315\002\n"
+ "\016ScheduleConfig\0224\n\n"
+ "start_time\030\001 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\002\0222\n"
@@ -472,98 +514,100 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\024SCHEDULE_STATE_ERROR\020\005\022\032\n"
+ "\026SCHEDULE_STATE_DELETED\020\0062\332!\n"
+ "\014AuditManager\022\204\003\n"
- + "\023CreateAuditSchedule\0228.google.cloud.auditmanager.v1.CreateAuditSchedu"
- + "leRequest\032+.google.cloud.auditmanager.v1"
- + ".AuditSchedule\"\205\002\332A\'parent,audit_schedul"
- + "e,audit_schedule_id\202\323\344\223\002\324\001\"2/v1/{parent="
- + "projects/*/locations/*}/auditSchedules:\016audit_scheduleZC\"1/v1/{parent=folders/*/"
- + "locations/*}/auditSchedules:\016audit_scheduleZI\"7/v1/{parent=organizations/*/locat"
- + "ions/*}/auditSchedules:\016audit_schedule\022\244\003\n"
- + "\023UpdateAuditSchedule\0228.google.cloud.auditmanager.v1.UpdateAuditScheduleRequest"
- + "\032+.google.cloud.auditmanager.v1.AuditSch"
- + "edule\"\245\002\332A\032audit_schedule,update_mask\202\323\344"
- + "\223\002\201\0022A/v1/{audit_schedule.name=projects/"
- + "*/locations/*/auditSchedules/*}:\016audit_scheduleZR2@/v1/{audit_schedule.name=fold"
- + "ers/*/locations/*/auditSchedules/*}:\016audit_scheduleZX2F/v1/{audit_schedule.name="
- + "organizations/*/locations/*/auditSchedules/*}:\016audit_schedule\022\253\002\n"
- + "\020GetAuditSchedule\0225.google.cloud.auditmanager.v1.GetAud"
- + "itScheduleRequest\032+.google.cloud.auditma"
- + "nager.v1.AuditSchedule\"\262\001\332A\004name\202\323\344\223\002\244\001\022"
- + "2/v1/{name=projects/*/locations/*/auditSchedules/*}Z3\0221/v1/{name=folders/*/locat"
- + "ions/*/auditSchedules/*}Z9\0227/v1/{name=or"
- + "ganizations/*/locations/*/auditSchedules/*}\022\276\002\n"
- + "\022ListAuditSchedules\0227.google.cloud.auditmanager.v1.ListAuditSchedulesRequ"
- + "est\0328.google.cloud.auditmanager.v1.ListA"
- + "uditSchedulesResponse\"\264\001\332A\006parent\202\323\344\223\002\244\001"
- + "\0222/v1/{parent=projects/*/locations/*}/auditSchedulesZ3\0221/v1/{parent=folders/*/lo"
- + "cations/*}/auditSchedulesZ9\0227/v1/{parent"
- + "=organizations/*/locations/*}/auditSchedules\022\270\002\n"
- + "\016EnrollResource\0223.google.cloud.auditmanager.v1.EnrollResourceRequest\032(.g"
- + "oogle.cloud.auditmanager.v1.Enrollment\"\306"
- + "\001\332A\022scope,destinations\202\323\344\223\002\252\001\"0/v1/{scop"
- + "e=folders/*/locations/*}:enrollResource:\001*Z6\"1/v1/{scope=projects/*/locations/*}"
- + ":enrollResource:\001*Z;\"6/v1/{scope=organiz"
- + "ations/*/locations/*}:enrollResource:\001*\022\213\003\n"
- + "\030GenerateAuditScopeReport\022=.google.cloud.auditmanager.v1.GenerateAuditScopeRe"
- + "portRequest\032..google.cloud.auditmanager."
- + "v1.AuditScopeReport\"\377\001\332A\'scope,complianc"
- + "e_standard,report_format\202\323\344\223\002\316\001\"/v1/{name=projects/*/locations/*"
- + "/resourceEnrollmentStatuses/*}Z?\022=/v1/{name=folders/*/locations/*/resourceEnroll"
- + "mentStatuses/*}ZE\022C/v1/{name=organizatio"
- + "ns/*/locations/*/resourceEnrollmentStatuses/*}\022\304\002\n"
- + "\036ListResourceEnrollmentStatuses\022C.google.cloud.auditmanager.v1.ListRes"
- + "ourceEnrollmentStatusesRequest\032D.google.cloud.auditmanager.v1.ListResourceEnroll"
- + "mentStatusesResponse\"\226\001\332A\006parent\202\323\344\223\002\206\001\022"
- + "C/v1/{parent=organizations/*/locations/*}/resourceEnrollmentStatusesZ?\022=/v1/{par"
- + "ent=folders/*/locations/*}/resourceEnrollmentStatuses\022\276\002\n"
- + "\014ListControls\0221.google.cloud.auditmanager.v1.ListControlsReques"
- + "t\0322.google.cloud.auditmanager.v1.ListCon"
- + "trolsResponse\"\306\001\332A\006parent\202\323\344\223\002\266\001\022=/v1/{p"
- + "arent=organizations/*/locations/*/standards/*}/controlsZ9\0227/v1/{parent=folders/*"
- + "/locations/*/standards/*}/controlsZ:\0228/v1/{parent=projects/*/locations/*/standar"
- + "ds/*}/controls\032\202\001\312A\033auditmanager.googlea"
- + "pis.com\322Aahttps://www.googleapis.com/aut"
- + "h/cloud-auditmanager,https://www.googleapis.com/auth/cloud-platformB\222\006\n"
- + " com.google.cloud.auditmanager.v1B\013V1mainProtoP\001Z"
- + "Dcloud.google.com/go/auditmanager/apiv1/"
- + "auditmanagerpb;auditmanagerpb\252\002\034Google.C"
- + "loud.AuditManager.V1\312\002\034Google\\Cloud\\Audi"
- + "tManager\\V1\352\002\037Google::Cloud::AuditManager::V1\352AS\n"
- + "*auditmanager.googleapis.com/Fo"
- + "lderLocation\022%folders/{folder}/locations/{location}\352Ae\n"
- + "0auditmanager.googleapis."
- + "com/OrganizationLocation\0221organizations/{organization}/locations/{location}\352A\350\001\n"
- + "$auditmanager.googleapis.com/Standard\022/v1/{name=projects/*/locat"
+ + "ions/*/resourceEnrollmentStatuses/*}Z?\022=/v1/{name=folders/*/locations/*/resource"
+ + "EnrollmentStatuses/*}ZE\022C/v1/{name=organ"
+ + "izations/*/locations/*/resourceEnrollmentStatuses/*}\022\304\002\n"
+ + "\036ListResourceEnrollmentStatuses\022C.google.cloud.auditmanager.v1.L"
+ + "istResourceEnrollmentStatusesRequest\032D.google.cloud.auditmanager.v1.ListResource"
+ + "EnrollmentStatusesResponse\"\226\001\332A\006parent\202\323"
+ + "\344\223\002\206\001\022C/v1/{parent=organizations/*/locat"
+ + "ions/*}/resourceEnrollmentStatusesZ?\022=/v"
+ + "1/{parent=folders/*/locations/*}/resourceEnrollmentStatuses\022\276\002\n"
+ + "\014ListControls\0221.google.cloud.auditmanager.v1.ListControls"
+ + "Request\0322.google.cloud.auditmanager.v1.L"
+ + "istControlsResponse\"\306\001\332A\006parent\202\323\344\223\002\266\001\022="
+ + "/v1/{parent=organizations/*/locations/*/standards/*}/controlsZ9\0227/v1/{parent=fol"
+ + "ders/*/locations/*/standards/*}/controlsZ:\0228/v1/{parent=projects/*/locations/*/s"
+ + "tandards/*}/controls\032\202\001\312A\033auditmanager.g"
+ + "oogleapis.com\322Aahttps://www.googleapis.c"
+ + "om/auth/cloud-auditmanager,https://www.googleapis.com/auth/cloud-platformB\222\006\n"
+ + " com.google.cloud.auditmanager.v1B\013V1mainPr"
+ + "otoP\001ZDcloud.google.com/go/auditmanager/"
+ + "apiv1/auditmanagerpb;auditmanagerpb\252\002\034Go"
+ + "ogle.Cloud.AuditManager.V1\312\002\034Google\\Clou"
+ + "d\\AuditManager\\V1\352\002\037Google::Cloud::AuditManager::V1\352AS\n"
+ + "*auditmanager.googleapis."
+ + "com/FolderLocation\022%folders/{folder}/locations/{location}\352Ae\n"
+ + "0auditmanager.googleapis.com/OrganizationLocation\0221organiza"
+ + "tions/{organization}/locations/{location}\352A\350\001\n"
+ + "$auditmanager.googleapis.com/Standard\022 parameter_overrides = 7
+ [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
@@ -486,6 +494,13 @@ message GenerateAuditReportRequest {
// `NIST_800_53`.
string compliance_framework = 5 [(google.api.field_behavior) = REQUIRED];
+ // Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ // at execution time. For example,
+ // `{"organizations/123/locations/global/cloudControls/control-1":
+ // {parameters: [...]}}`
+ map parameter_overrides = 7
+ [(google.api.field_behavior) = OPTIONAL];
+
// Optional. If `true`, only validates the request and does not generate the
// audit report. This executes standard request validation (such as schema,
// framework existence, scope, and IAM checks) and skips the apply phase.
@@ -905,6 +920,11 @@ message AuditReport {
// Output only. Project number, folder ID, or organization ID that the audit
// report was generated for.
string scope_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Parameter values provided by the user and values for
+ // tunable parameters, stored in the DB, keyed by control name.
+ map cloud_control_parameter_states = 16
+ [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Regulatory family of the control.
@@ -1256,6 +1276,13 @@ message AuditSchedule {
// Output only. Describes the error if the schedule is in an error state.
string error_message = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Maps dynamic parameter overrides by Cloud Control resource name
+ // at execution time. For example,
+ // `{"organizations/123/locations/global/cloudControls/control-1":
+ // {parameters: [...]}}`
+ map parameter_overrides = 14
+ [(google.api.field_behavior) = OPTIONAL];
}
// Timing and frequency parameters for recurring audit runs.
diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/parameters.proto b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/parameters.proto
new file mode 100644
index 000000000000..7506818d6bc1
--- /dev/null
+++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/parameters.proto
@@ -0,0 +1,89 @@
+// 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.auditmanager.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+
+option csharp_namespace = "Google.Cloud.AuditManager.V1";
+option go_package = "cloud.google.com/go/auditmanager/apiv1/auditmanagerpb;auditmanagerpb";
+option java_multiple_files = true;
+option java_outer_classname = "ParametersProto";
+option java_package = "com.google.cloud.auditmanager.v1";
+option php_namespace = "Google\\Cloud\\AuditManager\\V1";
+option ruby_package = "Google::Cloud::AuditManager::V1";
+
+// Parameters are key-value pairs that let you provide your custom location
+// requirements, environment requirements, or other settings that are
+// relevant to the cloud control.
+message Parameter {
+ // Required. The name or key of the parameter.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The value of the parameter.
+ ParamValue parameter_value = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// A list of strings for the parameter value.
+message StringList {
+ // Required. The strings in the list.
+ repeated string values = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The possible parameter value types.
+message ParamValue {
+ // The list of possible parameter value types.
+ oneof kind {
+ // Optional. A string value.
+ string string_value = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A boolean value.
+ bool bool_value = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A repeated string.
+ StringList string_list_value = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A double value.
+ double number_value = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Sub-parameter values.
+ Parameter oneof_value = 7 [(google.api.field_behavior) = OPTIONAL];
+ }
+}
+
+// Wrapper message to associate a list of CSC internal parameter overrides with
+// a control name.
+message ParameterOverrides {
+ // The list of parameter overrides.
+ repeated Parameter parameters = 1;
+}
+
+// State of a parameter for a cloud control.
+message ParameterState {
+ // Output only. The parameter key and value.
+ Parameter parameter = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Whether this parameter was overridden by the user.
+ bool is_overridden = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Collection of parameter states for a cloud control.
+message CloudControlParameterStates {
+ // Output only. The parameter states for the cloud control.
+ repeated ParameterState parameter_states = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/AsyncGenerateAuditReport.java b/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/AsyncGenerateAuditReport.java
index 47c3847c9a81..2488d412e5c7 100644
--- a/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/AsyncGenerateAuditReport.java
+++ b/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/AsyncGenerateAuditReport.java
@@ -20,7 +20,9 @@
import com.google.api.core.ApiFuture;
import com.google.cloud.auditmanager.v1.AuditManagerClient;
import com.google.cloud.auditmanager.v1.GenerateAuditReportRequest;
+import com.google.cloud.auditmanager.v1.ParameterOverrides;
import com.google.longrunning.Operation;
+import java.util.HashMap;
public class AsyncGenerateAuditReport {
@@ -40,6 +42,7 @@ public static void asyncGenerateAuditReport() throws Exception {
.setScope("scope109264468")
.setComplianceStandard("complianceStandard-1534269448")
.setComplianceFramework("complianceFramework-1808314333")
+ .putAllParameterOverrides(new HashMap())
.setValidateOnly(true)
.build();
ApiFuture future =
diff --git a/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/AsyncGenerateAuditReportLRO.java b/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/AsyncGenerateAuditReportLRO.java
index d95f95260294..35a76b54cbd5 100644
--- a/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/AsyncGenerateAuditReportLRO.java
+++ b/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/AsyncGenerateAuditReportLRO.java
@@ -22,6 +22,8 @@
import com.google.cloud.auditmanager.v1.AuditReport;
import com.google.cloud.auditmanager.v1.GenerateAuditReportRequest;
import com.google.cloud.auditmanager.v1.OperationMetadata;
+import com.google.cloud.auditmanager.v1.ParameterOverrides;
+import java.util.HashMap;
public class AsyncGenerateAuditReportLRO {
@@ -41,6 +43,7 @@ public static void asyncGenerateAuditReportLRO() throws Exception {
.setScope("scope109264468")
.setComplianceStandard("complianceStandard-1534269448")
.setComplianceFramework("complianceFramework-1808314333")
+ .putAllParameterOverrides(new HashMap())
.setValidateOnly(true)
.build();
OperationFuture future =
diff --git a/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/SyncGenerateAuditReport.java b/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/SyncGenerateAuditReport.java
index ee6fd064c858..b5d1a8653e62 100644
--- a/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/SyncGenerateAuditReport.java
+++ b/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditreport/SyncGenerateAuditReport.java
@@ -20,6 +20,8 @@
import com.google.cloud.auditmanager.v1.AuditManagerClient;
import com.google.cloud.auditmanager.v1.AuditReport;
import com.google.cloud.auditmanager.v1.GenerateAuditReportRequest;
+import com.google.cloud.auditmanager.v1.ParameterOverrides;
+import java.util.HashMap;
public class SyncGenerateAuditReport {
@@ -39,6 +41,7 @@ public static void syncGenerateAuditReport() throws Exception {
.setScope("scope109264468")
.setComplianceStandard("complianceStandard-1534269448")
.setComplianceFramework("complianceFramework-1808314333")
+ .putAllParameterOverrides(new HashMap())
.setValidateOnly(true)
.build();
AuditReport response = auditManagerClient.generateAuditReportAsync(request).get();
diff --git a/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditscopereport/AsyncGenerateAuditScopeReport.java b/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditscopereport/AsyncGenerateAuditScopeReport.java
index 0fef7132fad4..04107040e721 100644
--- a/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditscopereport/AsyncGenerateAuditScopeReport.java
+++ b/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditscopereport/AsyncGenerateAuditScopeReport.java
@@ -21,6 +21,8 @@
import com.google.cloud.auditmanager.v1.AuditManagerClient;
import com.google.cloud.auditmanager.v1.AuditScopeReport;
import com.google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest;
+import com.google.cloud.auditmanager.v1.ParameterOverrides;
+import java.util.HashMap;
public class AsyncGenerateAuditScopeReport {
@@ -41,6 +43,7 @@ public static void asyncGenerateAuditScopeReport() throws Exception {
.setComplianceStandard("complianceStandard-1534269448")
.setComplianceFramework("complianceFramework-1808314333")
.setValidateOnly(true)
+ .putAllParameterOverrides(new HashMap())
.build();
ApiFuture future =
auditManagerClient.generateAuditScopeReportCallable().futureCall(request);
diff --git a/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditscopereport/SyncGenerateAuditScopeReport.java b/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditscopereport/SyncGenerateAuditScopeReport.java
index c957d0a23aee..6de21e2a362f 100644
--- a/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditscopereport/SyncGenerateAuditScopeReport.java
+++ b/java-auditmanager/samples/snippets/generated/com/google/cloud/auditmanager/v1/auditmanager/generateauditscopereport/SyncGenerateAuditScopeReport.java
@@ -20,6 +20,8 @@
import com.google.cloud.auditmanager.v1.AuditManagerClient;
import com.google.cloud.auditmanager.v1.AuditScopeReport;
import com.google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest;
+import com.google.cloud.auditmanager.v1.ParameterOverrides;
+import java.util.HashMap;
public class SyncGenerateAuditScopeReport {
@@ -40,6 +42,7 @@ public static void syncGenerateAuditScopeReport() throws Exception {
.setComplianceStandard("complianceStandard-1534269448")
.setComplianceFramework("complianceFramework-1808314333")
.setValidateOnly(true)
+ .putAllParameterOverrides(new HashMap())
.build();
AuditScopeReport response = auditManagerClient.generateAuditScopeReport(request);
}
diff --git a/java-backstory/README.md b/java-backstory/README.md
index 401560e4054e..e63317ecb857 100644
--- a/java-backstory/README.md
+++ b/java-backstory/README.md
@@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-backstory
- 0.8.0
+ 0.9.0
```
@@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-backstory'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-backstory:0.8.0'
+implementation 'com.google.cloud:google-cloud-backstory:0.9.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.8.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.9.0"
```
## Authentication
@@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backstory/latest/overview
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backstory.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/0.8.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/0.9.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-backupdr/README.md b/java-backupdr/README.md
index a2852df3018a..b611906e5b48 100644
--- a/java-backupdr/README.md
+++ b/java-backupdr/README.md
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-backupdr
- 0.59.0
+ 0.60.0
```
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-backupdr'
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-backupdr:0.59.0'
+implementation 'com.google.cloud:google-cloud-backupdr:0.60.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.59.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.60.0"
```
## Authentication
@@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.59.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.60.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java
index 51eb7b5e1cdd..4b5f196f90c6 100644
--- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java
+++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java
@@ -803,319 +803,5720 @@
*
*
*
- * ListLocations
- * Lists information about the supported locations for this service.
+ * CreateAutoProtectionPolicy
+ * Creates a new AutoProtectionPolicy in a given project and location.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
- * listLocations(ListLocationsRequest request)
+ *
createAutoProtectionPolicyAsync(CreateAutoProtectionPolicyRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createAutoProtectionPolicyAsync(LocationName parent, AutoProtectionPolicy autoProtectionPolicy, String autoProtectionPolicyId)
+ *
createAutoProtectionPolicyAsync(String parent, AutoProtectionPolicy autoProtectionPolicy, String autoProtectionPolicyId)
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
- * listLocationsPagedCallable()
- *
listLocationsCallable()
+ *
createAutoProtectionPolicyOperationCallable()
+ *
createAutoProtectionPolicyCallable()
*
*
*
*
- * GetLocation
- * Gets information about a location.
+ * ListAutoProtectionPolicies
+ * Lists AutoProtectionPolicies for a given project and location.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
- * getLocation(GetLocationRequest request)
+ *
listAutoProtectionPolicies(ListAutoProtectionPoliciesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listAutoProtectionPolicies(LocationName parent)
+ *
listAutoProtectionPolicies(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.
*
- * getLocationCallable()
+ *
listAutoProtectionPoliciesPagedCallable()
+ *
listAutoProtectionPoliciesCallable()
*
*
*
*
- * SetIamPolicy
- * Sets the access control policy on the specified resource. Replacesany existing policy.
- *
Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ * GetAutoProtectionPolicy
+ * Gets details of a single AutoProtectionPolicy.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
- * setIamPolicy(SetIamPolicyRequest request)
+ *
getAutoProtectionPolicy(GetAutoProtectionPolicyRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getAutoProtectionPolicy(AutoProtectionPolicyName name)
+ *
getAutoProtectionPolicy(String name)
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
- * setIamPolicyCallable()
+ *
getAutoProtectionPolicyCallable()
*
*
*
*
- * GetIamPolicy
- * Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.
+ * UpdateAutoProtectionPolicy
+ * Updates the parameters of a single AutoProtectionPolicy.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
- * getIamPolicy(GetIamPolicyRequest request)
+ *
updateAutoProtectionPolicyAsync(UpdateAutoProtectionPolicyRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateAutoProtectionPolicyAsync(AutoProtectionPolicy autoProtectionPolicy, FieldMask updateMask)
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
- * getIamPolicyCallable()
+ *
updateAutoProtectionPolicyOperationCallable()
+ *
updateAutoProtectionPolicyCallable()
*
*
*
*
- * TestIamPermissions
- * Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error.
- *
Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.
+ * DeleteAutoProtectionPolicy
+ * Deletes a single AutoProtectionPolicy.
*
* Request object method variants only take one parameter, a request object, which must be constructed before the call.
*
- * testIamPermissions(TestIamPermissionsRequest request)
+ *
deleteAutoProtectionPolicyAsync(DeleteAutoProtectionPolicyRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteAutoProtectionPolicyAsync(AutoProtectionPolicyName name)
+ *
deleteAutoProtectionPolicyAsync(String name)
*
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*
- * testIamPermissionsCallable()
+ *
deleteAutoProtectionPolicyOperationCallable()
+ *
deleteAutoProtectionPolicyCallable()
*
*
*
- *
- *
- * See the individual methods for example code.
- *
- *
Many parameters require resource names to be formatted in a particular way. To assist with
- * these names, this class includes a format method for each type of name, and additionally a parse
- * method to extract the individual identifiers contained within names that are returned.
- *
- *
This class can be customized by passing in a custom instance of BackupDRSettings to create().
- * For example:
- *
- *
To customize credentials:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * BackupDRSettings backupDRSettings =
- * BackupDRSettings.newBuilder()
- * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- * .build();
- * BackupDRClient backupDRClient = BackupDRClient.create(backupDRSettings);
- * }
- *
- * To customize the endpoint:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * BackupDRSettings backupDRSettings =
- * BackupDRSettings.newBuilder().setEndpoint(myEndpoint).build();
- * BackupDRClient backupDRClient = BackupDRClient.create(backupDRSettings);
- * }
- *
- * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
- * the wire:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * BackupDRSettings backupDRSettings = BackupDRSettings.newHttpJsonBuilder().build();
- * BackupDRClient backupDRClient = BackupDRClient.create(backupDRSettings);
- * }
- *
- * Please refer to the GitHub repository's samples for more quickstart code snippets.
- */
-@NullMarked
-@Generated("by gapic-generator-java")
-public class BackupDRClient implements BackgroundResource {
- private final @Nullable BackupDRSettings settings;
- private final BackupDRStub stub;
- private final OperationsClient httpJsonOperationsClient;
- private final com.google.longrunning.OperationsClient operationsClient;
-
- /** Constructs an instance of BackupDRClient with default settings. */
- public static final BackupDRClient create() throws IOException {
- return create(BackupDRSettings.newBuilder().build());
- }
-
- /**
- * Constructs an instance of BackupDRClient, using the given settings. The channels are created
- * based on the settings passed in, or defaults for any settings that are not set.
- */
- public static final BackupDRClient create(BackupDRSettings settings) throws IOException {
- return new BackupDRClient(settings);
- }
-
- /**
- * Constructs an instance of BackupDRClient, using the given stub for making calls. This is for
- * advanced usage - prefer using create(BackupDRSettings).
- */
- public static final BackupDRClient create(BackupDRStub stub) {
- return new BackupDRClient(stub);
- }
-
- /**
- * Constructs an instance of BackupDRClient, using the given settings. This is protected so that
- * it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
- */
- protected BackupDRClient(BackupDRSettings settings) throws IOException {
- this.settings = settings;
- this.stub = ((BackupDRStubSettings) settings.getStubSettings()).createStub();
- this.operationsClient =
- com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
- this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
- }
-
- protected BackupDRClient(BackupDRStub stub) {
- this.settings = null;
- this.stub = stub;
- this.operationsClient =
- com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
- this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
- }
-
- public final @Nullable BackupDRSettings getSettings() {
- return settings;
- }
-
- public BackupDRStub getStub() {
- return stub;
- }
-
- /**
- * Returns the OperationsClient that can be used to query the status of a long-running operation
- * returned by another API method call.
- */
- public final com.google.longrunning.OperationsClient getOperationsClient() {
- return operationsClient;
- }
-
- /**
- * Returns the OperationsClient that can be used to query the status of a long-running operation
- * returned by another API method call.
- */
- @BetaApi
- public final OperationsClient getHttpJsonOperationsClient() {
- return httpJsonOperationsClient;
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists ManagementServers in a given project and location.
- *
- *
Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * for (ManagementServer element : backupDRClient.listManagementServers(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. The project and location for which to retrieve management servers
- * information, in the format 'projects/{project_id}/locations/{location}'. In Cloud BackupDR,
- * locations map to Google Cloud regions, for example
- *
- * - *us-central1**. To retrieve management servers for all locations, use "-"
- * for the '{location}' value.
- *
- *
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListManagementServersPagedResponse listManagementServers(
- @Nullable LocationName parent) {
- ListManagementServersRequest request =
- ListManagementServersRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
- .build();
- return listManagementServers(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists ManagementServers in a given project and location.
- *
- * Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (ManagementServer element : backupDRClient.listManagementServers(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. The project and location for which to retrieve management servers
- * information, in the format 'projects/{project_id}/locations/{location}'. In Cloud BackupDR,
- * locations map to Google Cloud regions, for example
- *
- * - *us-central1**. To retrieve management servers for all locations, use "-"
- * for the '{location}' value.
- *
- *
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListManagementServersPagedResponse listManagementServers(String parent) {
- ListManagementServersRequest request =
- ListManagementServersRequest.newBuilder().setParent(parent).build();
- return listManagementServers(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists ManagementServers in a given project and location.
- *
- * Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
- * ListManagementServersRequest request =
- * ListManagementServersRequest.newBuilder()
+ *
+ * CreateAutoProtectionPolicyBinding
+ * Creates a new AutoProtectionPolicyBinding in a given project and location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createAutoProtectionPolicyBindingAsync(CreateAutoProtectionPolicyBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createAutoProtectionPolicyBindingAsync(AutoProtectionPolicyName parent, AutoProtectionPolicyBinding autoProtectionPolicyBinding, String autoProtectionPolicyBindingId)
+ *
createAutoProtectionPolicyBindingAsync(String parent, AutoProtectionPolicyBinding autoProtectionPolicyBinding, String autoProtectionPolicyBindingId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createAutoProtectionPolicyBindingOperationCallable()
+ *
createAutoProtectionPolicyBindingCallable()
+ *
+ *
+ *
+ *
+ * GetAutoProtectionPolicyBinding
+ * Returns the auto protection policy binding read from the CCFE tables.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getAutoProtectionPolicyBinding(GetAutoProtectionPolicyBindingRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getAutoProtectionPolicyBinding(AutoProtectionPolicyBindingName name)
+ *
getAutoProtectionPolicyBinding(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getAutoProtectionPolicyBindingCallable()
+ *
+ *
+ *
+ *
+ * ListAutoProtectionPolicyBindings
+ * Returns the auto protection policy bindings read from the CCFE tables.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listAutoProtectionPolicyBindings(ListAutoProtectionPolicyBindingsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listAutoProtectionPolicyBindings(AutoProtectionPolicyName parent)
+ *
listAutoProtectionPolicyBindings(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.
+ *
+ * listAutoProtectionPolicyBindingsPagedCallable()
+ *
listAutoProtectionPolicyBindingsCallable()
+ *
+ *
+ *
+ *
+ * ListAppliedAutoProtectionPolicies
+ * Lists AppliedAutoProtectionPolicies in a given project and location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listAppliedAutoProtectionPolicies(ListAppliedAutoProtectionPoliciesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listAppliedAutoProtectionPolicies(LocationName parent)
+ *
listAppliedAutoProtectionPolicies(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.
+ *
+ * listAppliedAutoProtectionPoliciesPagedCallable()
+ *
listAppliedAutoProtectionPoliciesCallable()
+ *
+ *
+ *
+ *
+ * InitiateDeleteAutoProtectionPolicyBinding
+ * InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * initiateDeleteAutoProtectionPolicyBindingAsync(InitiateDeleteAutoProtectionPolicyBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * initiateDeleteAutoProtectionPolicyBindingAsync(AutoProtectionPolicyBindingName name)
+ *
initiateDeleteAutoProtectionPolicyBindingAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * initiateDeleteAutoProtectionPolicyBindingOperationCallable()
+ *
initiateDeleteAutoProtectionPolicyBindingCallable()
+ *
+ *
+ *
+ *
+ * ListBindingMatchingResources
+ * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listBindingMatchingResources(ListBindingMatchingResourcesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listBindingMatchingResources(AutoProtectionPolicyBindingName parent)
+ *
listBindingMatchingResources(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.
+ *
+ * listBindingMatchingResourcesPagedCallable()
+ *
listBindingMatchingResourcesCallable()
+ *
+ *
+ *
+ *
+ * CreateRestoreTemplate
+ * Creates a new RestoreTemplate in a given project and location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createRestoreTemplateAsync(CreateRestoreTemplateRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createRestoreTemplateAsync(LocationName parent, RestoreTemplate restoreTemplate, String restoreTemplateId)
+ *
createRestoreTemplateAsync(String parent, RestoreTemplate restoreTemplate, String restoreTemplateId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createRestoreTemplateOperationCallable()
+ *
createRestoreTemplateCallable()
+ *
+ *
+ *
+ *
+ * GetRestoreTemplate
+ * Gets details of a RestoreTemplate.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getRestoreTemplate(GetRestoreTemplateRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getRestoreTemplate(RestoreTemplateName name)
+ *
getRestoreTemplate(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getRestoreTemplateCallable()
+ *
+ *
+ *
+ *
+ * ListRestoreTemplates
+ * Lists RestoreTemplates in a given project and location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listRestoreTemplates(ListRestoreTemplatesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listRestoreTemplates(LocationName parent)
+ *
listRestoreTemplates(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.
+ *
+ * listRestoreTemplatesPagedCallable()
+ *
listRestoreTemplatesCallable()
+ *
+ *
+ *
+ *
+ * UpdateRestoreTemplate
+ * Updates the settings of a RestoreTemplate.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateRestoreTemplateAsync(UpdateRestoreTemplateRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateRestoreTemplateAsync(RestoreTemplate restoreTemplate, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateRestoreTemplateOperationCallable()
+ *
updateRestoreTemplateCallable()
+ *
+ *
+ *
+ *
+ * DeleteRestoreTemplate
+ * Deletes a RestoreTemplate.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteRestoreTemplateAsync(DeleteRestoreTemplateRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteRestoreTemplateAsync(RestoreTemplateName name)
+ *
deleteRestoreTemplateAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteRestoreTemplateOperationCallable()
+ *
deleteRestoreTemplateCallable()
+ *
+ *
+ *
+ *
+ * RunRestoreTemplate
+ * Runs a RestoreTemplate.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * runRestoreTemplateAsync(RunRestoreTemplateRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * runRestoreTemplateAsync(RestoreTemplateName name)
+ *
runRestoreTemplateAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * runRestoreTemplateOperationCallable()
+ *
runRestoreTemplateCallable()
+ *
+ *
+ *
+ *
+ * GetRestoreTemplateExecution
+ * Gets details of a RestoreTemplateExecution.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getRestoreTemplateExecution(GetRestoreTemplateExecutionRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getRestoreTemplateExecution(RestoreTemplateExecutionName name)
+ *
getRestoreTemplateExecution(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getRestoreTemplateExecutionCallable()
+ *
+ *
+ *
+ *
+ * ListRestoreTemplateExecutions
+ * Lists RestoreTemplateExecutions in a given project, location and restore template.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listRestoreTemplateExecutions(ListRestoreTemplateExecutionsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listRestoreTemplateExecutions(RestoreTemplateName parent)
+ *
listRestoreTemplateExecutions(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.
+ *
+ * listRestoreTemplateExecutionsPagedCallable()
+ *
listRestoreTemplateExecutionsCallable()
+ *
+ *
+ *
+ *
+ * TriggerRestoreCleanup
+ * Triggers cleanup of restored resources created during execution.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * triggerRestoreCleanupAsync(TriggerRestoreCleanupRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * triggerRestoreCleanupAsync(RestoreTemplateExecutionName name)
+ *
triggerRestoreCleanupAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * triggerRestoreCleanupOperationCallable()
+ *
triggerRestoreCleanupCallable()
+ *
+ *
+ *
+ *
+ * CreateRestoreVerificationPlan
+ * Creates a new RestoreVerificationPlan in a given project and location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createRestoreVerificationPlanAsync(CreateRestoreVerificationPlanRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createRestoreVerificationPlanAsync(LocationName parent, RestoreVerificationPlan restoreVerificationPlan, String restoreVerificationPlanId)
+ *
createRestoreVerificationPlanAsync(String parent, RestoreVerificationPlan restoreVerificationPlan, String restoreVerificationPlanId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createRestoreVerificationPlanOperationCallable()
+ *
createRestoreVerificationPlanCallable()
+ *
+ *
+ *
+ *
+ * CreateRestoreVerificationPlanAssociation
+ * Creates a new RestoreVerificationPlanAssociation in a given RestoreVerificationPlan.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createRestoreVerificationPlanAssociationAsync(CreateRestoreVerificationPlanAssociationRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createRestoreVerificationPlanAssociationAsync(RestoreVerificationPlanName parent, RestoreVerificationPlanAssociation restoreVerificationPlanAssociation, String restoreVerificationPlanAssociationId)
+ *
createRestoreVerificationPlanAssociationAsync(String parent, RestoreVerificationPlanAssociation restoreVerificationPlanAssociation, String restoreVerificationPlanAssociationId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createRestoreVerificationPlanAssociationOperationCallable()
+ *
createRestoreVerificationPlanAssociationCallable()
+ *
+ *
+ *
+ *
+ * GetRestoreVerificationPlanAssociation
+ * Gets details of a single RestoreVerificationPlanAssociation in a given RestoreVerificationPlan.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getRestoreVerificationPlanAssociation(GetRestoreVerificationPlanAssociationRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getRestoreVerificationPlanAssociation(RestoreVerificationPlanAssociationName name)
+ *
getRestoreVerificationPlanAssociation(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getRestoreVerificationPlanAssociationCallable()
+ *
+ *
+ *
+ *
+ * ListRestoreVerificationPlanAssociations
+ * Lists RestoreVerificationPlanAssociations in a given RestoreVerificationPlan.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listRestoreVerificationPlanAssociations(ListRestoreVerificationPlanAssociationsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listRestoreVerificationPlanAssociations(RestoreVerificationPlanName parent)
+ *
listRestoreVerificationPlanAssociations(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.
+ *
+ * listRestoreVerificationPlanAssociationsPagedCallable()
+ *
listRestoreVerificationPlanAssociationsCallable()
+ *
+ *
+ *
+ *
+ * DeleteRestoreVerificationPlanAssociation
+ * Deletes a single RestoreVerificationPlanAssociation in a given RestoreVerificationPlan.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteRestoreVerificationPlanAssociationAsync(DeleteRestoreVerificationPlanAssociationRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteRestoreVerificationPlanAssociationAsync(RestoreVerificationPlanAssociationName name)
+ *
deleteRestoreVerificationPlanAssociationAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteRestoreVerificationPlanAssociationOperationCallable()
+ *
deleteRestoreVerificationPlanAssociationCallable()
+ *
+ *
+ *
+ *
+ * TriggerRestoreVerification
+ * Triggers a new Restore Verification for the association in a given RestoreVerificationPlan.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * triggerRestoreVerificationAsync(TriggerRestoreVerificationRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * triggerRestoreVerificationAsync(RestoreVerificationPlanAssociationName name)
+ *
triggerRestoreVerificationAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * triggerRestoreVerificationOperationCallable()
+ *
triggerRestoreVerificationCallable()
+ *
+ *
+ *
+ *
+ * GetRestoreVerificationPlan
+ * Gets details of a single RestoreVerificationPlan. Returns the requested RestoreVerificationPlan.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getRestoreVerificationPlan(GetRestoreVerificationPlanRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getRestoreVerificationPlan(RestoreVerificationPlanName name)
+ *
getRestoreVerificationPlan(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getRestoreVerificationPlanCallable()
+ *
+ *
+ *
+ *
+ * ListRestoreVerificationPlans
+ * Lists RestoreVerificationPlans in a given project and location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listRestoreVerificationPlans(ListRestoreVerificationPlansRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listRestoreVerificationPlans(LocationName parent)
+ *
listRestoreVerificationPlans(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.
+ *
+ * listRestoreVerificationPlansPagedCallable()
+ *
listRestoreVerificationPlansCallable()
+ *
+ *
+ *
+ *
+ * DeleteRestoreVerificationPlan
+ * Deletes a single RestoreVerificationPlan. If the `force` flag is set to `true`, any RestoreVerificationPlanAssociations linked to this RestoreVerificationPlan will also be deleted.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteRestoreVerificationPlanAsync(DeleteRestoreVerificationPlanRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteRestoreVerificationPlanAsync(RestoreVerificationPlanName name)
+ *
deleteRestoreVerificationPlanAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteRestoreVerificationPlanOperationCallable()
+ *
deleteRestoreVerificationPlanCallable()
+ *
+ *
+ *
+ *
+ * ListLocations
+ * Lists information about the supported locations for this service.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listLocations(ListLocationsRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listLocationsPagedCallable()
+ *
listLocationsCallable()
+ *
+ *
+ *
+ *
+ * GetLocation
+ * Gets information about a location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getLocation(GetLocationRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getLocationCallable()
+ *
+ *
+ *
+ *
+ * SetIamPolicy
+ * Sets the access control policy on the specified resource. Replacesany existing policy.
+ *
Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * setIamPolicy(SetIamPolicyRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * setIamPolicyCallable()
+ *
+ *
+ *
+ *
+ * GetIamPolicy
+ * Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getIamPolicy(GetIamPolicyRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getIamPolicyCallable()
+ *
+ *
+ *
+ *
+ * TestIamPermissions
+ * Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error.
+ *
Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * testIamPermissions(TestIamPermissionsRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * testIamPermissionsCallable()
+ *
+ *
+ *
+ *
+ *
+ * See the individual methods for example code.
+ *
+ *
Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ *
This class can be customized by passing in a custom instance of BackupDRSettings to create().
+ * For example:
+ *
+ *
To customize credentials:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BackupDRSettings backupDRSettings =
+ * BackupDRSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * BackupDRClient backupDRClient = BackupDRClient.create(backupDRSettings);
+ * }
+ *
+ * To customize the endpoint:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BackupDRSettings backupDRSettings =
+ * BackupDRSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * BackupDRClient backupDRClient = BackupDRClient.create(backupDRSettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BackupDRSettings backupDRSettings = BackupDRSettings.newHttpJsonBuilder().build();
+ * BackupDRClient backupDRClient = BackupDRClient.create(backupDRSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class BackupDRClient implements BackgroundResource {
+ private final @Nullable BackupDRSettings settings;
+ private final BackupDRStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of BackupDRClient with default settings. */
+ public static final BackupDRClient create() throws IOException {
+ return create(BackupDRSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of BackupDRClient, using the given settings. The channels are created
+ * based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final BackupDRClient create(BackupDRSettings settings) throws IOException {
+ return new BackupDRClient(settings);
+ }
+
+ /**
+ * Constructs an instance of BackupDRClient, using the given stub for making calls. This is for
+ * advanced usage - prefer using create(BackupDRSettings).
+ */
+ public static final BackupDRClient create(BackupDRStub stub) {
+ return new BackupDRClient(stub);
+ }
+
+ /**
+ * Constructs an instance of BackupDRClient, using the given settings. This is protected so that
+ * it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
+ */
+ protected BackupDRClient(BackupDRSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((BackupDRStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected BackupDRClient(BackupDRStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ public final @Nullable BackupDRSettings getSettings() {
+ return settings;
+ }
+
+ public BackupDRStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final com.google.longrunning.OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ @BetaApi
+ public final OperationsClient getHttpJsonOperationsClient() {
+ return httpJsonOperationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ManagementServers in a given project and location.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (ManagementServer element : backupDRClient.listManagementServers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve management servers
+ * information, in the format 'projects/{project_id}/locations/{location}'. In Cloud BackupDR,
+ * locations map to Google Cloud regions, for example
+ *
+ * - *us-central1**. To retrieve management servers for all locations, use "-"
+ * for the '{location}' value.
+ *
+ *
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListManagementServersPagedResponse listManagementServers(
+ @Nullable LocationName parent) {
+ ListManagementServersRequest request =
+ ListManagementServersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listManagementServers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ManagementServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (ManagementServer element : backupDRClient.listManagementServers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve management servers
+ * information, in the format 'projects/{project_id}/locations/{location}'. In Cloud BackupDR,
+ * locations map to Google Cloud regions, for example
+ *
+ * - *us-central1**. To retrieve management servers for all locations, use "-"
+ * for the '{location}' value.
+ *
+ *
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListManagementServersPagedResponse listManagementServers(String parent) {
+ ListManagementServersRequest request =
+ ListManagementServersRequest.newBuilder().setParent(parent).build();
+ return listManagementServers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ManagementServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListManagementServersRequest request =
+ * ListManagementServersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (ManagementServer element : backupDRClient.listManagementServers(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListManagementServersPagedResponse listManagementServers(
+ ListManagementServersRequest request) {
+ return listManagementServersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ManagementServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListManagementServersRequest request =
+ * ListManagementServersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.listManagementServersPagedCallable().futureCall(request);
+ * // Do something.
+ * for (ManagementServer element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listManagementServersPagedCallable() {
+ return stub.listManagementServersPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ManagementServers in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListManagementServersRequest request =
+ * ListManagementServersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListManagementServersResponse response =
+ * backupDRClient.listManagementServersCallable().call(request);
+ * for (ManagementServer element : response.getManagementServersList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listManagementServersCallable() {
+ return stub.listManagementServersCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single ManagementServer.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ManagementServerName name =
+ * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]");
+ * ManagementServer response = backupDRClient.getManagementServer(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the management server resource name, in the format
+ * 'projects/{project_id}/locations/{location}/managementServers/{resource_name}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ManagementServer getManagementServer(@Nullable ManagementServerName name) {
+ GetManagementServerRequest request =
+ GetManagementServerRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getManagementServer(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single ManagementServer.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name =
+ * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]").toString();
+ * ManagementServer response = backupDRClient.getManagementServer(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the management server resource name, in the format
+ * 'projects/{project_id}/locations/{location}/managementServers/{resource_name}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ManagementServer getManagementServer(String name) {
+ GetManagementServerRequest request =
+ GetManagementServerRequest.newBuilder().setName(name).build();
+ return getManagementServer(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single ManagementServer.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetManagementServerRequest request =
+ * GetManagementServerRequest.newBuilder()
+ * .setName(
+ * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]")
+ * .toString())
+ * .build();
+ * ManagementServer response = backupDRClient.getManagementServer(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 ManagementServer getManagementServer(GetManagementServerRequest request) {
+ return getManagementServerCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single ManagementServer.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetManagementServerRequest request =
+ * GetManagementServerRequest.newBuilder()
+ * .setName(
+ * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.getManagementServerCallable().futureCall(request);
+ * // Do something.
+ * ManagementServer response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getManagementServerCallable() {
+ return stub.getManagementServerCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new ManagementServer in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * ManagementServer managementServer = ManagementServer.newBuilder().build();
+ * String managementServerId = "managementServerId-1229628127";
+ * ManagementServer response =
+ * backupDRClient
+ * .createManagementServerAsync(parent, managementServer, managementServerId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The management server project and location in the format
+ * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR locations map to
+ * Google Cloud regions, for example **us-central1**.
+ * @param managementServer Required. A [management server
+ * resource][google.cloud.backupdr.v1.ManagementServer]
+ * @param managementServerId Required. The name of the management server to create. The name must
+ * be unique for the specified project and location.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createManagementServerAsync(
+ @Nullable LocationName parent, ManagementServer managementServer, String managementServerId) {
+ CreateManagementServerRequest request =
+ CreateManagementServerRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setManagementServer(managementServer)
+ .setManagementServerId(managementServerId)
+ .build();
+ return createManagementServerAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new ManagementServer in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * ManagementServer managementServer = ManagementServer.newBuilder().build();
+ * String managementServerId = "managementServerId-1229628127";
+ * ManagementServer response =
+ * backupDRClient
+ * .createManagementServerAsync(parent, managementServer, managementServerId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The management server project and location in the format
+ * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR locations map to
+ * Google Cloud regions, for example **us-central1**.
+ * @param managementServer Required. A [management server
+ * resource][google.cloud.backupdr.v1.ManagementServer]
+ * @param managementServerId Required. The name of the management server to create. The name must
+ * be unique for the specified project and location.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createManagementServerAsync(
+ String parent, ManagementServer managementServer, String managementServerId) {
+ CreateManagementServerRequest request =
+ CreateManagementServerRequest.newBuilder()
+ .setParent(parent)
+ .setManagementServer(managementServer)
+ .setManagementServerId(managementServerId)
+ .build();
+ return createManagementServerAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new ManagementServer in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateManagementServerRequest request =
+ * CreateManagementServerRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setManagementServerId("managementServerId-1229628127")
+ * .setManagementServer(ManagementServer.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ManagementServer response = backupDRClient.createManagementServerAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createManagementServerAsync(
+ CreateManagementServerRequest request) {
+ return createManagementServerOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new ManagementServer in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateManagementServerRequest request =
+ * CreateManagementServerRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setManagementServerId("managementServerId-1229628127")
+ * .setManagementServer(ManagementServer.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.createManagementServerOperationCallable().futureCall(request);
+ * // Do something.
+ * ManagementServer response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createManagementServerOperationCallable() {
+ return stub.createManagementServerOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new ManagementServer in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateManagementServerRequest request =
+ * CreateManagementServerRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setManagementServerId("managementServerId-1229628127")
+ * .setManagementServer(ManagementServer.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.createManagementServerCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createManagementServerCallable() {
+ return stub.createManagementServerCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single ManagementServer.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ManagementServerName name =
+ * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]");
+ * backupDRClient.deleteManagementServerAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteManagementServerAsync(
+ @Nullable ManagementServerName name) {
+ DeleteManagementServerRequest request =
+ DeleteManagementServerRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteManagementServerAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single ManagementServer.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name =
+ * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]").toString();
+ * backupDRClient.deleteManagementServerAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteManagementServerAsync(String name) {
+ DeleteManagementServerRequest request =
+ DeleteManagementServerRequest.newBuilder().setName(name).build();
+ return deleteManagementServerAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single ManagementServer.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteManagementServerRequest request =
+ * DeleteManagementServerRequest.newBuilder()
+ * .setName(
+ * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * backupDRClient.deleteManagementServerAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteManagementServerAsync(
+ DeleteManagementServerRequest request) {
+ return deleteManagementServerOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single ManagementServer.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteManagementServerRequest request =
+ * DeleteManagementServerRequest.newBuilder()
+ * .setName(
+ * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.deleteManagementServerOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteManagementServerOperationCallable() {
+ return stub.deleteManagementServerOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single ManagementServer.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteManagementServerRequest request =
+ * DeleteManagementServerRequest.newBuilder()
+ * .setName(
+ * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.deleteManagementServerCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteManagementServerCallable() {
+ return stub.deleteManagementServerCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new BackupVault in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * BackupVault backupVault = BackupVault.newBuilder().build();
+ * String backupVaultId = "backupVaultId-1897432373";
+ * BackupVault response =
+ * backupDRClient.createBackupVaultAsync(parent, backupVault, backupVaultId).get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param backupVault Required. The resource being created
+ * @param backupVaultId Required. ID of the requesting object If auto-generating ID server-side,
+ * remove this field and backup_vault_id from the method_signature of Create RPC
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBackupVaultAsync(
+ @Nullable LocationName parent, BackupVault backupVault, String backupVaultId) {
+ CreateBackupVaultRequest request =
+ CreateBackupVaultRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setBackupVault(backupVault)
+ .setBackupVaultId(backupVaultId)
+ .build();
+ return createBackupVaultAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new BackupVault in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * BackupVault backupVault = BackupVault.newBuilder().build();
+ * String backupVaultId = "backupVaultId-1897432373";
+ * BackupVault response =
+ * backupDRClient.createBackupVaultAsync(parent, backupVault, backupVaultId).get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param backupVault Required. The resource being created
+ * @param backupVaultId Required. ID of the requesting object If auto-generating ID server-side,
+ * remove this field and backup_vault_id from the method_signature of Create RPC
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBackupVaultAsync(
+ String parent, BackupVault backupVault, String backupVaultId) {
+ CreateBackupVaultRequest request =
+ CreateBackupVaultRequest.newBuilder()
+ .setParent(parent)
+ .setBackupVault(backupVault)
+ .setBackupVaultId(backupVaultId)
+ .build();
+ return createBackupVaultAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new BackupVault in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateBackupVaultRequest request =
+ * CreateBackupVaultRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBackupVaultId("backupVaultId-1897432373")
+ * .setBackupVault(BackupVault.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .build();
+ * BackupVault response = backupDRClient.createBackupVaultAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBackupVaultAsync(
+ CreateBackupVaultRequest request) {
+ return createBackupVaultOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new BackupVault in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateBackupVaultRequest request =
+ * CreateBackupVaultRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBackupVaultId("backupVaultId-1897432373")
+ * .setBackupVault(BackupVault.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.createBackupVaultOperationCallable().futureCall(request);
+ * // Do something.
+ * BackupVault response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createBackupVaultOperationCallable() {
+ return stub.createBackupVaultOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new BackupVault in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateBackupVaultRequest request =
+ * CreateBackupVaultRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBackupVaultId("backupVaultId-1897432373")
+ * .setBackupVault(BackupVault.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .build();
+ * ApiFuture future = backupDRClient.createBackupVaultCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createBackupVaultCallable() {
+ return stub.createBackupVaultCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupVaults in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (BackupVault element : backupDRClient.listBackupVaults(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve backupvault stores
+ * information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup
+ * and DR, locations map to Google Cloud regions, for example
+ *
+ * - *us-central1**. To retrieve backupvault stores for all locations, use "-"
+ * for the '{location}' value.
+ *
+ *
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupVaultsPagedResponse listBackupVaults(@Nullable LocationName parent) {
+ ListBackupVaultsRequest request =
+ ListBackupVaultsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBackupVaults(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupVaults in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (BackupVault element : backupDRClient.listBackupVaults(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve backupvault stores
+ * information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup
+ * and DR, locations map to Google Cloud regions, for example
+ *
+ * - *us-central1**. To retrieve backupvault stores for all locations, use "-"
+ * for the '{location}' value.
+ *
+ *
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupVaultsPagedResponse listBackupVaults(String parent) {
+ ListBackupVaultsRequest request =
+ ListBackupVaultsRequest.newBuilder().setParent(parent).build();
+ return listBackupVaults(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupVaults in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupVaultsRequest request =
+ * ListBackupVaultsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(BackupVaultView.forNumber(0))
+ * .build();
+ * for (BackupVault element : backupDRClient.listBackupVaults(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupVaultsPagedResponse listBackupVaults(ListBackupVaultsRequest request) {
+ return listBackupVaultsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupVaults in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupVaultsRequest request =
+ * ListBackupVaultsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(BackupVaultView.forNumber(0))
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.listBackupVaultsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (BackupVault element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBackupVaultsPagedCallable() {
+ return stub.listBackupVaultsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupVaults in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupVaultsRequest request =
+ * ListBackupVaultsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(BackupVaultView.forNumber(0))
+ * .build();
+ * while (true) {
+ * ListBackupVaultsResponse response = backupDRClient.listBackupVaultsCallable().call(request);
+ * for (BackupVault element : response.getBackupVaultsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBackupVaultsCallable() {
+ return stub.listBackupVaultsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * FetchUsableBackupVaults lists usable BackupVaults in a given project and location. Usable
+ * BackupVault are the ones that user has backupdr.backupVaults.get permission.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (BackupVault element : backupDRClient.fetchUsableBackupVaults(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve backupvault stores
+ * information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup
+ * and DR, locations map to Google Cloud regions, for example
+ *
+ * - *us-central1**. To retrieve backupvault stores for all locations, use "-"
+ * for the '{location}' value.
+ *
+ *
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchUsableBackupVaultsPagedResponse fetchUsableBackupVaults(
+ @Nullable LocationName parent) {
+ FetchUsableBackupVaultsRequest request =
+ FetchUsableBackupVaultsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return fetchUsableBackupVaults(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * FetchUsableBackupVaults lists usable BackupVaults in a given project and location. Usable
+ * BackupVault are the ones that user has backupdr.backupVaults.get permission.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (BackupVault element : backupDRClient.fetchUsableBackupVaults(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve backupvault stores
+ * information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup
+ * and DR, locations map to Google Cloud regions, for example
+ *
+ * - *us-central1**. To retrieve backupvault stores for all locations, use "-"
+ * for the '{location}' value.
+ *
+ *
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchUsableBackupVaultsPagedResponse fetchUsableBackupVaults(String parent) {
+ FetchUsableBackupVaultsRequest request =
+ FetchUsableBackupVaultsRequest.newBuilder().setParent(parent).build();
+ return fetchUsableBackupVaults(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * FetchUsableBackupVaults lists usable BackupVaults in a given project and location. Usable
+ * BackupVault are the ones that user has backupdr.backupVaults.get permission.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * FetchUsableBackupVaultsRequest request =
+ * FetchUsableBackupVaultsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (BackupVault element : backupDRClient.fetchUsableBackupVaults(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchUsableBackupVaultsPagedResponse fetchUsableBackupVaults(
+ FetchUsableBackupVaultsRequest request) {
+ return fetchUsableBackupVaultsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * FetchUsableBackupVaults lists usable BackupVaults in a given project and location. Usable
+ * BackupVault are the ones that user has backupdr.backupVaults.get permission.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * FetchUsableBackupVaultsRequest request =
+ * FetchUsableBackupVaultsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.fetchUsableBackupVaultsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (BackupVault element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ fetchUsableBackupVaultsPagedCallable() {
+ return stub.fetchUsableBackupVaultsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * FetchUsableBackupVaults lists usable BackupVaults in a given project and location. Usable
+ * BackupVault are the ones that user has backupdr.backupVaults.get permission.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * FetchUsableBackupVaultsRequest request =
+ * FetchUsableBackupVaultsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * FetchUsableBackupVaultsResponse response =
+ * backupDRClient.fetchUsableBackupVaultsCallable().call(request);
+ * for (BackupVault element : response.getBackupVaultsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ fetchUsableBackupVaultsCallable() {
+ return stub.fetchUsableBackupVaultsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupVaultName name = BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]");
+ * BackupVault response = backupDRClient.getBackupVault(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the backupvault store resource name, in the format
+ * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BackupVault getBackupVault(@Nullable BackupVaultName name) {
+ GetBackupVaultRequest request =
+ GetBackupVaultRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getBackupVault(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name = BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]").toString();
+ * BackupVault response = backupDRClient.getBackupVault(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the backupvault store resource name, in the format
+ * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BackupVault getBackupVault(String name) {
+ GetBackupVaultRequest request = GetBackupVaultRequest.newBuilder().setName(name).build();
+ return getBackupVault(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetBackupVaultRequest request =
+ * GetBackupVaultRequest.newBuilder()
+ * .setName(BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]").toString())
+ * .setView(BackupVaultView.forNumber(0))
+ * .build();
+ * BackupVault response = backupDRClient.getBackupVault(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 BackupVault getBackupVault(GetBackupVaultRequest request) {
+ return getBackupVaultCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetBackupVaultRequest request =
+ * GetBackupVaultRequest.newBuilder()
+ * .setName(BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]").toString())
+ * .setView(BackupVaultView.forNumber(0))
+ * .build();
+ * ApiFuture future = backupDRClient.getBackupVaultCallable().futureCall(request);
+ * // Do something.
+ * BackupVault response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getBackupVaultCallable() {
+ return stub.getBackupVaultCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupVault backupVault = BackupVault.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * BackupVault response = backupDRClient.updateBackupVaultAsync(backupVault, updateMask).get();
+ * }
+ * }
+ *
+ * @param backupVault Required. The resource being updated
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * BackupVault resource by the update. The fields specified in the update_mask are relative to
+ * the resource, not the full request. A field will be overwritten if it is in the mask. If
+ * the user does not provide a mask then the request will fail.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateBackupVaultAsync(
+ BackupVault backupVault, FieldMask updateMask) {
+ UpdateBackupVaultRequest request =
+ UpdateBackupVaultRequest.newBuilder()
+ .setBackupVault(backupVault)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateBackupVaultAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupVaultRequest request =
+ * UpdateBackupVaultRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setBackupVault(BackupVault.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setForce(true)
+ * .setForceUpdateAccessRestriction(true)
+ * .build();
+ * BackupVault response = backupDRClient.updateBackupVaultAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateBackupVaultAsync(
+ UpdateBackupVaultRequest request) {
+ return updateBackupVaultOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupVaultRequest request =
+ * UpdateBackupVaultRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setBackupVault(BackupVault.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setForce(true)
+ * .setForceUpdateAccessRestriction(true)
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.updateBackupVaultOperationCallable().futureCall(request);
+ * // Do something.
+ * BackupVault response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateBackupVaultOperationCallable() {
+ return stub.updateBackupVaultOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupVaultRequest request =
+ * UpdateBackupVaultRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setBackupVault(BackupVault.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .setForce(true)
+ * .setForceUpdateAccessRestriction(true)
+ * .build();
+ * ApiFuture future = backupDRClient.updateBackupVaultCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateBackupVaultCallable() {
+ return stub.updateBackupVaultCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupVaultName name = BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]");
+ * backupDRClient.deleteBackupVaultAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBackupVaultAsync(
+ @Nullable BackupVaultName name) {
+ DeleteBackupVaultRequest request =
+ DeleteBackupVaultRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteBackupVaultAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name = BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]").toString();
+ * backupDRClient.deleteBackupVaultAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBackupVaultAsync(String name) {
+ DeleteBackupVaultRequest request = DeleteBackupVaultRequest.newBuilder().setName(name).build();
+ return deleteBackupVaultAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteBackupVaultRequest request =
+ * DeleteBackupVaultRequest.newBuilder()
+ * .setName(BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .setEtag("etag3123477")
+ * .setValidateOnly(true)
+ * .setAllowMissing(true)
+ * .setIgnoreBackupPlanReferences(true)
+ * .build();
+ * backupDRClient.deleteBackupVaultAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBackupVaultAsync(
+ DeleteBackupVaultRequest request) {
+ return deleteBackupVaultOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteBackupVaultRequest request =
+ * DeleteBackupVaultRequest.newBuilder()
+ * .setName(BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .setEtag("etag3123477")
+ * .setValidateOnly(true)
+ * .setAllowMissing(true)
+ * .setIgnoreBackupPlanReferences(true)
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.deleteBackupVaultOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteBackupVaultOperationCallable() {
+ return stub.deleteBackupVaultOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a BackupVault.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteBackupVaultRequest request =
+ * DeleteBackupVaultRequest.newBuilder()
+ * .setName(BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .setEtag("etag3123477")
+ * .setValidateOnly(true)
+ * .setAllowMissing(true)
+ * .setIgnoreBackupPlanReferences(true)
+ * .build();
+ * ApiFuture future = backupDRClient.deleteBackupVaultCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteBackupVaultCallable() {
+ return stub.deleteBackupVaultCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists DataSources in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupVaultName parent = BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]");
+ * for (DataSource element : backupDRClient.listDataSources(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve data sources
+ * information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup
+ * and DR, locations map to Google Cloud regions, for example **us-central1**.
+ * To retrieve data sources for all locations, use "-" for the '{location}' value.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDataSourcesPagedResponse listDataSources(@Nullable BackupVaultName parent) {
+ ListDataSourcesRequest request =
+ ListDataSourcesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listDataSources(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists DataSources in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]").toString();
+ * for (DataSource element : backupDRClient.listDataSources(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve data sources
+ * information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup
+ * and DR, locations map to Google Cloud regions, for example **us-central1**.
+ * To retrieve data sources for all locations, use "-" for the '{location}' value.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDataSourcesPagedResponse listDataSources(String parent) {
+ ListDataSourcesRequest request = ListDataSourcesRequest.newBuilder().setParent(parent).build();
+ return listDataSources(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists DataSources in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListDataSourcesRequest request =
+ * ListDataSourcesRequest.newBuilder()
+ * .setParent(BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (DataSource element : backupDRClient.listDataSources(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDataSourcesPagedResponse listDataSources(ListDataSourcesRequest request) {
+ return listDataSourcesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists DataSources in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListDataSourcesRequest request =
+ * ListDataSourcesRequest.newBuilder()
+ * .setParent(BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.listDataSourcesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (DataSource element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listDataSourcesPagedCallable() {
+ return stub.listDataSourcesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists DataSources in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListDataSourcesRequest request =
+ * ListDataSourcesRequest.newBuilder()
+ * .setParent(BackupVaultName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListDataSourcesResponse response = backupDRClient.listDataSourcesCallable().call(request);
+ * for (DataSource element : response.getDataSourcesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listDataSourcesCallable() {
+ return stub.listDataSourcesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a DataSource.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DataSourceName name =
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
+ * DataSource response = backupDRClient.getDataSource(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the data source resource name, in the format
+ * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DataSource getDataSource(@Nullable DataSourceName name) {
+ GetDataSourceRequest request =
+ GetDataSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getDataSource(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a DataSource.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name =
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]").toString();
+ * DataSource response = backupDRClient.getDataSource(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the data source resource name, in the format
+ * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DataSource getDataSource(String name) {
+ GetDataSourceRequest request = GetDataSourceRequest.newBuilder().setName(name).build();
+ return getDataSource(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a DataSource.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetDataSourceRequest request =
+ * GetDataSourceRequest.newBuilder()
+ * .setName(
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]")
+ * .toString())
+ * .build();
+ * DataSource response = backupDRClient.getDataSource(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 DataSource getDataSource(GetDataSourceRequest request) {
+ return getDataSourceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a DataSource.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetDataSourceRequest request =
+ * GetDataSourceRequest.newBuilder()
+ * .setName(
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]")
+ * .toString())
+ * .build();
+ * ApiFuture future = backupDRClient.getDataSourceCallable().futureCall(request);
+ * // Do something.
+ * DataSource response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getDataSourceCallable() {
+ return stub.getDataSourceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a DataSource.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DataSource dataSource = DataSource.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * DataSource response = backupDRClient.updateDataSourceAsync(dataSource, updateMask).get();
+ * }
+ * }
+ *
+ * @param dataSource Required. The resource being updated
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * DataSource resource by the update. The fields specified in the update_mask are relative to
+ * the resource, not the full request. A field will be overwritten if it is in the mask. If
+ * the user does not provide a mask then the request will fail.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateDataSourceAsync(
+ DataSource dataSource, FieldMask updateMask) {
+ UpdateDataSourceRequest request =
+ UpdateDataSourceRequest.newBuilder()
+ .setDataSource(dataSource)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateDataSourceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a DataSource.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateDataSourceRequest request =
+ * UpdateDataSourceRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setDataSource(DataSource.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setAllowMissing(true)
+ * .build();
+ * DataSource response = backupDRClient.updateDataSourceAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateDataSourceAsync(
+ UpdateDataSourceRequest request) {
+ return updateDataSourceOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a DataSource.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateDataSourceRequest request =
+ * UpdateDataSourceRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setDataSource(DataSource.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setAllowMissing(true)
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.updateDataSourceOperationCallable().futureCall(request);
+ * // Do something.
+ * DataSource response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateDataSourceOperationCallable() {
+ return stub.updateDataSourceOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a DataSource.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateDataSourceRequest request =
+ * UpdateDataSourceRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setDataSource(DataSource.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .setAllowMissing(true)
+ * .build();
+ * ApiFuture future = backupDRClient.updateDataSourceCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateDataSourceCallable() {
+ return stub.updateDataSourceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Backups in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DataSourceName parent =
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
+ * for (Backup element : backupDRClient.listBackups(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve backup information, in
+ * the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations
+ * map to Google Cloud regions, for example **us-central1**. To retrieve data
+ * sources for all locations, use "-" for the '{location}' value.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupsPagedResponse listBackups(@Nullable DataSourceName parent) {
+ ListBackupsRequest request =
+ ListBackupsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBackups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Backups in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent =
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]").toString();
+ * for (Backup element : backupDRClient.listBackups(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve backup information, in
+ * the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations
+ * map to Google Cloud regions, for example **us-central1**. To retrieve data
+ * sources for all locations, use "-" for the '{location}' value.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupsPagedResponse listBackups(String parent) {
+ ListBackupsRequest request = ListBackupsRequest.newBuilder().setParent(parent).build();
+ return listBackups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Backups in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupsRequest request =
+ * ListBackupsRequest.newBuilder()
+ * .setParent(
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(BackupView.forNumber(0))
+ * .build();
+ * for (Backup element : backupDRClient.listBackups(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupsPagedResponse listBackups(ListBackupsRequest request) {
+ return listBackupsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Backups in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupsRequest request =
+ * ListBackupsRequest.newBuilder()
+ * .setParent(
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(BackupView.forNumber(0))
+ * .build();
+ * ApiFuture future = backupDRClient.listBackupsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Backup element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBackupsPagedCallable() {
+ return stub.listBackupsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Backups in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupsRequest request =
+ * ListBackupsRequest.newBuilder()
+ * .setParent(
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(BackupView.forNumber(0))
+ * .build();
+ * while (true) {
+ * ListBackupsResponse response = backupDRClient.listBackupsCallable().call(request);
+ * for (Backup element : response.getBackupsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listBackupsCallable() {
+ return stub.listBackupsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch Backups for a given resource type.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DataSourceName parent =
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
+ * String resourceType = "resourceType-384364440";
+ * for (Backup element :
+ * backupDRClient.fetchBackupsForResourceType(parent, resourceType).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Datasources are the parent resource for the backups. Format:
+ * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}
+ * @param resourceType Required. The type of the GCP resource. Ex:
+ * sqladmin.googleapis.com/Instance
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchBackupsForResourceTypePagedResponse fetchBackupsForResourceType(
+ @Nullable DataSourceName parent, String resourceType) {
+ FetchBackupsForResourceTypeRequest request =
+ FetchBackupsForResourceTypeRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setResourceType(resourceType)
+ .build();
+ return fetchBackupsForResourceType(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch Backups for a given resource type.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent =
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]").toString();
+ * String resourceType = "resourceType-384364440";
+ * for (Backup element :
+ * backupDRClient.fetchBackupsForResourceType(parent, resourceType).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Datasources are the parent resource for the backups. Format:
+ * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}
+ * @param resourceType Required. The type of the GCP resource. Ex:
+ * sqladmin.googleapis.com/Instance
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchBackupsForResourceTypePagedResponse fetchBackupsForResourceType(
+ String parent, String resourceType) {
+ FetchBackupsForResourceTypeRequest request =
+ FetchBackupsForResourceTypeRequest.newBuilder()
+ .setParent(parent)
+ .setResourceType(resourceType)
+ .build();
+ return fetchBackupsForResourceType(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch Backups for a given resource type.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * FetchBackupsForResourceTypeRequest request =
+ * FetchBackupsForResourceTypeRequest.newBuilder()
+ * .setParent(
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]")
+ * .toString())
+ * .setResourceType("resourceType-384364440")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(BackupView.forNumber(0))
+ * .build();
+ * for (Backup element : backupDRClient.fetchBackupsForResourceType(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchBackupsForResourceTypePagedResponse fetchBackupsForResourceType(
+ FetchBackupsForResourceTypeRequest request) {
+ return fetchBackupsForResourceTypePagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch Backups for a given resource type.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * FetchBackupsForResourceTypeRequest request =
+ * FetchBackupsForResourceTypeRequest.newBuilder()
+ * .setParent(
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]")
+ * .toString())
+ * .setResourceType("resourceType-384364440")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(BackupView.forNumber(0))
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.fetchBackupsForResourceTypePagedCallable().futureCall(request);
+ * // Do something.
+ * for (Backup element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypePagedResponse>
+ fetchBackupsForResourceTypePagedCallable() {
+ return stub.fetchBackupsForResourceTypePagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetch Backups for a given resource type.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * FetchBackupsForResourceTypeRequest request =
+ * FetchBackupsForResourceTypeRequest.newBuilder()
+ * .setParent(
+ * DataSourceName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]")
+ * .toString())
+ * .setResourceType("resourceType-384364440")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setView(BackupView.forNumber(0))
+ * .build();
+ * while (true) {
+ * FetchBackupsForResourceTypeResponse response =
+ * backupDRClient.fetchBackupsForResourceTypeCallable().call(request);
+ * for (Backup element : response.getBackupsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse>
+ fetchBackupsForResourceTypeCallable() {
+ return stub.fetchBackupsForResourceTypeCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupName name =
+ * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]");
+ * Backup response = backupDRClient.getBackup(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the data source resource name, in the format
+ * 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Backup getBackup(@Nullable BackupName name) {
+ GetBackupRequest request =
+ GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getBackup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name =
+ * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
+ * .toString();
+ * Backup response = backupDRClient.getBackup(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the data source resource name, in the format
+ * 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Backup getBackup(String name) {
+ GetBackupRequest request = GetBackupRequest.newBuilder().setName(name).build();
+ return getBackup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetBackupRequest request =
+ * GetBackupRequest.newBuilder()
+ * .setName(
+ * BackupName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
+ * .toString())
+ * .setView(BackupView.forNumber(0))
+ * .build();
+ * Backup response = backupDRClient.getBackup(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 Backup getBackup(GetBackupRequest request) {
+ return getBackupCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetBackupRequest request =
+ * GetBackupRequest.newBuilder()
+ * .setName(
+ * BackupName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
+ * .toString())
+ * .setView(BackupView.forNumber(0))
+ * .build();
+ * ApiFuture future = backupDRClient.getBackupCallable().futureCall(request);
+ * // Do something.
+ * Backup response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getBackupCallable() {
+ return stub.getBackupCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * Backup backup = Backup.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Backup response = backupDRClient.updateBackupAsync(backup, updateMask).get();
+ * }
+ * }
+ *
+ * @param backup Required. The resource being updated
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * Backup resource by the update. The fields specified in the update_mask are relative to the
+ * resource, not the full request. A field will be overwritten if it is in the mask. If the
+ * user does not provide a mask then the request will fail.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateBackupAsync(
+ Backup backup, FieldMask updateMask) {
+ UpdateBackupRequest request =
+ UpdateBackupRequest.newBuilder().setBackup(backup).setUpdateMask(updateMask).build();
+ return updateBackupAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupRequest request =
+ * UpdateBackupRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setBackup(Backup.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Backup response = backupDRClient.updateBackupAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateBackupAsync(
+ UpdateBackupRequest request) {
+ return updateBackupOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupRequest request =
+ * UpdateBackupRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setBackup(Backup.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.updateBackupOperationCallable().futureCall(request);
+ * // Do something.
+ * Backup response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateBackupOperationCallable() {
+ return stub.updateBackupOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the settings of a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupRequest request =
+ * UpdateBackupRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setBackup(Backup.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = backupDRClient.updateBackupCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateBackupCallable() {
+ return stub.updateBackupCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupName name =
+ * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]");
+ * Backup response = backupDRClient.deleteBackupAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBackupAsync(
+ @Nullable BackupName name) {
+ DeleteBackupRequest request =
+ DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteBackupAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name =
+ * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
+ * .toString();
+ * Backup response = backupDRClient.deleteBackupAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBackupAsync(String name) {
+ DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name).build();
+ return deleteBackupAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteBackupRequest request =
+ * DeleteBackupRequest.newBuilder()
+ * .setName(
+ * BackupName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Backup response = backupDRClient.deleteBackupAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBackupAsync(
+ DeleteBackupRequest request) {
+ return deleteBackupOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteBackupRequest request =
+ * DeleteBackupRequest.newBuilder()
+ * .setName(
+ * BackupName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.deleteBackupOperationCallable().futureCall(request);
+ * // Do something.
+ * Backup response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteBackupOperationCallable() {
+ return stub.deleteBackupOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Backup.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteBackupRequest request =
+ * DeleteBackupRequest.newBuilder()
+ * .setName(
+ * BackupName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = backupDRClient.deleteBackupCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteBackupCallable() {
+ return stub.deleteBackupCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Restore from a Backup
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupName name =
+ * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]");
+ * RestoreBackupResponse response = backupDRClient.restoreBackupAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Backup instance, in the format
+ * 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture restoreBackupAsync(
+ @Nullable BackupName name) {
+ RestoreBackupRequest request =
+ RestoreBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return restoreBackupAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Restore from a Backup
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name =
+ * BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
+ * .toString();
+ * RestoreBackupResponse response = backupDRClient.restoreBackupAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Backup instance, in the format
+ * 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture restoreBackupAsync(
+ String name) {
+ RestoreBackupRequest request = RestoreBackupRequest.newBuilder().setName(name).build();
+ return restoreBackupAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Restore from a Backup
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * RestoreBackupRequest request =
+ * RestoreBackupRequest.newBuilder()
+ * .setName(
+ * BackupName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setClearOverridesFieldMask(FieldMask.newBuilder().build())
+ * .build();
+ * RestoreBackupResponse response = backupDRClient.restoreBackupAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture restoreBackupAsync(
+ RestoreBackupRequest request) {
+ return restoreBackupOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Restore from a Backup
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * RestoreBackupRequest request =
+ * RestoreBackupRequest.newBuilder()
+ * .setName(
+ * BackupName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setClearOverridesFieldMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.restoreBackupOperationCallable().futureCall(request);
+ * // Do something.
+ * RestoreBackupResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ restoreBackupOperationCallable() {
+ return stub.restoreBackupOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Restore from a Backup
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * RestoreBackupRequest request =
+ * RestoreBackupRequest.newBuilder()
+ * .setName(
+ * BackupName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setClearOverridesFieldMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = backupDRClient.restoreBackupCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable restoreBackupCallable() {
+ return stub.restoreBackupCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a BackupPlan
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * BackupPlan backupPlan = BackupPlan.newBuilder().build();
+ * String backupPlanId = "backupPlanId-84871546";
+ * BackupPlan response =
+ * backupDRClient.createBackupPlanAsync(parent, backupPlan, backupPlanId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The `BackupPlan` project and location in the format
+ * `projects/{project}/locations/{location}`. In Cloud BackupDR locations map to GCP regions,
+ * for example **us-central1**.
+ * @param backupPlan Required. The `BackupPlan` resource object to create.
+ * @param backupPlanId Required. The name of the `BackupPlan` to create. The name must be unique
+ * for the specified project and location.The name must start with a lowercase letter followed
+ * by up to 62 lowercase letters, numbers, or hyphens. Pattern, /[a-z][a-z0-9-]{,62}/.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBackupPlanAsync(
+ @Nullable LocationName parent, BackupPlan backupPlan, String backupPlanId) {
+ CreateBackupPlanRequest request =
+ CreateBackupPlanRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setBackupPlan(backupPlan)
+ .setBackupPlanId(backupPlanId)
+ .build();
+ return createBackupPlanAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a BackupPlan
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * BackupPlan backupPlan = BackupPlan.newBuilder().build();
+ * String backupPlanId = "backupPlanId-84871546";
+ * BackupPlan response =
+ * backupDRClient.createBackupPlanAsync(parent, backupPlan, backupPlanId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The `BackupPlan` project and location in the format
+ * `projects/{project}/locations/{location}`. In Cloud BackupDR locations map to GCP regions,
+ * for example **us-central1**.
+ * @param backupPlan Required. The `BackupPlan` resource object to create.
+ * @param backupPlanId Required. The name of the `BackupPlan` to create. The name must be unique
+ * for the specified project and location.The name must start with a lowercase letter followed
+ * by up to 62 lowercase letters, numbers, or hyphens. Pattern, /[a-z][a-z0-9-]{,62}/.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBackupPlanAsync(
+ String parent, BackupPlan backupPlan, String backupPlanId) {
+ CreateBackupPlanRequest request =
+ CreateBackupPlanRequest.newBuilder()
+ .setParent(parent)
+ .setBackupPlan(backupPlan)
+ .setBackupPlanId(backupPlanId)
+ .build();
+ return createBackupPlanAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a BackupPlan
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateBackupPlanRequest request =
+ * CreateBackupPlanRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBackupPlanId("backupPlanId-84871546")
+ * .setBackupPlan(BackupPlan.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * BackupPlan response = backupDRClient.createBackupPlanAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createBackupPlanAsync(
+ CreateBackupPlanRequest request) {
+ return createBackupPlanOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a BackupPlan
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateBackupPlanRequest request =
+ * CreateBackupPlanRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBackupPlanId("backupPlanId-84871546")
+ * .setBackupPlan(BackupPlan.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.createBackupPlanOperationCallable().futureCall(request);
+ * // Do something.
+ * BackupPlan response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createBackupPlanOperationCallable() {
+ return stub.createBackupPlanOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a BackupPlan
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateBackupPlanRequest request =
+ * CreateBackupPlanRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBackupPlanId("backupPlanId-84871546")
+ * .setBackupPlan(BackupPlan.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = backupDRClient.createBackupPlanCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createBackupPlanCallable() {
+ return stub.createBackupPlanCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update a BackupPlan.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupPlan backupPlan = BackupPlan.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * BackupPlan response = backupDRClient.updateBackupPlanAsync(backupPlan, updateMask).get();
+ * }
+ * }
+ *
+ * @param backupPlan Required. The resource being updated
+ * @param updateMask Required. The list of fields to update. Field mask is used to specify the
+ * fields to be overwritten in the BackupPlan resource by the update. The fields specified in
+ * the update_mask are relative to the resource, not the full request. A field will be
+ * overwritten if it is in the mask. If the user does not provide a mask then the request will
+ * fail. Currently, these fields are supported in update: description, schedules, retention
+ * period, adding and removing Backup Rules.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateBackupPlanAsync(
+ BackupPlan backupPlan, FieldMask updateMask) {
+ UpdateBackupPlanRequest request =
+ UpdateBackupPlanRequest.newBuilder()
+ .setBackupPlan(backupPlan)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateBackupPlanAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update a BackupPlan.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupPlanRequest request =
+ * UpdateBackupPlanRequest.newBuilder()
+ * .setBackupPlan(BackupPlan.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * BackupPlan response = backupDRClient.updateBackupPlanAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateBackupPlanAsync(
+ UpdateBackupPlanRequest request) {
+ return updateBackupPlanOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update a BackupPlan.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupPlanRequest request =
+ * UpdateBackupPlanRequest.newBuilder()
+ * .setBackupPlan(BackupPlan.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.updateBackupPlanOperationCallable().futureCall(request);
+ * // Do something.
+ * BackupPlan response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateBackupPlanOperationCallable() {
+ return stub.updateBackupPlanOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update a BackupPlan.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupPlanRequest request =
+ * UpdateBackupPlanRequest.newBuilder()
+ * .setBackupPlan(BackupPlan.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = backupDRClient.updateBackupPlanCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateBackupPlanCallable() {
+ return stub.updateBackupPlanCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlan.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupPlanName name = BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
+ * BackupPlan response = backupDRClient.getBackupPlan(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the `BackupPlan` to retrieve.
+ * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BackupPlan getBackupPlan(@Nullable BackupPlanName name) {
+ GetBackupPlanRequest request =
+ GetBackupPlanRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getBackupPlan(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlan.
+ *
+ *
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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name = BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString();
+ * BackupPlan response = backupDRClient.getBackupPlan(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the `BackupPlan` to retrieve.
+ * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BackupPlan getBackupPlan(String name) {
+ GetBackupPlanRequest request = GetBackupPlanRequest.newBuilder().setName(name).build();
+ return getBackupPlan(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlan.
+ *
+ *
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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetBackupPlanRequest request =
+ * GetBackupPlanRequest.newBuilder()
+ * .setName(BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString())
+ * .build();
+ * BackupPlan response = backupDRClient.getBackupPlan(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 BackupPlan getBackupPlan(GetBackupPlanRequest request) {
+ return getBackupPlanCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlan.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetBackupPlanRequest request =
+ * GetBackupPlanRequest.newBuilder()
+ * .setName(BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString())
+ * .build();
+ * ApiFuture future = backupDRClient.getBackupPlanCallable().futureCall(request);
+ * // Do something.
+ * BackupPlan response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getBackupPlanCallable() {
+ return stub.getBackupPlanCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlans in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (BackupPlan element : backupDRClient.listBackupPlans(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve `BackupPlans`
+ * information. Format: `projects/{project}/locations/{location}`. In Cloud BackupDR,
+ * locations map to GCP regions, for e.g. **us-central1**. To retrieve backup
+ * plans for all locations, use "-" for the `{location}` value.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupPlansPagedResponse listBackupPlans(@Nullable LocationName parent) {
+ ListBackupPlansRequest request =
+ ListBackupPlansRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBackupPlans(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlans in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (BackupPlan element : backupDRClient.listBackupPlans(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve `BackupPlans`
+ * information. Format: `projects/{project}/locations/{location}`. In Cloud BackupDR,
+ * locations map to GCP regions, for e.g. **us-central1**. To retrieve backup
+ * plans for all locations, use "-" for the `{location}` value.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupPlansPagedResponse listBackupPlans(String parent) {
+ ListBackupPlansRequest request = ListBackupPlansRequest.newBuilder().setParent(parent).build();
+ return listBackupPlans(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlans in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupPlansRequest request =
+ * ListBackupPlansRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (BackupPlan element : backupDRClient.listBackupPlans(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupPlansPagedResponse listBackupPlans(ListBackupPlansRequest request) {
+ return listBackupPlansPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlans in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupPlansRequest request =
+ * ListBackupPlansRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.listBackupPlansPagedCallable().futureCall(request);
+ * // Do something.
+ * for (BackupPlan element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBackupPlansPagedCallable() {
+ return stub.listBackupPlansPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlans in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupPlansRequest request =
+ * ListBackupPlansRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListBackupPlansResponse response = backupDRClient.listBackupPlansCallable().call(request);
+ * for (BackupPlan element : response.getBackupPlansList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBackupPlansCallable() {
+ return stub.listBackupPlansCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single BackupPlan.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupPlanName name = BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
+ * backupDRClient.deleteBackupPlanAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the `BackupPlan` to delete.
+ * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBackupPlanAsync(
+ @Nullable BackupPlanName name) {
+ DeleteBackupPlanRequest request =
+ DeleteBackupPlanRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteBackupPlanAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single BackupPlan.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name = BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString();
+ * backupDRClient.deleteBackupPlanAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the `BackupPlan` to delete.
+ * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBackupPlanAsync(String name) {
+ DeleteBackupPlanRequest request = DeleteBackupPlanRequest.newBuilder().setName(name).build();
+ return deleteBackupPlanAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single BackupPlan.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteBackupPlanRequest request =
+ * DeleteBackupPlanRequest.newBuilder()
+ * .setName(BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * backupDRClient.deleteBackupPlanAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBackupPlanAsync(
+ DeleteBackupPlanRequest request) {
+ return deleteBackupPlanOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single BackupPlan.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteBackupPlanRequest request =
+ * DeleteBackupPlanRequest.newBuilder()
+ * .setName(BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.deleteBackupPlanOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteBackupPlanOperationCallable() {
+ return stub.deleteBackupPlanOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single BackupPlan.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteBackupPlanRequest request =
+ * DeleteBackupPlanRequest.newBuilder()
+ * .setName(BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = backupDRClient.deleteBackupPlanCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteBackupPlanCallable() {
+ return stub.deleteBackupPlanCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlanRevision.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupPlanRevisionName name =
+ * BackupPlanRevisionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[REVISION]");
+ * BackupPlanRevision response = backupDRClient.getBackupPlanRevision(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the `BackupPlanRevision` to retrieve.
+ * Format:
+ * `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BackupPlanRevision getBackupPlanRevision(@Nullable BackupPlanRevisionName name) {
+ GetBackupPlanRevisionRequest request =
+ GetBackupPlanRevisionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getBackupPlanRevision(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlanRevision.
+ *
+ *
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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name =
+ * BackupPlanRevisionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[REVISION]")
+ * .toString();
+ * BackupPlanRevision response = backupDRClient.getBackupPlanRevision(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the `BackupPlanRevision` to retrieve.
+ * Format:
+ * `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BackupPlanRevision getBackupPlanRevision(String name) {
+ GetBackupPlanRevisionRequest request =
+ GetBackupPlanRevisionRequest.newBuilder().setName(name).build();
+ return getBackupPlanRevision(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlanRevision.
+ *
+ *
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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetBackupPlanRevisionRequest request =
+ * GetBackupPlanRevisionRequest.newBuilder()
+ * .setName(
+ * BackupPlanRevisionName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[REVISION]")
+ * .toString())
+ * .build();
+ * BackupPlanRevision response = backupDRClient.getBackupPlanRevision(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 BackupPlanRevision getBackupPlanRevision(GetBackupPlanRevisionRequest request) {
+ return getBackupPlanRevisionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlanRevision.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetBackupPlanRevisionRequest request =
+ * GetBackupPlanRevisionRequest.newBuilder()
+ * .setName(
+ * BackupPlanRevisionName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[REVISION]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.getBackupPlanRevisionCallable().futureCall(request);
+ * // Do something.
+ * BackupPlanRevision response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getBackupPlanRevisionCallable() {
+ return stub.getBackupPlanRevisionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlanRevisions in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupPlanName parent = BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
+ * for (BackupPlanRevision element :
+ * backupDRClient.listBackupPlanRevisions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve `BackupPlanRevisions`
+ * information. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`.
+ * In Cloud BackupDR, locations map to GCP regions, for e.g. **us-central1**.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupPlanRevisionsPagedResponse listBackupPlanRevisions(
+ @Nullable BackupPlanName parent) {
+ ListBackupPlanRevisionsRequest request =
+ ListBackupPlanRevisionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBackupPlanRevisions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlanRevisions in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString();
+ * for (BackupPlanRevision element :
+ * backupDRClient.listBackupPlanRevisions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve `BackupPlanRevisions`
+ * information. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`.
+ * In Cloud BackupDR, locations map to GCP regions, for e.g. **us-central1**.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupPlanRevisionsPagedResponse listBackupPlanRevisions(String parent) {
+ ListBackupPlanRevisionsRequest request =
+ ListBackupPlanRevisionsRequest.newBuilder().setParent(parent).build();
+ return listBackupPlanRevisions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlanRevisions in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupPlanRevisionsRequest request =
+ * ListBackupPlanRevisionsRequest.newBuilder()
+ * .setParent(BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (BackupPlanRevision element :
+ * backupDRClient.listBackupPlanRevisions(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupPlanRevisionsPagedResponse listBackupPlanRevisions(
+ ListBackupPlanRevisionsRequest request) {
+ return listBackupPlanRevisionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlanRevisions in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupPlanRevisionsRequest request =
+ * ListBackupPlanRevisionsRequest.newBuilder()
+ * .setParent(BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.listBackupPlanRevisionsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (BackupPlanRevision element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBackupPlanRevisionsPagedCallable() {
+ return stub.listBackupPlanRevisionsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlanRevisions in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupPlanRevisionsRequest request =
+ * ListBackupPlanRevisionsRequest.newBuilder()
+ * .setParent(BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListBackupPlanRevisionsResponse response =
+ * backupDRClient.listBackupPlanRevisionsCallable().call(request);
+ * for (BackupPlanRevision element : response.getBackupPlanRevisionsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBackupPlanRevisionsCallable() {
+ return stub.listBackupPlanRevisionsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a BackupPlanAssociation
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * BackupPlanAssociation backupPlanAssociation = BackupPlanAssociation.newBuilder().build();
+ * String backupPlanAssociationId = "backupPlanAssociationId567762737";
+ * BackupPlanAssociation response =
+ * backupDRClient
+ * .createBackupPlanAssociationAsync(
+ * parent, backupPlanAssociation, backupPlanAssociationId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The backup plan association project and location in the format
+ * `projects/{project_id}/locations/{location}`. In Cloud BackupDR locations map to GCP
+ * regions, for example **us-central1**.
+ * @param backupPlanAssociation Required. The resource being created
+ * @param backupPlanAssociationId Required. The name of the backup plan association to create. The
+ * name must be unique for the specified project and location.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ createBackupPlanAssociationAsync(
+ @Nullable LocationName parent,
+ BackupPlanAssociation backupPlanAssociation,
+ String backupPlanAssociationId) {
+ CreateBackupPlanAssociationRequest request =
+ CreateBackupPlanAssociationRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setBackupPlanAssociation(backupPlanAssociation)
+ .setBackupPlanAssociationId(backupPlanAssociationId)
+ .build();
+ return createBackupPlanAssociationAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a BackupPlanAssociation
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * BackupPlanAssociation backupPlanAssociation = BackupPlanAssociation.newBuilder().build();
+ * String backupPlanAssociationId = "backupPlanAssociationId567762737";
+ * BackupPlanAssociation response =
+ * backupDRClient
+ * .createBackupPlanAssociationAsync(
+ * parent, backupPlanAssociation, backupPlanAssociationId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The backup plan association project and location in the format
+ * `projects/{project_id}/locations/{location}`. In Cloud BackupDR locations map to GCP
+ * regions, for example **us-central1**.
+ * @param backupPlanAssociation Required. The resource being created
+ * @param backupPlanAssociationId Required. The name of the backup plan association to create. The
+ * name must be unique for the specified project and location.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ createBackupPlanAssociationAsync(
+ String parent,
+ BackupPlanAssociation backupPlanAssociation,
+ String backupPlanAssociationId) {
+ CreateBackupPlanAssociationRequest request =
+ CreateBackupPlanAssociationRequest.newBuilder()
+ .setParent(parent)
+ .setBackupPlanAssociation(backupPlanAssociation)
+ .setBackupPlanAssociationId(backupPlanAssociationId)
+ .build();
+ return createBackupPlanAssociationAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a BackupPlanAssociation
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateBackupPlanAssociationRequest request =
+ * CreateBackupPlanAssociationRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBackupPlanAssociationId("backupPlanAssociationId567762737")
+ * .setBackupPlanAssociation(BackupPlanAssociation.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * BackupPlanAssociation response =
+ * backupDRClient.createBackupPlanAssociationAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ createBackupPlanAssociationAsync(CreateBackupPlanAssociationRequest request) {
+ return createBackupPlanAssociationOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a BackupPlanAssociation
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateBackupPlanAssociationRequest request =
+ * CreateBackupPlanAssociationRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBackupPlanAssociationId("backupPlanAssociationId567762737")
+ * .setBackupPlanAssociation(BackupPlanAssociation.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.createBackupPlanAssociationOperationCallable().futureCall(request);
+ * // Do something.
+ * BackupPlanAssociation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ CreateBackupPlanAssociationRequest, BackupPlanAssociation, OperationMetadata>
+ createBackupPlanAssociationOperationCallable() {
+ return stub.createBackupPlanAssociationOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a BackupPlanAssociation
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * CreateBackupPlanAssociationRequest request =
+ * CreateBackupPlanAssociationRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setBackupPlanAssociationId("backupPlanAssociationId567762737")
+ * .setBackupPlanAssociation(BackupPlanAssociation.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.createBackupPlanAssociationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createBackupPlanAssociationCallable() {
+ return stub.createBackupPlanAssociationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update a BackupPlanAssociation.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupPlanAssociation backupPlanAssociation = BackupPlanAssociation.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * BackupPlanAssociation response =
+ * backupDRClient.updateBackupPlanAssociationAsync(backupPlanAssociation, updateMask).get();
+ * }
+ * }
+ *
+ * @param backupPlanAssociation Required. The resource being updated
+ * @param updateMask Required. The list of fields to update. Field mask is used to specify the
+ * fields to be overwritten in the BackupPlanAssociation resource by the update. The fields
+ * specified in the update_mask are relative to the resource, not the full request. A field
+ * will be overwritten if it is in the mask. If the user does not provide a mask then the
+ * request will fail. Currently backup_plan_association.backup_plan is the only supported
+ * field.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ updateBackupPlanAssociationAsync(
+ BackupPlanAssociation backupPlanAssociation, FieldMask updateMask) {
+ UpdateBackupPlanAssociationRequest request =
+ UpdateBackupPlanAssociationRequest.newBuilder()
+ .setBackupPlanAssociation(backupPlanAssociation)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateBackupPlanAssociationAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update a BackupPlanAssociation.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupPlanAssociationRequest request =
+ * UpdateBackupPlanAssociationRequest.newBuilder()
+ * .setBackupPlanAssociation(BackupPlanAssociation.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * BackupPlanAssociation response =
+ * backupDRClient.updateBackupPlanAssociationAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ updateBackupPlanAssociationAsync(UpdateBackupPlanAssociationRequest request) {
+ return updateBackupPlanAssociationOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update a BackupPlanAssociation.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupPlanAssociationRequest request =
+ * UpdateBackupPlanAssociationRequest.newBuilder()
+ * .setBackupPlanAssociation(BackupPlanAssociation.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * backupDRClient.updateBackupPlanAssociationOperationCallable().futureCall(request);
+ * // Do something.
+ * BackupPlanAssociation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ UpdateBackupPlanAssociationRequest, BackupPlanAssociation, OperationMetadata>
+ updateBackupPlanAssociationOperationCallable() {
+ return stub.updateBackupPlanAssociationOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update a BackupPlanAssociation.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * UpdateBackupPlanAssociationRequest request =
+ * UpdateBackupPlanAssociationRequest.newBuilder()
+ * .setBackupPlanAssociation(BackupPlanAssociation.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.updateBackupPlanAssociationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateBackupPlanAssociationCallable() {
+ return stub.updateBackupPlanAssociationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlanAssociation.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupPlanAssociationName name =
+ * BackupPlanAssociationName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]");
+ * BackupPlanAssociation response = backupDRClient.getBackupPlanAssociation(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the backup plan association resource, in the format
+ * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BackupPlanAssociation getBackupPlanAssociation(
+ @Nullable BackupPlanAssociationName name) {
+ GetBackupPlanAssociationRequest request =
+ GetBackupPlanAssociationRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getBackupPlanAssociation(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlanAssociation.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name =
+ * BackupPlanAssociationName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]")
+ * .toString();
+ * BackupPlanAssociation response = backupDRClient.getBackupPlanAssociation(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the backup plan association resource, in the format
+ * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BackupPlanAssociation getBackupPlanAssociation(String name) {
+ GetBackupPlanAssociationRequest request =
+ GetBackupPlanAssociationRequest.newBuilder().setName(name).build();
+ return getBackupPlanAssociation(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlanAssociation.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetBackupPlanAssociationRequest request =
+ * GetBackupPlanAssociationRequest.newBuilder()
+ * .setName(
+ * BackupPlanAssociationName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]")
+ * .toString())
+ * .build();
+ * BackupPlanAssociation response = backupDRClient.getBackupPlanAssociation(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 BackupPlanAssociation getBackupPlanAssociation(
+ GetBackupPlanAssociationRequest request) {
+ return getBackupPlanAssociationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single BackupPlanAssociation.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * GetBackupPlanAssociationRequest request =
+ * GetBackupPlanAssociationRequest.newBuilder()
+ * .setName(
+ * BackupPlanAssociationName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.getBackupPlanAssociationCallable().futureCall(request);
+ * // Do something.
+ * BackupPlanAssociation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getBackupPlanAssociationCallable() {
+ return stub.getBackupPlanAssociationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlanAssociations in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (BackupPlanAssociation element :
+ * backupDRClient.listBackupPlanAssociations(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve backup Plan Associations
+ * information, in the format `projects/{project_id}/locations/{location}`. In Cloud BackupDR,
+ * locations map to GCP regions, for example **us-central1**. To retrieve
+ * backup plan associations for all locations, use "-" for the `{location}` value.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupPlanAssociationsPagedResponse listBackupPlanAssociations(
+ @Nullable LocationName parent) {
+ ListBackupPlanAssociationsRequest request =
+ ListBackupPlanAssociationsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBackupPlanAssociations(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlanAssociations in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (BackupPlanAssociation element :
+ * backupDRClient.listBackupPlanAssociations(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The project and location for which to retrieve backup Plan Associations
+ * information, in the format `projects/{project_id}/locations/{location}`. In Cloud BackupDR,
+ * locations map to GCP regions, for example **us-central1**. To retrieve
+ * backup plan associations for all locations, use "-" for the `{location}` value.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupPlanAssociationsPagedResponse listBackupPlanAssociations(String parent) {
+ ListBackupPlanAssociationsRequest request =
+ ListBackupPlanAssociationsRequest.newBuilder().setParent(parent).build();
+ return listBackupPlanAssociations(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlanAssociations in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupPlanAssociationsRequest request =
+ * ListBackupPlanAssociationsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (BackupPlanAssociation element :
+ * backupDRClient.listBackupPlanAssociations(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBackupPlanAssociationsPagedResponse listBackupPlanAssociations(
+ ListBackupPlanAssociationsRequest request) {
+ return listBackupPlanAssociationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlanAssociations in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupPlanAssociationsRequest request =
+ * ListBackupPlanAssociationsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient.listBackupPlanAssociationsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (BackupPlanAssociation element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListBackupPlanAssociationsRequest, ListBackupPlanAssociationsPagedResponse>
+ listBackupPlanAssociationsPagedCallable() {
+ return stub.listBackupPlanAssociationsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists BackupPlanAssociations in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * ListBackupPlanAssociationsRequest request =
+ * ListBackupPlanAssociationsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListBackupPlanAssociationsResponse response =
+ * backupDRClient.listBackupPlanAssociationsCallable().call(request);
+ * for (BackupPlanAssociation element : response.getBackupPlanAssociationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBackupPlanAssociationsCallable() {
+ return stub.listBackupPlanAssociationsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List BackupPlanAssociations for a given resource type.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * String resourceType = "resourceType-384364440";
+ * for (BackupPlanAssociation element :
+ * backupDRClient
+ * .fetchBackupPlanAssociationsForResourceType(parent, resourceType)
+ * .iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name. Format:
+ * projects/{project}/locations/{location}
+ * @param resourceType Required. The type of the GCP resource. Ex: sql.googleapis.com/Instance
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchBackupPlanAssociationsForResourceTypePagedResponse
+ fetchBackupPlanAssociationsForResourceType(
+ @Nullable LocationName parent, String resourceType) {
+ FetchBackupPlanAssociationsForResourceTypeRequest request =
+ FetchBackupPlanAssociationsForResourceTypeRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setResourceType(resourceType)
+ .build();
+ return fetchBackupPlanAssociationsForResourceType(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List BackupPlanAssociations for a given resource type.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * String resourceType = "resourceType-384364440";
+ * for (BackupPlanAssociation element :
+ * backupDRClient
+ * .fetchBackupPlanAssociationsForResourceType(parent, resourceType)
+ * .iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name. Format:
+ * projects/{project}/locations/{location}
+ * @param resourceType Required. The type of the GCP resource. Ex: sql.googleapis.com/Instance
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchBackupPlanAssociationsForResourceTypePagedResponse
+ fetchBackupPlanAssociationsForResourceType(String parent, String resourceType) {
+ FetchBackupPlanAssociationsForResourceTypeRequest request =
+ FetchBackupPlanAssociationsForResourceTypeRequest.newBuilder()
+ .setParent(parent)
+ .setResourceType(resourceType)
+ .build();
+ return fetchBackupPlanAssociationsForResourceType(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List BackupPlanAssociations for a given resource type.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * FetchBackupPlanAssociationsForResourceTypeRequest request =
+ * FetchBackupPlanAssociationsForResourceTypeRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setResourceType("resourceType-384364440")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (BackupPlanAssociation element :
+ * backupDRClient.fetchBackupPlanAssociationsForResourceType(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchBackupPlanAssociationsForResourceTypePagedResponse
+ fetchBackupPlanAssociationsForResourceType(
+ FetchBackupPlanAssociationsForResourceTypeRequest request) {
+ return fetchBackupPlanAssociationsForResourceTypePagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List BackupPlanAssociations for a given resource type.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * FetchBackupPlanAssociationsForResourceTypeRequest request =
+ * FetchBackupPlanAssociationsForResourceTypeRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setResourceType("resourceType-384364440")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * backupDRClient
+ * .fetchBackupPlanAssociationsForResourceTypePagedCallable()
+ * .futureCall(request);
+ * // Do something.
+ * for (BackupPlanAssociation element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ FetchBackupPlanAssociationsForResourceTypeRequest,
+ FetchBackupPlanAssociationsForResourceTypePagedResponse>
+ fetchBackupPlanAssociationsForResourceTypePagedCallable() {
+ return stub.fetchBackupPlanAssociationsForResourceTypePagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List BackupPlanAssociations for a given resource type.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * FetchBackupPlanAssociationsForResourceTypeRequest request =
+ * FetchBackupPlanAssociationsForResourceTypeRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setResourceType("resourceType-384364440")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
* .setOrderBy("orderBy-1207110587")
* .build();
- * for (ManagementServer element : backupDRClient.listManagementServers(request).iterateAll()) {
- * // doThingsWith(element);
+ * while (true) {
+ * FetchBackupPlanAssociationsForResourceTypeResponse response =
+ * backupDRClient.fetchBackupPlanAssociationsForResourceTypeCallable().call(request);
+ * for (BackupPlanAssociation element : response.getBackupPlanAssociationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
* }
* }
* }
+ */
+ public final UnaryCallable<
+ FetchBackupPlanAssociationsForResourceTypeRequest,
+ FetchBackupPlanAssociationsForResourceTypeResponse>
+ fetchBackupPlanAssociationsForResourceTypeCallable() {
+ return stub.fetchBackupPlanAssociationsForResourceTypeCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single BackupPlanAssociation.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * BackupPlanAssociationName name =
+ * BackupPlanAssociationName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]");
+ * backupDRClient.deleteBackupPlanAssociationAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the backup plan association resource, in the format
+ * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBackupPlanAssociationAsync(
+ @Nullable BackupPlanAssociationName name) {
+ DeleteBackupPlanAssociationRequest request =
+ DeleteBackupPlanAssociationRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteBackupPlanAssociationAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single BackupPlanAssociation.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * String name =
+ * BackupPlanAssociationName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]")
+ * .toString();
+ * backupDRClient.deleteBackupPlanAssociationAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the backup plan association resource, in the format
+ * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteBackupPlanAssociationAsync(
+ String name) {
+ DeleteBackupPlanAssociationRequest request =
+ DeleteBackupPlanAssociationRequest.newBuilder().setName(name).build();
+ return deleteBackupPlanAssociationAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single BackupPlanAssociation.
+ *
+ * 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+ * DeleteBackupPlanAssociationRequest request =
+ * DeleteBackupPlanAssociationRequest.newBuilder()
+ * .setName(
+ * BackupPlanAssociationName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setAutoProtectionPolicyBinding(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
+ * .build();
+ * backupDRClient.deleteBackupPlanAssociationAsync(request).get();
+ * }
+ * }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListManagementServersPagedResponse listManagementServers(
- ListManagementServersRequest request) {
- return listManagementServersPagedCallable().call(request);
+ public final OperationFuture deleteBackupPlanAssociationAsync(
+ DeleteBackupPlanAssociationRequest request) {
+ return deleteBackupPlanAssociationOperationCallable().futureCall(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists ManagementServers in a given project and location.
+ * Deletes a single BackupPlanAssociation.
*
* Sample code:
*
@@ -1126,31 +6527,33 @@ public final ListManagementServersPagedResponse listManagementServers(
* // - 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
- * ListManagementServersRequest request =
- * ListManagementServersRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ * DeleteBackupPlanAssociationRequest request =
+ * DeleteBackupPlanAssociationRequest.newBuilder()
+ * .setName(
+ * BackupPlanAssociationName.of(
+ * "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setAutoProtectionPolicyBinding(
+ * AutoProtectionPolicyBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+ * .toString())
* .build();
- * ApiFuture